* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #2D0A31;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

header {
    background: #0099ff;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.logo {
    height: 40px;
    width: auto;
}

.header-text {
    color: white;
}

.header-text h1 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.header-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.register-btn {
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(74, 0, 224, 0.2);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.register-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(74, 0, 224, 0.4);
}

main {
    margin-top: 60px;
    padding: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.game-title {
    color: white;
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    font-weight: 600;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.feature-item {
    background: rgba(74, 0, 224, 0.15);
    border-radius: 15px;
    padding: 15px;
    margin: 10px;
    flex: 1;
    min-width: 200px;
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(142, 45, 226, 0.2);
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.1);
}

.feature-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item i {
    color: #FFFFFF;
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 1;
}

.feature-item span {
    color: rgb(0, 0, 0);
    font-size: 14px;
}

.feature-item h3 {
    color: #FFFFFF;
    font-weight: 600;
    margin: 10px 0;
    opacity: 1;
}

.feature-item p {
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0;
    opacity: 0.9;
}

.input-section, .diamonds-section {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-header .number {
    width: 30px;
    height: 30px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.section-header h2 {
    margin: 0;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
}

.input-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.help-button {
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 0 10px;
}

.help-text {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    line-height: 1.4;
}

.input-fields {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.input-fields input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-fields input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33,150,243,0.1);
}

.help-btn {
    background: #F5F5F5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.help-btn:hover {
    background: #EEEEEE;
}

.input-help {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

.stats-banner {
    background: #FCE4EC;
    color: #E91E63;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(233,30,99,0.1);
}

.diamonds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 15px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.diamonds-grid > div {  /* Targeting setiap diamonds item */
    background: #FFFFFF;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.diamonds-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.15);
}

.diamond-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    padding: 10px;
    margin: 5px;
    border-radius: 8px;
}

.diamond-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.diamond-item.selected {
    border: 2px solid #007bff;
    background-color: rgba(0,123,255,0.1);
}

.diamond-item h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.bonus-text {
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

.diamond-item img {
    width: 40px;
    height: 40px;
    margin: 16px 0;
}

.price {
    font-size: 16px;
    font-weight: 500;
    color: #2196F3;
}

/* Responsive Design */
@media (max-width: 600px) {
    .features {
        flex-direction: column;
    }
    
    .input-fields {
        flex-direction: column;
    }
    
    .diamonds-grid {
        grid-template-columns: 1fr;
    }
}

.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.drawer.active {
    left: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.drawer-logo {
    height: 40px;
}

.drawer-content {
    padding: 20px;
}

.feature-list {
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #333;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(103, 58, 183, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #673AB7;
}

.drawer-register-btn, .drawer-login-btn {
    width: 90%;
    padding: 12px;
    margin: 8px auto;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.drawer-register-btn {
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(74, 0, 224, 0.2);
}

.drawer-login-btn {
    background: transparent;
    color: #4A00E0;
    border: 2px solid #4A00E0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.drawer-login-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    transition: all 0.5s ease;
    z-index: -1;
}

.drawer-login-btn:hover {
    color: white;
    border-color: transparent;
}

.drawer-login-btn:hover:before {
    width: 100%;
}

.drawer-register-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.drawer-register-btn:active, .drawer-login-btn:active {
    transform: scale(0.95);
}

/* Tambahkan overlay saat drawer aktif */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.drawer-overlay.active {
    display: block;
}

.menu-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    user-select: none; /* Mencegah seleksi teks */
    -webkit-user-select: none; /* Untuk Safari */
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-icon:active {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

/* Style untuk modal login */
.login-modal, .register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
}

.login-modal .modal-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-modal form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-modal .login-submit-btn {
    width: 100%;
    padding: 12px;
    background: #7126B5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.login-modal .login-submit-btn:hover {
    background: #5f1f99;
}

.login-modal .login-error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.register-modal {
    /* Style untuk modal register */
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    animation: modalContentSlide 0.4s ease;
    transform-origin: top;
}

@keyframes modalContentSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-modal h2, .register-modal h2 {
    color: #333;
    margin-bottom: 24px;
    text-align: center;
    font-size: 20px;
}

.login-form, .register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input, .register-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(74, 0, 224, 0.2);
    position: relative;
    overflow: hidden;
}

.login-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.login-btn:hover:before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(74, 0, 224, 0.4);
}

.login-btn:disabled {
    background: linear-gradient(45deg, #9d88c3, #b4a4d3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive untuk layar kecil */
@media (max-width: 480px) {
    .diamonds-grid {
        grid-template-columns: 1fr;
    }
}

/* Tambahkan CSS untuk validasi username */
.user-info-container {
    margin-top: 10px;
}
.welcome-text {
    color: #000;
    margin-bottom: 5px;
}
.username-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    padding: 5px 15px;
    border-radius: 20px;
    color: #1b5e20;
}
.check-icon {
    color: #4CAF50;
    margin-right: 5px;
}
.username-text {
    font-weight: 500;
}

/* Styling untuk form input */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card .section-header .number {
    background: #0099ff;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}

.card .section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.badge {
    background: #4361ee;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.form-control {
    background: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
}

.form-control::placeholder {
    color: #666;
}

/* Styling untuk user info */
.user-info-container {
    margin-top: 15px;
}

.welcome-text {
    color: white;
    margin-bottom: 8px;
}

.username-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e8f5e9;
    padding: 6px 15px;
    border-radius: 20px;
    color: #1b5e20;
}

.check-icon {
    color: #4CAF50;
    margin-right: 8px;
}

.username-text {
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        padding: 15px;
    }
    
    .form-control {
        font-size: 13px;
    }
}

/* Tambahkan link Font Awesome di head HTML */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.register-submit-btn {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(74, 0, 224, 0.2);
    position: relative;
    overflow: hidden;
}

.register-submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.register-submit-btn:hover:before {
    left: 100%;
}

.register-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(74, 0, 224, 0.4);
}

.register-submit-btn:disabled {
    background: linear-gradient(45deg, #9d88c3, #b4a4d3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: linear-gradient(45deg, #4A00E0, #8E2DE2);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(74, 0, 224, 0.2);
    position: relative;
    overflow: hidden;
}

.login-submit-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 0, 224, 0.4);
}

.login-submit-btn:hover:before {
    left: 100%;
}

.login-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(74, 0, 224, 0.4);
}

