/* Topup Page Styles */

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Firefox global scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #3498db rgba(255, 255, 255, 0.05);
}

/* Login Required Section */
.login-required {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.login-required-container {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-required-header {
    margin-bottom: 2.5rem;
}

.login-required-icon {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login-required-header h1 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-required-header p {
    color: #bdc3c7;
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.login-required-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login-now, .btn-register-now {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.btn-login-now {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-login-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-register-now {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-register-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
    color: #fff;
    text-decoration: none;
}

.btn-register:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Login Benefits */
.login-benefits {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-header h2 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.benefits-header p {
    color: #bdc3c7;
    margin: 0;
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.benefit-icon i {
    font-size: 3rem;
    color: #f39c12;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.benefit-content h3 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.benefit-content p {
    color: #bdc3c7;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Topup Interface */
.topup-interface {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-title h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-title p {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin: 0;
}

/* User Info */
.user-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

.user-details h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.user-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-stats span {
    color: #b8b8b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-balance {
    margin-left: auto;
    text-align: right;
}

.balance-label {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.balance-amount {
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Currency Selection */
.currency-selection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.currency-selection h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currency-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.currency-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.currency-option.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.currency-icon {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.currency-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.currency-code {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.currency-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Topup Options */
.topup-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.option-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.package-icon {
    font-size: 2rem;
    color: #f39c12;
}

.package-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.package-badge.starter {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
}



.package-badge.premium {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #fff;
}

.package-badge.vip {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
}

.package-badge.ultimate {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.package-badge.unlimited {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
}

.package-content h3 {
    color: #fff;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.package-amount {
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.package-price {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.package-bonus {
    color: #27ae60;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-topup {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-topup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Custom Amount Form */
.custom-amount-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.amount-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #fff;
}

.preview-item.total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #f39c12;
}

.btn-topup-custom {
    width: 100%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-topup-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Transaction History */
.transaction-history {
    max-width: 800px;
    margin: 0 auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.history-header h3 {
    color: #fff;
    margin: 0;
}

.history-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
}

.history-filters select option {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.transaction-icon {
    font-size: 1.8rem;
    width: 40px;
    text-align: center;
}

.transaction-item.completed .transaction-icon {
    color: #27ae60;
}

.transaction-item.pending .transaction-icon {
    color: #f39c12;
}

.transaction-item.failed .transaction-icon {
    color: #e74c3c;
}

.transaction-details {
    min-width: 0;
}

.transaction-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #b8b8b8;
    font-size: 0.85rem;
}

.transaction-info span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-amount {
    color: #f39c12;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: right;
    min-width: 120px;
}

.transaction-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    min-width: 100px;
}

.transaction-item.completed .transaction-status {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.transaction-item.pending .transaction-status {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.transaction-item.failed .transaction-status {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.transaction-date {
    color: #b8b8b8;
    font-size: 0.8rem;
    text-align: right;
    min-width: 140px;
}

/* Payment Methods */
.payment-methods {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods h3 {
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.payment-method {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.payment-method.active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-color: #f39c12;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.payment-method.active i {
    color: #fff;
}

.payment-method.active span {
    color: #fff;
}

.payment-method i {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 0.5rem;
    display: block;
}

.payment-method span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

/* Custom Scrollbar untuk Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 5px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

/* Firefox scrollbar */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #f39c12 rgba(255, 255, 255, 0.05);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
}

.payment-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-summary h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #fff;
}

.summary-item.total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #f39c12;
}

.payment-form .form-group {
    margin-bottom: 1.5rem;
}

.payment-form .form-group label {
    display: block;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.payment-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
}

.payment-form select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

.payment-form select:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.btn-process-payment {
    width: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-process-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Payment Details */
.payment-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 100px;
}

.payment-details-content h4 {
    color: #f39c12;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.payment-info {
    color: #f8f9fa;
    line-height: 1.6;
}

.payment-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.payment-info strong {
    color: #f39c12;
    font-weight: 600;
}

.payment-info ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.payment-info li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* QRIS Image Styling */
.payment-details img[alt="QRIS Code"] {
    max-width: 400px !important;
    width: 100% !important;
    height: auto !important;
    border: 2px solid #ddd !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    margin: 20px auto !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.payment-details img[alt="QRIS Code"]:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-required-container {
        padding: 2rem;
        margin: 1rem;
    }

    .login-required-header h1 {
        font-size: 2rem;
    }

    .login-required-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-login-now, .btn-register-now {
        width: 100%;
        max-width: 300px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-balance {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .currency-options {
        flex-direction: column;
        align-items: center;
    }
    
    .currency-option {
        min-width: 200px;
    }
    
    .option-tabs {
        flex-direction: column;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .transaction-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .transaction-info {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    /* QRIS Image Responsive */
    .payment-details img[alt="QRIS Code"] {
        max-width: 300px !important;
        margin: 15px auto !important;
    }

    .transaction-amount,
    .transaction-status,
    .transaction-date {
        text-align: center;
        min-width: auto;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

/* Upload Proof of Payment Styles */
.upload-section {
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-section h4 {
    color: #f39c12;
    margin: 0 0 0.8rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.upload-area {
    border: 2px dashed rgba(243, 156, 18, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.upload-area:hover {
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.15);
}

.upload-area.dragover {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
}

.upload-content i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 0.8rem;
}

.upload-content p {
    color: #fff;
    margin: 0.3rem 0;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.upload-info {
    color: #adb5bd !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
}

.btn-upload {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0.4rem 0;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.file-preview {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.4);
    border-radius: 8px;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.preview-content i {
    font-size: 1.5rem;
    color: #27ae60;
}

.preview-content span {
    color: #f8f9fa;
    font-weight: 500;
    flex: 1;
}

.btn-remove-file {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* Prevent unwanted focus and selection states */
.package-card:focus {
    outline: none;
}

.package-card:focus-within {
    outline: none;
}

.btn-topup:focus {
    outline: none;
}

/* Ensure no default selection state */
.package-card:not(.active):not(:hover) {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Only show active state when explicitly selected */
.package-card.active {
    border: 2px solid #27ae60;
    box-shadow: 0 0 25px rgba(39, 174, 96, 0.5);
}

/* Custom amount input should not have default value */
#custom-amount:not(:focus) {
    background: rgba(255, 255, 255, 0.1);
}

#custom-amount:focus {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    border-color: #f39c12;
}

/* Preview section styling for empty state */
.amount-preview {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.amount-preview:empty::before {
    content: "Enter an amount above to see preview";
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-align: center;
    display: block;
    padding: 2rem;
}

/* Preview items styling */
.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.preview-item span:first-child {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.preview-item span:last-child {
    color: #f39c12;
    font-weight: 600;
    font-size: 1.1rem;
}

.preview-item.total span:last-child {
    color: #27ae60;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive upload styles */
@media (max-width: 768px) {
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-content i {
        font-size: 2.5rem;
    }
    
    .preview-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
} 

/* Referral Code Styles */
.optional-text {
    color: #95a5a6;
    font-size: 0.85rem;
    font-weight: normal;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #34495e;
    border-radius: 8px;
    background: #2c3e50;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-input::placeholder {
    color: #7f8c8d;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #95a5a6;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* No Transactions State */
.no-transactions {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.no-transactions-icon {
    font-size: 4rem;
    color: #95a5a6;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-transactions-content h3 {
    color: #ecf0f1;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-transactions-content p {
    color: #bdc3c7;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* Transaction History Status Colors */
.transaction-item.success {
    border-left: 4px solid #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.transaction-item.success .transaction-icon i {
    color: #27ae60;
}

.transaction-item.pending {
    border-left: 4px solid #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.transaction-item.pending .transaction-icon i {
    color: #f39c12;
}

.transaction-item.failed,
.transaction-item.cancelled {
    border-left: 4px solid #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.transaction-item.failed .transaction-icon i,
.transaction-item.cancelled .transaction-icon i {
    color: #e74c3c;
}

/* Transaction Info Spacing */
.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.transaction-info span {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.transaction-info span:first-child {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1rem;
}

/* History Filters Styling */
.history-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #ecf0f1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-filters select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.history-filters select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* History Header Styling */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-header h3 {
    color: #ecf0f1;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Transaction Count Badge */
.transaction-count {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Filter Animation */
.transaction-item {
    transition: all 0.3s ease;
}

.transaction-item[style*="display: none"] {
    transform: scale(0.95);
    opacity: 0;
}

.transaction-item[style*="display: flex"] {
    transform: scale(1);
    opacity: 1;
}