.bundle-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #a516aaff 0%, #fc931cff 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.notyf__toast {
    background: rgba(139, 92, 246, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2) !important;
}

.notyf__toast--success {
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2) !important;
}

.notyf__toast--error {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.2) !important;
}

.notyf__message {
    color: #ffffff !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.notyf__icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

.custom-confirm-dialog {
    background: #1e011c78 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid #ff3fee52 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.custom-confirm-dialog::-webkit-scrollbar {
    width: 2px !important;
}

.custom-confirm-dialog h3 {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.custom-confirm-dialog p {
    color: #d1d5db !important;
}

.custom-confirm-dialog .cancel-btn {
    background: rgba(139, 92, 246, 0.1) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    color: #c4b5fd !important;
}

.custom-confirm-dialog .cancel-btn:hover {
    background: rgba(139, 92, 246, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
}

.custom-confirm-dialog .confirm-btn {
    background: linear-gradient(135deg, #ab159d 0%, #c9990a 100%) !important;
    color: white !important;
}

.custom-confirm-dialog .confirm-btn:hover {
    background: linear-gradient(135deg, #c506b2ff 0%, #e0ac0eff 100%) !important;
    transform: translateY(-1px) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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


.guideline-point-label:hover {
    border-color: #ab159d;
}

.guideline-cancel-btn {
    padding: 11px 22px;
    border: 1px solid #3b0436;
    border-radius: 8px;
    background: #ff0000;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    color: #ffffff;
}

.guideline-cancel-btn:hover {
    background: #c70000 !important;
    border-color: #880a7d !important;
}

.play-video-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background: #ccc;
    color: #888;
}

.play-video-btn:not(:disabled):hover {
    background: #7c0676 !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.play-video-btn:not(:disabled) {
    background: #a00798 !important;
    color: white !important;
    cursor: pointer !important;
}

.guideline-point-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 7px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s
}

.guideline-checkbox {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* OTP Input Styles */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(90, 170, 71, 0.2);
    transform: scale(1.05);
}

.otp-input.filled {
    background: rgba(90, 170, 71, 0.2);
    border-color: var(--primary-color);
}

.otp-timer {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.otp-timer strong {
    color: var(--primary-color);
    font-weight: 600;
}

.otp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Verification Section Styles */
.verification-section {
    animation: fadeIn 0.4s ease;
}

.step-header {
    text-align: center;
    margin-bottom: 20px;
}

.step-header h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.step-header p {
    color: var(--text-light);
    margin: 0;
}

.email-section,
.otp-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Password Requirements Styles */
.password-requirements {
    margin-top: 10px;
}

.requirement {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.requirement i {
    font-size: 10px;
}

.requirement.valid {
    background: rgba(90, 170, 71, 0.2);
    color: var(--primary-color);
}

.requirement.valid i {
    color: var(--primary-color);
}

.requirement.valid i.fa-times {
    display: none;
}

.requirement.valid::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
    color: var(--primary-color);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.strength-fill.strength-weak {
    background: linear-gradient(90deg, #ff4444, #ff6b6b);
}

.strength-fill.strength-fair {
    background: linear-gradient(90deg, #ffa500, #ffb732);
}

.strength-fill.strength-good {
    background: linear-gradient(90deg, #4ecdc4, #44a7a0);
}

.strength-fill.strength-strong {
    background: linear-gradient(90deg, #5aaa47, #4a8f3a);
}

.strength-text {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--text-light);
}

/* Password Match Indicator */
.password-match {
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.password-match.match-success {
    color: var(--primary-color);
    background: rgba(90, 170, 71, 0.1);
}

.password-match.match-error {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* Password Input Group */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .otp-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .otp-input-group {
        gap: 5px;
    }

    .password-requirements {
        flex-direction: column;
    }

    .requirement {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .otp-input {
        width: 35px;
        height: 45px;
        font-size: 18px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Security Tips */
.security-tips {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
}

.tips-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.tips-list li i.fa-check {
    color: var(--primary-color);
}

.tips-list li i.fa-times {
    color: #ff4444;
}
#demo_videos_container .swiper-slide{
    background: transparent !important;
}

/* Skeleton Loading Styles */
.skeleton {
    background: linear-gradient(90deg, #250325 25%, #350435 50%, #3f043f 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 3.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-section {
    margin: 20px 0;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.skeleton-title {
    width: 200px;
    height: 28px;
    border-radius: 4px;
}

.skeleton-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .skeleton-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .skeleton-video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.skeleton-video-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-play-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 36px;
    border-radius: 20px;
}
.bundle-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #a516aaff 0%, #fc931cff 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Multi-thumbnail styles */
.multi-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.multi-thumbnail-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    background: #fff;
}

.multi-thumbnail-item {
    position: relative;
    overflow: hidden;
}

.multi-thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.multi-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.multi-thumbnail-count {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}
/* ===========================================
   TAB STYLES FOR SERVICES/GROUPS
   Add this CSS to your existing chat styles
   =========================================== */

/* Tab Navigation Container */
.services-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 0;
    margin: 0;
}

/* Individual Tab Button */
.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn i {
    font-size: 18px;
}

/* Tab Hover State */
.tab-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #495057;
}

/* Active Tab State */
.tab-btn.active {
    color: #561792;
    border-bottom-color: #561792;
    background: white;
}

/* Tab Content Container */
.tab-content-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Tab Content Panels */
#chatApp .tab-content {
    display: none;
    height: 100%;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

#chatApp .tab-content.active {
    display: block;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services List - Adjust top padding since header is removed */
.services-list {
    padding: 16px;
    padding-top: 8px;
}

/* Remove the old services-header styles if they exist */
.services-header {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        font-size: 20px;
    }
}

/* Ensure smooth scrolling for tab content */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===========================================
   GROUP CHAT SPECIFIC STYLES
   Add these styles to your existing chat CSS
   =========================================== */

/* Group Item Styling */
.group-item {
    cursor: pointer;
}

.group-item .service-icon {
    position: relative;
}

.group-item .member-count {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    color: #333;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-sender {
    font-weight: 600;
    color: #333;
    margin-right: 4px;
}

.member-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

/* Group Chat View */
.group-chat-view {
    background: #f8f9fa;
}

.group-chat-view .chat-body {
    background: #ffffff;
}

/* Group Welcome Section */
.group-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.group-header-info {
    margin-bottom: 20px;
}

.group-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.group-icon-large i {
    font-size: 40px;
    color: white;
}

.group-welcome h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: white;
}

.group-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
}

.group-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
}

.group-description {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    backdrop-filter: blur(10px);
}

/* Group Message Styling */
.group-message {
    padding-bottom: 16px;
    animation: messageSlideIn 0.3s ease;
}

.group-message-sender-name {
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 4px;
    padding-left: 12px;
}

.group-message.sent .group-message-sender-name {
    text-align: right;
    padding-right: 12px;
    padding-left: 0;
    color: #561792;
}

.group-message-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.group-message.sent .group-message-content {
    flex-direction: row-reverse;
}

.group-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.group-message.sent .group-message-avatar {
    background: linear-gradient(135deg, #561792 0%, #8b5cf6 100%);
}

.group-message-bubble {
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 18px;
    background: #3b0436;
    color: white;
    word-wrap: break-word;
}
.group-message-bubble img{
    width: 100%;
}

.group-message.sent .group-message-bubble {
    background: linear-gradient(135deg, #561792 0%, #8b5cf6 100%);
    color: white;
}

.group-message-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.group-message-time {
    font-size: 11px;
    color: #c9c9c9;
    margin-top: 4px;
    display: block;
    text-align: right;
}

.group-message.sent .group-message-time {
    color: rgba(255, 255, 255, 0.8);
}

/* Group Typing Indicator */
#groupTypingIndicator {
    padding: 10px 15px;
    margin: 10px 0;
}

#groupTypingText {
    font-size: 13px;
    color: #667eea;
    font-style: italic;
}

/* Group Chat Container */
#group_chat_container {
    flex: 1;
}

/* System Messages for Groups */
.group-system-message {
    text-align: center;
    padding: 8px 15px;
    margin: 15px auto;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    font-size: 13px;
    color: #667eea;
    max-width: 80%;
}

.group-system-message i {
    margin-right: 5px;
}

/* Back to Groups Button */
#backToGroups {
    display: none;
}

#backToGroups.show {
    display: flex;
}

/* Group Info Bar (Optional) */
.group-info-bar {
    background: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-info-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-info-bar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.group-info-bar-details h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.group-info-bar-details p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
}

/* Animation */
@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .group-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .group-icon-large i {
        font-size: 30px;
    }
    
    .group-welcome h3 {
        font-size: 20px;
    }
    
    .group-message-bubble {
        max-width: 85%;
    }
    
    .group-message-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
#chatApp #group_chat_input {
    width: 100%;
    min-height: 40px;
    max-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: .875rem;
    line-height: 1.4;
    resize: none;
    outline: 0;
    transition: .2s;
    font-family: inherit;
    background: var(--bg-white);
}
#chatApp #group_chat_input::-webkit-scrollbar{
    width: 0;
}
/* ===========================================
   EMOJI REACTION STYLES
   Add this to your group_chat_styles.css
   =========================================== */

/* Message Bubble Container */
.group-message-bubble-container {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 70%;
    min-width: 70px;
    gap:1px;
}

/* Reaction Add Button */
.reaction-add-btn {
    position: absolute;
    top: 5px;
    right: -35px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.group-message:hover .reaction-add-btn {
    opacity: 1;
}

.reaction-add-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    border-color: #667eea;
}

.group-message.sent .reaction-add-btn {
    right: auto;
    left: -35px;
}

/* Reaction Picker */
.reaction-picker {
    background: white;
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 4px;
    z-index: 1111;
    animation: pickerPopIn 0.2s ease;
}

@keyframes pickerPopIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.reaction-emoji-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-emoji-btn:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

.reaction-emoji-btn:active {
    transform: scale(1.1);
}

/* Message Reactions Display */
.message-reactions {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding: 0 8px;
}

.message-reactions:empty {
    display: none !important;
}

/* Reaction Pill */
.reaction-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    user-select: none;
}

