/* ===== FLOATING PREVIEW POPOUT (NON-EDIT) ===== */
.popout-overlay {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popout-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.popout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.popout-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    padding: 18px 18px 22px 18px;
    width: min(calc(100vw - 64px), 340px);
    height: auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 501;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    -webkit-user-select: none;
}

.popout-overlay:not(.hidden) .popout-card {
    transform: scale(1);
}

.popout-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: background 0.2s, transform 0.2s;
    z-index: 502;
}

.popout-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.popout-slider-container {
    width: 100%;
    flex: 1;
    min-height: 0;
    margin-top: 18px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f9fafb;
    display: grid;
    align-items: center;
    justify-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.popout-slide {
    grid-area: 1 / 1;
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.popout-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.popout-slide.prev {
    transform: translateX(-100%);
}

.popout-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.popout-note-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    font-size: 1.15rem;
    font-family: var(--font-hand), monospace;
    line-height: 1.4;
    box-sizing: border-box;
    overflow-y: auto;
}

.popout-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    height: 12px;
}

.popout-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.popout-dot:hover {
    transform: scale(1.2);
}

.popout-dot.active {
    background-color: #7c3aed;
    transform: scale(1.25);
}

/* Newly added item jump animation */
@keyframes itemJumpIn {
    0% {
        opacity: 0;
        transform: translate(0px, 300px) scale(0.2) rotate(calc((var(--final-rot-deg, 0) - 15) * 1deg));
    }
    65% {
        transform: translate(0px, -30px) scale(calc(var(--final-scale, 1) * 1.25)) rotate(calc((var(--final-rot-deg, 0) + 10) * 1deg));
    }
    85% {
        transform: translate(0px, 10px) scale(calc(var(--final-scale, 1) * 0.95)) rotate(calc((var(--final-rot-deg, 0) - 3) * 1deg));
    }
    100% {
        opacity: 1;
        transform: translate(0px, 0px) scale(var(--final-scale, 1)) rotate(calc(var(--final-rot-deg, 0) * 1deg));
    }
}

.item-jump-animation {
    animation: itemJumpIn 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

/* Floating FAB Action Bar */
.board-action-bar.floating-nav-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 16px 10px;
    margin: 0;
    width: 100%;
    max-width: none;
    background: #ffffff;
    box-shadow: none; /* Removing shadow to emphasize the stroke */
    box-sizing: border-box;
    z-index: 99999;
    flex-shrink: 0;
    position: relative;
    border-top: 1.5px solid var(--nav-pill-border); /* Overall wall stroke color matching top navbar */
    transition: padding 0.3s ease;
}

/* ─── Action bar collapse/expand toggle ─── */
.action-bar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #8b7aa0;
    transition: color 0.2s ease;
    margin-bottom: 2px;
}

.action-bar-toggle:hover {
    color: #5b4a6e;
}

.action-bar-toggle .toggle-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When collapsed, rotate chevron to point down */
.board-action-bar.collapsed .action-bar-toggle .toggle-chevron {
    transform: rotate(180deg);
}

/* Hide only the Ask Question / Send Music ghost buttons when collapsed (Owner view only) */
body:not(.visitor-wall-mode) .board-action-bar.collapsed .nav-ghost-btn {
    display: none !important;
}

.board-action-bar.collapsed .action-bar-toggle {
    margin-bottom: 0;
}

.board-action-bar.collapsed {
    padding: 4px 16px 4px !important;
    overflow: visible !important;
}

.board-action-bar.collapsed .action-bar-buttons {
    overflow: visible !important;
    min-height: 0;
}

/* Smooth expand/collapse transitions */
.nav-ghost-btn {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.3s ease,
                flex 0.3s ease,
                margin 0.3s ease;
}

/* Hide toggle in visitor mode — visitors always see the full bar */
body.visitor-wall-mode .action-bar-toggle {
    display: none !important;
}

.action-bar-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

body.visitor-wall-mode .action-bar-buttons {
    justify-content: center;
    gap: 12px;
}

/* Hide action bar background and other buttons during edit mode, but keep Done button alive */
body.board-editing-mode .board-action-bar {
    background: transparent !important;
    border: none !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

body.board-editing-mode .board-action-bar .nav-ghost-btn,
body.board-editing-mode .board-action-bar .board-cta-label,
body.board-editing-mode .board-action-bar .action-bar-toggle {
    display: none !important;
}

body.board-editing-mode .board-action-bar .nav-center-fab-wrapper {
    pointer-events: auto !important;
}

.nav-ghost-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #F7EEFF !important;
    border: 1.5px solid #C8A2F3 !important;
    color: #6B21A8 !important;
    cursor: pointer;
    flex: 1 1 0;
    min-width: 0;
    border-radius: 24px;
    padding: 11px 16px;
    font-weight: 700;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}

