/* ==========================================================================
   IGAutomate — Funnel & Auto-DM v2 (Full-Screen App · Option 2)
   Local Bundled Inter Variable WOFF2 (100% MV3 CSP compliant, zero Arial fallback)
   ========================================================================== */

@font-face {
    font-family: 'IGAInter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'IGAInter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Full-workspace modal overlay — keeps IGAutomate left sidebar & top bar 100% visible */
#modal-auto-responder {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    background: rgba(6, 0, 14, 0.85) !important;
    backdrop-filter: blur(6px) !important;
}

#modal-auto-responder,
#modal-auto-responder *,
#modal-auto-responder button,
#modal-auto-responder input,
#modal-auto-responder textarea,
#modal-auto-responder select,
#modal-dm-followers,
#modal-dm-followers *,
#modal-dm-followers button,
#modal-dm-followers input,
#modal-dm-followers textarea,
#modal-auto-post,
#modal-auto-post *,
#modal-auto-post button,
#modal-auto-post input,
#modal-auto-post textarea,
#modal-auto-post select,
#sentinel-funnels-summary,
#sentinel-funnels-summary * {
    font-family: 'IGAInter', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Full-workspace App Container (keeps IGAutomate sidebar intact!) */
#modal-auto-responder .modal-content.fv2-modal {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background:
        radial-gradient(ellipse 65% 45% at 15% -5%, rgba(131, 58, 180, 0.28), transparent 65%),
        radial-gradient(ellipse 55% 40% at 88% 8%, rgba(225, 48, 108, 0.16), transparent 65%),
        linear-gradient(145deg, #0c011a 0%, #17042d 42%, #0d011c 100%) !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: fv2FadeIn 0.15s ease-out !important;
}

@keyframes fv2FadeIn {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: scale(1); }
}

/* Hide legacy header/footer inside fullscreen app shell (rebuilt inside .fv2-app-shell) */
#modal-auto-responder .modal-content.fv2-modal > .modal-header,
#modal-auto-responder .modal-content.fv2-modal > .modal-actions {
    display: none !important;
}

#modal-auto-responder .modal-body-scroll.fv2-scroll {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
}

#fv2-root {
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
}

/* SVG Icon helpers */
.fv2-ico {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.fv2-ico-sm {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ===================== LEFT ICON RAIL (OPTION 2) ===================== */
.fv2-rail {
    width: 68px;
    flex-shrink: 0;
    background: rgba(8, 1, 18, 0.65);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    backdrop-filter: blur(14px);
}

.fv2-rail-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fv2-brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: linear-gradient(135deg, #e1306c 0%, #833ab4 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.35);
    margin-bottom: 6px;
}

.fv2-rail-divider {
    width: 26px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
}

.fv2-rail-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(226, 216, 245, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.16s ease;
}

.fv2-rail-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.fv2-rail-btn.active {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.25), rgba(131, 58, 180, 0.35));
    border-color: rgba(225, 48, 108, 0.45);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(131, 58, 180, 0.28);
}

.fv2-rail-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e1306c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fv2-rail-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.fv2-cloud-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

/* ===================== MAIN WORKSPACE ===================== */
.fv2-main {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Bar */
/* Header Bar — clean, zero overlap */
.fv2-header {
    height: 50px;
    flex-shrink: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 1, 26, 0.55);
    backdrop-filter: blur(12px);
}

.fv2-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fv2-head-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    flex-shrink: 0;
}

.fv2-head-tab {
    padding: 5px 11px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: rgba(226, 216, 245, 0.65);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fv2-head-tab:hover {
    color: #ffffff;
}

.fv2-head-tab.active {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-weight: 600;
}

.fv2-cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(226, 216, 245, 0.7);
    white-space: nowrap;
}

.fv2-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.fv2-slot-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e9e2f8;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.fv2-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.fv2-auto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f3effb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.fv2-auto-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fv2-auto-toggle.active {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

/* Native Switch */
.fv2-sw {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    position: relative;
    transition: background 0.18s ease;
    flex-shrink: 0;
}

.fv2-sw::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.fv2-sw.on {
    background: #10b981;
}

.fv2-sw.on::after {
    transform: translateX(16px);
}

/* Primary CTA Button */
.fv2-btn-primary {
    padding: 9px 18px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #e1306c 0%, #833ab4 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 18px rgba(225, 48, 108, 0.32);
    transition: transform 0.14s ease, filter 0.14s ease;
    white-space: nowrap;
}

.fv2-btn-primary:hover:not(:disabled) {
    filter: brightness(1.09);
    transform: translateY(-1px);
}

.fv2-btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.fv2-btn-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #cfc6e4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fv2-btn-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Scrollable Workspace Body */
.fv2-canvas {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 20px 14px 20px;
}

.fv2-canvas::-webkit-scrollbar {
    width: 5px;
}

.fv2-canvas::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.25);
    border-radius: 999px;
}

.fv2-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* ===================== TOP VISUAL POSTS STRIP ===================== */
.fv2-media-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.fv2-media-title {
    font-size: 13px;
    font-weight: 500;
    color: #ddd6ee;
}

.fv2-media-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fv2-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #c8bddf;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 2px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.fv2-link-btn:hover {
    color: #ffffff;
}

