/* SATTORE — Public App CSS System */
:root {
    --primary: #E11D48;
    --primary-hover: #BE123C;
    --primary-light: #FFF1F2;
    --primary-dark: #9F1239;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--font);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1 0 auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

main, .main-container {
    flex: 1 0 auto;
}

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

/* HEADER & NAVBAR */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}


.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 12px;
}

.header-search {
    flex: 1;
    max-width: 550px;
    position: relative;
}

.header-search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    background: #f8fafc;
    color: var(--text-dark);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon-nav {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    cursor: pointer;
}

.btn-global-nav {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-login-nav {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-login-nav:hover { background: var(--primary-hover); }

/* SECONDARY NAV BAR */
.sub-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 13px;
}

.sub-nav-left, .sub-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sub-nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.sub-nav-item:hover { color: var(--primary); background: var(--primary-light); }
.sub-nav-item.active { background: #f1f5f9; color: var(--text-dark); }
.sub-nav-item svg { width: 16px; height: 16px; }

/* HEADER RATING & GUARANTEE BADGES */
.title-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.badges-right-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-rating {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.badge-guarantee {
    background: #E11D48;
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.badge-guarantee svg { width: 16px; height: 16px; }

/* PAYMENT BRAND LOGOS */
.pay-logo-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.pay-logo-card:hover { transform: translateY(-2px); border-color: #cbd5e1; }

.pay-logo-img {
    max-height: 24px;
    max-width: 80px;
    object-fit: contain;
}

/* BREADCRUMB */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin: 24px 0 12px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 14px; height: 14px; }

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.back-icon { width: 24px; height: 24px; color: var(--text-dark); }

/* LAYOUT */
.topup-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    margin-bottom: 60px;
    align-items: start;
}

.topup-right.sticky-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* METHOD TABS */
.method-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.method-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.method-tab {
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.method-tab:hover {
    background: #e2e8f0;
}

.method-tab.active {
    background: var(--primary-light);
    border-color: var(--primary);
}

.tab-badge {
    position: absolute;
    top: -10px;
    left: 12px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
}

.tab-content-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.tab-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.tab-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.tab-icon, .tab-img-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ACCORDION HOW TO BUY */
.how-to-buy {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.how-to-btn {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;

}

.how-to-btn svg { width: 20px; height: 20px; }
.how-to-btn .chevron { margin-left: auto; transition: transform 0.2s; }
.how-to-btn.open .chevron { transform: rotate(180deg); }

.how-to-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.how-to-content.open {
    max-height: 300px;
    margin-top: 12px;
}

.how-to-list {
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-body);
}

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

.tutorial-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    margin-top: 10px;
}

.tutorial-link svg { width: 18px; height: 18px; }

/* FORMS */
.form-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

#orderForm .form-card:last-child {
    margin-bottom: 0;
}

.form-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.input-field {
    margin-bottom: 16px;
}

.input-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.input-avatar-icon {
    position: absolute;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.user-check-badge {
    position: absolute;
    right: 14px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-check-badge svg {
    width: 22px;
    height: 22px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-main);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

.toggle-pw svg { width: 20px; height: 20px; }

/* BACKUP CODES */
.backup-codes-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px stroke var(--border-color);
}

.label-note {
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
    margin-left: 6px;
}

.backup-code-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.backup-input {
    padding-left: 16px !important;
}

.btn-remove-code {
    background: #fee2e2;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    cursor: pointer;
}

.btn-remove-code svg { width: 18px; height: 18px; }

.btn-add-code {
    background: #f1f5f9;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-top: 8px;
}

.btn-add-code svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
}

.btn-add-code:hover { background: #e2e8f0; }

.user-preview {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
}

.user-avatar-sm { width: 24px; height: 24px; border-radius: 50%; }

/* ROBUX SELECTION GRID */
.robux-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.in-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.in-stock-badge.in-stock {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.in-stock-badge.out-stock {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.in-stock-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.in-stock-badge.in-stock .stock-icon-check { display: inline-block; }
.in-stock-badge.in-stock .stock-icon-cross { display: none; }

.in-stock-badge.out-stock .stock-icon-check { display: none; }
.in-stock-badge.out-stock .stock-icon-cross { display: inline-block; }

.custom-amount-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.custom-input-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
}

.custom-input-box.active-box {
    border-color: var(--primary);
    background: var(--primary-light);
}

.custom-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.custom-input-inner {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.custom-number-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: inherit;
}

.custom-number-input:focus { outline: none; }

.custom-unit, .custom-prefix {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin: 0 4px;
}

.offers-label {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
}

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

.package-card {
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.package-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.package-card.selected {
    background: var(--primary-light);
    border-color: var(--primary);
}

.disc-badge {
    position: absolute;
    top: -8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
}

.pkg-robux {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.robux-icon-sm {
    width: 20px;
    height: 20px;
}

.pkg-original {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 2px;
}

.pkg-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2px;
}

/* GAMEPASS SECTION */
.gamepass-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px stroke var(--border-color);
}

.gamepass-info-box {
    background: var(--primary-light);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-dark);
}

.gamepass-info-box svg { width: 22px; height: 22px; flex-shrink: 0; }
.gamepass-info-box small { color: var(--text-muted); display: block; margin-top: 2px; }

/* SUMMARY SIDEBAR */
.sticky-sidebar, .sticky-summary {
    position: sticky;
    top: 90px;
    align-self: start;
}

.order-summary {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.summary-empty-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    padding: 16px;
}

.empty-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}

.empty-text-wrap {
    display: flex;
    flex-direction: column;
}

.empty-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.empty-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.35;
}

.summary-selected-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.summary-user-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.summary-user-label {
    color: #94a3b8;
    font-weight: 600;
}

.summary-user-name {
    color: #0f172a;
    font-weight: 700;
}

.summary-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    margin-left: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.btn-remove-selection {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove-selection:hover {
    background: #fee2e2;
    color: #ef4444;
}

.summary-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.summary-robux-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.summary-pkg-info {
    display: flex;
    flex-direction: column;
}

.summary-pkg-robux {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.summary-pkg-price {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-top: 2px;
}

.btn-buy-now {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-buy-now:hover:not(:disabled) {
    background: #BE123C !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.btn-buy-now:disabled {
    background: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.summary-row strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

/* SEPARATE STOCK CARD STYLING */
.stock-card-separate {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    display: block;
    clear: both;
}

.cs-wa-card {
    background: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.cs-wa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.2) !important;
    border-color: #4ade80 !important;
}

.cs-icon-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.cs-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    display: block;
    line-height: 1.2;
}

.cs-sub {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    display: block;
    margin-top: 3px;
}

.stock-card-body {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent;
    padding: 0;
    border: none;
}

.stock-icon-img {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.stock-card-info {
    display: flex;
    flex-direction: column;
}

.stock-card-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
}

.stock-card-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
}

.summary-stats {
    margin: 16px 0;
    background: var(--bg-main);
    border-radius: 10px;
    padding: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon { width: 24px; height: 24px; }
.stat-val { font-size: 15px; font-weight: 700; color: var(--text-dark); display: block; }
.stat-lbl { font-size: 11px; color: var(--text-muted); }

.btn-complete {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-complete:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-complete:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* INVOICE PAGE */
.invoice-page { min-height: 100vh; }
.invoice-main { margin-top: 30px; margin-bottom: 60px; }

.invoice-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
}

.invoice-card, .qr-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.status-banner.status-pending { background: #fef3c7; color: #92400e; }
.status-banner.status-paid, .status-banner.status-processing { background: #e0f2fe; color: #075985; }
.status-banner.status-done { background: #dcfce7; color: #166534; }
.status-banner.status-failed, .status-banner.status-cancelled { background: #fee2e2; color: #991b1b; }

.status-icon-wrap { width: 32px; height: 32px; flex-shrink: 0; }
.status-icon-wrap svg { width: 100%; height: 100%; }

.spin { animation: spin 1.5s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.status-title { font-size: 16px; font-weight: 700; }
.status-msg { font-size: 13px; }

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}

.invoice-row.total-row {
    border-bottom: none;
    padding-top: 16px;
}

.robux-val { display: flex; align-items: center; gap: 4px; color: var(--primary); }
.robux-icon-xs { width: 16px; height: 16px; }

.price-big { font-size: 22px; font-weight: 800; color: var(--primary); }

.qr-card { text-align: center; }
.qr-amount { font-size: 24px; font-weight: 800; color: var(--primary); margin: 8px 0 16px; }
.qr-wrapper { background: #ffffff; padding: 12px; border-radius: 12px; border: 1px solid var(--border-color); display: inline-block; }
.qr-image { width: 220px; height: 220px; display: block; }

.qr-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 14px;
}

.qr-timer svg { width: 16px; height: 16px; }
.qr-note { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.polling-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 14px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }

.gamepass-reminder {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    font-size: 13px;
}

.gamepass-reminder svg { width: 24px; height: 24px; flex-shrink: 0; }
.gp-link { color: var(--primary); font-weight: 600; text-decoration: underline; }

.contact-admin {
    margin-top: 20px;
    text-align: center;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    margin-top: 8px;
}

.btn-wa svg { width: 20px; height: 20px; }

.mono { font-family: monospace; }
.hidden { display: none !important; }

/* FAQ SECTION */
.faq-section {
    margin: 40px 0 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.faq-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--bg-card);
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover { background: var(--bg-main); }

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-main);
    padding: 0 20px;
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
}

.faq-answer.open {
    max-height: 300px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

/* FOOTER SECTION */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand .brand-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 380px;
    line-height: 1.6;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.payment-methods-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.payment-methods-box h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.payment-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.pay-badge {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.pay-badge.qris {
    background: #ea580c;
    color: #ffffff;
    border-color: #c2410c;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* MODAL SYSTEM */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-backdrop.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-box.small-modal {
    max-width: 400px;
    text-align: center;
    padding: 40px 32px;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: var(--text-dark); }

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.modal-body p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.gamepass-price-highlight {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
}

.text-green { color: var(--primary); }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-outline-modal {
    flex: 1;
    min-width: 180px;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.btn-primary-modal {
    flex: 1;
    min-width: 180px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

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

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.modal-error-icon, .modal-success-icon {
    margin-bottom: 16px;
}

/* SUCCESS MODAL STYLING */
.success-modal-box {
    max-width: 440px !important;
    padding: 32px 28px !important;
    text-align: center;
}

.success-icon-badge {
    width: 64px;
    height: 64px;
    background: #e6f7f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 0 8px rgba(0, 168, 107, 0.1);
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.success-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.gamepass-details-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.gp-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 12px;
}

.gp-thumb-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-main);
    flex-shrink: 0;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.gp-name-wrap {
    display: flex;
    flex-direction: column;
}

.gp-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gp-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.gp-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.gp-stat-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gp-stat-lbl {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.gp-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.gp-stat-val.mono-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: var(--bg-main);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-block;
    width: fit-content;
}

.gp-stat-val.price-val {
    color: #E11D48;
    font-weight: 800;
}

.gp-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #E11D48;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
    flex-shrink: 0;
}

.status-text {
    font-size: 12px;
    font-weight: 600;
    color: #E11D48;
}

.btn-full-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    transition: all 0.2s ease;
}

.btn-full-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.4);
}

/* INVOICE PAGE STYLING */
.invoice-page-wrapper {
    background: var(--bg-main);
    min-height: 100vh;
    padding-bottom: 60px;
}

.invoice-container {
    max-width: 1100px;
    margin: 32px auto;
    padding: 0 20px;
}

.invoice-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

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

.card-invoice {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-invoice-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending { background: #fffbe6; color: #d97706; border: 1px solid #fef08a; }
.status-processing { background: #e0f2fe; color: #0284c7; border: 1px solid #bae6fd; }
.status-success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.status-failed { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; }

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.invoice-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    background: var(--bg-main);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .invoice-meta-grid { grid-template-columns: 1fr; }
}

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

.meta-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.meta-value {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.meta-value.mono-id {
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-id {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 2px;
}

.meta-payment-icon {
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.invoice-product-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f1f5f9;
    border-radius: 14px;
    margin-bottom: 24px;
}

.prod-icon-box {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.prod-img { width: 28px; height: 28px; }

.prod-details { flex: 1; }

.prod-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.prod-sub {
    font-size: 12px;
    color: #64748b;
}

.prod-price {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.invoice-breakdown {
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.breakdown-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.bd-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.bd-label { color: #64748b; }
.bd-val { font-weight: 700; color: #1e293b; }

.bd-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.total-bd-row { margin-bottom: 0; }
.bd-label-total { font-size: 15px; font-weight: 800; color: #0f172a; }
.bd-val-total { font-size: 20px; font-weight: 800; color: var(--primary); }

.notice-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 13px;
}

.notice-security { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }
.notice-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

.notice-box p { font-size: 12px; opacity: 0.9; margin-top: 2px; }

/* TIMERS & QR CARDS */
.timer-card { text-align: center; }
.timer-desc { font-size: 13px; color: #64748b; margin-bottom: 16px; }

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.time-unit-box {
    background: #0f172a;
    color: #ffffff;
    width: 72px;
    padding: 10px;
    border-radius: 12px;
    text-align: center;
}

.tu-num { font-size: 24px; font-weight: 800; display: block; line-height: 1; }
.tu-lbl { font-size: 10px; text-transform: uppercase; color: #94a3b8; }

.payment-qr-card { text-align: center; }
.qr-heading { font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.qr-subheading { font-size: 12px; color: #64748b; margin-bottom: 20px; }

.qr-image-frame {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    width: 220px;
    height: 195px;
    overflow: hidden;
    position: relative;
}

.qr-code-img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.btn-download-qr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 24px;
}

.btn-download-qr:hover { text-decoration: underline; }

.payment-instructions {
    text-align: left;
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #f1f5f9;
}

.guide-title { font-size: 13px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.guide-list { padding-left: 20px; font-size: 12px; color: #475569; line-height: 1.6; }

.payment-status-illustration {
    padding: 24px 16px;
    text-align: center;
}

.illus-icon-badge { margin: 0 auto 16px; }
.payment-status-illustration h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.payment-status-illustration p { font-size: 13px; color: #64748b; line-height: 1.6; }

.help-wa-card { text-align: center; }
.wa-help-title { font-size: 15px; font-weight: 800; color: #0f172a; }
.wa-help-desc { font-size: 12px; color: #64748b; margin-bottom: 16px; }

.btn-wa-help {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-wa-help:hover { background: #20ba5a; }

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 900px) {
    .topup-layout, .invoice-layout { grid-template-columns: 1fr; }
    .sticky-summary { position: static; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .title-bar-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .badges-right-box { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .sub-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .sub-nav-left, .sub-nav-right { flex-wrap: nowrap; white-space: nowrap; }
    .sub-nav-item { font-size: 12px; padding: 6px 8px; }
    .btn-global-nav { display: none; }
}

@media (max-width: 600px) {
    .method-tabs { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr !important; }
    .custom-amount-row { grid-template-columns: 1fr; }
    .footer-links-group { grid-template-columns: 1fr 1fr; }
    .payment-badges-grid { grid-template-columns: repeat(3, 1fr); }
    .header-inner { flex-direction: row; gap: 12px; }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .badge-rating { font-size: 11px; padding: 6px 10px; }
    .badge-guarantee { font-size: 10px; padding: 6px 10px; }
    .modal-box { padding: 24px; }
    .modal-actions { flex-direction: column; }
}

/* GAME ITEMS STOREFRONT (GIFT IN-GAME) */
.game-category-tabs .game-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.game-category-tabs .game-tab-btn:hover,
.game-category-tabs .game-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.filter-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-pill:hover,
.filter-pill.active {
    border-color: #E11D48;
    color: #E11D48;
    background: #fff1f2;
}

.filter-pill.sort-label {
    border-color: #E11D48;
    color: #E11D48;
    background: #fff1f2;
    cursor: default;
}

.filter-pill.reset-btn {
    color: #E11D48;
    border: none;
    background: transparent;
}

.game-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .game-items-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .game-items-grid { grid-template-columns: 1fr; }
}

.item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #E11D48;
}

.item-card-inner {
    display: flex;
    gap: 14px;
}

.item-thumb-wrapper {
    position: relative;
    width: 86px;
    height: 86px;
    flex-shrink: 0;
}

.item-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.item-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #64748b;
}

.badge-terpopuler {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px 8px 4px 8px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(37,99,235,0.4);
}

.item-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 4px;
}

.item-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.item-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: #eff6ff;
    color: #3b82f6;
}

.item-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    color: #64748b;
}

.star-icon { font-size: 13px; }
.rating-val { font-weight: 800; color: #1e293b; }
.dot-sep { color: #cbd5e1; }
.sold-val { font-weight: 500; color: #64748b; }

.item-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.item-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cart-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cart-icon:hover {
    background: #f8fafc;
    color: #0f172a;
}

.btn-buy-item {
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
}

.btn-buy-item:hover {
    background: #BE123C;
    box-shadow: 0 5px 14px rgba(225, 29, 72, 0.35);
}

/* GAME CARDS GRID (LIST GAME STYLING MATCHING USER SCREENSHOT) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.public-game-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.public-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.09);
    border-color: #E11D48;
}

.public-game-img-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    background: #f8fafc;
    overflow: hidden;
}

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

.game-hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px 10px 4px 10px;
    letter-spacing: 0.5px;
}

.public-game-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.public-game-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.public-game-variant {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 20px;
}

.public-game-sold-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.public-game-sold-num {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.public-game-sold-lbl {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.public-game-icon-box {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-out-blur {
    filter: blur(2.5px) grayscale(60%) opacity(0.55);
    pointer-events: none !important;
    user-select: none;
    cursor: not-allowed !important;
}

.stock-tab-out {
    opacity: 0.8;
    border-color: #fca5a5 !important;
}

.badge-red {
    background: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
}

.in-stock-badge.out-stock {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fca5a5 !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (SATTORE ALL PAGES)
   ========================================================================== */
@media (max-width: 1024px) {
    .topup-layout {
        grid-template-columns: 1fr;
    }
    .sticky-sidebar {
        position: static;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .game-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .invoice-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .method-tabs {
        flex-direction: column;
    }
    .method-tab {
        width: 100%;
    }
    .packages-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .game-items-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
    .modal-content {
        max-width: 92% !important;
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .public-game-img-wrapper {
        height: 110px;
    }
    .public-game-info {
        padding: 10px;
    }
    .public-game-title {
        font-size: 14px;
    }
    .public-game-variant {
        font-size: 11px;
        margin-bottom: 10px;
    }
}

@media (max-width: 360px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}}
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   SITE HEADER & SUB NAVIGATION (MOBILE TOUCH-SWIPEABLE NAVBAR)
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.header-search {
    flex: 1;
    max-width: 320px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.header-search-input {
    width: 100%;
    height: 38px;
    padding: 0 14px 0 38px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.header-search-input:focus {
    background: #ffffff;
    border-color: #E11D48;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-global-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.btn-login-nav {
    background: #e11d48;
    color: #ffffff;
    font-weight: 800;
    font-size: 13.5px;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-login-nav:hover {
    background: #be123c;
}

/* SUB NAVIGATION BAR (MOBILE SWIPEABLE HORIZONTAL SCROLL) */
.sub-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding: 6px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav-left, .sub-nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sub-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sub-nav-item svg {
    width: 16px;
    height: 16px;
}

.sub-nav-item:hover {
    color: #0f172a;
    background: #f8fafc;
}

.sub-nav-item.active {
    color: #E11D48;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }
    .site-header {
        padding: 8px 0 0;
    }
    .header-inner {
        padding-bottom: 8px;
        gap: 8px;
    }
    .logo {
        gap: 8px;
    }
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    .logo-text {
        font-size: 17px;
        letter-spacing: -0.3px;
    }
    .header-search, .btn-global-nav {
        display: none !important;
    }
    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }
    .btn-icon-nav {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
    .btn-login-nav {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 50px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .sub-nav {
        padding: 4px 0;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .sub-nav-left, .sub-nav-right {
        gap: 4px;
    }
    .sub-nav-item {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
    .sub-nav-item svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 10px;
    }
    .logo-text {
        font-size: 15px;
    }
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    .btn-login-nav {
        padding: 5px 12px;
        font-size: 11.5px;
    }
}

/* FLOATING WHATSAPP PILL BUTTON (EXACT MATCH USER DESIGN) */
.float-wa-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #475569 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 22px 6px 6px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.float-wa-pill:hover {
    background: #ffffff;
    color: #0f172a !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
    border-color: #25d366;
}

.wa-official-svg {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(37, 211, 102, 0.3));
}

.wa-pill-text {
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: -0.2px;
}

@media (max-width: 768px) {
    .float-wa-pill {
        bottom: 14px;
        right: 14px;
        padding: 4px 14px 4px 4px;
        font-size: 12.5px;
        gap: 8px;
        box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    }
    .wa-official-svg {
        width: 28px;
        height: 28px;
    }
    .btn-wa-confirm-full {
        font-size: 12.5px !important;
        padding: 10px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .notice-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   SITE FOOTER (STICKY FOOTER AT THE VERY BOTTOM OF THE WINDOW)
   ========================================================================== */
.site-footer {
    margin-top: auto !important;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 380px;
}

.brand-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    .footer-links-group {
        gap: 32px;
        flex-wrap: wrap;
    }
}

/* GLOBAL MODAL SYSTEM & POPUPS */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
    box-sizing: border-box;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.modal-backdrop.active .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}


