/* =================================================================
   CUSTOM STYLE NX (Anti-Tabrakan / Namespace Khusus)
   ============================================================= */

.nx-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nx-container {
    position: fixed;
    top: 0;
    left: -320px;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 100000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.nx-header {
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.nx-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #2d3748;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

.nx-body {
    overflow-y: auto;
    padding: 0 16px;
    flex-grow: 1;
}

.nx-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nx-menu-item {
    border-bottom: 1px solid #edf2f7;
}

.nx-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    text-decoration: none;
    color: #1a202c;
    font-size: 15px;
    font-weight: 500;
}

.nx-menu-link span {
    color: #a0aec0;
    font-size: 16px;
    font-weight: 300;
}

.nx-footer {
    padding: 20px 16px;
    border-top: 1px solid #edf2f7;
    background: #ffffff;
    flex-shrink: 0;
}

.nx-sub-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.nx-sub-link {
    text-decoration: none;
    color: #4a5568;
    font-size: 13px;
}

.nx-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.nx-social-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-right: 1px solid #e2e8f0;
    color: #2d3748;
    text-decoration: none;
    position: relative;
    z-index: 9999;
    pointer-events: auto;
}

.nx-social-grid a:last-child {
    border-right: none;
}

/* =================================================================
   POPUP FULL-SCREEN NX (Disesuaikan untuk Teks Panjang)
   ============================================================= */
.nx-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 200000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.nx-modal-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
    background: #ffffff;
    flex-shrink: 0;
}

.nx-modal-back {
    background: none;
    border: none;
    cursor: pointer;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin-right: 12px;
}

.nx-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.nx-modal-body {
    overflow-y: auto;
    padding: 20px;
    flex-grow: 1;
    background: #f7fafc;
}

.nx-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nx-card h3 {
    margin-top: 0;
    color: #2d3748;
    font-size: 16px;
    margin-bottom: 8px;
}

.nx-card p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.nx-step {
    display: flex;
    align-items: flex-start; /* Mengubah posisi vertikal nomor agar rapi sejajar di atas */
    gap: 12px;
    background: #f7fafc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #2d3748;
    border: 1px solid #edf2f7;
    line-height: 1.5;
}

.nx-step span {
    background: #3182ce;
    color: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px; /* Penyesuaian mikro agar angka pas sejajar dengan baris pertama teks */
}

.nx-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.nx-step-badge {
    background-color: #2b70e4; /* Sesuaikan warna biru Anda */
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.nx-step-content {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}