.fv2-posts-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    max-height: 214px;
    overflow-y: auto;
    padding: 3px 4px 3px 2px;
}

.fv2-posts-strip::-webkit-scrollbar {
    width: 4px;
}

.fv2-posts-strip::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.28);
    border-radius: 999px;
}

.fv2-post-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.09);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.fv2-post-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
}

.fv2-post-tile.selected {
    border-color: #e1306c;
    box-shadow: 0 0 0 2px rgba(225, 48, 108, 0.35), 0 8px 20px rgba(225, 48, 108, 0.25);
}

.fv2-post-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fv2-post-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    background: linear-gradient(145deg, rgba(131, 58, 180, 0.22), rgba(15, 2, 32, 0.9));
    color: #c8bddf;
    font-size: 9.5px;
    font-weight: 600;
    text-align: center;
}

.fv2-post-type-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(8, 2, 18, 0.74);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.fv2-post-check {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: rgba(8, 2, 18, 0.58);
    border: 2px solid rgba(255, 255, 255, 0.78);
    color: transparent;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.fv2-post-tile.selected .fv2-post-check {
    background: linear-gradient(135deg, #e1306c, #833ab4);
    border-color: #ffffff;
    color: #ffffff;
}

.fv2-post-active-pill {
    position: absolute;
    bottom: 20px;
    left: 5px;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.92);
    color: #042f2e;
    font-size: 8.5px;
    font-weight: 700;
}

.fv2-post-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 6px 4px 6px;
    background: linear-gradient(to top, rgba(6, 0, 14, 0.92) 0%, transparent 100%);
    font-size: 9.5px;
    font-weight: 500;
    color: #f3effb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv2-empty-strip {
    grid-column: 1 / -1;
    padding: 22px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: #c8bddf;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

.fv2-empty-debug {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(200, 189, 223, 0.55);
    font-family: monospace !important;
}

/* Manual URL Bar */
.fv2-manual-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    max-width: 560px;
}

/* Auto-10 Active Banner */
.fv2-auto-banner {
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.13), rgba(131, 58, 180, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fv2-auto-banner-text {
    font-size: 13.5px;
    color: #eefbf5;
    line-height: 1.5;
}

.fv2-auto-thumbs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fv2-auto-thumb {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

/* ===================== GLASS RULE CARD (ONLY 3 FIELDS!) ===================== */
.fv2-glass-card {
    border-radius: 16px;
    padding: 14px 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.025) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Multi-post selector bar inside card */
.fv2-multi-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: nowrap;
}

.fv2-post-pills {
    display: flex;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
}

.fv2-post-pills::-webkit-scrollbar {
    height: 3px;
}

.fv2-post-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #d6cde8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fv2-post-pill img {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    object-fit: cover;
}

.fv2-post-pill.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #140526;
}

.fv2-post-pill.done:not(.active) {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    color: #ecfdf5;
}

.fv2-pill-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #10b981;
    color: #042f2e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.fv2-post-pill.active .fv2-pill-check {
    background: #10b981;
    color: #ffffff;
}

.fv2-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    flex-shrink: 0;
}

.fv2-post-pill.active .fv2-pill-dot {
    background: rgba(20, 5, 38, 0.35);
}

.fv2-seg {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    background: rgba(8, 1, 18, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.fv2-seg-btn {
    padding: 5px 12px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #a99dc2;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.fv2-seg-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* 2-Column Clean Field Grid inside Card */
.fv2-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.fv2-col {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.fv2-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fv2-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.fv2-label {
    font-size: 13.5px;
    font-weight: 500;
    color: #f3effb;
    white-space: nowrap;
}

.fv2-label-opt {
    font-size: 12px;
    font-weight: 400;
    color: rgba(226, 216, 245, 0.52);
    margin-left: 4px;
}

.fv2-field-tools {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.fv2-tool-btn {
    background: none;
    border: none;
    color: #d4b8ff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    transition: color 0.14s ease;
}

.fv2-tool-btn:hover {
    color: #ffffff;
}

.fv2-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 400;
    color: #d6cde8;
    cursor: pointer;
    white-space: nowrap;
}

.fv2-check-inline input {
    accent-color: #e1306c;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

/* Crisp Inputs & Textareas */
.fv2-input,
.fv2-textarea {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(8, 1, 18, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.fv2-input::placeholder,
.fv2-textarea::placeholder {
    color: rgba(200, 189, 223, 0.42);
    font-weight: 400;
}

.fv2-input:focus,
.fv2-textarea:focus {
    outline: none;
    border-color: #e1306c;
    background: rgba(8, 1, 18, 0.78);
    box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.16);
}

.fv2-textarea {
    resize: vertical;
    min-height: 54px;
}

.fv2-textarea-dm {
    flex: 1;
    min-height: 118px;
}

.fv2-var-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fv2-var-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.fv2-var-del {
    margin-top: 10px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fv2-var-del:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ffffff;
}

.fv2-any-info {
    padding: 12px 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cfc6e4;
    font-size: 13px;
}

.fv2-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.fv2-opts-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

/* ===================== ACTIVE FUNNELS VIEW ===================== */
.fv2-active-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fv2-funnel-card {
    padding: 16px 20px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.fv2-funnel-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.fv2-funnel-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfc6e4;
}

.fv2-funnel-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv2-funnel-sub {
    font-size: 12.5px;
    color: #bdb2d6;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fv2-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.fv2-status-dot.warn {
    background: #f59e0b;
}

.fv2-funnel-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #d6cde8;
}

.fv2-funnel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fv2-btn-soft {
    padding: 6px 11px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.14s ease;
}

.fv2-btn-soft:hover {
    background: rgba(255, 255, 255, 0.14);
}

.fv2-btn-danger-sm {
    padding: 7px 13px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.14s ease;
}

.fv2-btn-danger-sm:hover {
    background: rgba(239, 68, 68, 0.28);
    color: #ffffff;
}

/* ===================== PRINT 2 FIX: RESUME BAR & CLICKABLE PILL ===================== */
#welcome-dashboard {
    justify-content: flex-start !important;
    padding-top: 12px !important;
}

#welcome-dashboard .home-v2-shell {
    min-height: 0 !important;
    flex: 1 0 auto !important;
}

#sentinel-resume-bar {
    position: relative !important;
    z-index: 12 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 780px !important;
    margin: 0 auto 12px auto !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(131, 58, 180, 0.16)) !important;
    border: 1px solid rgba(16, 185, 129, 0.38) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

#btn-back-to-sentinel {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(52, 211, 153, 0.55) !important;
    color: #ecfdf5 !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    transition: all 0.16s ease !important;
}

#btn-back-to-sentinel:hover {
    background: rgba(16, 185, 129, 0.32) !important;
    border-color: #34d399 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

#sentinel-active-pill {
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 0.96 !important;
    padding: 6px 14px !important;
    background: rgba(11, 4, 24, 0.88) !important;
    border: 1px solid rgba(52, 211, 153, 0.45) !important;
    color: #a7f3d0 !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    transition: all 0.16s ease !important;
}

