/* ============================================================
   VIRAL 24-Hour Stories & Status Tray System
============================================================ */

/* Home Top Header (Instagram Style: Logo on Left, Notifications & Messages on Right) */
.home-top-header {
    width: 100%;
    max-width: var(--max-width, 500px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(8px, env(safe-area-inset-top, 8px)) 16px 6px 16px;
    position: relative;
    z-index: 20;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.home-app-logo {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(125deg, #ff0050 0%, #00f2fe 30%, #a855f7 60%, #ff2b54 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textWaveGradient 4s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 14px rgba(255, 0, 80, 0.45)) drop-shadow(0 0 6px rgba(0, 242, 254, 0.3));
    display: flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    -webkit-user-select: none;
    margin: 0;
    cursor: pointer;
}

.home-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-header-icon-btn {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease;
}

.home-header-icon-btn:hover {
    transform: scale(1.12);
    color: #00ffcc;
}

.home-header-icon-btn:active {
    transform: scale(0.92);
}

.home-badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0050;
    box-shadow: 0 0 8px rgba(255, 0, 80, 0.85);
    border: 1.5px solid #000000;
    animation: pulseMsgDot 2.2s infinite ease-in-out;
}

.home-badge-dot.hidden {
    display: none !important;
}

@keyframes pulseMsgDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.8;
    }
}

@keyframes homeLogoGlow {
    0% {
        filter: drop-shadow(0 0 8px rgba(255, 0, 80, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 16px rgba(0, 242, 254, 0.45));
    }
}

/* Top Status Tray - Prominent, Rich & Sleek */
.status-tray-wrapper {
    width: 100%;
    max-width: var(--max-width, 500px);
    min-height: 106px;
    margin: 0 auto;
    position: relative;
    z-index: 15;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.68) 80%, transparent 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 0 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    contain: layout style;
}

.status-tray-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.status-tray-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.status-tray-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

/* Individual Status Card */
.status-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    width: 64px;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-card-item:hover {
    transform: translateY(-2px) scale(1.05);
}

.status-card-item:active {
    transform: scale(0.93);
}

.status-avatar-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* Avatar Image */
.status-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #1c1c1e;
    border: 2px solid #000000;
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

/* Vibrant Story Ring */
.status-avatar-wrapper.has-active-status .status-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2.2px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 8s linear infinite;
    box-shadow: 0 0 14px rgba(255, 0, 80, 0.45);
}

/* Connected Online User Glow Ring (Active live connected users in header) */
.status-avatar-wrapper.is-connected-online .status-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2.4px;
    background: linear-gradient(45deg, #00ff66 0%, #00f2fe 35%, #00e676 70%, #00f2fe 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ringRotate 5s linear infinite;
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.55), 0 0 8px rgba(0, 242, 254, 0.4);
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Multi-Status Item Count Badge */
.status-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff0050, #7928ca);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Online Status Indicator Green Dot */
.status-online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    background: #00ff66;
    border: 2px solid #000000;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66, 0 0 14px rgba(0, 255, 102, 0.9);
    z-index: 6;
    pointer-events: none;
    animation: statusOnlinePulse 2.2s infinite ease-in-out;
}

.status-viewer-avatar-wrap .status-online-dot {
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
}

.feed-creator-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.feed-creator-avatar-wrap img {
    margin-right: 0 !important;
}

.feed-creator-avatar-wrap .feed-online-dot {
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border: 1.5px solid #000000;
}

.relation-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.relation-avatar-wrap .relation-user-avatar {
    margin-right: 0 !important;
}

.relation-avatar-wrap .relation-online-dot {
    bottom: 1px;
    right: 1px;
    width: 11px;
    height: 11px;
    border: 1.5px solid #141414;
}

@keyframes statusOnlinePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px #00ff66, 0 0 10px rgba(0, 255, 102, 0.7);
    }
    50% {
        transform: scale(1.25);
        box-shadow: 0 0 12px #00ff66, 0 0 18px rgba(0, 255, 102, 1);
    }
}