.login-submit-btn:disabled {
    background: linear-gradient(45deg, #9d88c3, #b4a4d3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Media query untuk layar yang lebih kecil */
@media screen and (max-width: 768px) {
    .feature-item {
        min-width: calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .feature-item {
        min-width: 100%;
        max-width: 100%;
    }
    
    .feature-item h3 {
        font-size: 16px;
    }
    
    .feature-item p {
        font-size: 14px;
    }
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 15px;
    padding: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-list > div {  /* Targeting setiap product item */
    background: #FFFFFF;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom untuk tablet */
    }
}

@media screen and (max-width: 480px) {
    .product-list {
        grid-template-columns: 1fr; /* 1 kolom untuk mobile */
    }
}

/* Style khusus untuk feature di halaman utama */
.main-features {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    padding: 0 15px;
}

.main-feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-feature-item i {
    font-size: 20px;
    color: #FFFFFF;
}

.main-feature-item span {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive untuk main features */
@media screen and (max-width: 480px) {
    .main-features {
        flex-direction: column;
        align-items: center;
    }
    
    .main-feature-item {
        width: 100%;
        justify-content: center;
    }
}

/* Feature items yang ada di drawer tetap menggunakan style yang lama */
.feature-item {
    /* Style yang sudah ada tetap dipertahankan */
}

/* Payment Section Styles */
.payment-section {
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-options {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.payment-methods {
    width: 200px; /* Lebar fixed untuk daftar metode pembayaran */
}

.payment-methods h3 {
    color: #333;  /* Warna hitam untuk label */
    margin: 15px 0 10px 0;
    font-size: 16px;
}

.payment-option {
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px; /* Sesuaikan dengan tinggi yang diinginkan */
}

.payment-logo {
    max-height: 30px; /* Sesuaikan dengan ukuran logo yang diinginkan */
    width: auto;
    object-fit: contain;
}

.payment-option.active {
    border-color: #007bff;
    background-color: #e7f1ff;
}

.payment-option span {
    color: #333;  /* Warna hitam untuk text di dalam option */
    font-weight: 500;
}

/* Label kategori pembayaran */
.payment-category {
    color: #333;  /* Warna hitam untuk E-Wallet dan Transfer Bank */
    font-weight: 500;
    margin-bottom: 8px;
}

.payment-details {
    flex: 1;
    display: none;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.payment-details.active {
    display: block;
}

.payment-details h4 {
    color: #333;
    margin-bottom: 15px;
}

.payment-amount {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.payment-info {
    margin: 20px 0;
    color: #333;
}

.qris-details img, 
.bca-details img {
    max-width: 200px;
    margin: 20px 0;
    display: block;
}

.payment-instructions {
    margin-top: 20px;
    color: #333;
}

.payment-instructions h4 {
    margin-bottom: 10px;
}

.payment-instructions ol {
    padding-left: 20px;
}

.payment-instructions li {
    margin: 10px 0;
    color: #333;
}

/* Payment Modal Styles */
#paymentModal {
    display: none; /* Sembunyikan modal secara default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.payment-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.payment-content {
    display: none; /* Sembunyikan konten payment secara default */
}

.payment-content.active {
    display: block;
}

.payment-qr {
    max-width: 250px;
    margin: 20px 0;
}

.bank-logo {
    height: 60px;
    margin: 20px 0;
}

.payment-details {
    display: none;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.qris-details img, .bca-details img {
    max-width: 200px;
    margin: 20px auto;
    display: block;
}

.payment-instructions {
    margin-top: 20px;
}

.payment-instructions ol {
    padding-left: 20px;
}

.payment-instructions li {
    margin: 10px 0;
}

/* Styling untuk label total pembayaran */
.payment-details p {
    color: #333;  /* Warna hitam untuk semua paragraf di payment details */
    margin-bottom: 10px;
}

/* Memastikan semua teks dalam payment details berwarna hitam */
.payment-details * {
    color: #333;
}

/* Khusus untuk heading tetap dengan style yang sudah ada */
.payment-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-proof-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
}

.upload-container {
    margin: 20px 0;
    width: 100%;
}

.payment-proof-input {
    display: none;
}

.upload-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: #6C5CE7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.upload-button:hover {
    background: #5A4ED1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.upload-button i {
    margin-right: 8px;
}

.image-preview {
    margin-top: 15px;
    max-width: 300px;
    min-height: 100px;
    border: 2px dashed #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.submit-transaction-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #6C5CE7;  /* Warna ungu seperti login button */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.submit-transaction-btn:hover {
    background: #5A4ED1;  /* Warna ungu yang lebih gelap saat hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.submit-transaction-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.submit-transaction-btn:disabled {
    background: #A8A8A8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.userInfo {
    margin-top: 10px;
}

.valid-user {
    color: green;
    font-weight: bold;
}

.invalid-user {
    color: red;
}

.error {
    color: #ff6b6b;
}

.login-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    font-size: 0.9rem;
    color: #333;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #c82333;
}

.user-info {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.drawer-logout-btn {
    width: 100%;
    padding: 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    margin-top: 1rem;
    cursor: pointer;
}

.drawer-logout-btn:hover {
    background-color: #c82333;
}

.popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.5s ease-out;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.popup-icon.success {
    background: #4CAF50;
    color: white;
}

.popup-message {
    color: #333;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.user-greeting {
    font-size: 14px;
    color: #333;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.drawer-menu-item:hover {
    background-color: #f5f5f5;
}

.drawer-menu-item i {
    width: 20px;
    text-align: center;
    color: #666;
}

.drawer-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.drawer-logout-btn:hover {
    background-color: #fff1f1;
}

.drawer-logout-btn i {
    width: 20px;
    text-align: center;
}

.user-info {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.user-info .user-greeting {
    margin: 0;
    background: none;
    padding: 0;
    font-size: 16px;
    color: #666;
}

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.transaction-history-content {
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

.transaction-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transaction-list th,
.transaction-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.transaction-list th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.status.menunggu-konfirmasi {
    background-color: #fff3cd;
    color: #856404;
}

.status.pending {
    background-color: #cce5ff;
    color: #004085;
}

.status.sukses {
    background-color: #d4edda;
    color: #155724;
}

.status.gagal {
    background-color: #f8d7da;
    color: #721c24;
}

.loading {
    text-align: center;
    padding: 20px;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.transaction-history-content {
    padding: 20px;
}

.transaction-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transaction-list th,
.transaction-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.transaction-list th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status.success {
    background-color: #d4edda;
    color: #155724;
}

.status.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.view-proof-btn {
    padding: 4px 8px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}

.view-proof-btn:hover {
    background-color: #0056b3;
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.loading {
    text-align: center;
    padding: 20px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
}

.payment-option.selected {
    border: 2px solid #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
} 