#sentinel-active-pill:hover {
    background: rgba(16, 185, 129, 0.24) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* ===================== PRINT 1 FIX: SENTINEL ACTIVE DASHBOARD ===================== */
#sentinel-dashboard {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 20px 44px 20px !important;
    box-sizing: border-box !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background:
        radial-gradient(ellipse 65% 45% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 72%),
        linear-gradient(180deg, #0c011a 0%, #140328 100%) !important;
}

#sentinel-dashboard::-webkit-scrollbar {
    width: 6px;
}

#sentinel-dashboard::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.28);
    border-radius: 999px;
}

#sentinel-dashboard > div {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    padding: 18px 22px 20px !important;
    max-width: 780px !important;
    margin: 0 auto !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45) !important;
}

/* Compact Dashboard Header & Banner */
.fv2-dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fv2-dash-title-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.fv2-dash-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.fv2-dash-status-row #sentinel-mode-banner {
    flex: 1 1 320px !important;
    margin: 0 !important;
    max-width: none !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 9px 14px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
}

.fv2-dash-status-row #sentinel-next-action-box {
    min-width: 118px !important;
    padding: 7px 14px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

#sentinel-dashboard #sentinel-timer-countdown {
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #f472b6, #c084fc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.fv2-dash-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
}

.fv2-dash-kpi-row > div {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 13px !important;
    padding: 11px 14px !important;
}

.fv2-dash-kpi-row #sentinel-stat-scans,
.fv2-dash-kpi-row #sentinel-stat-replies,
.fv2-dash-kpi-row #sentinel-stat-dms {
    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

/* Dashboard Active Funnels Mini List */
#sentinel-funnels-summary {
    margin: 0 auto 14px auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.fv2-dash-item {
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fv2-dash-item:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(192, 132, 252, 0.25);
}

.fv2-dash-thumb {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfc6e4;
}

.fv2-dash-meta {
    min-width: 0;
    flex: 1;
}

.fv2-dash-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv2-dash-item-sub {
    font-size: 11.5px;
    color: rgba(214, 205, 232, 0.72);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.fv2-dash-kw-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(192, 132, 252, 0.26);
    color: #e9d5ff;
    font-weight: 500;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fv2-dash-err-tag {
    color: #fbbf24;
    font-weight: 500;
}

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

.fv2-dash-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.fv2-dash-footer #btn-stop-sentinel-dash {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* ==========================================================================
   IGAutomate — DM para Novos Seguidores v2 (Full-Workspace Royal-Violet Glass)
   ========================================================================== */

#modal-dm-followers {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    background: rgba(6, 0, 14, 0.85) !important;
    backdrop-filter: blur(6px) !important;
}

#modal-dm-followers .modal-content.fdm2-modal {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background:
        radial-gradient(ellipse 65% 45% at 15% -5%, rgba(131, 58, 180, 0.28), transparent 65%),
        radial-gradient(ellipse 55% 40% at 88% 8%, rgba(225, 48, 108, 0.16), transparent 65%),
        linear-gradient(145deg, #0c011a 0%, #17042d 42%, #0d011c 100%) !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: fv2FadeIn 0.15s ease-out !important;
}

#modal-dm-followers .modal-content.fdm2-modal > .modal-header,
#modal-dm-followers .modal-content.fdm2-modal > .modal-actions {
    display: none !important;
}

#modal-dm-followers .modal-body-scroll.fdm2-scroll {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
}

