:root {
    --bg-color: #f2f2f7;
    --text-primary: #1c1c1e;
    --text-secondary: #8e8e93;
    --card-bg: #ffffff;
    --dock-bg: rgba(255, 255, 255, 0.7);
    --dock-border: rgba(255, 255, 255, 0.4);
    --accent-color: #007aff;
    --topbar-bg: rgba(242, 242, 247, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { background-color: var(--bg-color); color: var(--text-primary); padding-bottom: 100px; padding-top: 60px; overflow-x: hidden; }

/* Top Bar */
.top-bar { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background-color: var(--topbar-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; z-index: 1000; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.top-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.2rem; }
.top-bar .brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.search-toggle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.05); cursor: pointer; transition: 0.2s; }
.search-toggle:hover { background: rgba(0,0,0,0.1); }
.search-toggle svg { width: 20px; height: 20px; fill: var(--text-primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 15px; }

/* Auto Slide Hero */
.hero-slider { position: relative; width: 100%; height: 200px; border-radius: 20px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.slides { display: flex; width: 300%; height: 100%; animation: slide 15s infinite; }
.slide { width: 33.333%; height: 100%; position: relative; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 20px; }
.slide::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.4); z-index: 1; }
.slide-content { position: relative; z-index: 2; }
.slide-content h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.slide-content p { font-size: 1rem; margin-bottom: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.slide-btn { background: var(--accent-color); color: #fff; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
@keyframes slide { 0% { transform: translateX(0); } 25% { transform: translateX(0); } 33% { transform: translateX(-33.333%); } 58% { transform: translateX(-33.333%); } 66% { transform: translateX(-66.666%); } 92% { transform: translateX(-66.666%); } 100% { transform: translateX(0); } }

/* Grid Menu 4x2 */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 30px; }
.menu-item { background: var(--card-bg); border-radius: 16px; padding: 15px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: var(--text-primary); box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02); transition: 0.2s; cursor: pointer; }
.menu-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.menu-icon { width: 45px; height: 45px; border-radius: 12px; background: rgba(0,122,255,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.menu-icon svg { width: 24px; height: 24px; fill: var(--accent-color); }
.menu-item span { font-size: 0.75rem; font-weight: 600; }
@media (max-width: 500px) { .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } .menu-icon { width: 38px; height: 38px; } .menu-item span { font-size: 0.65rem; } }

/* Popups Common */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--card-bg); border-radius: 20px; width: 100%; max-width: 400px; padding: 25px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transform: translateY(20px) scale(0.95); transition: 0.3s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.show .modal-content { transform: translateY(0) scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 1.3rem; font-weight: 700; }
.modal-close { background: rgba(0,0,0,0.05); width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; }

/* Form Styles */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: #f9f9fb; font-size: 1rem; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-color); }

/* Live Call Anim Button */
.live-call-btn { background: #25D366; color: white; border: none; width: 100%; padding: 15px; border-radius: 12px; font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; margin-top: 15px; text-decoration: none; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Tools Grid inside Popup */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.tool-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tool-item img { width: 40px; height: 40px; object-fit: contain; }
.tool-item span { font-size: 0.8rem; font-weight: 500; text-align: center; }

/* Partners Grid inside Popup */
.partners-list { display: flex; flex-direction: column; gap: 15px; }
.partner-item { display: flex; align-items: center; gap: 15px; padding: 10px; background: #f9f9fb; border-radius: 12px; }
.partner-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-color); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.2rem; }

/* Flip Card & Old Product Grid Styles preserved below */
.section-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; padding-left: 5px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; perspective: 1000px; }
.card-container { background-color: transparent; border-radius: 20px; height: 350px; perspective: 1000px; cursor: pointer; }
.card-flipper { position: relative; width: 100%; height: 100%; text-align: left; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; }
.card-container.flipped .card-flipper { transform: rotateY(180deg); }
.card-front, .card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; padding: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); background-color: var(--card-bg); border: 1px solid rgba(0, 0, 0, 0.02); display: flex; flex-direction: column; }
.card-back { transform: rotateY(180deg); align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #f9f9fb, #ffffff); }
.card-badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-bottom: 10px; }
.card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.card-price-wrap { background: #f9f9fb; padding: 12px; border-radius: 12px; margin-bottom: 10px; }
.price-item { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 0.85rem; }
.price-item.normal { text-decoration: line-through; color: var(--text-secondary); }
.price-item.diskon { font-weight: 700; color: #ff3b30; }
.card-features { list-style: none; margin-bottom: 15px; flex-grow: 1; overflow-y: auto; }
.card-features li { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.card-features li::before { content: '✓'; color: #34c759; font-weight: bold; }
.card-btn { background-color: var(--text-primary); color: #fff; border: none; padding: 10px; border-radius: 12px; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; display: block; width: 100%; }
.order-btn { background-color: #25D366; color: white; padding: 12px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }

/* iOS Dock Menu */
.dock-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; }
.dock { display: flex; align-items: center; justify-content: center; gap: 15px; background: var(--dock-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); padding: 12px 20px; border-radius: 30px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); border: 1px solid var(--dock-border); }
.dock-item { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 14px; color: var(--text-primary); text-decoration: none; transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.2s; }
.dock-item.active { background: rgba(0, 122, 255, 0.1); color: var(--accent-color); }
.dock-item svg { width: 24px; height: 24px; fill: currentColor; margin-bottom: 4px; }
.dock-item span { font-size: 0.6rem; font-weight: 500; }

/* Other components (Chat, Search, Profile) preserved */
.chat-popup { position: fixed; bottom: 90px; right: 20px; width: 350px; height: 500px; background: var(--glass-bg); backdrop-filter: blur(30px); border-radius: 24px; border: 1px solid rgba(255,255,255,0.8); box-shadow: 0 15px 50px rgba(0,0,0,0.1); display: flex; flex-direction: column; transform: translateY(20px); opacity: 0; pointer-events: none; transition: 0.3s; z-index: 1001; }
.chat-popup.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.chat-header { padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.chat-header .close-chat { cursor: pointer; background: rgba(0,0,0,0.05); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-bubble { max-width: 80%; padding: 12px 16px; border-radius: 20px; font-size: 0.95rem; line-height: 1.4; }
.chat-bubble.bot { background: var(--card-bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: var(--accent-color); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-area { padding: 15px; border-top: 1px solid rgba(0,0,0,0.05); display: flex; gap: 10px; }
.chat-input-area input { flex: 1; padding: 10px 15px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.1); background: var(--card-bg); outline: none; }
.chat-input-area button { background: var(--accent-color); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wa-fallback-btn { display: inline-block; margin-top: 10px; padding: 8px 16px; background: #25D366; color: white; text-decoration: none; border-radius: 15px; font-weight: 600; font-size: 0.9rem; }
.search-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(242, 242, 247, 0.95); backdrop-filter: blur(20px); z-index: 2000; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: 0.3s; }
.search-popup.show { opacity: 1; pointer-events: auto; }
.search-header { padding: 20px; display: flex; gap: 15px; align-items: center; }
.search-header input { flex: 1; padding: 15px 20px; border-radius: 12px; border: none; background: #fff; font-size: 1.1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); outline: none; }
.close-search { font-size: 1rem; color: var(--accent-color); font-weight: 600; cursor: pointer; border: none; background: transparent; }
.search-results { padding: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.search-item { background: #fff; padding: 15px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { padding: 8px 16px; border-radius: 20px; background: var(--card-bg); border: 1px solid rgba(0,0,0,0.05); color: var(--text-primary); font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.filter-btn.active, .filter-btn:hover { background: var(--text-primary); color: #fff; }
.profile-cover { width: 100%; height: 200px; background: linear-gradient(135deg, #007aff, #af52de); border-radius: 0 0 30px 30px; position: relative; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--bg-color); position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); background: #fff; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { text-align: center; margin-top: 70px; margin-bottom: 30px; }
.profile-info h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; }
.glass-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.8); border-radius: 20px; padding: 24px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 15px; }
.social-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; padding: 15px; border-radius: 16px; text-decoration: none; color: var(--text-primary); gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.social-btn svg { width: 28px; height: 28px; }
.install-app-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #1c1c1e, #3a3a3c); color: #fff; padding: 20px; border-radius: 20px; text-decoration: none; margin-top: 20px; }
.install-app-card div { display: flex; flex-direction: column; }
.playstore-logo { width: 40px; height: 40px; fill: #fff; }
