/**
 * DesineXpress - AI Multilingual Voice Assistant Styles
 * WhatsApp-Style Theme & Mobile Application Bottom Sheet
 *   - WhatsApp Emerald Green: #25D366
 *   - WhatsApp Dark Teal:    #128C7E
 *   - WhatsApp Deep Green:   #075E54
 *   - WhatsApp Dark BG:      #0b141a
 *   - WhatsApp Card BG:      #111b21
 * Mobile: Slide-Up Full-Width Native Application Bottom Sheet
 * Desktop: WhatsApp Docked Corner Audio Card (340px)
 * Action Buttons: Full-Width Primary + 50/50 Secondary Row (Zero Cutoff Guaranteed)
 */

/* ========================================================
   1. WhatsApp Theme Tokens
   ======================================================== */
:root {
    --dx-wa-green-bright: #25D366;
    --dx-wa-teal:         #128C7E;
    --dx-wa-deep-green:   #075E54;
    --dx-wa-dark-bg:      #0b141a;
    --dx-wa-card-bg:      #111b21;
    --dx-wa-border:       rgba(255, 255, 255, 0.12);
    --dx-wa-glow:         rgba(37, 211, 102, 0.45);
}

/* ========================================================
   2. Main Floating Widget Wrap (Anchored to Bottom-Right)
   Desktop: bottom: 92px, right: 24px (20px clear gap above Back-to-Top)
   Mobile:  bottom: 136px, right: 16px (18px clear gap above Back-to-Top)
   ======================================================== */
.dx-va-widget-wrap {
    position: fixed !important;
    bottom: 92px !important;
    right: 24px !important;
    z-index: 1045 !important;
    font-family: inherit;
    line-height: 1.5;
    pointer-events: auto !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

@media (max-width: 1199.98px) {
    .dx-va-widget-wrap {
        bottom: 136px !important;
        right: 16px !important;
    }
}

/* Optional Left-Side Alignment Support */
.dx-va-widget-wrap.position-left {
    right: auto !important;
    left: 24px !important;
}

@media (max-width: 1199.98px) {
    .dx-va-widget-wrap.position-left {
        right: auto !important;
        left: 16px !important;
        bottom: 136px !important;
    }
}

.dx-va-widget-wrap.position-left .dx-va-popup {
    right: auto !important;
    left: 0 !important;
    transform-origin: bottom left !important;
}

.dx-va-widget-wrap.position-left .dx-va-prompt-pill {
    right: auto !important;
    left: 68px !important;
}

/* ========================================================
   3. Main Floating Circular Toggle Button (WhatsApp Green Same to Same)
   ======================================================== */
.dx-va-toggle-btn {
    position: relative !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45), 0 0 16px rgba(37, 211, 102, 0.3) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease !important;
    padding: 0 !important;
    outline: none !important;
    user-select: none !important;
}

@media (max-width: 1199.98px) {
    .dx-va-toggle-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
}

.dx-va-toggle-btn:hover {
    transform: scale(1.08) translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6) !important;
}

.dx-va-toggle-btn:active {
    transform: scale(0.95) !important;
}

/* Toggle Icons (Speaker when closed, X when popup is open) */
.dx-va-toggle-btn .dx-va-icon-main {
    font-size: 26px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: block !important;
    transition: transform 0.2s ease;
}

.dx-va-toggle-btn .dx-va-icon-close {
    font-size: 22px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    display: none !important;
}

.dx-va-toggle-btn.playing .dx-va-icon-main {
    animation: dxVaSpeakerWiggle 1.8s ease-in-out infinite;
}

@keyframes dxVaSpeakerWiggle {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.12) rotate(-6deg); }
    50% { transform: scale(1.06) rotate(4deg); }
    75% { transform: scale(1.14) rotate(-4deg); }
}

/* State when Popup is Open */
.dx-va-widget-wrap.popup-open .dx-va-toggle-btn {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%) !important;
    box-shadow: 0 6px 20px rgba(7, 94, 84, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.dx-va-widget-wrap.popup-open .dx-va-icon-main {
    display: none !important;
}

.dx-va-widget-wrap.popup-open .dx-va-icon-close {
    display: block !important;
}

/* ========================================================
   4. WhatsApp Green Concentric Ripple Rings
   ======================================================== */
.dx-va-ring-inner {
    position: absolute !important;
    inset: -6px !important;
    border-radius: 50% !important;
    border: 2px solid #25D366 !important;
    pointer-events: none !important;
    animation: dxVaRingPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite !important;
}

.dx-va-ring-outer {
    position: absolute !important;
    inset: -12px !important;
    border-radius: 50% !important;
    border: 2px solid #10b981 !important;
    opacity: 0.65 !important;
    pointer-events: none !important;
    animation: dxVaRingPulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) 0.65s infinite !important;
}

