/**
 * Mobile App CSS
 * Mobile-first design
 * Created: 22 Feb 2026
 */

:root {
    /* Modern Purple Color Palette */
    --primary: #6C4CF1;
    --primary-dark: #5A3DD9;
    --primary-light: #8E6BFF;
    --success: #2ecc71;
    --success-light: #4cd787;
    --danger: #e74c3c;
    --danger-light: #ec7063;
    --warning: #f39c12;
    --warning-light: #f5b041;
    --info: #3498db;
    --info-light: #5dade2;
    --dark: #2B2B2B;
    --gray: #777;
    --gray-light: #E5E7EB;
    --light: #F4F5F9;
    --white: #FFFFFF;

    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 20px;

    /* Shadow System */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;

    /* Text Colors */
    --text-primary: #2B2B2B;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --text-dark: #1F2937;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F4F5F9;

    /* Border Colors */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================================
   LOGIN PAGE — Modern Bottom-Sheet Style
   =================================================== */
.login-body {
    margin: 0;
    padding: 0;
    background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ── Hero / branding area ── */
.login-hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 40px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

@media (max-width: 360px) {
    .login-hero {
        padding: 40px 24px 30px;
        min-height: 180px;
    }
}

@media (max-height: 667px) {
    .login-hero {
        min-height: 180px;
        padding: 40px 24px 30px;
    }
}

.login-hero-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.hero-circle-1 {
    width: 280px;
    height: 280px;
    top: -100px;
    right: -80px;
}

.hero-circle-2 {
    width: 180px;
    height: 180px;
    bottom: 20px;
    left: -60px;
}

.hero-circle-3 {
    width: 100px;
    height: 100px;
    top: 60px;
    left: 40px;
    background: rgba(255, 255, 255, 0.05);
}

.login-brand {
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
    margin: 0 auto 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 360px) {
    .login-logo {
        width: 64px;
        height: 64px;
        font-size: 30px;
        border-radius: 18px;
    }
}

.login-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 360px) {
    .login-brand-name {
        font-size: 24px;
    }
}

.login-brand-slogan {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 360px) {
    .login-brand-slogan {
        font-size: 12px;
    }
}

/* ── Bottom sheet ── */
.login-sheet {
    background: white;
    border-radius: 32px 32px 0 0;
    padding: 12px 24px 32px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    animation: sheetUp 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) both;
    max-width: 480px;
    width: 100%;
    align-self: center;
    position: relative;
    flex: 0 0 auto;
    /* Account for safe area on notch phones */
    padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
}

@media (max-width: 360px) {
    .login-sheet {
        padding: 10px 20px 36px;
        border-radius: 28px 28px 0 0;
        padding-bottom: max(36px, env(safe-area-inset-bottom, 36px));
    }
}

@media (max-height: 667px) {
    .login-sheet {
        padding: 10px 20px 28px;
        padding-bottom: max(28px, env(safe-area-inset-bottom, 28px));
    }
}

@keyframes sheetUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 4px;
    margin: 0 auto 16px;
    transition: width 0.3s ease;
}

.login-sheet-handle:active {
    width: 48px;
}

/* ── Step dots ── */
.login-steps {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
}

@media (max-height: 667px) {
    .login-steps {
        margin-bottom: 18px;
    }
}

.login-step {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    transition: all 0.3s;
}

.login-step.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* ── Step panels ── */
.login-step-panel {
    display: none;
    animation: panelIn 0.3s ease;
    margin-bottom: 8px;
}

.login-step-panel.active {
    display: block;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keep select-pelanggan and otp visibility tied to .active */
.select-pelanggan-section {
    display: none;
}

.select-pelanggan-section.active {
    display: block;
}

.otp-section {
    display: none;
}

.otp-section.active {
    display: block;
}

.login-step-header {
    margin-bottom: 22px;
}

@media (max-height: 667px) {
    .login-step-header {
        margin-bottom: 16px;
    }
}

.login-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 5px;
}

@media (max-height: 667px) {
    .login-step-title {
        font-size: 18px;
        margin: 0 0 4px;
    }
}

.login-step-desc {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
    line-height: 1.5;
}

@media (max-height: 667px) {
    .login-step-desc {
        font-size: 12px;
        line-height: 1.4;
    }
}

/* ── Input field with icon ── */
.input-field {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fafbfc;
    transition: all 0.25s ease;
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 360px) {
    .input-field {
        border-radius: 12px;
    }
}

.input-field:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 76, 241, 0.08);
    transform: translateY(-1px);
}

.input-icon {
    padding: 0 14px;
    font-size: 18px;
    color: var(--gray);
    flex-shrink: 0;
    transition: color 0.25s;
}

.input-field:focus-within .input-icon {
    color: var(--primary);
}

.input-control {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 14px 14px 14px 0;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    min-width: 0;
}

.input-control::placeholder {
    color: #bbb;
}

.input-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23aaa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.input-hint {
    font-size: 11px;
    color: var(--gray);
    margin: 0 0 20px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-height: 667px) {
    .input-hint {
        margin: 0 0 14px 4px;
        font-size: 10px;
    }
}

