/* =======================================================
   STYLE.CSS - REVISI: GARIS LEBIH TERANG (0.25 OPACITY)
   ======================================================= */

/* --- 1. GLOBAL & RESET --- */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --accent: #8b5cf6;
    --gold: #fbbf24;
    --success: #34d399;
    --danger: #f87171;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. BACKGROUND ANIMATION --- */
.animated-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
}
.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: blob-bounce 10s infinite alternate;
}
.orb-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #4f46e5; }
.orb-2 { bottom: -10%; right: -10%; width: 400px; height: 400px; background: #9333ea; animation-delay: -5s; }
.orb-3 { top: 40%; left: 40%; width: 300px; height: 300px; background: #06b6d4; opacity: 0.2; }

@keyframes blob-bounce {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- 3. LAYOUT UTILITIES --- */
.container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
}

.section-title {
    font-size: 24px; font-weight: 700; margin-bottom: 25px;
    color: #fff; border-left: 4px solid var(--accent); padding-left: 15px;
}

/* --- 4. HERO SECTION --- */
.hero-section { text-align: center; padding: 80px 20px 40px; }
.hero-title {
    font-size: 3rem; font-weight: 800; line-height: 1.2;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}
.hero-subtitle {
    color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px;
}
.join-badge {
    display: inline-flex; align-items: center; gap: 15px;
    background: rgba(255,255,255,0.05); padding: 8px 20px;
    border-radius: 50px; border: 1px solid rgba(255,255,255,0.1);
}
.avatar-stack { display: flex; }
.avatar-stack img {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid var(--bg-dark); margin-left: -10px;
}
.avatar-stack img:first-child { margin-left: 0; }

/* --- 5. PRODUCT CARDS --- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px; padding-bottom: 40px;
}
.product-card {
    background: var(--card-bg); border-radius: 16px; overflow: hidden;
    position: relative; cursor: pointer; transition: all 0.3s ease;
}
.product-card:hover { transform: translateY(-8px); }

.image-wrap {
    width: 100%; height: 180px; background: #000; overflow: hidden; position: relative;
}
.image-wrap img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.product-card:hover .image-wrap img { transform: scale(1.1); }

.p-info { padding: 15px; }
.p-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.p-price-container { display: flex; flex-direction: column; }
.p-price-real { color: var(--accent); font-weight: 700; font-size: 18px; }
.p-price-strike { text-decoration: line-through; color: #64748b; font-size: 12px; margin-bottom: 2px; }
.badge-pos {
    position: absolute; top: 10px; left: 10px; font-size: 10px; text-transform: uppercase;
    z-index: 10; border-radius: 6px;
}

/* ANIMASI SHIMMER */
@keyframes holographic-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* TIER STYLES */
.tier-legendary, .tier-epic {
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}
.badge-legendary, .badge-epic {
    font-weight: 800; letter-spacing: 1px; padding: 6px 14px !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    background: linear-gradient(270deg, #ff00cc, #3333ff, #00ccff, #ff00cc);
    background-size: 300% 300%; animation: holographic-shimmer 3s ease infinite;
}
.tier-rare, .tier-common { border: 1px solid rgba(255, 255, 255, 0.1) !important; box-shadow: none; }
.badge-common, .badge-rare {
    font-weight: 600; letter-spacing: 0.5px; background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255,255,255,0.1) !important; color: #ccc !important;
    backdrop-filter: blur(4px); padding: 5px 10px;
}

/* --- 6. REVIEW SECTION --- */
.review-container {
    background: linear-gradient(180deg, rgba(30,41,59,0) 0%, rgba(30,41,59,0.5) 100%);
    border-radius: 20px; padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}
.scroller-wrapper { display: flex; align-items: center; gap: 20px; position: relative; }
.review-scroller {
    display: flex; gap: 20px; overflow-x: auto; padding: 10px 5px;
    scroll-behavior: smooth; width: 100%; scrollbar-width: none;
}
.review-scroller::-webkit-scrollbar { display: none; }

/* --- REVIEW CARD (REVISI: BORDER LEBIH TERANG) --- */
.review-card-new {
    background: #1a1f2b;
    /* UPDATE: Border jadi 0.25 (Lebih Terang) */
    border: 1px solid rgba(255, 255, 255, 0.25); 
    border-radius: 16px; padding: 24px;
    flex: 0 0 320px; width: 320px;
    display: flex; flex-direction: column; gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s;
}
.review-card-new:hover { transform: translateY(-5px); border-color: var(--accent); }

/* Avatar Border */
.rev-user img { 
    width: 45px; height: 45px; border-radius: 50%; object-fit: cover;
    /* UPDATE: Border Avatar lebih terang */
    border: 2px solid rgba(255,255,255,0.25); 
}

.rev-text {
    font-size: 13px; color: #ccc; line-height: 1.6; min-height: 60px;
    word-wrap: break-word; overflow-wrap: break-word; white-space: normal;
}

/* Proof Image Border */
.rev-proof-img {
    width: 70px; height: 70px; border-radius: 8px; object-fit: cover;
    /* UPDATE: Border Foto Bukti lebih terang */
    border: 1px solid rgba(255,255,255,0.25); 
    cursor: pointer; transition: transform 0.2s;
}
.rev-proof-img:hover { transform: scale(1.1); }

.nav-btn {
    width: 45px; height: 45px; border-radius: 50%;
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.25); /* UPDATE */
    color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.nav-btn:hover { background: var(--accent); border-color: var(--accent); }

/* --- 7. FAQ --- */
.faq-wrap { display: flex; flex-direction: column; gap: 15px; }
.faq-card {
    background: var(--card-bg); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.faq-head {
    padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; font-size: 15px;
}
.faq-body {
    padding: 0 20px; max-height: 0; overflow: hidden;
    transition: all 0.3s ease; color: var(--text-muted); font-size: 14px;
}
.faq-card.open .faq-body { padding-bottom: 20px; max-height: 200px; }
.faq-card.open .faq-head i { transform: rotate(180deg); }

/* --- 8. POPUP --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup-content {
    background: #1e293b; width: 90%; max-width: 500px;
    border-radius: 16px; padding: 25px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 90vh; overflow-y: auto;
    transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.active .popup-content { transform: scale(1); }
.buy-btn-popup {
    display: block; width: 100%; padding: 14px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: #fff; text-align: center; border-radius: 12px;
    font-weight: 700; margin-top: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.grid-gallery-container {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 15px; margin-bottom: 20px; padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15); 
}
.grid-thumb {
    width: 55px; height: 55px; aspect-ratio: 1/1;
    object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15); background: #000;
    transition: transform 0.2s, border-color 0.2s;
}
.grid-thumb:hover { transform: scale(1.1); border-color: var(--accent); z-index: 5; }
.gallery-label { font-size: 11px; color: #888; margin-top: 10px; margin-bottom: 5px; font-weight: 600; text-transform: uppercase; }

/* --- 9. NOTIFIKASI --- */
.ios-notif {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-150px);
    background: rgba(28, 28, 30, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    width: 90%; max-width: 380px; padding: 12px; border-radius: 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); z-index: 10000;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0; border: 1px solid rgba(255,255,255,0.1);
}
.ios-notif.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.notif-user-img { width: 40px; height: 40px; border-radius: 50%; }
.notif-content { flex: 1; overflow: hidden; }
.notif-header { display: flex; justify-content: space-between; font-size: 10px; color: #888; margin-bottom: 2px; font-weight: 600; letter-spacing: 0.5px; }
.notif-body { font-size: 12px; color: #fff; line-height: 1.3; }
.notif-prod-img { width: 35px; height: 35px; border-radius: 6px; object-fit: cover; }

/* --- 10. CHATBOT --- */
.chat-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9990; }
.chat-toggle {
    width: 55px; height: 55px; border-radius: 50%; background: var(--primary);
    color: #fff; border: none; font-size: 24px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.3s;
}
.chat-toggle:hover { transform: rotate(10deg) scale(1.1); }
.chat-box {
    position: absolute; bottom: 70px; right: 0; width: 320px; height: 400px;
    background: #1e293b; border-radius: 16px; display: none; flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); opacity: 0;
    transform: translateY(20px); transition: all 0.3s ease;
}
.chat-box.active { opacity: 1; transform: translateY(0); }
.chat-header { background: var(--primary); padding: 15px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.chat-messages { flex: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 8px 12px; border-radius: 10px; font-size: 13px; max-width: 80%; }
.msg-bot { background: #334155; color: #fff; align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-user { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-input-area { padding: 10px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 10px; }
.chat-input { flex: 1; background: #0f172a; border: 1px solid #334155; padding: 8px 12px; border-radius: 20px; color: #fff; outline: none; }
.chat-send { background: var(--success); color: #fff; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; }

/* --- 11. FOOTER --- */
footer {
    text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { border-radius: 12px; }
    .image-wrap { height: 140px; }
    .p-info { padding: 10px; }
    .p-title { font-size: 14px; }
    .p-price-real { font-size: 15px; }
    .review-card-new { flex: 0 0 280px; width: 280px; padding: 15px; }
    .ios-notif { width: 95%; top: 10px; }
}