#fdm2-root,
.fdm2-shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.fdm2-header-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.28), rgba(131, 58, 180, 0.36));
    border: 1px solid rgba(225, 48, 108, 0.42);
    color: #f5d0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fdm2-cloud-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #a7f3d0;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.fdm2-workspace {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

.fdm2-workspace::-webkit-scrollbar,
.fdm2-var-list::-webkit-scrollbar,
#dm-followers-dashboard::-webkit-scrollbar {
    width: 6px;
}

.fdm2-workspace::-webkit-scrollbar-thumb,
.fdm2-var-list::-webkit-scrollbar-thumb,
#dm-followers-dashboard::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.28);
    border-radius: 999px;
}

.fdm2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(265px, 1fr);
    gap: 14px;
    align-items: stretch;
    flex: 1 1 auto;
    min-height: 0;
}

@media (max-width: 780px) {
    .fdm2-grid {
        grid-template-columns: 1fr;
    }
}

.fdm2-editor-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 16px !important;
    min-height: 0;
}

.fdm2-var-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-right: 2px;
}

.fdm2-var-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
}

.fdm2-var-list:has(.fdm2-textarea.single) .fdm2-var-item {
    flex: 1 1 auto;
}

.fdm2-var-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fdm2-var-badge {
    font-size: 11px;
    font-weight: 600;
    color: #d8b4fe;
    letter-spacing: 0.01em;
}

.fdm2-var-remove {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.14s ease;
}

.fdm2-var-remove:hover {
    background: rgba(239, 68, 68, 0.24);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ffffff;
}

.fdm2-textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 68px;
    line-height: 1.5;
}

.fdm2-textarea.single {
    min-height: 150px;
    flex: 1 1 auto;
    resize: none;
}

.fdm2-tip {
    margin: 0;
    font-size: 11.5px;
    color: rgba(214, 205, 232, 0.65);
    line-height: 1.4;
}

.fdm2-options-bar {
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* Right Side Column: IG Direct Live Preview + Compact Info */
.fdm2-side-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.fdm2-preview-card {
    padding: 13px 14px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fdm2-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fdm2-preview-user {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.fdm2-ig-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdm2-ig-avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #17042d;
    color: #f5d0fe;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fdm2-preview-user-meta {
    min-width: 0;
}

.fdm2-preview-handle {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdm2-preview-sub {
    font-size: 10.5px;
    color: rgba(214, 205, 232, 0.62);
    margin-top: 1px;
}

.fdm2-cycle-btn {
    padding: 4px 9px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
}

.fdm2-preview-stage {
    background: rgba(6, 1, 14, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 13px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    min-height: 92px;
    justify-content: center;
}

.fdm2-dm-bubble {
    max-width: 92%;
    padding: 9px 13px;
    border-radius: 16px 16px 4px 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 52%, #e1306c 100%);
    color: #ffffff;
    font-size: 12.5px;
    line-height: 1.45;
    word-break: break-word;
    text-align: left;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25);
}

.fdm2-dm-bubble.empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: rgba(214, 205, 232, 0.5);
    box-shadow: none;
    align-self: stretch;
    border-radius: 12px;
    text-align: center;
    font-style: italic;
}

.fdm2-preview-link {
    text-decoration: underline;
    color: #fde68a;
}

.fdm2-preview-meta-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: rgba(214, 205, 232, 0.52);
}

/* Info Card */
.fdm2-info-card {
    padding: 13px 14px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.fdm2-info-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(216, 180, 254, 0.8);
}

.fdm2-info-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.fdm2-info-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.fdm2-info-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.fdm2-info-ico.cloud {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.fdm2-info-ico.spark {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(192, 132, 252, 0.32);
    color: #d8b4fe;
}

.fdm2-info-ico.shield {
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(244, 114, 182, 0.3);
    color: #f472b6;
}

.fdm2-info-h {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.25;
}

.fdm2-info-p {
    font-size: 11px;
    color: rgba(214, 205, 232, 0.68);
    line-height: 1.38;
    margin-top: 2px;
}

/* ===================== FOLLOWER DM ACTIVE DASHBOARD v2 ===================== */
#dm-followers-dashboard {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 20px 44px 20px !important;
    box-sizing: border-box !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background:
        radial-gradient(ellipse 65% 45% at 50% 0%, rgba(168, 85, 247, 0.16), transparent 72%),
        linear-gradient(180deg, #0c011a 0%, #140328 100%) !important;
}

.fdm2-dash-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 18px !important;
    padding: 18px 22px 20px !important;
    max-width: 780px !important;
    margin: 0 auto !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45) !important;
    text-align: left;
}

.fdm2-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.85);
    animation: sentinelPulse 2.2s infinite alternate;
}

.fdm2-pulse-dot.checking {
    background: #a855f7;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.85);
}

.fdm2-pulse-dot.local {
    background: #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.85);
}

.fdm2-pulse-dot.warn {
    background: #f59e0b;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.85);
}

.fdm2-dash-title {
    font-size: 15.5px;
    font-weight: 650;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.fdm2-dash-subtitle {
    font-size: 12px;
    color: rgba(214, 205, 232, 0.72);
    margin-top: 2px;
}

.fdm2-mode-banner {
    flex: 1 1 320px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.42;
    border: 1px solid rgba(251, 191, 36, 0.36);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(245, 158, 11, 0.1));
    color: #fef3c7;
}