.nav-ghost-btn svg {
    stroke: #6B21A8 !important;
}

.nav-ghost-btn:active {
    background: #18181B !important;
    border-color: #18181B !important;
    color: #FFFFFF !important;
}

.nav-ghost-btn:active svg {
    stroke: #FFFFFF !important;
}

/* Format for visitor mode — Matching Share Link Lavender & Purple Stroke Style */
body.visitor-wall-mode .nav-ghost-btn {
    display: flex !important;
    background: #F7EEFF !important;
    color: #6B21A8 !important;
    border: 1.5px solid #C8A2F3 !important;
    border-radius: 24px !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08) !important;
}

.nav-ghost-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-center-fab-wrapper {
    flex: 0;
    width: 0;
    height: 0;
    overflow: visible;
    position: static;
}

body.visitor-wall-mode .nav-center-fab-wrapper {
    display: none !important;
}

.nav-center-fab {
    position: absolute;
    top: -16px; /* 16px above the action bar border */
    right: 16px; /* 16px from the right edge */
    left: auto;
    transform: translateY(-100%); /* Moves it up by its full height into the canvas area */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 100px;
    padding: 0 18px !important;
    height: 42px;
    border-radius: 21px;
    background: #191421 !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100000;
}

.nav-center-fab:hover {
    transform: translateY(calc(-100% - 2px)) scale(1.03);
    background: #251f30 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3) !important;
}

.nav-center-fab:active {
    transform: translateY(-100%) scale(0.97);
}

.nav-center-fab.owner-only-fab,
.nav-center-fab.active-fab {
    padding: 0 18px !important;
}

.nav-center-fab.active-fab {
    background: #7c3aed !important;
    color: #ffffff !important;
}

.nav-fab-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1px; /* tiny optical alignment */
}

/* Vertical Divider in Edit Wall Pill */
.nav-fab-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 2px 0 4px;
    display: inline-block;
}

/* Three Dots Button in Edit Wall Pill */
.nav-fab-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-fab-more-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.08);
}

.nav-fab-more-btn:active {
    transform: scale(0.92);
}

/* Hide divider and three dots while editing your wall (Done state) */
.nav-center-fab.active-fab .nav-fab-divider,
.nav-center-fab.active-fab .nav-fab-more-btn {
    display: none !important;
}

.nav-center-fab.visitor-only-fab {
    background: #111111;
}
.nav-center-fab.visitor-only-fab:hover {
    background: #222222;
}

body:not(.visitor-wall-mode) .nav-center-fab.visitor-only-fab {
    display: none !important;
}

body.visitor-wall-mode .nav-center-fab.owner-only-fab {
    display: none !important;
}

body.visitor-wall-mode #btn-share-wall,
body.visitor-wall-mode #layer-palette,
body.visitor-wall-mode #btn-open-items,
body.visitor-wall-mode #btn-open-pictures,
body.visitor-wall-mode #btn-open-text,
body.visitor-wall-mode #btn-open-folder,
.visitor-submit-mode .sheet-tab[data-tab="decor"],
.visitor-submit-mode .sheet-tab[data-tab="folder"],
.visitor-submit-mode #pane-decor,
.visitor-submit-mode #pane-folder {
    display: none !important;
}

body.visitor-wall-mode #board-profile-circle {
    cursor: default;
}

body.visitor-wall-mode .top-nav {
    display: none !important;
}

body.visitor-wall-mode .visitor-wall-header {
    display: grid !important;
}

body.visitor-wall-mode .board-visitor-frame,
body:not(.visitor-wall-mode) #screen-board:not(.edit-active) .board-visitor-frame {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    position: relative !important;
    width: min(var(--wall-frame-width), calc(100% - 36px)) !important;
    height: min(820px, calc(100dvh - 96px)) !important;
    margin: 6px auto 24px !important;
    background: #ffffff !important;
    border: 1.5px solid var(--nav-pill-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 0 24px rgba(84, 70, 100, 0.12), 0 10px 30px rgba(84, 70, 100, 0.14) !important;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

body.visitor-wall-mode .board-canvas-wrap,
body:not(.visitor-wall-mode) #screen-board:not(.edit-active) .board-canvas-wrap {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
}