/* Add Status "+" Button on Empty User Status */
.status-add-plus-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #00ffcc;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 900;
    border: 2px solid #000000;
    box-shadow: 0 2px 6px rgba(0, 255, 204, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.status-card-item:hover .status-add-plus-badge {
    transform: scale(1.18);
    background: #ffffff;
}

/* Active User Status "+" Add More Button */
.status-add-more-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffcc, #0099ff);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 900;
    border: 2px solid #000000;
    box-shadow: 0 2px 7px rgba(0, 255, 204, 0.6);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s ease;
}

.status-add-more-badge:hover {
    transform: scale(1.22) rotate(90deg);
}

/* Status Label */
.status-username-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62px;
    font-weight: 600;
    line-height: 1.15;
    margin-top: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ============================================================
   Status Upload Modal Sheet
============================================================ */
.status-modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(30, 20, 50, 0.75) 0%, rgba(8, 8, 14, 0.88) 100%);
    backdrop-filter: blur(14px) brightness(0.7);
    -webkit-backdrop-filter: blur(14px) brightness(0.7);
    z-index: 9998;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    background: linear-gradient(165deg, rgba(26, 26, 38, 0.98) 0%, rgba(14, 14, 22, 0.99) 100%);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    z-index: 9999;
    padding: 16px 20px calc(80px + env(safe-area-inset-bottom, 20px)) 20px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 0, 80, 0.18);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
    animation: statusSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Custom Scrollbar for Modal */
.status-modal-sheet::-webkit-scrollbar {
    width: 5px;
}
.status-modal-sheet::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.status-modal-sheet::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 10px;
}
.status-modal-sheet::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 80, 0.4);
}

/* Handle Bar on top of modal */
.status-modal-handle {
    width: 44px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    margin: 0 auto 4px auto;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .status-modal-sheet {
        bottom: auto;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        max-height: 85vh;
        animation: statusModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes statusModalPop {
        from { transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
        to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }
}

@keyframes statusSlideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.status-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding-bottom: 14px;
}

.status-modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-modal-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff0050 0%, #7928ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(255, 0, 80, 0.4);
    animation: badgePulseGlow 3s infinite ease-in-out;
}

@keyframes badgePulseGlow {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 0, 80, 0.4); transform: scale(1); }
    50% { box-shadow: 0 4px 22px rgba(255, 0, 80, 0.7); transform: scale(1.05); }
}

.status-modal-title {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(180deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.status-modal-subtitle {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 1px;
}

.status-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-modal-close:hover {
    background: rgba(255, 0, 80, 0.25);
    border-color: #ff0050;
    color: #ffffff;
    transform: rotate(90deg) scale(1.08);
    box-shadow: 0 0 12px rgba(255, 0, 80, 0.4);
}

/* Upload Mode Tabs */
.status-type-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 5px;
    gap: 6px;
}

.status-type-tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.status-type-tab-btn .tab-icon {
    font-size: 1.05rem;
    transition: transform 0.2s ease;
}

.status-type-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.status-type-tab-btn.active {
    background: linear-gradient(135deg, #ff0050 0%, #7928ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 0, 80, 0.4);
}

.status-type-tab-btn.active .tab-icon {
    transform: scale(1.15);
}

.status-mode-content {
    animation: fadeInMode 0.25s ease;
}

@keyframes fadeInMode {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Dropzone & Preview */
.status-selected-preview-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px;
}

.status-upload-dropzone {
    width: 100%;
    min-height: 140px;
    border: 2px dashed rgba(0, 255, 204, 0.45);
    background: radial-gradient(circle at center, rgba(0, 255, 204, 0.07) 0%, rgba(0, 255, 204, 0.01) 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    gap: 6px;
    cursor: default;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-dropzone-icon-glow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.status-dropzone-icon {
    font-size: 1.4rem;
    line-height: 1;
    animation: iconPulseGlow 2.5s infinite ease-in-out;
}

.status-dropzone-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.status-dropzone-subtitle {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-bottom: 12px;
}

.status-dropzone-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.status-dropzone-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    border: none;
}

.status-btn-camera {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.status-btn-camera:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.status-btn-gallery {
    background: linear-gradient(135deg, #00ffcc 0%, #0099ff 100%);
    color: #0b0f19;
    box-shadow: 0 4px 16px rgba(0, 255, 204, 0.35);
}

.status-btn-gallery:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 204, 0.5);
    filter: brightness(1.08);
}

/* Selected Preview Chips */
.status-selected-chips-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 4px 10px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.status-selected-preview-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.status-selected-chips-scroll::-webkit-scrollbar {
    height: 4px;
}
.status-selected-chips-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.3);
    border-radius: 4px;
}

.status-preview-chip {
    position: relative;
    width: 95px;
    height: 135px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.16);
    background: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.status-preview-chip:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(0, 255, 204, 0.5);
}