.fdm2-banner-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fdm2-banner-sub {
    display: inline-block;
    margin-top: 2px;
    font-size: 11.5px;
    color: rgba(254, 243, 199, 0.85);
}

.fdm2-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.28);
    border-top-color: #fbbf24;
    display: inline-block;
    animation: fdm2Spin 0.8s linear infinite;
}

@keyframes fdm2Spin {
    to { transform: rotate(360deg); }
}

.fdm2-mode-banner.cloud {
    border-color: rgba(52, 211, 153, 0.38);
    background: rgba(16, 185, 129, 0.12);
    color: #d1fae5;
}

.fdm2-mode-banner.local {
    border-color: rgba(56, 189, 248, 0.38);
    background: rgba(14, 165, 233, 0.12);
    color: #e0f2fe;
}

.fdm2-mode-banner.warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.14);
    color: #fef3c7;
}

.fdm2-timer-box {
    min-width: 118px;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fdm2-timer-label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(214, 205, 232, 0.62);
    text-transform: uppercase;
    margin-bottom: 2px;
}

#dm-followers-dashboard #dm-followers-timer-countdown {
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #f472b6, #c084fc) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.fdm2-kpi-card {
    text-align: center;
}

.fdm2-kpi-val {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    color: #ffffff;
}

.fdm2-kpi-val.dms {
    color: #f472b6;
}

.fdm2-kpi-val.queue {
    color: #c084fc;
}

.fdm2-kpi-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(214, 205, 232, 0.62);
    text-transform: uppercase;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.fdm2-active-msg-box {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.fdm2-active-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.fdm2-active-msg-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fdm2-msg-ok-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.34);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 600;
}

.fdm2-check-mark {
    font-weight: 700;
    color: #34d399;
}

.fdm2-active-msg-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(214, 205, 232, 0.62);
}

.fdm2-active-msg-badge {
    display: none;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 600;
}

.fdm2-active-msg-text {
    font-size: 13px;
    color: #f5f3ff;
    line-height: 1.48;
    word-break: break-word;
}

/* Recent DMs History Card */
.fdm2-history-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 13px;
    padding: 11px 14px;
    margin-bottom: 16px;
}

.fdm2-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fdm2-history-count {
    display: none;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.16);
    color: #d8b4fe;
    font-size: 10.5px;
    font-weight: 700;
}

.fdm2-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 148px;
    overflow-y: auto;
    padding-right: 2px;
}

.fdm2-history-list::-webkit-scrollbar {
    width: 5px;
}

.fdm2-history-list::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.25);
    border-radius: 999px;
}

.fdm2-history-empty {
    font-size: 12px;
    color: rgba(214, 205, 232, 0.52);
    padding: 4px 0 2px;
}

.fdm2-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.fdm2-history-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fdm2-history-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fdm2-history-handle {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fdm2-history-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fdm2-history-tag {
    font-size: 11px;
    font-weight: 500;
    color: #a7f3d0;
}

.fdm2-history-time {
    font-size: 11px;
    color: rgba(214, 205, 232, 0.55);
    font-variant-numeric: tabular-nums;
}

.fdm2-btn-stop-dash {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
}

/* Resume Bar & Clickable Floating Pill */
body.dm-followers-active #dm-followers-active-pill { display: flex !important; }
body.dm-followers-active #dm-followers-resume-bar { display: block !important; }
body.dm-followers-active #btn-back-to-dm-followers { display: inline-flex !important; }

#dm-followers-resume-bar {
    position: relative !important;
    z-index: 12 !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    max-width: 780px !important;
    margin: 0 auto 12px auto !important;
    padding: 10px 16px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(225, 48, 108, 0.14)) !important;
    border: 1px solid rgba(192, 132, 252, 0.4) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

#btn-back-to-dm-followers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: rgba(168, 85, 247, 0.2) !important;
    border: 1px solid rgba(192, 132, 252, 0.55) !important;
    color: #faf5ff !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.16s ease !important;
}

#btn-back-to-dm-followers:hover {
    background: rgba(168, 85, 247, 0.34) !important;
    border-color: #d8b4fe !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.28) !important;
}

#dm-followers-active-pill {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 15px;
    z-index: 10000;
    pointer-events: auto !important;
    cursor: pointer !important;
    opacity: 0.96 !important;
    padding: 6px 14px !important;
    border-radius: 20px;
    background: rgba(11, 4, 24, 0.9) !important;
    border: 1px solid rgba(192, 132, 252, 0.48) !important;
    color: #e9d5ff !important;
    font-family: 'IGAInter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    transition: all 0.16s ease !important;
}

#dm-followers-active-pill:hover {
    background: rgba(168, 85, 247, 0.28) !important;
    border-color: #d8b4fe !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

.fdm2-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
    flex-shrink: 0;
}

/* Follower DM v2 enhancement block */
.fv2-dm-enhancer {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   IGAutomate — Auto Post & Fila v2 (Full-Workspace Royal-Violet Glass)
   ========================================================================== */

/* Oculta a barra superior de ações em massa enquanto Auto Post, Auto-Resposta ou DM Novos Seguidores estiverem abertos -> espaço fluido! */
body.ap2-open .global-controls-bar,
body.fv2-open .global-controls-bar,
body.fdm2-open .global-controls-bar,
body.v2-dash-open .global-controls-bar {
    display: none !important;
}

#modal-auto-post {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1000 !important;
    padding: 0 !important;
    background: rgba(6, 0, 14, 0.85) !important;
    backdrop-filter: blur(6px) !important;
}