/* ── Buttons ── */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 16px rgba(108, 76, 241, 0.3);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover::before {
    left: 100%;
}

@media (max-width: 360px) {
    .btn-login {
        padding: 13px 20px;
        font-size: 14px;
        border-radius: 12px;
    }
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 76, 241, 0.4);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 76, 241, 0.25);
}

.btn-login:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-login-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: transparent;
    color: var(--gray);
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0;
}

@media (max-width: 360px) {
    .btn-login-ghost {
        padding: 12px 20px;
        font-size: 13px;
        border-radius: 12px;
    }
}

.btn-login-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── OTP input ── */
.otp-field-wrap {
    margin-bottom: 8px;
}

.otp-field-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-light);
    border-radius: 14px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 14px;
    text-align: center;
    font-family: 'Poppins', monospace;
    color: var(--dark);
    background: #fafafa;
    transition: all 0.25s;
    outline: none;
}

.otp-field-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 76, 241, 0.08);
}

.otp-field-input::placeholder {
    font-size: 18px;
    letter-spacing: 8px;
    color: #ccc;
    font-weight: 400;
}

.otp-timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray);
    margin: 10px 0 20px;
    font-weight: 500;
}

@media (max-height: 667px) {
    .otp-timer-wrap {
        margin: 8px 0 14px;
        font-size: 12px;
    }
}

.otp-timer-value {
    color: var(--danger);
    font-weight: 700;
    min-width: 38px;
    display: inline-block;
    text-align: center;
}

/* ── Footer ── */
.login-footer {
    text-align: center;
    font-size: 11px;
    color: #bbb;
    margin-top: 20px;
    margin-bottom: 0;
}

@media (max-height: 667px) {
    .login-footer {
        margin-top: 12px;
        font-size: 10px;
    }
}

/* Legacy form compat (keep for other pages) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 76, 241, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

.timer {
    text-align: center;
    margin: 15px 0;
    color: var(--danger);
    font-weight: 500;
}

.otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
    font-weight: bold;
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    padding-bottom: 100px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--light);
}

/* ================= ① TOP HEADER ================= */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 16px 16px 0;
    box-shadow: 0 4px 20px rgba(108, 76, 241, 0.25);
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-provider-name {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.header-provider-slogan {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.header-wave {
    height: 24px;
    overflow: hidden;
    line-height: 0;
    margin: 0 -16px;
}

.header-wave svg {
    display: block;
    width: 100%;
    height: 24px;
}

/* ================= SECTIONS ================= */
.db-section {
    padding: 0 14px;
    margin-top: 16px;
}

.db-section-first {
    margin-top: 108px;
    /* space for fixed header (header ~84px + wave 24px) */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.section-title i {
    color: var(--primary);
    font-size: 17px;
}

.section-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* ================= ② CLIENT INFO CARD ================= */
.client-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.client-card-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.client-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.client-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.client-nopel,
.client-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray);
}

.client-nopel i,
.client-phone i {
    font-size: 12px;
    color: var(--primary);
}

.client-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-aktif {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-isolir {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.client-periode {
    text-align: right;
}

.client-periode-label {
    font-size: 10px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.client-periode-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
}

/* ================= ③ PAKET STATUS CARD ================= */
.paket-status-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.paket-tagihan-row {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    user-select: none;
    position: relative;
}

.paket-tagihan-row.has-tagihan {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35);
    }
}

.paket-tagihan-left {
    flex: 1;
}

.paket-tagihan-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 4px;
}