.dx-va-widget-wrap.popup-open .dx-va-ring-inner,
.dx-va-widget-wrap.popup-open .dx-va-ring-outer {
    display: none !important;
}

@keyframes dxVaRingPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

/* ========================================================
   5. Red Notification Unread Badge '1'
   ======================================================== */
.dx-va-unread-badge {
    position: absolute !important;
    top: -3px !important;
    right: -3px !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6) !important;
    z-index: 5 !important;
    pointer-events: none !important;
    animation: dxVaBadgePop 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dx-va-widget-wrap.popup-open .dx-va-unread-badge {
    display: none !important;
}

@keyframes dxVaBadgePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ========================================================
   6. Welcome Prompt Pill
   ======================================================== */
.dx-va-prompt-pill {
    position: absolute !important;
    right: 68px !important;
    bottom: 12px !important;
    background: #ffffff !important;
    color: #111b21 !important;
    padding: 7px 14px 7px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    z-index: 1044 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.dx-va-prompt-pill:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16) !important;
}

[data-bs-theme="dark"] .dx-va-prompt-pill {
    background: #1e293b !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.dx-va-widget-wrap.popup-open .dx-va-prompt-pill {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .dx-va-prompt-pill {
        display: none !important;
    }
}

.dx-va-prompt-pulse {
    width: 8px !important;
    height: 8px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3) !important;
    animation: dxVaPulseDot 1.6s infinite !important;
}

@keyframes dxVaPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.dx-va-prompt-close {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    padding: 0 0 0 4px !important;
    cursor: pointer !important;
}

.dx-va-prompt-close:hover {
    color: #ef4444 !important;
}

/* ========================================================
   7. Mobile & Tablet Backdrop Overlay (Click to dismiss on Mobile & Tablet)
   ======================================================== */
.dx-va-mobile-backdrop {
    display: none;
}

@media (max-width: 1024px) {
    .dx-va-mobile-backdrop {
        display: block;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.68) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 1055 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s;
        pointer-events: none;
    }

    .dx-va-widget-wrap.popup-open .dx-va-mobile-backdrop {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* ========================================================
   8. Docked Popup Card (Desktop) & Mobile/Tablet Unified Bottom Sheet
   ======================================================== */
.dx-va-popup {
    position: absolute !important;
    bottom: 70px !important;
    right: 0 !important;
    width: 340px !important;
    max-height: calc(100vh - 180px) !important;
    overflow-y: auto !important;
    background: #0b141a !important;
    border-radius: 20px !important;
    overflow-x: hidden !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(14px) scale(0.96) !important;
    transform-origin: bottom right !important;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s, box-shadow 0.28s ease !important;
    pointer-events: none !important;
    z-index: 1046 !important;
    color: #e9edef !important;
}

.dx-va-widget-wrap.popup-open .dx-va-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 30px rgba(37, 211, 102, 0.15) !important;
    pointer-events: auto !important;
}

/* Native Swipe Handle (Hidden on Desktop, Visible on Mobile & Tablet Bottom Sheet) */
.dx-va-sheet-handle {
    display: none;
}

/* ========================================================
   9. MOBILE & TABLET APPLICATION BOTTOM SHEET MODE (<= 1024px)
   Unified, beautiful bottom sheet popup system for both Mobile and Tablet.
   ======================================================== */