#modal-auto-post .modal-content.ap2-modal {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background:
        radial-gradient(ellipse 65% 45% at 15% -5%, rgba(131, 58, 180, 0.28), transparent 65%),
        radial-gradient(ellipse 55% 40% at 88% 8%, rgba(225, 48, 108, 0.16), transparent 65%),
        linear-gradient(145deg, #0c011a 0%, #17042d 42%, #0d011c 100%) !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: fv2FadeIn 0.15s ease-out !important;
}

#modal-auto-post .modal-content.ap2-modal > .modal-header,
#modal-auto-post .modal-content.ap2-modal > .guidance-box,
#modal-auto-post .modal-content.ap2-modal > .modal-actions {
    display: none !important;
}

#modal-auto-post .modal-body-scroll.ap2-scroll {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
}

#ap2-root,
.ap2-shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ap2-head-tabs {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    gap: 2px;
}

.ap2-htab {
    padding: 5px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(214, 205, 232, 0.72);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.14s ease;
}

.ap2-htab:hover {
    color: #ffffff;
}

.ap2-htab.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(225, 48, 108, 0.28));
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2);
}

.ap2-q-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e1306c;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.ap2-btn-now-ghost {
    padding: 7px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(233, 213, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.ap2-btn-now-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.ap2-btn-schedule-hero {
    padding: 8px 17px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #e1306c 0%, #a855f7 55%, #7c3aed 100%) !important;
    box-shadow: 0 6px 22px rgba(225, 48, 108, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.16) inset !important;
}

.ap2-btn-schedule-hero:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 9px 26px rgba(225, 48, 108, 0.52), 0 0 0 1px rgba(255, 255, 255, 0.24) inset !important;
}

.ap2-workspace {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.ap2-banner {
    padding: 9px 13px;
    border-radius: 11px;
    font-size: 12.5px;
    font-weight: 500;
    flex-shrink: 0;
}

.ap2-banner.error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
}

.ap2-banner.success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #a7f3d0;
}

/* 2-Column Fluid Layout */
.ap2-new-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(255px, 0.92fr);
    gap: 14px;
    overflow: hidden;
}

@media (max-width: 820px) {
    .ap2-new-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

.ap2-composer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.ap2-composer-col::-webkit-scrollbar,
.ap2-queue-list::-webkit-scrollbar,
.ap2-thumbs-strip::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ap2-composer-col::-webkit-scrollbar-thumb,
.ap2-queue-list::-webkit-scrollbar-thumb,
.ap2-thumbs-strip::-webkit-scrollbar-thumb {
    background: rgba(192, 132, 252, 0.28);
    border-radius: 999px;
}

/* Format Switcher */
.ap2-format-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.ap2-fmt-pill {
    flex: 1;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(214, 205, 232, 0.78);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.ap2-fmt-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.ap2-fmt-pill.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(225, 48, 108, 0.24));
    border-color: rgba(216, 180, 254, 0.55);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.22);
}

.ap2-card {
    padding: 11px 13px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* Drag & Drop Media Zone */
.ap2-dropzone {
    border: 1.5px dashed rgba(192, 132, 252, 0.35);
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.06);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.16s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ap2-dropzone:hover,
.ap2-dropzone.dragover {
    border-color: #e1306c;
    background: rgba(225, 48, 108, 0.1);
}

.ap2-drop-ico {
    color: #d8b4fe;
    margin-bottom: 2px;
}

.ap2-drop-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
}

.ap2-drop-sub {
    font-size: 11px;
    color: rgba(214, 205, 232, 0.65);
}

/* Media Thumbnails Strip */
.ap2-thumbs-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 4px;
}

.ap2-thumb-item {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.14s ease;
}

.ap2-thumb-item.active {
    border-color: #e1306c;
    box-shadow: 0 0 0 2px rgba(225, 48, 108, 0.28);
}

