/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #4318FF; 
    --primary-hover: #3311db;
    --bg-main: #F4F7FE; 
    --bg-white: #FFFFFF;
    --text-main: #2B3674; 
    --text-muted: #A3AED1;
    --border-color: #E0E5F2;
    --wa-green: #25D366;
    --shadow-soft: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-main); color: var(--text-main); overflow-x: hidden; }

/* =========================================
   SIDEBAR (FIXED & RESPONSIVE)
   ========================================= */
.sidebar {
    width: 280px; background-color: var(--bg-white); position: fixed; 
    top: 0; left: 0; bottom: 0; z-index: 1000;
    padding: 30px 20px; display: flex; flex-direction: column;
    border-right: 1px solid var(--border-color); transition: var(--transition);
    overflow-y: auto;
}
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--primary-blue); letter-spacing: -0.5px; }
.close-sidebar { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

.sidebar-menu, .sidebar-support { display: flex; flex-direction: column; gap: 8px; }
.menu-item { 
    text-decoration: none; color: var(--text-muted); font-weight: 600; 
    padding: 14px 18px; border-radius: var(--radius-md); 
    display: flex; align-items: center; gap: 15px; transition: var(--transition); 
}
.menu-item i { font-size: 18px; width: 20px; text-align: center; }
.menu-item:hover { background-color: var(--bg-main); color: var(--primary-blue); }
.menu-item.active { background-color: var(--primary-blue); color: var(--bg-white); box-shadow: 0px 10px 20px rgba(67, 24, 255, 0.2); }

.sidebar-support { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.support-title { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; padding-left: 10px; }

/* =========================================
   MAIN CONTENT
   ========================================= */
.main-content { flex: 1; margin-left: 280px; padding: 40px; max-width: 1200px; transition: var(--transition); }
.mobile-header { display: none; align-items: center; gap: 15px; margin-bottom: 30px; position: sticky; top: 0; background: var(--bg-main); z-index: 900; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.hamburger-btn { background: var(--bg-white); border: 1px solid var(--border-color); padding: 10px; border-radius: 8px; cursor: pointer; }

.page-section { min-height: 70vh; margin-bottom: 80px; }
.page-header { margin-bottom: 35px; }
.main-title { font-size: 32px; font-weight: 800; color: #1B2559; margin-bottom: 10px; }
.sub-header { color: var(--text-muted); font-size: 16px; line-height: 1.6; }

/* Info Cards */
.info-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.info-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 30px; display: flex; gap: 20px; box-shadow: var(--shadow-soft); }
.info-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(67, 24, 255, 0.1); color: var(--primary-blue); display: flex; justify-content: center; align-items: center; font-size: 24px; flex-shrink: 0; }
.info-icon.whatsapp { background: rgba(37, 211, 102, 0.1); color: var(--wa-green); }
.info-text h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.info-text p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 15px; }
.btn-join { background: var(--wa-green); color: white; border: none; padding: 12px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-join:hover { filter: brightness(0.9); transform: scale(1.02); }

/* =========================================
   ORDER PANEL (PTERODACTYL STYLE)
   ========================================= */
.panel-container { background: var(--bg-white); border-radius: var(--radius-lg); padding: 35px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.panel-title { font-size: 24px; font-weight: 800; margin-bottom: 5px; }
.panel-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

.order-box { background: #F8FAFD; border: 1px solid var(--border-color); border-radius: 15px; padding: 25px; }

.input-group { margin-bottom: 25px; }
.input-group label, .label-heading { display: block; font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.custom-select { 
    width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--border-color); 
    background: var(--bg-white); font-weight: 600; color: var(--text-main); outline: none; transition: var(--transition);
}
.custom-select:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(67, 24, 255, 0.1); }
.input-hint { display: block; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* Package Grid */
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; }
.package-card { 
    background: var(--bg-white); border: 1px solid var(--border-color); 
    padding: 20px; border-radius: 12px; text-align: center; cursor: pointer; transition: var(--transition);
}
.package-card:hover { border-color: var(--primary-blue); transform: translateY(-3px); }
.package-card.selected { border: 2px solid var(--primary-blue); background: rgba(67, 24, 255, 0.02); box-shadow: 0px 5px 15px rgba(67, 24, 255, 0.1); }

.package-card h5 { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 5px; }
.package-card .price { font-size: 18px; font-weight: 800; color: var(--primary-blue); }
.package-card .duration { font-size: 12px; color: var(--text-muted); margin-top: 5px; display: block; }

.order-footer { border-top: 1px solid var(--border-color); padding-top: 25px; display: flex; justify-content: flex-end; }
.btn-order-now { 
    background: #1B2559; color: white; border: none; padding: 16px 35px; border-radius: 12px; 
    font-weight: 700; font-size: 16px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px;
}
.btn-order-now:hover { background: var(--primary-blue); box-shadow: 0px 10px 25px rgba(67, 24, 255, 0.3); }

/* =========================================
   TESTIMONIALS (INFINITE LOOP)
   ========================================= */
.testimonial-slider-container { width: 100%; overflow: hidden; padding: 20px 0; margin-top: 20px; }
.testimonial-slider-wrapper { display: flex; gap: 20px; width: max-content; animation: scrollLinear 25s linear infinite; }
.testimonial-slider-wrapper:hover { animation-play-state: paused; }
@keyframes scrollLinear { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.testi-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 25px; box-shadow: var(--shadow-soft); width: 320px; flex-shrink: 0; border: 1px solid var(--border-color); }
.testi-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.testi-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--bg-main); }
.testi-header h5 { font-size: 15px; font-weight: 700; }
.stars { color: #FFB547; font-size: 12px; margin-top: 3px; }
.testi-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; font-style: italic; }

/* =========================================
   RULES & STATUS
   ========================================= */
.rules-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 15px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.rules-item { display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border-color); }
.rules-item:last-child { border-bottom: none; }
.rules-item .num { 
    background: var(--bg-main); color: var(--primary-blue); font-weight: 800; font-size: 14px;
    width: 36px; height: 36px; border-radius: 10px; display: flex; justify-content: center; align-items: center; flex-shrink: 0;
}
.rules-item p { font-size: 14px; line-height: 1.7; color: #47548C; }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.status-card { background: var(--bg-white); border-radius: 15px; padding: 25px; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); }
.status-info { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 700; font-size: 14px; }
.status-online { color: var(--wa-green); }
.status-bar { width: 100%; height: 8px; background: #EDF2F7; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--wa-green); border-radius: 10px; }

/* =========================================
   MODAL & QRIS
   ========================================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(11, 20, 55, 0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: var(--transition); backdrop-filter: blur(6px); }
.modal-overlay.show { opacity: 1; visibility: visible; }
.qris-modal { background: var(--bg-white); width: 90%; max-width: 420px; border-radius: 25px; padding: 35px; text-align: center; transform: translateY(30px); transition: var(--transition); }
.modal-overlay.show .qris-modal { transform: translateY(0); }

.qris-image-container { background: #f8f9fa; padding: 20px; border-radius: var(--radius-md); margin-bottom: 20px; border: 2px dashed var(--border-color); }
.qris-image { width: 100%; max-width: 220px; }
.qris-price { font-size: 32px; font-weight: 800; color: var(--primary-blue); margin: 10px 0; }
.btn-wa-confirm { width: 100%; background: var(--wa-green); color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 10px; }
.btn-close { width: 100%; background: transparent; border: 1px solid var(--border-color); padding: 14px; border-radius: 12px; font-weight: 600; cursor: pointer; color: var(--text-muted); }

/* =========================================
   RESPONSIVE
   ========================================= */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: var(--transition); }

@media (max-width: 992px) {
    .main-content { margin-left: 0; padding: 20px; }
    .mobile-header { display: flex; justify-content: space-between; padding: 15px 20px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); width: 280px; box-shadow: 20px 0 50px rgba(0,0,0,0.1); }
    .close-sidebar { display: block; }
    .sidebar-overlay.show { opacity: 1; visibility: visible; }
    .main-title { font-size: 26px; }
    .panel-container { padding: 20px; }
    .package-grid { grid-template-columns: repeat(2, 1fr); }
}