/* =================================== */
/*   VARIABLES & KEYFRAMES (TEMA PINK) */
/* =================================== */
:root {
    --bg-color: #000000; 
    --card-bg: rgba(25, 2, 12, 0.6); /* Background kartu gelap dengan nuansa merah */
    --card-bg-solid: #150109;
    --card-border: rgba(255, 0, 127, 0.25);
    --card-border-hover: rgba(255, 0, 127, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #e0b0bc;
    
    /* WARNA PINK UTAMA (HOT PINK / MAGENTA) */
    --accent-primary: #ff007f; 
    --accent-secondary: #900c3f; /* Merah Maroon Gelap */
    --glow-color: rgba(255, 0, 127, 0.5);
    
    --error-bg: rgba(255, 0, 0, 0.1);
    --error-border: rgba(255, 0, 0, 0.5);
    --error-text: #ffcccc;
}

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

/* =================================== */
/*   BASE & BACKGROUND SETUP           */
/* =================================== */
html, body {
    margin: 0; padding: 0; width: 100%; overflow-x: hidden; scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif; color: var(--text-primary);
    background-color: var(--bg-color);
}
#galaxy-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('asset/background.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* FILTER: Mengubah warna background biru menjadi pink secara otomatis */
    filter: blur(6px) hue-rotate(120deg) brightness(0.65); 
    z-index: -2;
}
#star-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

/* =================================== */
/*   NAVIGASI HEADER                   */
/* =================================== */
.header-nav {
    position: fixed; top: 20px; right: 20px; z-index: 1001;
}
.register-button {
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    /* GRADIENT TOMBOL PINK KE MERAH (Seperti Gambar Contoh) */
    background: linear-gradient(to bottom, #ff007f 0%, #900c3f 100%);
    border: 1px solid #ff4da6;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}
.register-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 0, 127, 0.7);
    filter: brightness(1.2);
}

/* =================================== */
/*   MAIN LAYOUT & HERO HEADER         */
/* =================================== */
.content-wrapper {
    display: flex; flex-direction: column; align-items: center;
    padding: 80px 20px 40px 20px; box-sizing: border-box;
}
.hero-header {
    text-align: center; margin-bottom: 40px; animation: fadeIn 1s ease;
}
.hero-header h1 {
    font-family: 'Playfair Display', serif; font-size: 42px; margin: 0;
    text-shadow: 0 0 20px var(--glow-color), 0 0 5px #fff;
}
.hero-header p {
    font-size: 18px; color: var(--text-secondary); margin-top: 10px;
}

/* =================================== */
/*   DASHBOARD GRID LAYOUT             */
/* =================================== */
.dashboard-grid {
    display: grid; width: 100%; max-width: 1200px;
    grid-template-columns: 1fr 2fr; gap: 25px;
}
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px; padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,0,127,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px var(--glow-color);
}

/* Grid Positioning */
#result-togel { grid-column: 1 / 2; grid-row: 1 / 2; }
#shio-checker { grid-column: 1 / 2; grid-row: 2 / 3; }
#tafsir-mimpi { grid-column: 2 / 3; grid-row: 1 / 3; }
#hoki-generator { grid-column: 1 / 2; grid-row: 3 / 4; }
#primbon { grid-column: 2 / 3; grid-row: 3 / 5; }
#weton-calculator { grid-column: 1 / 2; grid-row: 4 / 5; }

/* =================================== */
/*   CARD CONTENT & ICONS              */
/* =================================== */
.card-header {
    display: flex; align-items: center; gap: 15px;
    padding-bottom: 15px; margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}
.card-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    background-color: rgba(255, 0, 127, 0.15);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.card-icon svg { width: 24px; height: 24px; color: var(--accent-primary); }
.card-header h2 { font-size: 20px; font-weight: 600; margin: 0; color: #fff; }

/* =================================== */
/*   FORMS & BUTTONS                   */
/* =================================== */
input, select {
    width: 100%; padding: 12px 16px; font-size: 15px;
    background-color: rgba(0, 0, 0, 0.4); border: 1px solid var(--card-border);
    border-radius: 8px; color: #fff; transition: all 0.3s ease;
    box-sizing: border-box;
}
input:focus, select:focus {
    outline: none; border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--glow-color);
}
button {
    padding: 12px 20px; font-size: 15px; font-weight: 700; color: #fff;
    /* GRADIENT TOMBOL PINK KE MERAH */
    background: linear-gradient(to bottom, #ff007f 0%, #900c3f 100%);
    border: 1px solid #ff4da6; border-radius: 8px; cursor: pointer;
    text-transform: uppercase; transition: all 0.3s ease;
}
button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
    filter: brightness(1.2);
}
button:disabled { background: #444; border-color: #555; cursor: not-allowed; }

.search-form, .primbon-single-form, .togel-search-form, .shio-form { display: flex; gap: 10px; }

/* =================================== */
/*   RESULT AREAS                      */
/* =================================== */
.results-area { margin-top: 20px; overflow-y: auto; max-height: 550px; padding-right: 10px; }
.result-item {
    background: rgba(255, 0, 127, 0.05); padding: 10px 15px; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.result-item .kode { font-weight: bold; font-size: 18px; color: var(--accent-primary); }

.togel-result-number { font-size: 28px; font-weight: 700; color: var(--accent-primary); letter-spacing: 5px; text-shadow: 0 0 10px var(--glow-color); }
.shio-name { color: var(--accent-primary); text-shadow: 0 0 8px var(--glow-color); }

.hoki-number { 
    font-family: "Courier New", monospace; font-size: 24px; font-weight: 700;
    color: var(--accent-primary); background: rgba(0,0,0,0.3); 
    padding: 10px; border-radius: 8px; border: 1px solid var(--card-border);
}

/* Tab Primbon */
.primbon-tab-btn.active { color: var(--accent-primary); border-bottom: 3px solid var(--accent-primary); }

/* =================================== */
/*   FOOTER & FEATURES                 */
/* =================================== */
.main-footer {
    width: 100%; max-width: 1200px; margin-top: 60px; padding-top: 40px;
    border-top: 1px solid var(--card-border); text-align: center;
}
.subsection-title { font-size: 28px; font-family: 'Playfair Display', serif; margin-bottom: 40px; }

.how-it-works-list li::before {
    background: var(--accent-primary); box-shadow: 0 0 15px var(--glow-color);
}

.feature-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 16px; padding: 25px; transition: all 0.3s ease;
}
.feature-card:hover { border-color: var(--accent-primary); transform: translateY(-5px); }

/* =================================== */
/*   SCROLLBAR (TEMA PINK)             */
/* =================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: var(--accent-secondary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* Back to top button */
#back-to-top {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    background: var(--accent-primary); color: #fff; border-radius: 50%;
    text-align: center; font-size: 24px; line-height: 50px; z-index: 100;
    box-shadow: 0 4px 15px var(--glow-color);
}

/* =================================== */
/*   RESPONSIVE DESIGN                 */
/* =================================== */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    #result-togel, #shio-checker, #tafsir-mimpi, #hoki-generator, #primbon, #weton-calculator {
        grid-column: auto; grid-row: auto;
    }
}
@media (max-width: 768px) {
    .search-form { flex-direction: column; }
    .hero-header h1 { font-size: 32px; }
}

/* Popup Banner Pink Theme */
.popup-content.full-image { box-shadow: 0 0 40px var(--glow-color); }
.close-popup-btn:hover { background: var(--accent-primary); }