body.visitor-wall-mode #board-canvas,
body:not(.visitor-wall-mode) #screen-board:not(.edit-active) #board-canvas {
    width: 100% !important;
    min-height: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: top center !important;
}

body.visitor-wall-mode .board-action-bar.floating-nav-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px 16px !important;
    background: #ffffff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1.5px solid var(--nav-pill-border) !important;
    border-radius: 0 0 17px 17px !important;
    z-index: 99999 !important;
}

body:not(.visitor-wall-mode) #screen-board:not(.edit-active) .board-action-bar.floating-nav-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px 10px;
    background: #ffffff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1.5px solid var(--nav-pill-border) !important;
    border-radius: 0 0 17px 17px !important;
    z-index: 99999 !important;
}

body.visitor-wall-mode #layer-palette,
body:not(.visitor-wall-mode) #screen-board:not(.edit-active) #layer-palette,
body.visitor-wall-mode .board-dock,
body:not(.visitor-wall-mode) #screen-board:not(.edit-active) .board-dock {
    display: none !important;
}

body:not(.visitor-wall-mode) #screen-board.edit-active .board-canvas-wrap {
    margin-top: 0 !important;
}





body.visitor-wall-mode #btn-edit-board,
body.visitor-wall-mode #btn-undo-board-edit {
    display: none !important;
}

body:not(.visitor-wall-mode) #btn-undo-board-edit:not(.hidden) {
    height: 32px !important;
    border-radius: 16px !important;
    background: #191421 !important;
    border: none !important;
    color: #ffffff !important;
    font-family: var(--font-ui) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 8px rgba(31, 24, 43, 0.2) !important;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

body:not(.visitor-wall-mode) #btn-undo-board-edit:not(:disabled):hover {
    background: #222222 !important;
    box-shadow: 0 6px 18px rgba(31, 24, 43, 0.3) !important;
    transform: translateY(-2px) !important;
}

.nav-center-fab.active-fab {
    background: #7c3aed !important; /* Vibrant purple to distinguish 'Done' */
}

.nav-center-fab.active-fab:hover {
    background: #6d28d9 !important; /* Darker purple on hover */
}

body.visitor-wall-mode .board-dock {
    display: none !important;
}

body.visitor-wall-mode .board-cta-label {
    display: block !important;
    font-family: var(--font-serif);
    font-size: 1.4rem !important;
    font-weight: 500;
    color: #111111 !important;
    margin: 0 0 12px 0 !important;
    text-align: center;
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.visitor-wall-mode .action-bar-group {
    flex: 1;
}

.visitor-submit-mode .sheet-tabs {
    grid-template-columns: repeat(2, 1fr);
}

.owner-direct-tool-mode .sheet-panel > .sheet-tabs,
.owner-direct-tool-mode #decor-subtabs {
    display: none !important;
}

.visitor-auth-panel {
    padding: 14px 22px 26px;
    text-align: center;
}

.visitor-auth-panel h2 {
    margin: 8px 0 8px;
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1;
}

.visitor-auth-panel p {
    max-width: 300px;
    margin: 0 auto 18px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 0.86rem;
    line-height: 1.35;
}

.visitor-google-signin,
.visitor-apple-signin {
    margin-top: 0;
}

