/* ==========================================================================
   LUXURY DARK GLASS — BLACK / WHITE / AMBIENT COLOUR
   ========================================================================== */

.publisher-overlay-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(0, 255, 150, 0.09),
            transparent 30%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(90, 50, 255, 0.10),
            transparent 32%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(0, 160, 255, 0.08),
            transparent 35%
        ),
        #020203;

    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);

    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.publisher-overlay-modal.open {
    display: flex;
}


/* ==========================================================================
   BACKGROUND AMBIENT GLASS LIGHT
   ========================================================================== */

.publisher-overlay-modal::before,
.publisher-overlay-modal::after {
    content: "";
    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(110px);

    opacity: 0.18;

    animation: ambientMove 12s ease-in-out infinite alternate;
}

.publisher-overlay-modal::before {
    background: #00ff95;

    top: -80px;
    left: -80px;
}

.publisher-overlay-modal::after {
    background: #6c4cff;

    right: -100px;
    bottom: -80px;

    animation-delay: -6s;
}

@keyframes ambientMove {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(50px, 30px, 0) scale(1.15);
    }

    100% {
        transform: translate3d(-30px, 60px, 0) scale(0.95);
    }
}


/* ==========================================================================
   MAIN GLASS CARD
   ========================================================================== */

.luxury-creator-card {
    width: 100%;
    max-width: 420px;

    height: 100%;
    max-height: calc(100% - 60px);

    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    isolation: isolate;

    border-radius: 28px;

    border: 1px solid rgba(255,255,255,0.13);

    /*
       NO BLUE BACKGROUND HERE
    */
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.075),
            rgba(255,255,255,0.025)
        );

    backdrop-filter: blur(35px) saturate(130%);
    -webkit-backdrop-filter: blur(35px) saturate(130%);

    box-shadow:
        0 30px 100px rgba(0,0,0,0.90),
        inset 0 1px 1px rgba(255,255,255,0.15);

    margin-bottom: 60px !important;

    transition:
        box-shadow 0.35s ease,
        transform 0.35s ease;
}


/* ==========================================================================
   GLASS CARD INNER LIGHT
   ========================================================================== */

.luxury-creator-card::before {
    content: "";

    position: absolute;
    inset: 1px;

    border-radius: 27px;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(255,255,255,0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 100% 80%,
            rgba(255,255,255,0.035),
            transparent 30%
        ),
        rgba(5,5,7,0.70);

    z-index: -1;

    pointer-events: none;
}


/* ==========================================================================
   SUBTLE GLASS EDGE
   ========================================================================== */

.luxury-creator-card::after {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;

    width: 84%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.35),
            transparent
        );

    opacity: 0.7;

    pointer-events: none;

    z-index: 100;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.creator-header-bar {
    height: 56px;
    min-height: 56px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 0 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.015)
        );

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: relative;

    z-index: 5;
}

.creator-header-bar h2 {
    font-size: 16px;
    font-weight: 700;

    color: #ffffff;

    letter-spacing: -0.2px;
}

.creator-header-bar i {
    font-size: 18px;

    color: rgba(255,255,255,0.85);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.creator-header-bar i:hover {
    opacity: 0.65;
}

.creator-header-bar i:active {
    transform: scale(0.85);
}


/* ==========================================================================
   HEADER BUTTON
   ========================================================================== */

.stage-nav-btn {
    background:
        rgba(255,255,255,0.045);

    border: 1px solid rgba(255,255,255,0.10);

    color: #ffffff;

    font-weight: 700;
    font-size: 14px;

    padding: 7px 13px;

    border-radius: 12px;

    cursor: pointer;

    backdrop-filter: blur(15px);

    transition: 0.2s ease;
}

.stage-nav-btn:hover {
    background: rgba(255,255,255,0.10);

    border-color: rgba(255,255,255,0.20);
}


/* ==========================================================================
   MEDIA VIEWPORT
   ========================================================================== */

.creator-media-viewport {
    flex: 1;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.035),
            rgba(0,0,0,0.96) 72%
        );

    position: relative;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;
}


/* Ambient light behind image/video */

.creator-media-viewport::before {
    content: "";

    position: absolute;

    width: 65%;
    height: 65%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(100,80,255,0.08),
            transparent 70%
        );

    filter: blur(60px);

    pointer-events: none;
}


/* ==========================================================================
   MEDIA
   ========================================================================== */

.creator-media-viewport img,
.creator-media-viewport video {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition:
        filter 0.3s ease,
        transform 0.3s ease;
}


/* ==========================================================================
   CAROUSEL BUTTONS
   ========================================================================== */

.carousel-nav-btn {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background:
        rgba(0,0,0,0.45);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.15);

    color: #ffffff;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 10;

    box-shadow:
        0 8px 25px rgba(0,0,0,0.4),
        inset 0 1px rgba(255,255,255,0.12);

    transition: 0.2s ease;
}