.ap2-thumb-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap2-thumb-num {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(12, 1, 26, 0.82);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap2-thumb-vid-tag {
    position: absolute;
    bottom: 3px;
    left: 3px;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(12, 1, 26, 0.85);
    color: #f472b6;
    font-size: 8.5px;
    font-weight: 700;
}

.ap2-thumb-del {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(12, 1, 26, 0.85);
    color: #fca5a5;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap2-thumb-del:hover {
    background: #ef4444;
    color: #ffffff;
}

.ap2-thumb-order {
    position: absolute;
    bottom: 3px;
    right: 3px;
    display: flex;
    gap: 2px;
}

.ap2-thumb-order button {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: none;
    background: rgba(12, 1, 26, 0.82);
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ap2-thumb-add {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    border: 1.5px dashed rgba(192, 132, 252, 0.38);
    background: rgba(255, 255, 255, 0.03);
    color: #d8b4fe;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: all 0.14s ease;
}

.ap2-thumb-add:hover {
    background: rgba(168, 85, 247, 0.14);
    border-color: #d8b4fe;
    color: #ffffff;
}

.ap2-cover-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ap2-cover-preview-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.ap2-cover-thumb-916 {
    width: 32px;
    height: 50px;
    border-radius: 7px;
    object-fit: cover;
    border: 1.5px solid rgba(192, 132, 252, 0.65);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
    flex-shrink: 0;
}

.ap2-cover-slot-916 {
    width: 32px;
    height: 46px;
    border-radius: 7px;
    border: 1.5px dashed rgba(192, 132, 252, 0.35);
    background: rgba(168, 85, 247, 0.07);
    color: rgba(216, 180, 254, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ap2-cover-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ap2-cover-label {
    font-size: 12px;
    font-weight: 600;
    color: #e9e4f5;
}

.ap2-cover-status {
    font-size: 11px;
    color: #6ee7b7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.ap2-btn-xs {
    padding: 5px 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
}

/* Caption & Dark Emoji Picker */
.ap2-char-count {
    font-size: 11px;
    color: rgba(214, 205, 232, 0.58);
    font-variant-numeric: tabular-nums;
}

.ap2-char-count.ok {
    color: #6ee7b7;
}

.ap2-char-count.fold {
    color: #fcd34d;
}

.ap2-char-count.over {
    color: #f87171;
    font-weight: 700;
}

.ap2-caption-wrap {
    position: relative;
}

.ap2-caption-ta {
    width: 100%;
    box-sizing: border-box;
    min-height: 92px !important;
    resize: vertical;
}

.ap2-prev-more {
    color: rgba(214, 205, 232, 0.58);
    font-weight: 500;
}

.ap2-emoji-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    width: 268px;
    background: #17052d;
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
    z-index: 40;
    overflow: hidden;
}

.ap2-emoji-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.ap2-emoji-tab {
    flex: 1;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 15px;
    opacity: 0.6;
}

.ap2-emoji-tab.active {
    opacity: 1;
    background: rgba(168, 85, 247, 0.22);
}

.ap2-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 7px;
}

.ap2-emoji-item {
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 4px 0;
    font-size: 15px;
    cursor: pointer;
}

.ap2-emoji-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ap2-story-note {
    font-size: 12px;
    color: rgba(214, 205, 232, 0.72);
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.24);
}

/* Scheduling Row */
.ap2-sched-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ap2-dt-input {
    width: 192px !important;
    flex: 0 0 auto;
    padding: 7px 10px !important;
    font-size: 12px !important;
    color-scheme: dark;
}

.ap2-quick-chips {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    flex: 1;
}

.ap2-chip {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    color: #e9d5ff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
    white-space: nowrap;
}

.ap2-chip:hover {
    background: rgba(168, 85, 247, 0.24);
    border-color: rgba(216, 180, 254, 0.5);
    color: #ffffff;
}

/* Collapsible Advanced Options */
.ap2-adv-card {
    padding: 0 !important;
    overflow: visible !important;
    border-color: rgba(192, 132, 252, 0.24) !important;
    background: rgba(168, 85, 247, 0.05) !important;
}

.ap2-adv-card.is-open {
    border-color: rgba(192, 132, 252, 0.42) !important;
}

.ap2-adv-toggle {
    width: 100%;
    padding: 10px 13px;
    border: none;
    background: transparent;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.14s ease;
    border-radius: 14px;
}

.ap2-adv-toggle:hover {
    background: rgba(168, 85, 247, 0.08);
}

.ap2-adv-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ap2-adv-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #d8b4fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ap2-adv-titles {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.ap2-adv-titles strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
}

.ap2-adv-summary {
    font-size: 11px;
    color: rgba(214, 205, 232, 0.65);
}

.ap2-adv-right {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.ap2-adv-badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(168, 85, 247, 0.24);
    border: 1px solid rgba(216, 180, 254, 0.45);
    color: #f3e8ff;
    font-size: 10.5px;
    font-weight: 700;
}

.ap2-adv-chev {
    color: rgba(214, 205, 232, 0.7);
    transition: transform 0.16s ease;
    display: inline-flex;
}

.ap2-adv-toggle.open .ap2-adv-chev {
    transform: rotate(180deg);
}

.ap2-adv-body {
    padding: 0 13px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ap2-adv-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.ap2-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ap2-field label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(214, 205, 232, 0.78);
}

.ap2-select {
    background-color: #16042a !important;
    color: #ffffff !important;
}

.ap2-select option {
    background: #16042a;
    color: #ffffff;
}

.ap2-loc-wrap {
    position: relative;
}

.ap2-loc-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 165px;
    overflow-y: auto;
    background: #18052e;
    border: 1px solid rgba(192, 132, 252, 0.35);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
    z-index: 35;
}

.ap2-loc-opt {
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ap2-loc-opt:hover {
    background: rgba(168, 85, 247, 0.22);
}

.ap2-loc-name {
    font-size: 12px;
    font-weight: 600;
}

.ap2-loc-sub {
    font-size: 10.5px;
    color: rgba(214, 205, 232, 0.62);
}

.ap2-loc-empty {
    padding: 9px;
    font-size: 11.5px;
    color: rgba(214, 205, 232, 0.58);
    text-align: center;
}

.ap2-checks-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 2px;
}