.status-preview-chip.is-active-chip {
    border-color: #00ffcc;
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.5), 0 4px 14px rgba(0, 0, 0, 0.7);
    transform: translateY(-3px) scale(1.04);
}

.status-chip-item-num {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 5;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 6px;
    line-height: 1;
}

.status-preview-chip.is-active-chip .status-chip-item-num {
    background: #00ffcc;
    color: #0b0f19;
    border-color: #00ffcc;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.6);
}

.status-preview-chip img,
.status-preview-chip video,
.status-chip-media-img,
.status-chip-media-video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover !important;
    background: #111116;
    display: block;
    border-radius: 14px;
}

.status-chip-media-loading {
    background: linear-gradient(90deg, #111116 0%, #1f2430 50%, #111116 100%) !important;
    background-size: 200% 100% !important;
    animation: chipShimmerLoading 1.4s infinite linear !important;
}

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

.status-chip-vid-badge {
    position: absolute;
    top: 6px;
    right: 28px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 0.68rem;
    z-index: 4;
}

.status-chip-music-badge {
    position: absolute;
    bottom: 6px;
    left: 4px;
    right: 4px;
    z-index: 6;
    padding: 4px 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(6px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.status-chip-music-badge:hover {
    transform: scale(1.04);
    filter: brightness(1.15);
}

.status-chip-music-badge.has-music {
    background: rgba(0, 255, 204, 0.25);
    border: 1px solid rgba(0, 255, 204, 0.6);
    color: #00ffcc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.status-chip-music-badge.no-music {
    background: rgba(0, 0, 0, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.65);
}

.status-preview-chip.is-active-chip .status-chip-music-badge.no-music {
    border-color: rgba(0, 255, 204, 0.5);
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}

.chip-music-icon {
    font-size: 0.72rem;
    flex-shrink: 0;
}

.chip-music-text {
    font-size: 0.62rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

@keyframes musicSectionHighlight {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 204, 0); }
    50% { transform: scale(1.02); box-shadow: 0 0 22px rgba(0, 255, 204, 0.4); border-color: #00ffcc; }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 204, 0); }
}

.status-preview-chip-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed rgba(0, 255, 204, 0.5);
    background: rgba(0, 255, 204, 0.05);
    cursor: pointer;
    transition: all 0.25s ease;
}

.status-preview-chip-add:hover {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.15);
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(0, 255, 204, 0.3);
}

.chip-add-plus {
    font-size: 1.8rem;
    color: #00ffcc;
    line-height: 1;
}

.chip-add-text {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin-top: 4px;
}

.status-chip-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-chip-remove-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

.status-caption-wrapper {
    margin-top: 14px;
}

.status-media-caption-textarea {
    width: 100%;
    min-height: 75px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.45;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: all 0.25s ease;
}

.status-media-caption-textarea:focus {
    border-color: #ff0050;
    box-shadow: 0 0 16px rgba(255, 0, 80, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.status-media-caption-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Text Action Canvas */
.status-text-canvas {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.status-text-textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    resize: none;
    outline: none;
    font-family: inherit;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    line-height: 1.35;
    z-index: 2;
}

.status-text-textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.status-text-watermark {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    pointer-events: none;
}

.status-gradient-picker-box {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
}

.status-picker-label {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.status-gradient-presets {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2px 0;
}

.gradient-preset-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gradient-preset-btn:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.gradient-preset-btn.active {
    transform: scale(1.22);
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Full-Screen Status Story Viewer
============================================================ */
.status-viewer-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    touch-action: pan-y;
}

.status-viewer-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: #000000;
}

/* Segmented Top Progress Bars */
.status-progress-bars-container {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 50;
}

.status-progress-bar-bg {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    overflow: hidden;
}

.status-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 3px;
    transition: width 0.05s linear;
}

/* Viewer Header */
.status-viewer-header {
    position: absolute;
    top: max(26px, calc(env(safe-area-inset-top) + 12px));
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    pointer-events: none;
}

.status-viewer-creator-info {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    cursor: pointer;
}

.status-viewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
}

.status-viewer-meta {
    display: flex;
    flex-direction: column;
}

.status-viewer-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.status-viewer-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.status-viewer-actions-top {
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
}

/* Delete Status Button in Viewer - Icon Only */
.status-delete-btn {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ff4b72;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.status-delete-btn:hover {
    background: rgba(255, 0, 80, 0.85);
    border-color: #ff0050;
    color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 0, 80, 0.6);
    transform: scale(1.08);
}

.status-viewer-close-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Media Display Area */
.status-media-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: #000000;
    overflow: hidden;
}