@media (max-width: 1024px) {
    .dx-va-popup {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 480px !important;
        border-radius: 24px 24px 0 0 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-bottom: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
        box-shadow: none !important; /* CRITICAL: Absolutely no shadow when closed */
        z-index: 1060 !important;
        transform: translateY(100%) !important;
        transform-origin: bottom center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s, box-shadow 0.25s ease !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
    }

    @media (max-width: 575.98px) {
        .dx-va-popup {
            max-width: 100% !important;
            border-left: none !important;
            border-right: none !important;
        }
    }

    .dx-va-widget-wrap.popup-open .dx-va-popup {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(37, 211, 102, 0.15) !important;
        pointer-events: auto !important;
    }

    /* Native Pull / Drag Pill Handle */
    .dx-va-sheet-handle {
        display: block !important;
        width: 44px !important;
        height: 5px !important;
        background: rgba(255, 255, 255, 0.3) !important;
        border-radius: 10px !important;
        margin: 10px auto 4px auto !important;
        cursor: pointer !important;
    }

    /* When popup is open on mobile & tablet, hide the floating circular toggle button so no duplicate green X button floats outside */
    .dx-va-widget-wrap.popup-open .dx-va-toggle-btn {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Card Header (Official WhatsApp Deep Green Gradient) */
.dx-va-card-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%) !important;
    padding: 14px 16px 12px !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.dx-va-card-avatar-wrap {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dx-va-card-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

.dx-va-card-online-dot {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 12px !important;
    height: 12px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    border: 2px solid #075E54 !important;
    box-shadow: 0 0 0 1px #ffffff !important;
    z-index: 2 !important;
}

.dx-va-card-header-info {
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.dx-va-card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1.25 !important;
}

.dx-va-card-subtitle {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 2px !important;
}

.dx-va-card-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: dxVaPulseDot 1.4s infinite !important;
}

.dx-va-card-close-btn {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px !important;
    padding: 6px !important;
    cursor: pointer !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    transition: color 0.15s, background 0.15s !important;
}

.dx-va-card-close-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* Card Body */
.dx-va-card-body {
    padding: 14px 16px 12px !important;
    background: #0b141a !important;
    color: #e9edef !important;
}

/* Language Selection Header Row */
.dx-va-lang-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

.dx-va-section-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #aebac1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.dx-va-active-badge {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.15) !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(37, 211, 102, 0.35) !important;
}

/* Language Chips (WhatsApp Style) */
.dx-va-lang-chips {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

.dx-va-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 8px 4px !important;
    color: #d1d7db !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
    outline: none !important;
}

.dx-va-chip:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(37, 211, 102, 0.4) !important;
    transform: translateY(-1px) !important;
}

.dx-va-chip.active {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(18, 140, 126, 0.3) 100%) !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25) !important;
}

.dx-va-chip-icon {
    font-size: 15px !important;
    line-height: 1 !important;
}

.dx-va-chip-text {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Waveform Visualizer & Audio Progress Box */
.dx-va-visualizer-box {
    background: #111b21 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 10px 14px 8px !important;
    margin-bottom: 10px !important;
}

.dx-va-wave-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 8px !important;
}

/* 12 Animated Waveform Bars (WhatsApp Green) */
.dx-va-wave-bars {
    display: flex !important;
    align-items: flex-end !important;
    gap: 3.5px !important;
    height: 22px !important;
}

.dx-va-bar {
    width: 3.5px !important;
    height: 4px !important;
    min-height: 4px !important;
    background: #25D366 !important;
    border-radius: 3px !important;
    transition: height 0.15s ease !important;
}

