/* ===== TRACKER, REVIEW POPUP, FLOATING CTA & AI CHAT STYLES ===== */

/* ---------- Review Popup ---------- */
.lsf-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease;
}

.lsf-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lsf-popup-card {
    background: #111;
    border: 1px solid rgba(249, 115, 22, .3);
    border-radius: 16px;
    width: 90%;
    max-width: 460px;
    padding: 32px 28px;
    position: relative;
    transform: translateY(30px) scale(.95);
    transition: all .4s cubic-bezier(.25, .8, .25, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(249, 115, 22, .1);
}

.lsf-popup-overlay.active .lsf-popup-card {
    transform: translateY(0) scale(1);
}

.lsf-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lsf-popup-close:hover {
    background: #F97316;
    color: #fff;
    border-color: #F97316;
}

.lsf-popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.lsf-popup-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 6px;
}

.lsf-popup-header p {
    font-size: .88rem;
    color: #999;
    line-height: 1.4;
}

/* Stars */
.lsf-stars-container {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.lsf-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.lsf-star {
    color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: unset !important;
    min-height: unset !important;
}

.lsf-star svg {
    display: block;
    width: 40px;
    height: 40px;
    stroke: #FFD700;
    stroke-width: 1.5px;
    transition: all .2s ease;
}

.lsf-star:hover,
.lsf-star.active {
    color: #FFD700;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.95));
    transform: scale(1.18);
}

.lsf-star:hover svg,
.lsf-star.active svg {
    stroke: #FFA500;
    stroke-width: 2px;
}

@media (max-width: 640px) {
    .lsf-stars {
        gap: 10px;
    }

    .lsf-star svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .lsf-stars {
        gap: 8px;
    }

    .lsf-star svg {
        width: 32px;
        height: 32px;
    }
}

.lsf-rating-text {
    font-size: .85rem;
    color: #888;
    letter-spacing: 1px;
    min-height: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Form */
.lsf-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lsf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lsf-popup-form input,
.lsf-popup-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    outline: none;
    transition: border-color .3s;
}

.lsf-popup-form input::placeholder,
.lsf-popup-form textarea::placeholder {
    color: #555;
}

.lsf-popup-form input:focus,
.lsf-popup-form textarea:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}

.lsf-popup-form textarea {
    resize: vertical;
    min-height: 60px;
}

.lsf-popup-buttons {
    margin-top: 6px;
}

.lsf-btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #F97316;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(249, 115, 22, .35);
    transition: all .3s;
}

.lsf-btn-submit:hover {
    background: #b3000f;
    transform: translateY(-1px);
}

/* Success View */
.lsf-popup-success {
    text-align: center;
    padding: 20px 10px;
}

.lsf-success-icon {
    margin-bottom: 16px;
}

.lsf-popup-success h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.lsf-popup-success p {
    color: #aaa;
    font-size: .92rem;
    line-height: 1.5;
}

/* ---------- FLOATING ACTION BUTTONS (BOTTOM LEFT) ---------- */
/* ---------- FLOATING ACTION BUTTONS (BOTTOM LEFT & RIGHT) ---------- */
#lsf-left-floaters {
    position: fixed;
    left: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 999;
}

#lsf-right-floaters {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

.lsf-floater {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.lsf-floater:hover {
    transform: translateY(-5px) scale(1.08);
}

.lsf-floater-wa {
    background: #25D366;
}

.lsf-floater-wa:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.lsf-floater-call {
    background: #F97316;
}

.lsf-floater-call:hover {
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
}

/* ---------- AI ASSISTANT CHATBOT (BOTTOM RIGHT) ---------- */
.lsf-floater-ai {
    position: relative;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: radial-gradient(circle at 35% 35%, #ff7763 0%, #e1441c 50%, #9e1c05 100%) !important;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(225, 68, 28, 0.45), inset 0 -3px 8px rgba(0, 0, 0, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: aiPulse 2.8s infinite, aiFloat 3.2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10002;
    text-transform: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0;
}

.lsf-floater-ai .ai-btn-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lsf-floater-ai .ai-btn-icon i {
    font-size: 0.95rem;
    color: #ffefc0;
}

.lsf-floater-ai .ai-btn-label {
    position: absolute !important;
    top: -12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    white-space: nowrap !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-size: 0.60rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    background: #121218 !important;
    color: #ffd97a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    pointer-events: none !important;
}

.lsf-floater-ai span {
    display: inline-flex;
    width: auto;
}

.lsf-floater-ai::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 98, 79, 0.22), transparent 60%);
    pointer-events: none;
}

.lsf-floater-ai::after {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 141, 125, 0.18);
    pointer-events: none;
}