/* Right Column: Live Instagram Preview */
.ap2-preview-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.ap2-preview-caption-top {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(216, 180, 254, 0.72);
    align-self: flex-start;
}

.ap2-ig-card {
    width: 100%;
    max-width: 320px;
    border-radius: 16px;
    background: #0b0714;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.ap2-ig-card-head {
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ap2-ig-mini-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ap2-ig-head-meta {
    min-width: 0;
    flex: 1;
}

.ap2-ig-handle {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.ap2-ig-loc {
    font-size: 10px;
    color: rgba(214, 205, 232, 0.65);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap2-carousel-counter {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.ap2-ig-viewport {
    position: relative;
    width: 100%;
    background: #05020a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 265px;
}

.ap2-ig-viewport.ratio-4-5 { aspect-ratio: 4 / 5; max-height: 280px; }
.ap2-ig-viewport.ratio-16-9 { aspect-ratio: 16 / 9; max-height: 210px; }
.ap2-ig-viewport.ratio-1-1 { aspect-ratio: 1 / 1; max-height: 265px; }

.ap2-prev-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ap2-ig-viewport.ratio-orig .ap2-prev-media {
    object-fit: contain;
}

.ap2-prev-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    color: rgba(214, 205, 232, 0.45);
    font-size: 11.5px;
    line-height: 1.4;
}

.ap2-prev-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(12, 1, 26, 0.78);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap2-prev-nav.left { left: 8px; }
.ap2-prev-nav.right { right: 8px; }

.ap2-ig-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 6px 0 2px;
}

.ap2-ig-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.ap2-ig-dots span.active {
    background: #c084fc;
}

.ap2-ig-actions {
    padding: 7px 11px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.85);
}

.ap2-ig-actions-l {
    display: flex;
    align-items: center;
    gap: 11px;
}

.ap2-ig-caption {
    padding: 2px 11px 11px;
    font-size: 11.5px;
    line-height: 1.4;
    color: #e9e4f5;
    max-height: 76px;
    overflow-y: auto;
    word-break: break-word;
}

.ap2-prev-user {
    color: #ffffff;
    font-weight: 600;
}

.ap2-prev-tags {
    color: #c084fc;
}

.ap2-prev-muted {
    color: rgba(214, 205, 232, 0.45);
    font-style: italic;
}

/* Vertical 9:16 Preview (Reels & Story) */
.ap2-phone-vertical {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap2-vertical-stage {
    position: relative;
    height: 100%;
    max-height: 410px;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    background: #080410;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap2-story-bars {
    position: absolute;
    top: 8px;
    left: 10px;
    right: 10px;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    z-index: 4;
}

.ap2-story-bars span {
    display: block;
    width: 45%;
    height: 100%;
    background: #ffffff;
    border-radius: 999px;
}

.ap2-vertical-top {
    position: absolute;
    top: 16px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 4;
}

.ap2-vertical-handle {
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.ap2-vertical-pill {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(12, 1, 26, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f5d0fe;
    font-size: 9.5px;
    font-weight: 700;
}

.ap2-reel-side {
    position: absolute;
    right: 9px;
    bottom: 66px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #ffffff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.8));
    z-index: 4;
}

.ap2-reel-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 36px 12px 11px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
    z-index: 3;
}

.ap2-reel-user {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.ap2-reel-cap {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.32;
    word-break: break-word;
}

/* ===================== QUEUE TAB (CLOUD 24/7) ===================== */
.ap2-queue-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap2-queue-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ap2-qf-pill {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(214, 205, 232, 0.78);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
}

.ap2-qf-pill.active {
    background: rgba(168, 85, 247, 0.28);
    border-color: rgba(216, 180, 254, 0.55);
    color: #ffffff;
}

.ap2-queue-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.ap2-queue-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(214, 205, 232, 0.6);
    font-size: 13px;
    text-align: center;
    padding: 36px 20px;
}

.ap2-q-empty-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(192, 132, 252, 0.3);
    color: #d8b4fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap2-q-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s ease;
}

.ap2-q-card:hover {
    border-color: rgba(192, 132, 252, 0.28);
}

.ap2-q-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d8b4fe;
}

.ap2-q-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ap2-q-meta {
    min-width: 0;
    flex: 1;
}

.ap2-q-top {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.ap2-q-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
}

.ap2-q-status.scheduled {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #e9d5ff;
}

.ap2-q-status.publishing {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
}

.ap2-q-status.published {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.38);
    color: #6ee7b7;
}

.ap2-q-status.failed {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

.ap2-mini-spin {
    width: 10px !important;
    height: 10px !important;
    border-width: 1.5px !important;
}

.ap2-q-type {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #d6cde8;
    font-size: 10.5px;
    font-weight: 600;
}

.ap2-q-date {
    font-size: 11.5px;
    color: rgba(214, 205, 232, 0.72);
    font-variant-numeric: tabular-nums;
}

.ap2-q-caption {
    font-size: 12.5px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap2-q-err {
    font-size: 11px;
    color: #fca5a5;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.ap2-q-link {
    text-decoration: none;
}

.ap2-q-del {
    padding: 6px 10px !important;
    font-size: 11.5px !important;
}

.ap2-prev-tag-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 4;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(12, 8, 20, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    pointer-events: none;
}