.status-media-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
}

.status-media-stage img,
.status-media-stage video,
.status-media-layer img,
.status-media-layer video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    display: block;
    margin: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.status-text-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Caption Overlay */
.status-viewer-caption-box {
    position: absolute;
    bottom: 84px;
    left: 16px;
    right: 16px;
    background: transparent;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
    z-index: 50;
    text-align: center;
    word-break: break-word;
    pointer-events: none;
    animation: captionFadeIn 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

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

/* Tap Zones */
.status-tap-zone-left,
.status-tap-zone-right {
    position: absolute;
    top: 70px;
    bottom: 130px;
    z-index: 40;
    cursor: pointer;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none;
    -webkit-user-select: none;
}

.status-tap-zone-left {
    left: 0;
    width: 30%;
}

.status-tap-zone-right {
    right: 0;
    width: 70%;
}

/* ============================================================
   Story Viewer Bottom Reactions & Reply Bar
============================================================ */
.status-viewer-bottom-bar {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    z-index: 60;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.status-viewer-bottom-bar.hidden {
    display: none !important;
}

/* Left Circular Emoji Wheel Trigger & Popup */
.status-emoji-wheel-container {
    position: relative;
    flex-shrink: 0;
}

.status-emoji-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-user-select: none;
    padding: 0;
}

.status-emoji-toggle-btn:hover {
    transform: scale(1.12);
    border-color: #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.45);
}

.status-emoji-toggle-btn.active {
    background: linear-gradient(135deg, #00ffcc, #0099ff);
    border-color: transparent;
    transform: scale(1.08) rotate(12deg);
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.6);
}

/* Circular Radial Wheel Popup on the Left */
.status-emoji-radial-wheel {
    position: absolute;
    bottom: 52px;
    left: 0;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(30, 30, 45, 0.45) 0%, rgba(15, 15, 25, 0.55) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 255, 204, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 204, 0.25);
    z-index: 70;
    transform-origin: bottom left;
    touch-action: none;
    user-select: none;
    animation: radialWheelPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.status-emoji-radial-wheel::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 70px;
    height: 22px;
    background: transparent;
    pointer-events: auto;
}

.status-emoji-radial-wheel.hidden {
    display: none !important;
}

@keyframes radialWheelPop {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.status-emoji-wheel-center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px dashed rgba(0, 255, 204, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #00ffcc;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    pointer-events: none;
    box-shadow: inset 0 0 10px rgba(0, 255, 204, 0.2);
}

.status-emoji-wheel-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.status-wheel-emoji-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    padding: 0;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
}

.status-wheel-emoji-glyph {
    display: inline-block;
    font-size: 1.45rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
    pointer-events: none;
}

.status-wheel-emoji-item:hover {
    background: rgba(0, 255, 204, 0.35);
    border-color: #00ffcc;
    box-shadow: 0 0 16px rgba(0, 255, 204, 0.65);
    z-index: 20;
}

.status-wheel-emoji-item:hover .status-wheel-emoji-glyph {
    transform: scale(1.45);
    filter: drop-shadow(0 2px 8px rgba(0, 255, 204, 0.8));
}

.status-wheel-emoji-item:active .status-wheel-emoji-glyph {
    transform: scale(0.9);
}