.paket-tagihan-amount {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.paket-tagihan-right {
    text-align: right;
    flex-shrink: 0;
}

.paket-bayar-label {
    font-size: 10px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.paket-bayar-amount {
    font-size: 14px;
    font-weight: 700;
}

.paket-chevron {
    font-size: 18px;
    opacity: 0.85;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Tagihan detail expanded */
.tagihan-detail {
    padding: 0 18px 16px;
    background: white;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 10px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--dark);
}

.detail-row span:first-child {
    color: var(--gray);
}

.detail-row span:last-child {
    font-weight: 600;
}

.detail-row.detail-total {
    padding-top: 8px;
    font-size: 14px;
}

.detail-row small {
    font-size: 11px;
    color: var(--gray);
}

/* Paket info row (inside paket-status-card) */
.paket-info-row {
    padding: 4px 0 4px;
}

.info-row {
    padding: 11px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--gray);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label i {
    color: var(--primary);
    font-size: 14px;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}

/* ================= ④ MENU GRID ================= */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.menu-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.menu-item:hover,
.menu-item:active {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.menu-icon-primary {
    background: rgba(108, 76, 241, 0.12);
    color: var(--primary);
}

.menu-icon-info {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info);
}

.menu-icon-success {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.menu-icon-warning {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.menu-icon-danger {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.menu-icon-purple {
    background: rgba(142, 107, 255, 0.12);
    color: var(--primary-light);
}

.menu-item span {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
}

/* ================= ⑤ PROMO / PENAWARAN ================= */
.promo-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.promo-scroll::-webkit-scrollbar {
    display: none;
}

.promo-card {
    min-width: 220px;
    border-radius: var(--radius-lg);
    padding: 16px 16px 14px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.promo-card-purple {
    background: linear-gradient(135deg, #6C4CF1 0%, #8E6BFF 100%);
}

.promo-card-teal {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
}

.promo-card-orange {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    align-self: flex-start;
}

.promo-content {
    flex: 1;
}

.promo-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.promo-desc {
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.4;
}

.promo-icon {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 40px;
    opacity: 0.15;
}

/* Feed style promo cards (aligned with content list) */
.promo-card-feed {
    min-width: 250px;
    max-width: 280px;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid rgba(108, 76, 241, 0.1);
    box-shadow: var(--shadow-sm);
    padding: 12px;
    gap: 0;
}

.promo-card-feed:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.promo-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.promo-date {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.promo-card-feed .promo-badge {
    background: #eef2ff;
    color: var(--primary-dark);
    letter-spacing: 0.2px;
}

.promo-card-feed.promo-kind-promo .promo-badge {
    background: #fee2e2;
    color: #991b1b;
}

.promo-card-feed.promo-kind-penawaran .promo-badge {
    background: #fef3c7;
    color: #92400e;
}

.promo-card-feed.promo-kind-info .promo-badge {
    background: #dbeafe;
    color: #1e40af;
}

.promo-thumb {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    background: #f6f7fb;
    margin-bottom: 10px;
}

.promo-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    border: 1px dashed rgba(108, 76, 241, 0.25);
    background: linear-gradient(135deg, #f8f9ff 0%, #f2f7ff 100%);
}

.promo-thumb-placeholder i {
    font-size: 16px;
}

.promo-card-feed .promo-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.promo-card-feed .promo-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 1;
}

/* Legacy card support */
.card,
.info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-md);
}

/* Payment History */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    font-size: 28px;
    color: var(--primary);
}

.stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
}

.payment-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.payment-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.payment-item:last-child {
    margin-bottom: 0;
}

.payment-info {
    flex: 1;
}

.payment-periode {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.payment-date {
    font-size: 12px;
    color: var(--gray);
}

.payment-amount {
    text-align: right;
}

.payment-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.empty-state {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--gray);
    font-size: 13px;
    margin: 0;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-label {
    font-size: 13px;
    color: var(--gray);
}

.list-item-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.aktif,
.badge-success {
    background: var(--success);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: white;
}

.badge-info {
    background: var(--info);
    color: white;
}

/* ================= ⑥ BOTTOM NAV ================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 6px 4px 10px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.07);
    z-index: 1000;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.nav-item {
    text-decoration: none;
    color: #aaa;
    text-align: center;
    flex: 1;
    padding: 4px 0;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
}

.nav-item.active,
.nav-item:hover {
    color: var(--primary);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}

.nav-item.active {
    font-weight: 600;
}

.nav-item i {
    font-size: 22px;
    display: block;
    transition: transform 0.2s;
}

.nav-item.active i {
    transform: scale(1.08);
}

.nav-item span {
    font-size: 10px;
    display: block;
    letter-spacing: 0.2px;
}

/* ── Center FAB (Pembayaran) ── */
.nav-item-fab {
    position: relative;
    top: -16px;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    margin: 0 2px;
}

.nav-item-fab .nav-fab-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(108, 76, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
    text-decoration: none;
}

.nav-item-fab .nav-fab-circle i {
    font-size: 24px;
    color: #fff;
    display: block;
    line-height: 1;
}

.nav-item-fab .nav-fab-circle span {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    letter-spacing: 0.3px;
    margin-top: 1px;
}

.nav-item-fab.active .nav-fab-circle {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(108, 76, 241, 0.55);
}

.nav-item-fab .nav-fab-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(108, 76, 241, 0.5);
}

.nav-item-fab.active::before {
    display: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    margin-left: 10px;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

/* ── Confirm Modal ── */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.confirm-modal {
    background: var(--light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.25s ease;
    overflow: hidden;
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-modal-header i {
    font-size: 24px;
    color: var(--primary);
}

.confirm-modal-body {
    padding: 8px 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 18px;
}

.confirm-modal-actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s;
}

.confirm-modal-cancel {
    background: var(--bg-muted);
    color: var(--text-secondary);
}

.confirm-modal-ok {
    background: var(--primary);
    color: #fff;
}

.confirm-modal-closing {
    animation: fadeOut 0.2s ease forwards;
}

.confirm-modal-closing .confirm-modal {
    animation: slideDown 0.2s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================= BANTUAN / HELP PAGE ================= */

/* Hero banner */
.bantuan-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-md);
    color: white;
}

.bantuan-hero-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.bantuan-hero-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
}

.bantuan-hero-sub {
    font-size: 12px;
    opacity: 0.88;
}

/* Contact grid */
.bantuan-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bantuan-contact-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--dark);
    border: 1.5px solid transparent;
    transition: all 0.2s;
}

.bantuan-contact-item:hover,
.bantuan-contact-item:active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.bantuan-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.bantuan-contact-icon-success {
    background: rgba(46, 204, 113, 0.12);
    color: var(--success);
}

.bantuan-contact-icon-whatsapp {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
}

.bantuan-contact-icon-info {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info);
}

