/* Najibul PWA Role-Adaptive HUD Styles v27.0.0 */
#najibul-adaptive-hud {
    position: fixed;
    z-index: 999990;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#najibul-adaptive-hud * {
    box-sizing: border-box;
}

/* Guest Conversion Capsule */
.najibul-guest-capsule {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(245, 158, 11, 0.2);
    pointer-events: all;
    animation: najibulCapsuleFloat 3s ease-in-out infinite alternate;
}

@keyframes najibulCapsuleFloat {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-5px); }
}

.najibul-capsule-badge {
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    padding: 2px 7px;
    border-radius: 999px;
}

.najibul-capsule-text {
    font-size: 13px;
    color: #f1f5f9;
    font-weight: 600;
}

.najibul-capsule-btn {
    background: linear-gradient(135deg, #06b6d4, #0284c7);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.najibul-capsule-btn:active {
    transform: scale(0.95);
}

/* Reader HUD (Dwell & Audio) */
.najibul-reader-hud {
    position: fixed;
    right: 20px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: all;
}

.najibul-dwell-meter {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.najibul-dwell-svg {
    position: absolute;
    top: 2px;
    left: 2px;
    transform: rotate(-90deg);
}

.najibul-dwell-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3.5;
}

.najibul-dwell-bar {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 3.5;
    stroke-dasharray: 100.5;
    stroke-dashoffset: 100.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s linear, stroke 0.3s;
}

.najibul-dwell-counter {
    font-size: 11px;
    font-weight: 800;
    color: #fbbf24;
}

.najibul-tts-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.najibul-tts-btn:hover {
    transform: scale(1.08);
    background: #0284c7;
}

/* Writer AI Studio FAB */
.najibul-writer-hud {
    position: fixed;
    right: 24px;
    bottom: 28px;
    pointer-events: all;
}

.najibul-voice-fab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.najibul-voice-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.55);
}

.najibul-fab-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    border: 2px solid rgba(167, 139, 250, 0.6);
    animation: najibulPulseRing 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes najibulPulseRing {
    0% { transform: scale(0.96); opacity: 1; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Admin Master Capsule */
.najibul-admin-capsule {
    position: fixed;
    top: 36px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 999px;
    padding: 5px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: all;
}

.najibul-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
}

.najibul-admin-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #a7f3d0;
}

.najibul-admin-link {
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
}