.carousel-nav-btn:hover {
    background: rgba(255,255,255,0.10);

    transform:
        translateY(-50%)
        scale(1.06);
}

.carousel-nav-btn.prev {
    left: 12px;
}

.carousel-nav-btn.next {
    right: 12px;
}


/* ==========================================================================
   DOTS
   ========================================================================== */

.sequence-dots-indicator {
    position: absolute;

    bottom: 12px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 6px;

    z-index: 10;
}

.seq-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: rgba(255,255,255,0.35);

    transition: all 0.25s ease;
}

.seq-dot.active {
    background: #ffffff;

    width: 16px;

    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(255,255,255,0.45);
}


/* ==========================================================================
   BOTTOM TOOLBAR
   ========================================================================== */

.editor-tools-strip {
    height: 74px;
    min-height: 74px;

    display: flex;

    justify-content: space-around;
    align-items: center;

    padding: 0 4px 10px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.045),
            rgba(0,0,0,0.48)
        );

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    border-top: 1px solid rgba(255,255,255,0.08);

    position: relative !important;

    z-index: 25 !important;
}

.tool-btn {
    flex: 1;

    background: transparent;

    border: none;

    color: rgba(255,255,255,0.48);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    font-size: 17px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

.tool-btn span {
    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.2px;
}

.tool-btn.active,
.tool-btn:hover {
    color: #ffffff;

    filter:
        drop-shadow(
            0 0 7px
            rgba(255,255,255,0.25)
        );
}

.tool-btn:active {
    transform: scale(0.88);
}


/* ==========================================================================
   GLASS TOOL DRAWER
   ========================================================================== */

.glass-tool-drawer {
    position: absolute;

    bottom: 134px !important;

    left: 0;

    width: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(30,30,34,0.78),
            rgba(5,5,7,0.94)
        );

    backdrop-filter: blur(30px) saturate(140%);
    -webkit-backdrop-filter: blur(30px) saturate(140%);

    border-top: 1px solid rgba(255,255,255,0.14);

    padding: 16px;

    display: none;

    flex-direction: column;

    gap: 12px;

    z-index: 20;

    box-shadow:
        0 -20px 55px rgba(0,0,0,0.55),
        inset 0 1px rgba(255,255,255,0.08);

    animation:
        slideUpSheet
        0.25s
        cubic-bezier(0.1,0.9,0.2,1);
}

.glass-tool-drawer.open {
    display: flex;
}

@keyframes slideUpSheet {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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


/* ==========================================================================
   DRAWER OPTIONS
   ========================================================================== */

.drawer-options-row {
    display: flex;

    gap: 12px;

    overflow-x: auto;

    padding-bottom: 4px;

    scrollbar-width: none;
}

.drawer-options-row::-webkit-scrollbar {
    display: none;
}

.filter-preset-pill {
    padding: 8px 16px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.055);

    border: 1px solid rgba(255,255,255,0.10);

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    backdrop-filter: blur(15px);

    transition: 0.2s ease;
}

.filter-preset-pill:hover {
    background:
        rgba(255,255,255,0.10);
}

.filter-preset-pill.active {
    background:
        linear-gradient(
            135deg,
            #00ff95,
            #6c4cff
        );

    border-color: transparent;

    box-shadow:
        0 0 18px rgba(0,255,149,0.18);
}


/* ==========================================================================
   STAGE 2
   ========================================================================== */

.stage-scroll-body {
    flex: 1;

    overflow-y: auto;

    padding: 18px 18px 70px;

    display: flex;

    flex-direction: column;

    gap: 16px;
}


/* ==========================================================================
   CAPTION GLASS
   ========================================================================== */

.caption-row-wrapper {
    display: flex;

    gap: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.065),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.09);

    border-radius: 16px;

    padding: 12px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        inset 0 1px rgba(255,255,255,0.06);
}

.mini-media-thumbnail {
    width: 68px;
    height: 68px;

    border-radius: 12px;

    background-color: #111113;

    background-size: cover;

    background-position: center;

    flex-shrink: 0;

    border: 1px solid rgba(255,255,255,0.13);

    box-shadow:
        0 6px 20px rgba(0,0,0,0.35);
}

.caption-row-wrapper textarea {
    flex: 1;

    background: transparent;

    border: none;

    outline: none;

    color: #ffffff;

    font-size: 13.5px;

    resize: none;
}

.caption-row-wrapper textarea::placeholder {
    color: rgba(255,255,255,0.32);
}


/* ==========================================================================
   LIVE TEXT
   ========================================================================== */

.live-text-overlay-badge {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    font-size: 22px;

    font-weight: 800;

    color: #ffffff;

    text-shadow:
        0 2px 10px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.5);

    background:
        rgba(0,0,0,0.38);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    padding: 8px 18px;

    border-radius: 12px;

    border: 1px solid rgba(255,255,255,0.18);

    pointer-events: none;

    z-index: 15;

    text-align: center;

    max-width: 80%;

    word-break: break-word;
}