/* Reply Input Bar */
.status-reply-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 25px;
    padding: 3px 6px 3px 14px;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.status-reply-input-wrapper:hover,
.status-reply-input-wrapper:focus-within {
    border-color: rgba(0, 255, 204, 0.7);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.25);
}

.status-reply-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.88rem;
    padding: 8px 0;
}

.status-reply-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.status-reply-send-btn {
    background: linear-gradient(135deg, #ff0050, #7928ca);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.status-reply-send-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(255, 0, 80, 0.5);
}

.status-reply-send-btn:active {
    transform: scale(0.95);
}

/* ============================================================
   Floating Reactions & Name Badge Layer (Bottom to Half-Screen)
============================================================ */
.status-floating-reactions-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 45;
}

/* Main Name + Emoji Badge */
.status-floating-reaction-badge {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 0, 80, 0.3);
    pointer-events: none;
    animation: floatUpAndDiminish 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.status-floating-badge-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #00ffcc;
}

.status-floating-badge-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-floating-reaction-badge .reaction-emoji-big {
    font-size: 1.6rem;
    animation: reactionPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floating Emoji Particles */
.status-floating-particle {
    position: absolute;
    bottom: 120px;
    font-size: 2rem;
    pointer-events: none;
    animation: particleFloat 2.5s ease-out forwards;
}

@keyframes floatUpAndDiminish {
    0% {
        opacity: 0;
        transform: translate(-50%, 30px) scale(0.8);
    }
    12% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1.08);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, -60px) scale(1);
    }
    65% {
        opacity: 0.9;
        transform: translate(-50%, -28vh) scale(0.96);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -48vh) scale(0.75);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.7) rotate(0deg);
    }
    50% {
        opacity: 0.95;
        transform: translate(var(--dx, 20px), -24vh) scale(1.25) rotate(var(--rot, 15deg));
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx-end, 40px), -48vh) scale(0.6) rotate(var(--rot-end, 30deg));
    }
}

@keyframes reactionPop {
    0% { transform: scale(0.2); }
    70% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ============================================================
   Left Corner Pop Comments & Spreading Emojis Layer
============================================================ */
.status-pop-comments-layer {
    position: absolute;
    bottom: 74px;
    left: 14px;
    z-index: 55;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 80%;
    pointer-events: none;
}

.status-corner-pop-comment {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    padding: 5px 12px 5px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 255, 204, 0.25);
    animation: cornerCommentPopIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes cornerCommentPopIn {
    0% {
        opacity: 0;
        transform: translateX(-40px) scale(0.7);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.status-corner-pop-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #00ffcc;
    flex-shrink: 0;
}

.status-corner-pop-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.status-corner-pop-name {
    color: #00ffcc;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-corner-pop-text {
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.2;
    word-break: break-word;
}

.status-corner-pop-emoji {
    font-size: 1.25rem;
    line-height: 1;
    margin-left: 2px;
}

/* 3-4 Times Spreading Emoji Particles */
.status-spreading-emoji {
    position: absolute;
    bottom: 80px;
    left: 20px;
    font-size: 2rem;
    pointer-events: none;
    z-index: 58;
    user-select: none;
    animation: emojiSpreadBurst 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes emojiSpreadBurst {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3) rotate(0deg);
    }
    18% {
        opacity: 1;
        transform: translate(var(--dx-mid, 18px), -40px) scale(1.35) rotate(var(--rot-mid, 12deg));
    }
    55% {
        opacity: 0.95;
        transform: translate(var(--dx-far, 45px), -130px) scale(1.1) rotate(var(--rot-far, -18deg));
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx-end, 70px), -230px) scale(0.65) rotate(var(--rot-end, 35deg));
    }
}

/* ============================================================
   Story Music Picker in Upload Modal
============================================================ */
.status-music-picker-section {
    margin-top: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-music-target-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.25);
    border-radius: 12px;
    padding: 7px 12px;
    gap: 8px;
}

.status-music-target-info {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.9);
}

.music-target-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 8px #00ffcc;
    animation: badgePulseGlow 2s infinite ease-in-out;
}