.lsf-floater-ai:hover {
    background: linear-gradient(135deg, #ff6a50 0%, #fd7f64 55%, #d51f16 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 24px 68px rgba(255, 111, 93, 0.45), 0 0 0 10px rgba(255, 153, 135, 0.12);
}

@keyframes aiPulse {
    0% {
        box-shadow: 0 10px 28px rgba(249, 115, 22, 0.42), 0 0 0 0 rgba(249, 115, 22, 0.25);
    }

    70% {
        box-shadow: 0 10px 28px rgba(249, 115, 22, 0.42), 0 0 0 14px rgba(249, 115, 22, 0);
    }

    100% {
        box-shadow: 0 10px 28px rgba(249, 115, 22, 0.42), 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

@keyframes aiFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.lsf-floater-ai {
    animation: aiPulse 2.8s infinite, aiFloat 3.2s ease-in-out infinite;
}

.lsf-floater-ai.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8) translateY(20px);
}

@media (max-width: 720px) {
    #lsf-right-floaters {
        right: 16px;
        bottom: 90px;
    }

    .back-to-top {
        right: 16px;
        bottom: 18px;
    }
}

/* Chat Box Window (Aligned Bottom-Right above both buttons) */
.lsf-chat-window {
    position: fixed;
    right: 20px;
    bottom: 170px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: auto;
    background: rgba(17, 19, 31, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(15px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 9999;
}

.lsf-chat-window.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.lsf-chat-header {
    background: #161616;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lsf-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lsf-online-indicator {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.8);
}

.lsf-chat-header-info h4 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.lsf-chat-header-info p {
    font-size: 0.72rem;
    color: #888;
    margin: 0;
}

.lsf-chat-close {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.lsf-chat-close:hover {
    color: #F97316;
}

/* Chat Messages */
.lsf-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #0f0f0f;
}

.lsf-chat-messages::-webkit-scrollbar {
    width: 4px;
}

.lsf-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lsf-chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.lsf-chat-msg.bot {
    align-self: flex-start;
}

.lsf-chat-msg.user {
    align-self: flex-end;
}

.lsf-msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.45;
}

.lsf-chat-msg.bot .lsf-msg-bubble {
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top-left-radius: 2px;
}

.lsf-chat-msg.user .lsf-msg-bubble {
    background: #F97316;
    color: #fff;
    border-top-right-radius: 2px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2);
}

/* Options / Quickies */
.lsf-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.lsf-chat-opt {
    background: #111;
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: #ccc;
    border-radius: 30px;
    padding: 8px 14px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.lsf-chat-opt:hover {
    background: rgba(249, 115, 22, 0.1);
    color: #fff;
    border-color: #F97316;
}

/* Typing indicator dot animation (No Emojis) */
.lsf-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lsf-typing-dots span {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    display: block;
    animation: lsfTypingWave 1.4s infinite ease-in-out both;
}

.lsf-typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.lsf-typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes lsfTypingWave {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Input Form */
.lsf-chat-input-bar {
    background: #161616;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lsf-chat-input-bar input {
    flex: 1;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.lsf-chat-input-bar input:focus {
    border-color: #F97316;
}

.lsf-chat-input-bar button {
    background: #F97316;
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.lsf-chat-input-bar button:hover {
    background: #b3000f;
    transform: scale(1.05);
}

/* ---------- Admin Panel ---------- */
.lsf-admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, .95);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all .4s ease;
}

.lsf-admin-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lsf-admin-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
}

.lsf-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.lsf-admin-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: #F97316;
}

.lsf-admin-header p {
    color: #888;
    font-size: .9rem;
}

.lsf-admin-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    padding: 0;
}

.lsf-admin-close:hover {
    background: #F97316;
    border-color: #F97316;
}

/* Stats Cards */
.lsf-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.lsf-stat-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.lsf-stat-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    color: #F97316;
    letter-spacing: 2px;
}

.lsf-stat-card p {
    color: #888;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Tabs */
.lsf-admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: #111;
    border-radius: 10px;
    padding: 4px;
}

.lsf-tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #888;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}

.lsf-tab.active {
    background: #F97316;
    color: #fff;
}

.lsf-tab-content {
    display: none;
}

.lsf-tab-content.active {
    display: block;
}

/* Admin Actions */
.lsf-admin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lsf-search {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #111;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    outline: none;
}

.lsf-search:focus {
    border-color: #F97316;
}

.lsf-export-btn,
.lsf-clear-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s;
}

.lsf-export-btn {
    background: rgba(76, 175, 80, .15);
    color: #4CAF50;
}

.lsf-export-btn:hover {
    background: #4CAF50;
    color: #fff;
}

.lsf-clear-btn {
    background: rgba(249, 115, 22, .15);
    color: #F97316;
}

.lsf-clear-btn:hover {
    background: #F97316;
    color: #fff;
}

/* Table */
.lsf-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
}

.lsf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.lsf-table thead {
    background: #111;
}

.lsf-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #F97316;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    white-space: nowrap;
}

.lsf-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    color: #ccc;
}

.lsf-table tbody tr:hover {
    background: rgba(249, 115, 22, .05);
}

.lsf-table code {
    background: rgba(255, 255, 255, .06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85rem;
    color: #F97316;
}

/* Responsive */
@media (max-width: 768px) {
    .lsf-admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .lsf-admin-container {
        padding: 16px;
        margin: 10px auto;
    }

    .lsf-form-row {
        grid-template-columns: 1fr;
    }

    .lsf-chat-window {
        width: calc(100vw - 48px);
        height: 400px;
    }
}