:root {
    --mr-purple: #6c2d91;
    --mr-purple-dark: #562475;
    --mr-yellow: #ffcc00;
    --mr-light: #f4f4f9;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    touch-action: pan-y;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: #333; 
    background-color: var(--mr-light);
    min-height: 100vh;
}

.navbar { 
    background-color: var(--mr-purple); 
    border-bottom: 4px solid var(--mr-yellow); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    padding: 10px 0;
    z-index: 1000;
}
.navbar-brand img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.slogan-text { color: var(--mr-yellow); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; line-height: 1; margin-top: 4px; }

.video-banner-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1440 / 576;
}

.video-banner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-section { 
    background: linear-gradient(135deg, rgba(108, 45, 145, 0.9), rgba(60, 20, 90, 0.95)), url('https://images.unsplash.com/photo-1544197150-b99a580bb7a8?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    border-bottom-right-radius: 80px;
}

.btn-primary { 
    background-color: var(--mr-purple) !important; 
    border: none; 
    padding: 12px 30px; 
    font-weight: 700; 
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary:hover { background-color: var(--mr-purple-dark); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(108, 45, 145, 0.4); }

.promo-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.featured-card {
    animation: float 4s ease-in-out infinite;
    border: 2px solid var(--mr-yellow);
    box-shadow: 0 0 20px rgba(108, 45, 145, 0.2);
}

@keyframes float {
    0% { transform: translateY(0px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    50% { transform: translateY(-15px); box-shadow: 0 25px 40px rgba(108, 45, 145, 0.3); }
    100% { transform: translateY(0px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
}

.card-header-purple {
    background: var(--mr-purple);
    color: white;
    padding: 20px;
    text-align: center;
}

.best-seller-badge {
    position: absolute;
    top: 18px;
    right: -35px;
    background: var(--mr-yellow);
    color: var(--mr-purple);
    padding: 6px 45px;
    transform: rotate(45deg);
    font-weight: 800;
    font-size: 0.65rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    white-space: nowrap;
}

.price-table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.table { font-size: 0.85rem; }
.table thead th {
    background: var(--mr-purple);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 12px 15px;
}
.table tbody td { padding: 12px 15px; vertical-align: middle; }

.cell-stack { display: flex; flex-direction: column; line-height: 1.2; }
.cell-stack .top-text { font-weight: 700; font-size: 0.9rem; color: #333; }
.cell-stack .bottom-text { font-weight: 800; font-size: 0.95rem; color: #6c2d91; }

.badge-speed-table { font-size: 0.7rem; padding: 4px 10px; }

#paket-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}
#paket-container.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

footer { background-color: #1a1a1a; color: #f8f9fa; padding: 60px 0 30px; }
footer h2 { color: white; font-weight: 700; margin-bottom: 20px; font-size: 1rem; }

.chat-container {
    width: 100%; max-width: 400px; height: 80vh; 
    position: fixed; bottom: 0; right: 0;
    display: none; flex-direction: column; background: white; z-index: 10000;
    box-shadow: 0 -5px 40px rgba(0,0,0,0.2); border-top-left-radius: 25px; border-top-right-radius: 25px; overflow: hidden;
    transition: height 0.3s ease, bottom 0.3s ease;
}
@media (min-width: 640px) {
    .chat-container { width: 350px; right: 25px; bottom: 25px; height: 550px; border-radius: 25px; }
}

.chat-header {
    background: var(--mr-purple); padding: 15px; color: white;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 3px solid var(--mr-yellow);
    flex-shrink: 0;
}

#chat-content {
    flex: 1; padding: 15px; overflow-y: auto; background-color: #f8f9fa;
    display: flex; flex-direction: column; gap: 12px;
    scroll-behavior: smooth;
}

.bubble { max-width: 80%; padding: 10px 14px; font-size: 0.85rem; line-height: 1.4; position: relative; word-wrap: break-word; }
.bubble-admin { background: white; color: #333; align-self: flex-start; border-radius: 18px 18px 18px 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border: 1px solid #eee; }
.bubble-user { background: var(--mr-purple); color: white; align-self: flex-end; border-radius: 18px 18px 4px 18px; }

.chat-timestamp { font-size: 0.65rem; opacity: 0.6; margin-top: 4px; display: block; text-align: right; }
.bubble-admin .chat-timestamp { text-align: left; }

#chat-form-overlay { 
    position: absolute; inset: 0; background: white; z-index: 100; 
    padding: 30px 20px; display: flex; flex-direction: column; 
    justify-content: flex-start; overflow-y: auto;
}

.chat-input-area { padding: 12px; border-top: 1px solid #eee; background: white; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.chat-input-area input { flex: 1; border: none; background: #f1f3f4; padding: 10px 15px; border-radius: 25px; font-size: 0.85rem; outline: none; }

.blocked-overlay {
    position: absolute; inset: 0; background: rgba(255,255,255,0.95);
    z-index: 200; display: none; flex-direction: column; align-items: center; 
    justify-content: center; text-align: center; padding: 20px;
}

#lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 99999; display: none;
    justify-content: center; align-items: center; cursor: zoom-out;
    padding: 20px; opacity: 0; transition: opacity 0.3s ease;
}
#lightbox-overlay.show { display: flex; opacity: 1; }
#lightbox-img {
    max-width: 95%; max-height: 85vh; border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5); transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#lightbox-overlay.show #lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 25px; color: white; font-size: 35px; font-weight: bold; cursor: pointer; }

.promo-img-wrapper { 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease; 
    cursor: pointer; 
    background: #fff; 
    aspect-ratio: 4 / 5; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.promo-img-wrapper:hover { transform: scale(1.03); }
.promo-img-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.gallery-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.promo-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--mr-purple);
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.promo-desc {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.search-container {
    max-width: 600px; margin: -40px auto 40px; position: relative; z-index: 10; padding: 0 15px;
}
.search-box-auto {
    background: white; border-radius: 50px; padding: 12px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: flex; align-items: center; 
    justify-content: space-between; border: 2px solid #eee; cursor: pointer;
    transition: all 0.3s ease;
}
.search-box-auto:hover { border-color: var(--mr-purple); }
.search-box-auto .location-text { font-size: 0.9rem; color: #666; font-weight: 500; }

.search-result-box {
    margin-top: 15px; border-radius: 15px; display: none; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.status-blocked { pointer-events: none; opacity: 0.6; }
#reg-success-note { display: none; background: #d1fae5; color: #065f46; border: 1px solid #10b981; }

.about-section { background-color: #fff; padding: 80px 0; }
.about-icon-box { background: var(--mr-light); padding: 20px; border-radius: 20px; text-align: center; height: 100%; transition: all 0.3s ease; border: 1px solid #eee; }
.about-icon-box:hover { border-color: var(--mr-purple); transform: translateY(-5px); }
.about-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }

.address-card {
    background: white; border-radius: 30px; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); border: 1px solid #f0f0f0;
}
.map-container { width: 100%; height: 350px; background: #eee; position: relative; }
#map-coverage { width: 100%; height: 100%; z-index: 5; }

.review-card {
    background: white; padding: 25px; border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02); border: 1px solid #f5f5f5;
    height: 100%; transition: all 0.5s ease;
}
.review-card:hover { transform: translateY(-5px); border-color: var(--mr-purple); }
.star-rating { color: #ffcc00; font-size: 1.1rem; letter-spacing: 1px; }
.user-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--mr-purple); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 1.1rem;
}

.modal { overflow-y: auto !important; }
.modal-dialog { margin-bottom: 50px; }

#review-container {
    transition: opacity 0.5s ease;
}

.gps-loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: .2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.slider-wrapper::-webkit-scrollbar {
    display: none; 
}
.price-feature-card {
    flex: 0 0 280px; 
    scroll-snap-align: center;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.price-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--mr-purple);
}
.price-card-header {
    background: var(--mr-purple);
    color: #fff;
    padding: 20px;
    text-align: center;
}
.price-card-body {
    padding: 25px;
    flex-grow: 1;
    text-align: center;
}
.price-val {
    color: #d91b5c;
    font-size: 1.5rem;
    font-weight: 800;
}
.speed-badge-card {
    display: inline-block;
    background: var(--mr-yellow);
    color: var(--mr-purple);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.upload-guide-box {
    background: #fdf2f8;
    border: 1px dashed #d91b5c;
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
}
.upload-guide-img {
    width: 100%;
    height: auto; 
    max-height: 200px; 
    object-fit: contain; 
    border-radius: 8px;
    margin-bottom: 5px;
    background: #fff; 
}
/* --- TAMBAHAN KHUSUS INTEGRASI --- */

/* 1. Memastikan Modal Komplain Selalu Paling Atas (di atas Widget Chat) */
.modal-backdrop {
    z-index: 100005 !important;
}
.modal {
    z-index: 100010 !important;
}

/* 2. Efek Berdenyut untuk Tombol Pengaduan di Navbar */
@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.btn-warning {
    animation: pulse-warning 2s infinite;
}

/* 3. Penyesuaian Tampilan di Mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
}
/* =========================================
   INTEGRASI PANDUAN GANTI PASSWORD
   ========================================= */

/* --- Tab Navigasi di dalam Modal --- */
/* --- UPDATE: TEMA MYREPUBLIC (UNGU) --- */

/* 1. Tab Navigasi Aktif */
.tab-btn:hover { color: #6c2d91; }

.tab-btn.active {
    color: #6c2d91; /* Teks Ungu */
    border-bottom: 3px solid #ffcc00; /* Garis Bawah Kuning */
}

/* 2. Garis Pinggir Kartu Langkah */
.step-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    /* GANTI: Biru ke Ungu */
    border-left: 4px solid #6c2d91; 
}

/* 3. Label "LANGKAH 01" */
.step-label {
    font-weight: 800;
    /* GANTI: Biru ke Ungu */
    color: #6c2d91; 
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}


.step-title {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    color: #333;
}

.step-img {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #eee;
    max-height: 300px;
    object-fit: contain;
    background: #f9f9f9;
}

/* --- Simulasi Login Router --- */
.login-simulation {
    border: 1px solid #ccc;
    background: #fff;
    max-width: 100%;
    margin: 15px auto;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.login-header {
    background: #f1f1f1;
    padding: 8px 12px;
    border-bottom: 1px solid #ccc;
    font-size: 11px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-body { padding: 15px; }

.login-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.login-row label {
    width: 70px;
    font-size: 11px;
    color: #555;
    font-weight: bold;
}

.login-input {
    flex-grow: 1;
    border: 1px solid #999;
    height: 24px;
    padding: 0 5px;
    font-size: 11px;
    background: #eee; /* Efek Readonly */
    color: #555;
}

.login-footer {
    background: #f1f1f1;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #ccc;
}

.login-btn {
    background: #00a1e9;
    color: white;
    border: 1px solid #0081bb;
    padding: 4px 15px;
    font-size: 11px;
    border-radius: 2px;
    font-weight: bold;
    cursor: default;
}

/* --- Simulasi Panel Router --- */
.router-simulation {
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin: 15px 0;
    border-radius: 6px;
    background: #fff;
    font-family: Arial, sans-serif;
}

.ssid-toggle-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 5px;
}

.sim-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap;
}

.sim-row label {
    width: 110px;
    font-size: 11px;
    color: #444;
    flex-shrink: 0;
}

.sim-input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.sim-input {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 11px;
    height: 26px;
}

.sim-btn-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.sim-btn {
    background-color: #00a1e9;
    color: white;
    border: none;
    padding: 6px 20px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: bold;
}

/* --- Frame HP untuk Video --- */
.phone-container {
    max-width: 280px;
    margin: 20px auto;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 30px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.3);
    border: 4px solid #333;
}

.phone-screen {
    position: relative;
    width: 100%;
    padding-top: 177.77%; /* Rasio 9:16 (Portrait) */
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.phone-screen iframe {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: none;
}

/* Container pembungkus utama */
.tab-container {
    border-bottom: 1px solid #eee;
}

/* Background tombol (capsule style) */
.tab-wrapper {
    display: flex;
    gap: 10px; /* Jarak spasi antar tombol */
}

/* Gaya dasar tombol */
.tab-btn {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* Penanda Tombol Aktif (Highlight) */
.tab-btn.active {
    background-color: #6c2d91 !important; /* Warna Ungu MyRepublic */
    color: white !important;
    box-shadow: 0 4px 10px rgba(108, 45, 145, 0.3);
}

/* Hover effect untuk tombol non-aktif */
.tab-btn:not(.active):hover {
    background-color: #e2e8f0;
    color: #6c2d91;
}

#global-loading-overlay {
    transition: opacity 0.3s ease-in-out;
}
/* Mencegah scroll saat loading aktif */
.no-scroll {
    overflow: hidden !important;
}