.dx-va-wave-bars.playing .dx-va-bar {
    background: linear-gradient(to top, #128C7E, #25D366) !important;
    animation: dxVaBarDance 1s ease-in-out infinite alternate !important;
}

.dx-va-wave-bars.playing .dx-va-bar:nth-child(1)  { animation-delay: 0.05s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(2)  { animation-delay: 0.25s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(3)  { animation-delay: 0.45s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(4)  { animation-delay: 0.15s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(5)  { animation-delay: 0.55s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(6)  { animation-delay: 0.35s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(7)  { animation-delay: 0.65s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(8)  { animation-delay: 0.20s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(9)  { animation-delay: 0.50s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(10) { animation-delay: 0.30s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(11) { animation-delay: 0.60s; }
.dx-va-wave-bars.playing .dx-va-bar:nth-child(12) { animation-delay: 0.10s; }

@keyframes dxVaBarDance {
    0% { height: 4px; }
    50% { height: 18px; }
    100% { height: 10px; }
}

.dx-va-loop-pill {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #25D366 !important;
    background: rgba(37, 211, 102, 0.15) !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(37, 211, 102, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Progress Track */
.dx-va-progress-wrap {
    width: 100% !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    margin-bottom: 6px !important;
    position: relative !important;
}

.dx-va-progress-fill {
    width: 0% !important;
    height: 100% !important;
    background: linear-gradient(90deg, #128C7E 0%, #25D366 100%) !important;
    border-radius: 4px !important;
    transition: width 0.15s linear !important;
}

.dx-va-time-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 10.5px !important;
    color: #8696a0 !important;
    font-variant-numeric: tabular-nums !important;
}

.dx-va-track-title {
    color: #e9edef !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 170px !important;
}

/* Background Ambient Music Bar */
.dx-va-bgm-status-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #111b21 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dx-va-bgm-dot {
    width: 6px !important;
    height: 6px !important;
    background: #25D366 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    box-shadow: 0 0 6px #25D366 !important;
}

.dx-va-bgm-text {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #25D366 !important;
}

/* ========================================================
   10. ACTION BUTTONS: CLEAN 3-BUTTON SINGLE ROW (MATCHES IMAGE 3)
   Slot 1: Listen Now / Pause (WhatsApp Emerald Green)
   Slot 2: Stop (Dark Red Accent Tone)
   Slot 3: Replay (Dark Neutral Tone)
   Zero Cutoff & Pixel-Perfect WhatsApp Layout
   ======================================================== */
.dx-va-card-footer {
    background: #0b141a !important;
    padding: 12px 14px 14px !important;
    border-top: 1px solid #1f2c34 !important;
}

.dx-va-action-row {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 1.05fr !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.dx-va-play-slot {
    min-width: 0 !important;
    width: 100% !important;
    display: flex !important;
}

.dx-va-btn {
    width: 100% !important;
    height: 42px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s !important;
    outline: none !important;
    user-select: none !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
}

.dx-va-btn:hover {
    transform: translateY(-1px) !important;
}

.dx-va-btn:active {
    transform: translateY(0) !important;
}

/* Strict Hide Class */
.dx-va-btn.is-hidden {
    display: none !important;
}

/* 1. Listen Now Button (WhatsApp Bright Green - Matches Image 3) */
.dx-va-btn-play,
.dx-va-btn-primary {
    background: #10b981 !important;
    background: linear-gradient(135deg, #25D366 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4) !important;
}

.dx-va-btn-play:hover,
.dx-va-btn-primary:hover {
    filter: brightness(1.08) !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55) !important;
}

/* Pause Button (WhatsApp Deep Teal) */
.dx-va-btn-pause {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(7, 94, 84, 0.4) !important;
    border: 1px solid rgba(37, 211, 102, 0.45) !important;
}

.dx-va-btn-pause:hover {
    filter: brightness(1.1) !important;
}

/* 2. Stop Button (Dark Red Tone - Matches Image 3) */
.dx-va-btn-stop {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.dx-va-btn-stop:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    color: #ffffff !important;
}

/* 3. Replay Button (Dark Neutral Tone - Matches Image 3) */
.dx-va-btn-replay {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e9edef !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.dx-va-btn-replay:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

.dx-va-card-brand {
    font-size: 10.5px !important;
    color: #8696a0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* Mobile & Tablet Safe Area & Touch Controls */
@media (max-width: 1024px) {
    .dx-va-action-row {
        gap: 6px !important;
        grid-template-columns: 1.3fr 0.95fr 1fr !important;
        margin-bottom: 12px !important;
    }

    .dx-va-btn {
        height: 46px !important;
        font-size: 13.5px !important;
        border-radius: 12px !important;
        padding: 0 6px !important;
    }

    .dx-va-card-footer {
        padding: 12px 14px max(18px, env(safe-area-inset-bottom)) 14px !important;
    }
}

/* ========================================================
   11. BULLETPROOF NON-COLLISION: BACK-TO-TOP BUTTON (PC & MOBILE)
   ======================================================== */
.dx-back-to-top {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.42) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 1040 !important;
    outline: none !important;
    padding: 0 !important;
}

@media (max-width: 1199.98px) {
    .dx-back-to-top {
        bottom: 74px !important;
        right: 16px !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
        font-size: 16px !important;
        z-index: 1040 !important;
    }
}

/* ========================================================
   12. GRANULAR VISIBILITY & VISITOR HIDE CONTROLS
   ======================================================== */
.dx-va-widget-wrap.dx-va-hidden,
.dx-va-toggle-btn.dx-va-hidden,
.dx-va-prompt-pill.dx-va-hidden,
.dx-va-loop-pill.dx-va-hidden,
.dx-va-bgm-status-row.dx-va-hidden,
.dx-va-chip.dx-va-hidden,
.dx-va-hidden {
    display: none !important;
}

.dx-va-card-hide-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dx-va-hide-session-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.dx-va-hide-session-btn:hover {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
}
