/* --- PENGATURAN DASAR & LATAR BELAKANG --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

#starfield {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

.container { max-width: 1200px; margin: 0 auto; padding: 2rem; position: relative; z-index: 1; }
.hidden { display: none !important; }

/* --- NAVIGASI --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo { font-size: 1.5rem; font-weight: 700; }
.nav-auth button {
    padding: 10px 20px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}
.nav-auth button.primary {
    background: white;
    color: black;
}
.nav-auth button:not(.primary):hover {
    background: white;
    color: black;
}
#user-info span { margin-right: 15px; font-weight: 600; }

/* --- HEADER & INFO SECTION --- */
header, .info-section { text-align: center; margin: 4rem 0; }
header h1 { font-size: 3rem; font-weight: 700; }
header p { font-size: 1.1rem; color: #b0b0b0; margin-top: 0.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.info-section h2 { font-size: 2rem; margin-bottom: 2rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; text-align: left; }
.info-item { background: rgba(255, 255, 255, 0.05); padding: 2rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.info-item i { font-size: 2.5rem; margin-bottom: 1rem; color: #ffffff; }
.info-item h3 { margin-bottom: 0.5rem; }

/* --- KARTU PRODUK --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.product-card h2 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.price { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; }
.price span { font-size: 1rem; color: #ccc; display: block; font-weight: 400; }
.price small { font-size: 1rem; font-weight: 400; color: #ccc; }
.features-list { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.features-list li { margin-bottom: 0.8rem; }
.features-list i { color: #28a745; margin-right: 10px; }
.order-button {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background-color: #ffffff; color: #000000; font-weight: 600;
    font-size: 1rem; cursor: pointer; transition: background-color 0.3s ease;
}
.order-button:hover { background-color: #cccccc; }
.badge {
    position: absolute; top: 15px; right: -30px;
    background: white; color: black; padding: 5px 35px;
    transform: rotate(45deg); font-weight: 600; font-size: 0.8rem;
}

/* --- FOOTER --- */
footer { text-align: center; margin-top: 5rem; padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
footer p { font-size: 1.1rem; margin-bottom: 1rem;}
.social-links a { color: #ffffff; font-size: 1.8rem; margin: 0 1rem; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-links a:hover { color: #cccccc; transform: scale(1.1); }
.copyright { margin-top: 1.5rem; color: #777; font-size: 0.9rem; }

/* --- MODAL (LOGIN & REGISTER) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 1001;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay:not(.hidden) {
    opacity: 1; visibility: visible;
}
.modal-content {
    background: rgba(30, 30, 30, 0.9);
    padding: 2rem; border-radius: 15px;
    width: 90%; max-width: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.9); transition: transform 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute; top: 10px; right: 15px;
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer; line-height: 1;
}
.modal-content h2 { text-align: center; margin-bottom: 1.5rem; }
.modal-content form input {
    width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid #555;
    border-radius: 8px; padding: 12px; color: white;
    margin-bottom: 1rem; font-family: 'Poppins', sans-serif;
}
.modal-content form button { width: 100%; padding: 12px; border: none; border-radius: 8px;
    background-color: #ffffff; color: #000000; font-weight: 600;
    font-size: 1rem; cursor: pointer; transition: background-color 0.3s ease;
}
.modal-content form button:hover { background-color: #ccc; }
.form-message { text-align: center; margin-top: 1rem; font-size: 0.9rem; min-height: 1.2em; }
.form-message.success { color: #28a745; }
.form-message.error { color: #dc3545; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .container { padding: 1rem; }
    header h1 { font-size: 2.2rem; }
    .main-nav { flex-direction: column; gap: 1rem; text-align: center; padding: 1rem; }
}