.status-music-apply-all-btn {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.25), rgba(121, 40, 202, 0.25));
    border: 1px solid rgba(255, 0, 80, 0.5);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.status-music-apply-all-btn:hover {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.5), rgba(121, 40, 202, 0.5));
    border-color: #ff0050;
    transform: scale(1.04);
}

.status-music-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.status-music-picker-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
}

.music-icon-pulse {
    font-size: 1.1rem;
    animation: iconPulseGlow 2s infinite ease-in-out;
}

@keyframes iconPulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #00ffcc); }
    50% { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 8px #00ffcc); }
}

.status-music-upload-btn {
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.4);
    color: #00ffcc;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-music-upload-btn:hover {
    background: rgba(0, 255, 204, 0.25);
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.status-music-preset-labels {
    font-size: 0.74rem;
    color: var(--text-muted, #888);
    margin-top: 2px;
}

.status-music-presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.music-preset-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-preset-btn:hover {
    background: rgba(255, 0, 80, 0.18);
    border-color: #ff0050;
    color: #ffffff;
}

.music-preset-btn.active {
    background: linear-gradient(135deg, rgba(255, 0, 80, 0.8), rgba(121, 40, 202, 0.8));
    border-color: #ff0050;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 0, 80, 0.5);
}

.status-selected-music-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.15), rgba(121, 40, 202, 0.15));
    border: 1px solid rgba(0, 255, 204, 0.4);
    border-radius: 12px;
    padding: 8px 12px;
    gap: 8px;
    animation: fadeInMusicCard 0.25s ease-out;
}

