* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #964DFD 0%, #7B3FD4 100%);
    min-height: 100vh;
}

        /* Header */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-info {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: white;
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.hero p {
    color: white;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.planets {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.planet {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.planet-left {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #FF6B9D 0%, #C06BFF 100%);
    top: 60px;
    left: 50px;
}

.planet-left::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: -15px;
    transform: translateY(-50%) rotateX(75deg);
}

.planet-right {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #FFB649 0%, #FF8C42 100%);
    top: 40px;
    right: 80px;
}

.planet-right::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.2) 50%, transparent 60%);
    border-radius: 50%;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

.cta-button {
    background: white;
    color: #964DFD;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* Features Section */
.features {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    color: white;
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Content Pages */
.page-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.page-content.active {
    display: block;
}

.content-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
}

.content-card h2 {
    color: #964DFD;
    margin-bottom: 20px;
}

/* Login/Signup Form */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #964DFD;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #964DFD;
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #7B3FD4;
}

.btn {
    width: 100%;
    padding: 12px;
    background: #964DFD;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #7B3FD4;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-footer a {
    color: #964DFD;
    text-decoration: none;
    font-weight: 600;
}

/* PC Layout */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.pc-item {
    background: linear-gradient(135deg, #964DFD 0%, #7B3FD4 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pc-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(150, 77, 253, 0.5);
}

.pc-item.booked {
    background: linear-gradient(135deg, #777 0%, #444 100%);
    color: #ccc; /* Buat teks sedikit redup */
    opacity: 0.7;
    cursor: not-allowed;
}
.pc-item.booked:hover {
    transform: none;
}

.pc-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.pc-status {
    font-size: 14px;
    margin-top: 10px;
}

.pc-item.available {
    background: linear-gradient(135deg, #2ecc71 0%, #28b463 100%);
    color: white; /* Pastikan teks tetap putih agar terbaca */
}


.pc-item.booked {
    /* Kita buat background-nya jadi lebih gelap/redup */
    background: linear-gradient(135deg, #777 0%, #444 100%);
    opacity: 0.7;
    cursor: not-allowed;
}

.pc-status.status-booked {
    color: #ffcccc;
}

.pc-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.pc-details h3 {
    color: #964DFD;
    margin-bottom: 15px;
}

/* Game List */
.game-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(150, 77, 253, 0.2);
    color: #964DFD;
    border: 2px solid #964DFD;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
    background: #964DFD;
    color: white;
}

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

.game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(150, 77, 253, 0.3);
}

.game-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #964DFD 0%, #7B3FD4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.game-genre {
    color: #964DFD;
    font-size: 12px;
}

/* Transaction */
.duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

/* --- Tambahan untuk Booking Summary --- */

.booking-summary {
    background: #f4f4f9;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.booking-summary p {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.booking-summary p strong {
    color: #000;
}

.booking-summary h4 {
    color: #964DFD;
    font-size: 24px;
    text-align: right;
    margin-top: 15px;
}

.duration-card {
    background: white;
    border: 3px solid #964DFD;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.duration-card:hover, .duration-card.selected {
    background: #964DFD;
    color: white;
}

.duration-card h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.payment-card {
    background: white;
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-card:hover, .payment-card.selected {
    border-color: #964DFD;
    box-shadow: 0 5px 20px rgba(150, 77, 253, 0.3);
}

.addon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.addon-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Profile */
.profile-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #964DFD 0%, #7B3FD4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.profile-info h2 {
    color: #964DFD;
    margin-bottom: 5px;
}

.time-remaining {
    background: linear-gradient(135deg, #964DFD 0%, #7B3FD4 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.time-remaining h3 {
    font-size: 42px;
    margin: 10px 0;
}

/* Rules */
.rules-list {
    list-style: none;
    counter-reset: rules-counter;
}

.rules-list li {
    counter-increment: rules-counter;
    margin-bottom: 20px;
    padding-left: 50px;
    position: relative;
    color: #333;
}

.rules-list li::before {
    content: counter(rules-counter);
    position: absolute;
    left: 0;
    width: 35px;
    height: 35px;
    background: #964DFD;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* --- BARU: Style untuk Add-On Grid --- */

.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.addon-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 15px;
    display: grid;
    grid-template-columns: 50px 1fr 80px; /* Icon | Nama | Kontrol Qty */
    grid-template-rows: 1fr 1fr;
    align-items: center;
    gap: 5px 15px;
    border: 2px solid #eee;
}

.addon-icon {
    font-size: 32px;
    grid-row: 1 / span 2; /* Rentang 2 baris */
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-name {
    font-weight: 600;
    color: #333;
    grid-column: 2;
    grid-row: 1;
}

.addon-price {
    color: #964DFD;
    font-size: 14px;
    font-weight: 500;
    grid-column: 2;
    grid-row: 2;
}

.addon-qty-controls {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 20px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.addon-qty-controls button {
    background: #f0f0f0;
    border: none;
    color: #964DFD;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.addon-qty-controls button:hover {
    background: #e0e0e0;
}

.addon-qty-controls span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Style untuk ringkasan add-on */
#summaryAddons p {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

/* --- BARU: Style untuk Riwayat Transaksi --- */

.history-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f0;
    padding: 10px 15px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
}

.history-header strong {
    color: #964DFD;
}

.history-body {
    padding: 15px;
}

.history-body p {
    margin-bottom: 8px;
    color: #333;
}

.history-body p strong {
    color: #111;
    min-width: 110px;
    display: inline-block;
}

.history-addon-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 5px;
}

.history-addon-item {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.history-footer {
    background: #f9f9f9;
    padding: 12px 15px;
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

.error-message {
    color: #e74c3c; /* Merah */
    background: #fbeaea;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #964DFD;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}


/* --- BARU: Style untuk Pesan Sukses/Error (Fitur #3) --- */
.message {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none; /* Default tersembunyi */
}

/* Ganti .error-message lama dengan ini */
.message.error {
    color: #e74c3c;
    background: #fbeaea;
    border: 1px solid #e74c3c;
    display: block;
}

.message.success {
    color: #27ae60;
    background: #eaf8f2;
    border: 1px solid #27ae60;
    display: block;
}


/* --- BARU: Style untuk Panel Admin (Fitur #1 & #2) --- */
.table-container {
    width: 100%;
    overflow-x: auto; /* Agar tabel bisa di-scroll di HP */
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background-color: #f9f9f9;
    color: #555;
    font-weight: 600;
}

.admin-table tbody tr:nth-child(even) {
    background-color: #fdfdfd;
}

.admin-table td:last-child {
    text-align: center;
}

.admin-table .btn-edit {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}
.admin-table .btn-delete {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.admin-table .btn-edit:hover { background: #2980b9; }
.admin-table .btn-delete:hover { background: #c0392b; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .pc-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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


