/* Mobile Agent Sticky Bar */
.tls-mobile-agent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
    z-index: 9999;
    border-top: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .tls-mobile-agent-bar {
        display: none;
    }
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f5f9;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-details {
    display: flex;
    flex-direction: column;
}

.agent-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.agent-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.agent-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #ffffff;
}

.action-btn.wa { background: #25D366; }
.action-btn.call { background: #007bff; }
.action-btn.msg { background: #0f172a; }

.action-btn:active {
    transform: scale(0.9);
}

/* View Counter Styling */
.tls-view-counter {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
}

.view-icon {
    font-size: 16px;
}

.view-text strong {
    color: #0f172a;
}

/* Contact Popup */
.tls-contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
}

.tls-contact-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 30px 24px;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
}

.tls-contact-popup.active .popup-content {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.popup-content h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0f172a;
}

.popup-content p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #475569;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
}