.bantuan-contact-detail {
    flex: 1;
    min-width: 0;
}

.bantuan-contact-label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.bantuan-contact-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bantuan-contact-arrow {
    font-size: 14px;
    color: #ccc;
    flex-shrink: 0;
}

/* Office card */
.bantuan-office-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bantuan-office-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.bantuan-office-header i {
    font-size: 18px;
}

.bantuan-office-body {
    padding: 4px 0;
}

.bantuan-office-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    color: var(--dark);
}

.bantuan-office-row:last-child {
    border-bottom: none;
}

.bantuan-office-row i {
    font-size: 15px;
    color: var(--primary);
    margin-top: 1px;
    flex-shrink: 0;
}

/* WhatsApp CTA button */
.bantuan-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    transition: all 0.2s;
}

.bantuan-wa-btn span {
    flex: 1;
    text-align: center;
}

.bantuan-wa-btn:hover,
.bantuan-wa-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: white;
}

.bantuan-wa-btn i:first-child {
    font-size: 22px;
}

.bantuan-wa-btn i:last-child {
    font-size: 16px;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    user-select: none;
}

.faq-icon {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.25s;
}

/* ===== Setting Router Page ===== */

.router-gateway-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 20px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 76, 241, 0.35);
}

.router-gateway-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.router-gateway-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.router-gateway-info {
    flex: 1;
    min-width: 0;
}

.router-gateway-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.router-gateway-ip {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.router-vendor {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 3px;
}

.router-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: rgba(255, 255, 255, 0.22);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.router-open-btn:hover,
.router-open-btn:focus {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.router-no-ip-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.router-cred-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.router-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.router-cred-row:last-of-type {
    border-bottom: none;
}

.router-cred-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.router-cred-left i {
    font-size: 16px;
    color: var(--primary);
}

.router-cred-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.router-cred-value {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    background: #f5f3ff;
    padding: 3px 10px;
    border-radius: 6px;
}

.router-cred-copy {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.2s;
}

.router-cred-toggle {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 15px;
    transition: color 0.2s;
}

.router-cred-note {
    font-size: 11.5px;
    color: var(--text-muted);
    padding: 10px 16px 14px;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.router-cred-note i {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--info, #0dcaf0);
}

/* Steps */
.router-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.router-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

.router-step:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.router-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.router-step-body {
    flex: 1;
    min-width: 0;
}

.router-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.router-step-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.inline-code {
    display: inline-block;
    margin-top: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: #f5f3ff;
    padding: 3px 10px;
    border-radius: 6px;
}

/* Tips card */
.router-tips-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.router-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(90deg, #f5f3ff, #fff);
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.router-tips-header i {
    font-size: 18px;
}

.router-tips-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px 12px;
}

.router-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 6px 0;
    line-height: 1.5;
}

.router-tips-list li i {
    color: var(--success, #198754);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Help button */
.router-help-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: box-shadow 0.2s;
}

.router-help-btn:hover {
    box-shadow: var(--shadow-md);
}

.router-help-btn>i:first-child {
    width: 36px;
    height: 36px;
    background: #f5f3ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.router-help-btn span {
    flex: 1;
}

.router-help-btn>i:last-child {
    color: var(--text-muted);
    font-size: 16px;
}

/* Payment Page */
.payment-content {
    padding: 20px 16px 80px;
}

.payment-page .payment-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
    border: 1px solid #e4ebfb;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.payment-page .payment-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.payment-page .payment-hero-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.payment-page .payment-hero-title i {
    color: #2563eb;
}

.payment-page .payment-hero-total {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.payment-page .payment-hero-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
}

/* Period Filter Cards */
.period-filter-section {
    margin-bottom: 20px;
}

.period-filter-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.period-filter-title i {
    color: var(--primary);
}

.period-cards-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.period-cards-scroll::-webkit-scrollbar {
    height: 4px;
}

.period-cards-scroll::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.period-cards-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.period-card {
    min-width: 140px;
    max-width: 140px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.period-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.period-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.period-card:active {
    transform: translateY(0);
}

.period-card:focus-visible {
    outline: 3px solid rgba(108, 76, 241, 0.28);
    outline-offset: 2px;
    border-color: var(--primary);
}

.period-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(108, 76, 241, 0.08) 0%, rgba(142, 107, 255, 0.05) 100%);
}

.period-card.active::before {
    opacity: 1;
}

.period-card-month {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.period-card.active .period-card-month {
    color: var(--primary);
}

.period-card-year {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.period-card-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray);
    background: var(--light);
    padding: 3px 8px;
    border-radius: 50px;
}

.period-card.active .period-card-count {
    background: rgba(108, 76, 241, 0.15);
    color: var(--primary);
}

.period-card-count i {
    font-size: 10px;
}

.filter-loading {
    display: flex;
    justify-content: center;
    padding: 16px;
}

.filter-loading .spinner {
    width: 20px;
    height: 20px;
}

.filter-section {
    margin-bottom: 18px;
}

.filter-section select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: white;
}