/* ==========================================================================
   GLASS PICKER MODALS
   ========================================================================== */

.glass-modal-overlay {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background:
        rgba(0,0,0,0.70);

    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);

    z-index: 999999;

    display: flex;

    justify-content: center;

    align-items: flex-end;
}

.glass-modal-card {
    width: 100%;

    max-height: 80vh;

    background:
        linear-gradient(
            145deg,
            rgba(30,30,34,0.88),
            rgba(6,6,8,0.96)
        );

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border-top: 1px solid rgba(255,255,255,0.15);

    border-top-left-radius: 24px;
    border-top-right-radius: 24px;

    display: flex;

    flex-direction: column;

    box-shadow:
        0 -15px 60px rgba(0,0,0,0.8),
        inset 0 1px rgba(255,255,255,0.08);

    overflow: hidden;

    animation:
        slideUpModal
        0.25s
        ease-out;
}

@keyframes slideUpModal {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}


/* ==========================================================================
   MODAL HEADER
   ========================================================================== */

.glass-modal-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 16px 20px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.glass-modal-header h3 {
    font-size: 16px;

    font-weight: 700;

    color: #ffffff;
}


/* ==========================================================================
   SEARCH
   ========================================================================== */

.glass-search-box {
    padding: 12px 16px;

    position: relative;

    background:
        rgba(0,0,0,0.28);
}

.glass-search-box i {
    position: absolute;

    left: 28px;
    top: 24px;

    color: rgba(255,255,255,0.38);

    font-size: 14px;
}

.glass-search-box input {
    width: 100%;

    height: 40px;

    background:
        rgba(255,255,255,0.055);

    border: 1px solid rgba(255,255,255,0.10);

    border-radius: 12px;

    padding-left: 38px;
    padding-right: 14px;

    color: #ffffff;

    font-size: 13.5px;

    outline: none;

    backdrop-filter: blur(15px);
}

.glass-search-box input:focus {
    border-color:
        rgba(255,255,255,0.25);

    box-shadow:
        0 0 20px rgba(255,255,255,0.04);
}


/* ==========================================================================
   MODAL BODY
   ========================================================================== */

.glass-modal-body {
    flex: 1;

    overflow-y: auto;

    padding: 12px 16px;

    display: flex;

    flex-direction: column;

    gap: 10px;
}


/* ==========================================================================
   AUDIO ROW
   ========================================================================== */

.audio-item-row {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 10px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.035);

    border: 1px solid rgba(255,255,255,0.06);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

    backdrop-filter: blur(15px);
}

.audio-item-row:hover {
    background:
        rgba(255,255,255,0.075);

    transform: translateY(-1px);
}

.audio-cover-art {
    width: 44px;
    height: 44px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #00ff95,
            #6c4cff
        );

    display: flex;

    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 18px;
}

.audio-meta-info {
    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.audio-meta-info strong {
    font-size: 14px;

    color: #ffffff;
}

.audio-meta-info span {
    font-size: 12px;

    color: rgba(255,255,255,0.55);
}

.play-preview-icon {
    font-size: 20px;

    color: #ffffff;
}


/* ==========================================================================
   LOCATION + TAG
   ========================================================================== */

.location-item-row,
.tag-suggestion-user-row {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 10px 12px;

    border-radius: 12px;

    background:
        rgba(255,255,255,0.035);

    border: 1px solid rgba(255,255,255,0.06);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;

    backdrop-filter: blur(15px);
}

.location-item-row:hover,
.tag-suggestion-user-row:hover {
    background:
        rgba(255,255,255,0.075);

    transform: translateY(-1px);
}

.tag-suggestion-avatar {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background-color: #202024;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: bold;

    font-size: 13px;

    color: #ffffff;

    background-size: cover;

    background-position: center;

    border: 1px solid rgba(255,255,255,0.12);
}


/* ==========================================================================
   60PX ELEVATION LOCK
   ========================================================================== */

.publisher-overlay-modal .luxury-creator-card,
.luxury-creator-card {
    margin-bottom: 60px !important;

    max-height:
        calc(100% - 60px) !important;
}

.editor-tools-strip {
    margin-bottom: 0 !important;

    padding-bottom: 10px !important;

    position: relative !important;

    z-index: 25 !important;
}

.glass-tool-drawer {
    bottom: 134px !important;
}

.stage-scroll-body {
    padding-bottom: 70px !important;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .luxury-creator-card {
        width: 100vw;

        height: 100vh;

        max-width: none;

        border-radius:
            24px 24px 0 0;
    }

    .publisher-overlay-modal {
        align-items: flex-end;
    }
}