.visitor-auth-cancel {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

/* Profile picture expand overlay specific styles */
.profile-expand-content {
    position: relative;
    z-index: 501;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.3);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.popout-overlay:not(.hidden) .profile-expand-content {
    transform: scale(1);
    opacity: 1;
}

.profile-expand-circle-ring {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid transparent;
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-expand-circle-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Item expand overlay specific styles */
.item-expand-content-wrap {
    position: relative;
    z-index: 501;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transform: scale(0.3);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.popout-overlay:not(.hidden) .item-expand-content-wrap {
    transform: scale(1);
    opacity: 1;
}

.expanded-item-card {
    width: min(88vw, 420px);
    max-height: min(78vh, 640px);
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.expanded-picture-card {
    width: min(calc(100vw - 64px), 340px);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.expanded-picture-card img {
    width: 100%;
    max-height: calc(min(78vh, 640px) - 68px);
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #f8fafc;
}

.expanded-picture-caption {
    width: 100%;
    text-align: center;
    font-family: var(--font-hand), monospace;
    font-size: clamp(1rem, 3.5vw, 1.35rem);
    line-height: 1.1;
    color: #111827;
    overflow-wrap: anywhere;
}

.expanded-qa-card {
    width: min(calc(100vw - 64px), 340px);
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(12px, 3vh, 20px);
    background: transparent !important;
    box-shadow: none !important;
}

.expanded-qa-card .item-qa {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

.expanded-qa-card .item-qa-question {
    font-size: clamp(1.05rem, 4.5vw, 1.55rem) !important;
    padding: clamp(12px, 3vw, 18px) !important;
    line-height: 1.22 !important;
}

.expanded-qa-card .item-qa-answer {
    font-size: clamp(1.1rem, 4.8vw, 1.7rem) !important;
    padding: clamp(12px, 3vw, 18px) !important;
    line-height: 1.22 !important;
}

.expanded-music-card {
    width: min(88vw, 360px);
    max-height: min(78vh, 620px);
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.expanded-music-card .item-cd-wrap {
    transform: none !important;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.expanded-music-card .item-music-note {
    transform: none !important;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
}

.expanded-music-card .item-vinyl-player {
    width: min(35vw, 120px);
    height: min(35vw, 120px);
    margin: 0;
    flex-shrink: 0;
    display: block;
}

.expanded-music-card .item-cd-song-title,
.expanded-music-card .item-cd-sender-note,
.expanded-music-card .item-cd-reply-bubble,
.expanded-music-card .music-note-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
}

.expanded-music-card .item-cd-song-title {
    font-size: clamp(0.95rem, 4vw, 1.25rem) !important;
    text-align: left !important;
}

.expanded-music-card .item-cd-wrap a:not(.music-note-play),
.expanded-music-card .item-music-note a:not(.music-note-play) {
    width: fit-content !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: inline-flex !important;
    justify-content: flex-start;
    white-space: normal !important;
    text-align: left;
    line-height: 1.15;
}

.expanded-music-card .item-cd-wrap a span,
.popout-cd-content .item-cd-wrap a span,
.expanded-music-card .item-music-note a span {
    white-space: normal;
    overflow-wrap: anywhere;
}

.item-expand-content-wrap .board-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.item-expand-content-wrap .board-item.item-cd-wrap {
    box-shadow: none !important;
    background: transparent !important;
}

.item-expand-content-wrap .board-item.item-cd-wrap .item-vinyl-player {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
}

/* ─── Expand Overlay Action Bar ─── */
.expanded-action-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    animation: shareBarFadeIn 0.3s ease 0.15s both;
}

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

.btn-expand-share, .btn-expand-like {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #374151;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-expand-share:hover, .btn-expand-like:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-expand-share:active, .btn-expand-like:active {
    transform: scale(0.95);
}

.btn-expand-share svg, .btn-expand-like svg {
    flex-shrink: 0;
}

.btn-expand-like svg {
    fill: currentColor;
}
.btn-expand-like.liked {
    color: #e11d48;
}

/* Folder Organizer New Add Buttons */
.btn-folder-add-new {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1f182b;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(31, 24, 43, 0.15);
    transition: transform 0.15s ease, background 0.15s ease;
}

.btn-folder-add-new:hover {
    background: #312645;
    transform: translateY(-2px);
}

/* ─── Social Share Modal UI ─── */
.social-share-selector {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: center;
}

.social-icon-btn {
    background: #f0f0f0;
    border: 2px solid transparent;
    color: #999;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-icon-btn svg {
    width: 28px;
    height: 28px;
}

.social-icon-btn:hover {
    background: #e5e5e5;
    color: #666;
}

/* Active Icon States */
.social-icon-btn.active[data-platform="ig"] {
    background: #fff;
    color: #E1306C;
    border-color: #E1306C;
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.2);
}

.social-icon-btn.active[data-platform="snap"] {
    background: #fff;
    color: #FFFC00;
    border-color: #FFFC00;
    /* Snap yellow needs a darker shadow for contrast or a black outline */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    -webkit-text-stroke: 1px #000;
}
.social-icon-btn.active[data-platform="snap"] svg {
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
}

.social-icon-btn.active[data-platform="wa"] {
    background: #fff;
    color: #25D366;
    border-color: #25D366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.social-icon-btn.active[data-platform="x"] {
    background: #fff;
    color: #000000;
    border-color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dynamic Share Button Styles */
.btn-share-ig {
    background: #0f0f0f !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-share-snap {
    background: #FFFC00 !important;
    color: #000000 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-share-wa {
    background: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-share-x {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-share-ig:hover,
.btn-share-snap:hover,
.btn-share-wa:hover,
.btn-share-x:hover {
    transform: translateY(-1px);
}

.btn-share-ig:active,
.btn-share-snap:active,
.btn-share-wa:active,
.btn-share-x:active {
    transform: translateY(1px);
}