.reaction-pill:hover {
    background: #e8e8e8;
    transform: scale(1.05);
}

.reaction-pill.user-reacted {
    background: #e8f0fe;
    border-color: #667eea;
}

.reaction-pill.user-reacted:hover {
    background: #d9e7ff;
}

.reaction-emoji {
    font-size: 16px;
    line-height: 1;
}

.reaction-count {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    min-width: 12px;
    text-align: center;
}

.reaction-pill.user-reacted .reaction-count {
    color: #667eea;
}

/* Reaction Animation */
.reaction-animation {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 9999;
    animation: reactionFloat 1s ease-out forwards;
}

@keyframes reactionFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5);
    }
    50% {
        transform: translateY(-30px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0.8);
    }
}

/* Adjustments for sent messages */
.group-message.sent .message-reactions {
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .reaction-add-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        opacity: 1; /* Always visible on mobile */
    }
    
    .group-message.sent .reaction-add-btn {
        left: -40px;
    }
    
    .reaction-add-btn {
        right: -40px;
    }
    
    .reaction-emoji-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .reaction-pill {
        padding: 6px 10px;
    }
}

/* Tooltip Enhancement */
.reaction-pill {
    position: relative;
}

.reaction-pill::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.reaction-pill:hover::after {
    opacity: 1;
}

/* Loading State */
.message-reactions.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.message-reactions:not(:has(.reaction-pill)) {
    display: none;
}

/* Compact View for Many Reactions */
.message-reactions.compact .reaction-pill {
    padding: 3px 6px;
}

.message-reactions.compact .reaction-emoji {
    font-size: 14px;
}

.message-reactions.compact .reaction-count {
    font-size: 11px;
}

/* Smooth Transitions */
.reaction-pill {
    animation: pillAppear 0.3s ease;
}
.video-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show controls when hovering over the popup */
.popup:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    height: 36px;
}

.control-btn i {
    flex-shrink: 0;
    font-size: 14px;
}

.btn-label {
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 14px;
}

.control-btn.active {
    background: #be1fb1;
    color: white;
}

.control-btn.active:hover {
    background: #be1fb1;
}

.control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn.disabled:hover {
    background: rgba(0, 0, 0, 0.7);
}
@keyframes pillAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Accessibility */
.reaction-add-btn:focus,
.reaction-emoji-btn:focus,
.reaction-pill:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