@keyframes fadeInMusicCard {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.music-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.music-card-disc {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111;
    border: 1.5px solid #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    animation: rotateDisc 4s linear infinite;
    flex-shrink: 0;
}

.music-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.music-card-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.music-card-tag {
    font-size: 0.68rem;
    color: #00ffcc;
    font-weight: 600;
}

.music-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.music-card-preview-btn {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-card-preview-btn:hover {
    border-color: #00ffcc;
    color: #00ffcc;
}

.music-card-remove-btn {
    background: rgba(255, 0, 80, 0.2);
    border: 1px solid rgba(255, 0, 80, 0.4);
    color: #ff0050;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-card-remove-btn:hover {
    background: #ff0050;
    color: #ffffff;
}

/* ============================================================
   Viewer Music Badge & Equalizer Pill (Visible on All Media & Videos)
============================================================ */
.status-viewer-music-pill {
    position: absolute;
    top: max(84px, calc(env(safe-area-inset-top) + 70px));
    left: 14px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(8, 8, 16, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 255, 204, 0.6) !important;
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 255, 204, 0.35);
    animation: musicPillSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: calc(100% - 28px);
}

.status-viewer-music-pill.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

@keyframes musicPillSlideIn {
    from { opacity: 0; transform: translateY(-12px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.status-music-pill-text {
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    max-width: 240px;
}

.status-music-marquee {
    display: inline-block;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.status-music-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
    flex-shrink: 0;
}

.eq-bar {
    width: 2.5px;
    border-radius: 2px;
    background: #00ffcc;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.9);
    animation: pulseEqBar 0.8s ease-in-out infinite alternate;
}

.status-viewer-music-pill.is-paused .eq-bar,
.status-selected-music-card .eq-bar {
    animation-play-state: running;
}

.status-viewer-music-pill.is-paused .eq-bar {
    animation-play-state: paused;
    height: 3px !important;
}

.eq-1 { height: 6px; animation-delay: 0.1s; }
.eq-2 { height: 14px; animation-delay: 0.3s; }
.eq-3 { height: 9px; animation-delay: 0.5s; }
.eq-4 { height: 12px; animation-delay: 0.2s; }

@keyframes pulseEqBar {
    0% { height: 3px; }
    50% { height: 14px; }
    100% { height: 6px; }
}

/* ============================================================
   Mobile Responsiveness & Smooth Touch Optimization
============================================================ */
@media (max-width: 640px) {
    .status-modal-sheet {
        width: 100%;
        max-height: 92vh;
        padding: 14px 16px env(safe-area-inset-bottom, 20px) 16px;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        gap: 12px;
    }

    .status-selected-chips-scroll {
        padding: 4px 2px 8px 2px;
        gap: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .status-preview-chip {
        width: 86px;
        height: 122px;
        border-radius: 14px;
    }

    .status-music-presets-grid {
        gap: 5px;
    }

    .music-preset-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .status-music-target-bar {
        padding: 6px 10px;
    }

    .status-viewer-music-pill {
        top: max(78px, calc(env(safe-area-inset-top) + 64px));
        left: 12px;
        padding: 5px 12px 5px 9px;
    }

    .status-music-pill-text {
        max-width: 180px;
    }

    .status-music-marquee {
        font-size: 0.78rem;
    }
}

/* ============================================================
   Live Camera Viewfinder Modal
============================================================ */
.status-camera-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cameraModalFadeIn 0.25s ease;
}

.status-camera-modal.hidden {
    display: none !important;
}

@keyframes cameraModalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.status-camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 100vh;
    background: #000000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#status-camera-stream-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform-origin: center center;
    transition: transform 0.15s ease-out;
}

/* Tap to Focus & Object Tagging Layer */
.status-camera-tag-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: crosshair;
}

.status-camera-focus-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid #00ffcc;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.3);
    pointer-events: none;
    box-shadow: 0 0 16px rgba(0, 255, 204, 0.7);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.status-camera-focus-ring.pulse {
    animation: cameraFocusPulse 0.4s ease forwards;
}

@keyframes cameraFocusPulse {
    0% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}

/* Object Tag Badge */
.status-camera-tag-badge {
    position: absolute;
    transform: translate(-10px, -18px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.85);
    border: 1.5px solid #00ffcc;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 255, 204, 0.4);
    z-index: 8;
    animation: tagPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tagPop {
    0% { transform: translate(-10px, -18px) scale(0.6); opacity: 0; }
    100% { transform: translate(-10px, -18px) scale(1); opacity: 1; }
}

.status-camera-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 6px #00ffcc;
}

.status-camera-tag-text {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-camera-tag-del {
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    margin-left: 2px;
}
.status-camera-tag-del:hover {
    color: #ff3b30;
}

/* Zoom Level Pill Controls */
.status-camera-zoom-pills {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.status-zoom-pill-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.status-zoom-pill-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.status-zoom-pill-btn.active {
    background: #00ffcc;
    color: #0b0f19;
    border-color: #00ffcc;
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.6);
    transform: scale(1.1);
}

.status-camera-top-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(16px, calc(env(safe-area-inset-top) + 12px)) 16px 12px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}

.status-cam-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.status-cam-btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

.status-camera-record-timer {
    background: rgba(255, 0, 80, 0.85);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 14px rgba(255, 0, 80, 0.6);
    animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.status-camera-mode-selector {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.status-cam-mode-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.status-cam-mode-tab.active {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
    background: rgba(0, 255, 204, 0.12);
}

.status-camera-bottom-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px max(24px, calc(env(safe-area-inset-bottom) + 16px)) 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.status-camera-shutter-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: transparent;
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.status-shutter-inner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-camera-shutter-btn:active .status-shutter-inner {
    transform: scale(0.88);
}

/* Video Mode Shutter */
.status-camera-shutter-btn.video-mode {
    border-color: #ff0050;
}

.status-camera-shutter-btn.video-mode .status-shutter-inner {
    background: #ff0050;
    box-shadow: 0 0 16px rgba(255, 0, 80, 0.6);
}

.status-camera-shutter-btn.is-recording .status-shutter-inner {
    border-radius: 8px;
    width: 28px;
    height: 28px;
    background: #ff0050;
    animation: shutterRecPulse 1s infinite alternate;
}

@keyframes shutterRecPulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 0, 80, 0.6); }
    100% { transform: scale(1.12); box-shadow: 0 0 24px rgba(255, 0, 80, 0.9); }
}

.status-cam-btn-gallery {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.status-cam-btn-gallery:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.25);
}

/* Primary Action Submit Button */
.status-submit-action-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff0050 0%, #ff0077 50%, #7928ca 100%);
    color: #ffffff;
    border: none;
    border-radius: 18px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(255, 0, 80, 0.45), 0 0 20px rgba(121, 40, 202, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 6px;
}