.payment-page #paymentList.payment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.payment-page .payment-card {
    background: white;
    border: 1px solid #e8eef8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-page .payment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.payment-page .payment-header {
    background: #f8fbff;
    border-bottom: 1px solid #e8eef8;
    color: #0f172a;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.payment-page .payment-period {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
    max-width: 72%;
}

.payment-page .payment-status-pill {
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.payment-page .payment-status-lunas {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.payment-page .payment-status-belum {
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.payment-page .payment-body {
    padding: 14px;
}

.payment-page .payment-row {
    border-bottom: 1px dashed #e5e7eb;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 11px 0;
    margin: 0;
}

.payment-page .payment-row:last-child {
    border-bottom: none;
}

.payment-page .payment-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.77rem;
    min-width: 0;
    line-height: 1.35;
}

.payment-page .payment-label i {
    color: #94a3b8;
}

.payment-page .payment-value {
    font-size: 0.8rem;
    color: #0f172a;
    max-width: 100%;
    word-break: break-word;
    text-align: right;
    justify-self: end;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.payment-page .payment-value-amount {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.payment-page .payment-footer {
    background: #fafbff;
    border-top: 1px solid #eef2ff;
    font-size: 0.74rem;
    padding: 10px 14px;
}

.payment-page .payment-footer small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
}

.payment-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.payment-empty-title {
    margin-bottom: 8px;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    line-height: 1;
}

.header-content {
    display: flex;
    align-items: center;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--gray);
}

.load-more {
    text-align: center;
    padding: 20px;
}

.load-more button {
    width: 100%;
    max-width: 300px;
}

@media (max-width: 420px) {
    .payment-page .payment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payment-page .payment-period {
        max-width: 100%;
    }

    .payment-page .payment-status-pill {
        align-self: flex-start;
    }
}

/* Responsive */

/* Small screens - fix client card cramping */
@media (max-width: 360px) {
    .client-card {
        flex-direction: column;
        gap: 16px;
    }

    .client-card-left {
        width: 100%;
    }

    .client-card-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .client-periode {
        text-align: left;
    }

    .client-name {
        font-size: 14px;
    }

    .client-nopel,
    .client-phone {
        font-size: 11px;
    }
}

/* Medium small screens - adjust spacing */
@media (max-width: 380px) and (min-width: 361px) {
    .client-card {
        padding: 14px 16px;
        gap: 10px;
    }

    .client-name {
        font-size: 14px;
    }

    .client-nopel,
    .client-phone {
        font-size: 11px;
    }

    .client-periode-value {
        font-size: 11px;
    }

    .status-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
}

@media (min-width: 768px) {
    .dashboard-container {
        max-width: 480px;
        margin: 0 auto;
    }

    .top-header {
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 480px;
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 480px;
    }

    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .payment-content {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-info {
    color: var(--info) !important;
}

.text-muted {
    color: var(--gray) !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide Scrollbar but keep functionality */
.dashboard-container::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.dashboard-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ================= NOTIFICATIONS PAGE ================= */

/* Notification Tabs */
.notif-tabs {
    display: flex;
    gap: 10px;
    background: white;
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.notif-tab {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--gray-light);
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.notif-tab i {
    font-size: 16px;
}

.notif-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notif-tab:focus-visible {
    outline: 3px solid rgba(108, 76, 241, 0.3);
    outline-offset: 2px;
    border-color: var(--primary);
}

.notif-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-color: var(--primary);
    color: white;
}

/* Notification Item */
.notif-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 14px 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(43, 43, 43, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    border: 1px solid #eceff4;
    position: relative;
    outline: none;
}

.notif-item:hover {
    box-shadow: 0 10px 24px rgba(43, 43, 43, 0.1);
    transform: translateY(-1px);
    border-color: #e4e8ef;
}

.notif-item:focus-visible {
    box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.22), var(--shadow-md);
    border-left-color: var(--primary);
}

.notif-item:last-child {
    margin-bottom: 0;
}

.notif-item.unread {
    background: linear-gradient(90deg, rgba(108, 76, 241, 0.05) 0%, white 22%);
    border-left-color: var(--primary);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.notif-item.unread::before {
    content: none;
}

.notif-indicator {
    width: 8px;
    height: 8px;
    background: var(--gray-light);
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notif-item.unread .notif-indicator {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.2);
    animation: pulse-notif 2s ease-in-out infinite;
}

@keyframes pulse-notif {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-message-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.notif-message {
    font-size: 14px;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 0;
    word-wrap: break-word;
    flex: 1;
}

.notif-item.unread .notif-message {
    font-weight: 600;
}

.notif-time {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-time i {
    font-size: 12px;
}

.notif-badge {
    position: static;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
    margin-top: 2px;
}

/* Empty State for Notifications */
.notif-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.notif-empty-title {
    margin-bottom: 8px;
    color: var(--dark);
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
}

/* ========================================
   COMMON APP CONTAINER (for both dashboard & profil)
======================================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--light);
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s;
}

.header-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.content {
    padding: 20px;
}

/* ========================================
   PROFILE PAGE STYLES
======================================== */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem 1rem;
    margin: -20px -20px 1.5rem -20px;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-nopel {
    font-size: 0.9rem;
    opacity: 0.9;
}

.profile-section {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title i {
    color: var(--primary);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-item-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 120px;
}

.profile-item-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

.profile-paket-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(108, 76, 241, 0.25);
}

.profile-paket-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-paket-speed {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-paket-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-status-badge.status-aktif {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.profile-status-badge.status-isolir {
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
}

.profile-status-badge.status-putus {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Status badges inside profile-paket-card need better contrast */
.profile-paket-card .profile-status-badge.status-aktif {
    background: rgba(255, 255, 255, 0.95);
    color: #16a34a;
    font-weight: 600;
}

.profile-paket-card .profile-status-badge.status-isolir {
    background: rgba(255, 255, 255, 0.95);
    color: #ca8a04;
    font-weight: 600;
}

.profile-paket-card .profile-status-badge.status-putus {
    background: rgba(255, 255, 255, 0.95);
    color: #dc2626;
    font-weight: 600;
}

.profile-addon-item,
.profile-biaya-item {
    background: var(--bg-secondary);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-addon-item:last-child,
.profile-biaya-item:last-child {
    margin-bottom: 0;
}

.profile-addon-name,
.profile-biaya-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-addon-price,
.profile-biaya-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.profile-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================= NOTIFICATION BADGE IN HEADER ================= */
.notif-badge-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 4px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

/* ================= DASHBOARD NOTIFICATIONS (MINI CARD) ================= */
.dashboard-notif-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.dashboard-notif-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(3px);
}

.dashboard-notif-item.unread {
    background: linear-gradient(90deg, rgba(108, 76, 241, 0.04) 0%, white 100%);
    border-left-color: var(--primary);
}

.dashboard-notif-indicator {
    width: 6px;
    height: 6px;
    background: var(--gray-light);
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.dashboard-notif-item.unread .dashboard-notif-indicator {
    background: var(--primary);
}

.dashboard-notif-content {
    flex: 1;
    min-width: 0;
}

.dashboard-notif-message {
    font-size: 13px;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-notif-item.unread .dashboard-notif-message {
    font-weight: 600;
}

.dashboard-notif-time {
    font-size: 11px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.dashboard-notif-time i {
    font-size: 11px;
}

.dashboard-notif-dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

/* Last notification item no margin */
.dashboard-notif-item:last-child {
    margin-bottom: 0;
}

/* ===========================
   Profile Page Styles
   =========================== */

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header i {
    font-size: 18px;
    color: var(--primary);
}

.profile-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    gap: 12px;
    border-bottom: 1px solid var(--gray-light);
}

.profile-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-row:first-child {
    padding-top: 0;
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray);
    flex-shrink: 0;
    min-width: 140px;
}

.profile-label i {
    font-size: 16px;
    color: var(--primary);
}

.profile-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-align: right;
    word-break: break-word;
}

/* Status badges in profile value */
.profile-value .status-badge {
    display: inline-block;
}

/* Responsive adjustment for profile row */
@media (max-width: 480px) {
    .profile-label {
        min-width: 120px;
        font-size: 12px;
    }

    .profile-value {
        font-size: 13px;
    }
}

/* ===================================================
   ✨ UX REVISIONS — High Impact Modern ISP App
   =================================================== */

/* ── ① OTP 6-BOX INPUT (Native Android Style) ── */
.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.otp-box {
    width: 48px;
    height: 56px;
    border: 2px solid #dde1e7;
    border-radius: 14px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #f8f9fb;
    outline: none;
    transition: all 0.2s ease;
    caret-color: var(--primary);
}

.otp-box:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 76, 241, 0.1);
    transform: translateY(-2px);
}

.otp-box.filled {
    border-color: var(--primary-light);
    background: #f4f1ff;
}

.otp-box.error {
    border-color: var(--danger);
    background: #fff5f5;
    animation: otpShake 0.4s ease;
}

@keyframes otpShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.otp-boxes-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── ② SKELETON LOADING (Shimmer Cards) ── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
    margin-bottom: 14px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-line {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.skeleton-line-sm {
    width: 60%;
}

.skeleton-line-md {
    width: 80%;
}

.skeleton-line-lg {
    width: 95%;
}

.skeleton-line-xs {
    width: 40%;
    height: 11px;
}

.skeleton-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skeleton-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.skeleton-menu-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.skeleton-tagihan {
    height: 80px;
    margin-bottom: 8px;
    border-radius: var(--radius-lg);
}

/* ── ③ OTP RESEND BUTTON ── */
.otp-resend-wrap {
    text-align: center;
    margin: 6px 0 16px;
}

.otp-resend-btn {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0 auto;
}

.otp-resend-btn.visible {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.otp-resend-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 76, 241, 0.3);
    transform: translateY(-1px);
}

.otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.otp-resend-btn:disabled:hover {
    background: none;
    color: var(--primary);
}

.otp-resend-cooldown {
    font-size: 11px;
    color: var(--gray);
    margin-left: 8px;
}

/* ── ④ BOTTOM NAV ACTIVE INDICATOR ENHANCED ── */
.nav-item.active::before {
    transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item .nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 24px);
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ── ⑤ STATUS BADGE PULSE ANIMATION ── */
.status-aktif {
    position: relative;
}

.status-aktif::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50px;
    border: 2px solid var(--success);
    animation: statusPulse 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes statusPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(1.3);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
}

.status-aktif {
    background: #d4edda;
    color: #155724;
}

.status-aktif::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.status-isolir {
    background: #fff3cd;
    color: #856404;
}

.status-putus {
    background: #f8d7da;
    color: #721c24;
}

/* ── ⑥ BUTTON RIPPLE EFFECT ── */
.btn-login {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── ⑦ INLINE ERROR MESSAGE ── */
.inline-error {
    font-size: 11px;
    color: var(--danger);
    margin: -4px 0 12px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: fadeInDown 0.3s ease;
    font-weight: 500;
}

.inline-error i {
    font-size: 13px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── ⑧ FLOATING LABEL ── */
.floating-label {
    position: relative;
    margin-bottom: 8px;
    width: 100%;
}

.floating-label .input-control {
    padding: 18px 14px 8px 0;
    font-size: 14px;
}

.floating-label .floating-placeholder {
    position: absolute;
    left: 52px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #bbb;
    pointer-events: none;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.floating-label.focused .floating-placeholder,
.floating-label.has-value .floating-placeholder {
    top: 8px;
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    transform: translateY(0);
}

/* ── ⑨ WHATSAPP BADGE ── */
.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #25D366;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    animation: fadeInDown 0.5s ease;
}

.whatsapp-badge i {
    font-size: 15px;
}

/* ── ⑩ DASHBOARD MENU GRID REFINED ── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.menu-item {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 8px 14px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.menu-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 3px 3px;
}

.menu-item:hover::after,
.menu-item:active::after {
    transform: scaleX(1);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.menu-item:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.menu-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.25s ease;
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.menu-icon-primary {
    background: #ede9fe;
    color: var(--primary);
}

.menu-icon-info {
    background: #dbeafe;
    color: #2563eb;
}

.menu-icon-success {
    background: #d1fae5;
    color: #059669;
}

.menu-icon-warning {
    background: #fef3c7;
    color: #d97706;
}

.menu-icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.menu-icon-purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.menu-item span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* ── ⑪ PROMO SCROLL EDGE FADE ── */
.promo-scroll {
    position: relative;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 12px;
    scrollbar-width: none;
}

.promo-scroll::-webkit-scrollbar {
    display: none;
}

.promo-scroll::before,
.promo-scroll::after {
    content: '';
    position: sticky;
    top: 0;
    width: 20px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    flex-shrink: 0;
}

.promo-scroll::before {
    left: 0;
    background: linear-gradient(to right, var(--light) 0%, transparent 100%);
    margin-right: -20px;
}

.promo-scroll::after {
    right: 0;
    background: linear-gradient(to left, var(--light) 0%, transparent 100%);
    margin-left: -20px;
}

.promo-card-feed {
    min-width: 260px;
    max-width: 300px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ── ⑫ RECEIPT-STYLE PAYMENT HISTORY ── */
.payment-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.payment-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.payment-item.lunas {
    border-left-color: var(--success);
}

.payment-item.lunas::before {
    background: var(--success);
}

.payment-item.belum-bayar {
    border-left-color: var(--warning);
}

.payment-item.belum-bayar::before {
    background: var(--warning);
}

.payment-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.payment-info {
    flex: 1;
    min-width: 0;
}

.payment-periode {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.payment-date {
    font-size: 11px;
    color: var(--gray);
}

.payment-amount {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}

.payment-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}

.empty-state p {
    font-size: 13px;
    margin: 0;
}

/* ── ⑬ COPY NOPEL ON TAP ── */
.client-nopel {
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.client-nopel:active {
    transform: scale(0.97);
}

.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 1.7s forwards;
    pointer-events: none;
    white-space: nowrap;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ── ⑭ PULL-TO-REFRESH INDICATOR ── */
.pull-indicator {
    text-align: center;
    padding: 12px;
    color: var(--gray);
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pull-indicator.visible {
    display: flex;
}

.pull-indicator .pull-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── ⑮ TAGIHAN BREAKDOWN SLIDE ANIMATION ── */
.tagihan-detail {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin 0.3s ease;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.tagihan-detail.open {
    max-height: 600px;
    opacity: 1;
    margin-top: 8px;
}

.paket-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    color: var(--gray);
}

.detail-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 10px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.detail-row.detail-total {
    font-size: 15px;
    color: var(--dark);
    padding-top: 8px;
}

.detail-row span small {
    color: var(--text-muted);
    font-weight: 400;
}

/* ── ⑯ HEADER MODERN TOUCH ── */
.top-header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.header-avatar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.header-avatar:active {
    transform: scale(0.95);
}

/* ── ⑰ RESPONSIVE TWEAKS ── */
@media (max-width: 360px) {
    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 20px;
        border-radius: 12px;
    }

    .otp-boxes {
        gap: 7px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .menu-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
        border-radius: 12px;
    }

    .menu-item {
        padding: 14px 6px 12px;
    }

    .promo-card-feed {
        min-width: 230px;
        max-width: 260px;
    }
}

@media (min-width: 481px) {

    .login-page,
    .dashboard-container {
        max-width: 480px;
        margin: 0 auto;
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 18px 18px 0 0;
    }

    .top-header {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ───────────────────────────────────────
    MEDIUM-EFFORT UX: Profile, Content List, Content Detail
   ─────────────────────────────────────── */

/* ── Profile Skeleton ── */
.skeleton-profile-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.skeleton-info-stack {
    flex: 1;
    margin-left: 14px;
}

.skeleton-badge-sm {
    width: 64px;
    height: 22px;
    border-radius: 12px;
}

.skeleton-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.skeleton-field-row:last-child {
    border-bottom: none;
}

.skeleton-field-label {
    width: 110px;
    height: 12px;
}

.skeleton-field-value {
    width: 140px;
    height: 12px;
}

/* ── Profile Empty State ── */
.profile-empty-block {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-empty-block i {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ── Fade-in transition ── */
.fade-in {
    animation: fadeSlideIn 0.35s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Content List Skeleton ── */
.skeleton-content-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}

.skeleton-thumb {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    margin: 8px 0 10px;
}

.skeleton-badge-xs {
    width: 60px;
    height: 18px;
    border-radius: 8px;
    display: inline-block;
}

/* ── Sticky Filter Tabs ── */
.filter-tabs-sticky {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--light);
    padding: 8px 0 4px;
}

/* ── Content Detail Skeleton ── */
.skeleton-detail-header {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.skeleton-title-lg {
    width: 85%;
    height: 22px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-excerpt {
    width: 100%;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 6px;
}

.skeleton-body-line {
    width: 100%;
    height: 13px;
    margin-bottom: 9px;
    border-radius: 5px;
}

.skeleton-body-line-sm {
    width: 75%;
}

/* ── Inline Error Card (content-detail) ── */
.error-inline-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin: 16px 0;
    animation: fadeSlideIn 0.35s ease-out;
}

.error-inline-card i {
    font-size: 52px;
    color: var(--danger);
    margin-bottom: 12px;
    display: block;
}

.error-inline-card h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 6px;
}

.error-inline-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.error-inline-card .btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ───────────────────────────────────────
    MEDIUM-EFFORT UX: Payment, Notifications, Bantuan, Router
   ─────────────────────────────────────── */

/* ── Payment Skeleton ── */
.skeleton-payment-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.skeleton-period-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 88px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    gap: 6px;
}

.skeleton-period-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* ── Sticky Filter ── */
.period-filter-sticky {
    position: sticky;
    top: 0;
    z-index: 9;
    background: var(--light);
    padding-bottom: 6px;
}

/* ── Empty state per periode ── */
.payment-empty-periode {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ── Notifications Skeleton ── */
.skeleton-notif-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.skeleton-notif-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.skeleton-notif-content {
    flex: 1;
}

/* ── Confirm Modal ── */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.confirm-dialog {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 24px 20px 20px;
    margin: 0 24px;
    max-width: 340px;
    width: 100%;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    text-align: center;
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-dialog i.dialog-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.confirm-dialog h3 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 6px;
}

.confirm-dialog p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.confirm-dialog .btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ── Notification Item Animation ── */
.notif-item-unread-out {
    opacity: 0.55;
    transition: opacity 0.25s ease;
}

/* ── FAQ Accordion Animation ── */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    max-height: 0;
    opacity: 0;
}

.faq-answer.open {
    max-height: 600px;
    opacity: 1;
    border-top: 1px solid #f0f0f0;
}

.faq-answer-inner {
    padding: 14px 16px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    word-break: break-word;
}

.faq-answer-inner p:first-child {
    margin-top: 0;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(45deg);
}

/* ── Router Status Card ── */
.router-status-ready {
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #065f46;
    margin-top: 10px;
}

.router-status-unready {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #92400e;
    margin-top: 10px;
}

/* ── Password toggle ── */
.cred-pw-toggle {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1;
    border-radius: 6px;
}

.cred-pw-toggle:hover {
    color: var(--primary);
}