.status-submit-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 0, 80, 0.6), 0 0 25px rgba(121, 40, 202, 0.4);
    filter: brightness(1.06);
}

.status-submit-action-btn:active {
    transform: scale(0.98);
}

.status-submit-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Dedicated Roll-Camera-Action Page Container */
.status-upload-page-wrapper {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    padding: 14px 16px calc(90px + env(safe-area-inset-bottom, 20px)) 16px;
    box-sizing: border-box;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
}

.status-upload-page-card {
    background: linear-gradient(165deg, rgba(26, 26, 38, 0.96) 0%, rgba(14, 14, 22, 0.98) 100%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 22px 24px 22px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 0, 80, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .status-upload-page-wrapper {
        padding: 0 0 calc(90px + env(safe-area-inset-bottom, 20px)) 0;
        min-height: 100dvh;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .status-upload-page-card {
        padding: 20px 16px 24px 16px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        box-sizing: border-box;
    }
}

/* ============================================================
   Roll-Camera-Action Slider / Carousel Preview Styling
============================================================ */
.status-media-slider-container {
    position: relative;
    width: 100%;
    background: #0d0d12;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    margin: 4px 0 10px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.status-slider-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 380px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.status-slider-media-item {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: contain;
    object-position: center;
    background: #000000;
    display: block;
    margin: auto;
}

.status-slider-media-item[alt]:after,
.status-slider-thumb-img[alt]:after {
    display: none !important;
}

img.status-slider-media-item:not([src]),
img.status-slider-media-item[src=""],
img.status-slider-thumb-img:not([src]),
img.status-slider-thumb-img[src=""] {
    visibility: hidden;
}

.status-slider-counter-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 14px;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.status-slider-format-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 255, 204, 0.2);
    border: 1px solid rgba(0, 255, 204, 0.5);
    color: #00ffcc;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    z-index: 10;
}

.status-slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.status-slider-arrow-btn:hover {
    background: rgba(255, 0, 80, 0.8);
    border-color: #ff0050;
    transform: translateY(-50%) scale(1.1);
}

.status-slider-arrow-btn.btn-prev { left: 10px; }
.status-slider-arrow-btn.btn-next { right: 10px; }

.status-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.status-slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
}

.status-slider-dot.active {
    width: 18px;
    border-radius: 6px;
    background: #00ffcc;
    box-shadow: 0 0 8px #00ffcc;
}

.status-slider-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.status-slider-thumbs-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px;
    max-width: calc(100% - 110px);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.status-slider-thumb-item {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.2s ease;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #0f1016;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-slider-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.status-slider-thumb-img:not([src]),
.status-slider-thumb-img[src=""],
.status-slider-thumb-img[src="null"] {
    display: none !important;
}

.status-slider-media-item:not([src]),
.status-slider-media-item[src=""],
.status-slider-media-item[src="null"] {
    visibility: hidden;
}

.status-slider-thumb-vid-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.15), rgba(121, 40, 202, 0.25));
    font-size: 1.15rem;
    user-select: none;
}

.status-slider-thumb-item.active {
    border-color: #00ffcc;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.55);
}

.status-slider-actions {
    display: flex;
    gap: 8px;
}

.status-slider-btn-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-video-cover-picker-box {
    width: 100%;
    box-sizing: border-box;
    clear: both;
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(0, 255, 204, 0.06);
    border: 1px dashed rgba(0, 255, 204, 0.35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .status-video-cover-picker-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .status-video-cover-picker-box .cover-actions-group {
        justify-content: flex-end;
    }
}

/* Switch styling for comments/messages toggle */
.status-switch input:checked + .status-slider {
    background: linear-gradient(135deg, #00ffcc, #00bbf9) !important;
}

.status-switch input:checked + .status-slider:before {
    transform: translateX(20px);
    background-color: #000000;
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50%;
}

.preset-limit-btn:hover {
    background: rgba(0, 255, 204, 0.2) !important;
    border-color: #00ffcc !important;
    color: #00ffcc !important;
}

.btn-cover-action {
    transition: all 0.2s ease;
}
.btn-cover-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    filter: brightness(1.15);
}
.btn-cover-action:active {
    transform: translateY(0);
}
