/* IGAutomate - Premium Dark UI v2.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none !important; /* Previne linhas de foco brancas */
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Color Emoji', 'Segoe UI Emoji', 'Apple Color Emoji', Arial, sans-serif;
    font-size: 15px;
    background: #0d0d0d;
    color: #e8e8e8;
    overflow: hidden;
}

/* ===================== LAYOUT ===================== */

.app-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #111318;
    border: none; /* Removendo borda total para evitar linha branca */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 50px rgba(0,0,0,0.6);
}

/* ===================== SIDEBAR ===================== */

.sidebar {
    width: 256px;
    min-width: 236px;
    background: linear-gradient(180deg, #151720 0%, #101219 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sidebar-actions {
    flex: 0 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 4px 0;
    min-height: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, #1a1c24 0%, #15161e 100%);
}

.brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(131, 58, 180, 0.4);
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, #833ab4, #c13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

/* ===================== ACTION GROUPS ===================== */

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 6px 0;
}

.action-group {
    border-bottom: none;
    margin-bottom: 2px;
}

.action-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.038) 0%, rgba(255, 255, 255, 0.016) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid rgba(131, 58, 180, 0.45);
    color: #b4b8d0;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.65px;
    border-radius: 9px;
    margin: 2px 10px;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.action-group-header:hover {
    background: rgba(255, 255, 255, 0.055);
    color: #ffffff;
    border-color: rgba(193, 53, 132, 0.25);
    border-left: 3px solid rgba(193, 53, 132, 0.75);
}

/* Expanded state (Not collapsed) */
.action-group:not(.collapsed) .action-group-header {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.16) 0%, rgba(193, 53, 132, 0.09) 100%);
    color: #ffffff;
    border-color: rgba(193, 53, 132, 0.26);
    border-left: 3px solid #c13584;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.group-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    color: #555872;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.group-arrow svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-group-header:hover .group-arrow,
.action-group:not(.collapsed) .group-arrow {
    color: #ffffff;
}

.action-group.collapsed .group-arrow {
    transform: rotate(-90deg);
}

.action-group-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px 10px 8px 10px;
    background: transparent;
}

.action-group.collapsed .action-group-body {
    display: none;
}

/* ===================== SIDEBAR BUTTONS ===================== */

.sbtn {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-left: 3px solid transparent;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.028);
    color: #c7cbdf;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    font-family: 'Inter', inherit;
}

.sbtn:hover, .sbtn.active-sbtn {
    background: linear-gradient(90deg, rgba(193, 53, 132, 0.16) 0%, rgba(131, 58, 180, 0.05) 100%);
    border-color: rgba(193, 53, 132, 0.22);
    border-left: 3px solid #c13584;
    color: #ffffff;
}

.sbtn.btn-danger {
    color: #f47c7c;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}

.sbtn.btn-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
}

/* ===================== PANEL (Queue/Logs) ===================== */

.panel {
    border-top: 1px solid #1e2028;
    padding: 10px;
}

.panel-header {
    font-weight: 600;
    font-size: 11px;
    color: #555872;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
}

.stat-big {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #833ab4, #c13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.logs-panel {
    flex: 1 0 135px;
    min-height: 135px;
    height: auto;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #101218;
    padding: 8px 12px;
}

.logs-panel.logs-minimized {
    flex: 0 0 auto;
    min-height: 0;
}

.logs-feed {
    flex: 1;
    overflow-y: auto;
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.5;
    font-family: 'Inter', monospace;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logs-feed div {
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    word-break: break-word;
}

.logs-feed div:last-child {
    color: #60a5fa;
    font-weight: 500;
}

/* ===================== MAIN CONTENT ===================== */

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f1117;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border-bottom: 1px solid #1e2028;
    background: #111318;
    gap: 6px;
    flex-wrap: nowrap !important;
    width: 100%;
    box-sizing: border-box;
}

.stats {
    flex: 0 0 auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    font-size: 10.5px;
    color: #8b8fa8;
}

.stats-sep {
    color: rgba(255, 255, 255, 0.05);
}

.tab {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #8b8fa8;
    font-weight: 600;
    font-size: 10.5px;
    transition: all 0.25s ease-out;
    position: relative;
    user-select: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.tab.active {
    border-color: rgba(131, 58, 180, 0.4) !important;
    background: rgba(131, 58, 180, 0.2) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(193, 53, 132, 0.3);
    animation: tabNeonPulse 2s infinite ease-in-out;
}


@keyframes tabNeonPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(193, 53, 132, 0.2); border-color: rgba(193, 53, 132, 0.4); }
    50% { box-shadow: 0 0 25px rgba(131, 58, 180, 0.4); border-color: rgba(131, 58, 180, 0.6); }
}





.tab:hover:not(.active) {
    background: rgba(255,255,255,0.05);
    color: #c0c4d8;
}

.success-text {
    color: #34d399;
    font-weight: 700;
}

.app-clock {
    font-size: 10.5px;
    color: #94a3b8;
    font-family: 'Inter', monospace;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
    background: #1a1d26;
    padding: 2px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-right-actions, #fixed-status-wrapper { flex-shrink: 0; }

/* ===================== STATUS BUTTONS ===================== */

.btn-status {
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-upgrade {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.3));
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 8px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.btn-upgrade::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: goldShimmer 3s infinite;
}

.btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), inset 0 0 12px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.8);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 140, 0, 0.4));
}

.btn-trial {
    background: linear-gradient(to right, rgba(131, 58, 180, 0.1), rgba(193, 53, 132, 0.1));
    border: 1px solid rgba(131, 58, 180, 0.6);
    color: #fff;
    font-size: 11px;
    padding: 5px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 0 15px rgba(131, 58, 180, 0.2);
}

.trial-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 900;
    color: #ff3e83;
    text-shadow: 0 0 10px rgba(131, 58, 180, 0.9);
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(131, 58, 180, 0.3);
    animation: trialClockPulse 1s infinite alternate;
}

.trial-timer.critical {
    color: #ff2a2a;
    text-shadow: 0 0 15px #ff2a2a;
    border-color: rgba(255, 0, 0, 0.5);
    animation: trialClockCritical 0.5s infinite alternate;
}

@keyframes goldShimmer {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes trialClockPulse {
    from { opacity: 0.8; box-shadow: 0 0 5px rgba(131, 58, 180,0.2); transform: scale(1); }
    to { opacity: 1; box-shadow: 0 0 15px rgba(131, 58, 180,0.6); transform: scale(1.03); }
}

@keyframes trialClockCritical {
    from { background: rgba(0,0,0,0.8); box-shadow: 0 0 10px rgba(255,0,0,0.3); transform: scale(1); }
    to { background: rgba(80,0,0,0.6); box-shadow: 0 0 25px rgba(255,0,0,0.8); transform: scale(1.08); }
}


.btn-premium {
    background: linear-gradient(135deg, rgba(131, 58, 180,0.3), rgba(217,70,239,0.3));
    border-color: rgba(131, 58, 180, 0.5);
    color: #c4b5fd;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-premium:hover {
    background: linear-gradient(135deg, rgba(131, 58, 180,0.5), rgba(217,70,239,0.5));
    box-shadow: 0 0 12px rgba(131, 58, 180, 0.4);
    border-color: rgba(131, 58, 180, 0.75);
}

.btn-kiwify {
    background: linear-gradient(135deg, rgba(0, 149, 246, 0.15), rgba(131, 58, 180, 0.3));
    border: 1px solid rgba(0, 149, 246, 0.5);
    color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 149, 246, 0.2), inset 0 0 8px rgba(0, 149, 246, 0.1);
    text-shadow: 0 0 5px rgba(0, 149, 246, 0.5);
}

.btn-kiwify:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 149, 246, 0.4), inset 0 0 12px rgba(0, 149, 246, 0.2);
    border-color: rgba(0, 149, 246, 0.8);
    background: linear-gradient(135deg, rgba(0, 149, 246, 0.25), rgba(131, 58, 180, 0.45));
}

/* ===================== ICON BUTTONS ===================== */

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    padding: 6px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 8px;
    font-size: 18px;
    color: #9ca3af;
    transition: all 0.15s;
    line-height: 1;
}

.btn-icon:hover {
    background: rgba(131, 58, 180,0.12);
    border-color: rgba(131, 58, 180, 0.4);
    color: #833ab4;
    transform: scale(1.08);
}

/* ===================== MAIN LAYOUT ===================== */

.main-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===================== WELCOME DASHBOARD ===================== */

#welcome-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 30px 20px;
    gap: 24px;
    position: relative;
}

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-title-text {
    background: linear-gradient(135deg, #833ab4, #c13584, #f77737);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-subtitle {
    font-size: 15px;
    color: #555872;
    text-align: center;
    margin-top: -16px;
}

.welcome-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 700px;
}

.welcome-card {
    background: #1A1A24;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: default;
}

.welcome-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: #1E1E2A;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin: 0 auto 16px auto;
    background-color: #1A1A24;
    color: #833ab4;
    border: 1px solid rgba(131, 58, 180, 0.2);
    transition: all 0.2s ease;
}

.welcome-card:hover .icon-container {
    background-color: #833ab4;
    color: #FFFFFF;
}

.welcome-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #d4d8f0;
}

.welcome-card-desc {
    font-size: 14px;
    color: #949BA4;
    line-height: 1.6;
    font-weight: 400;
}

.welcome-step {
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #833ab4, #c13584);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.welcome-tip {
    font-size: 13px;
    color: #a87e30;
    text-align: center;
    padding: 12px 22px;
    background: rgba(202, 138, 4, 0.1);
    border: 1px solid rgba(202, 138, 4, 0.25);
    border-radius: 20px;
    max-width: 520px;
    font-weight: 500;
}

/* ===================== GRID ===================== */

.grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #1e2028;
    margin: 10px;
    border-radius: 8px;
    background: #0f1117;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    padding: 8px 14px;
    background: #111318;
    border-bottom: 1px solid #1e2028;
    font-weight: 600;
    font-size: 13px;
    color: #8b8fa8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-body {
    flex: 1;
    overflow-y: auto;
}

.photo-grid-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
}

/* Grid rows */
.grid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #1a1c22;
    font-size: 14px;
    color: #c0c4d8;
    transition: background 0.12s;
}

.grid-row:hover {
    background: rgba(255,255,255,0.03);
}

.col-user { flex: 1; }
.col-actions { display: flex; gap: 6px; align-items: center; }

/* ===================== PAGINATION ===================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    border-top: 1px solid #1e2028;
    font-size: 14px;
    color: #8b8fa8;
}

/* ===================== FOOTER ===================== */

.footer-links {
    display: flex;
    gap: 20px;
    padding: 6px 14px;
    border-top: 1px solid #1a1c22;
    font-size: 13px;
}

.footer-link {
    cursor: pointer;
    color: #404358;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: #8b8fa8;
}

/* ===================== BUTTONS ===================== */

.btn {
    padding: 7px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #1a1d26;
    color: #c0c4d8;
    transition: all 0.15s ease;
    font-family: 'Inter', inherit;
}

.btn:hover {
    background: #22253a;
    color: #ffffff;
    border-color: #3d4054;
}

.btn-primary {
    background: #833ab4;
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: #833ab4;
    filter: brightness(0.9);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-weight: 600;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
    color: #8b8fa8;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    color: #c0c4d8;
}

.btn-mini {
    padding: 4px 10px;
    font-size: 11px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    background: #1a1d26;
    color: #8b8fa8;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Inter', inherit;
}

.btn-mini:hover {
    background: #22253a;
    color: #c0c4d8;
}

.btn-kiwify-affiliate {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', inherit;
    transition: all 0.2s ease;
}

.btn-kiwify-affiliate:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
    border-color: rgba(16, 185, 129, 0.75);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.4));
    color: #ffffff;
}

/* ===================== MODALS ===================== */

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #14161e;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Moldura restaurada, bem sutil */
    border-radius: 16px;
    padding: 20px 22px;
    width: 440px;
    max-width: 95%;
    max-height: 88vh;
    animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.modal-body-scroll,
#modal-bulk-feed .form-group {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 58vh;
}

.spintax-guide-box {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(131, 58, 180, 0.08);
    border: 1px solid rgba(131, 58, 180, 0.25);
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.35;
}

.spintax-guide-box .spintax-header {
    font-weight: 600;
    color: #d8b4fe;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
}

.spintax-guide-box .spintax-example {
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 8px;
    border-radius: 5px;
    font-family: monospace;
    color: #a7f3d0;
    margin: 4px 0;
    word-break: break-word;
    font-size: 10px;
}

.spintax-guide-box .spintax-help {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.35;
}

.modal-content.modal-tall {
    width: 700px;
    max-width: 95%;
}


.modal-tall {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    height: 75vh;
}

.schedule-warning-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.5;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #1e2028;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.modal-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0px;
    color: #e8e8e8;
}

.modal-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #1e2028;
    flex-shrink: 0;
}

/* ===================== FORM ELEMENTS ===================== */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    font-size: 14px;
    color: #c0c4d8;
}

.form-row-pair {
    display: flex;
    gap: 8px;
}

.form-row-pair .form-row {
    flex: 1;
}

.speed-row {
    background: #16181f;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #c0c4d8;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #c0c4d8;
}

.input-flat {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    font-size: 14px;
    background: #1a1d26;
    color: #e8e8e8;
    font-family: 'Inter', inherit;
    transition: border-color 0.15s;
}

.input-flat:focus {
    outline: none;
    border-color: #c13584;
    box-shadow: 0 0 0 3px rgba(193, 53, 132, 0.12);
}

.input-flat::placeholder {
    color: #404358;
}

.input-num {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 14px;
    background: #1a1d26;
    color: #e8e8e8;
    font-family: 'Inter', inherit;
}

.input-num:focus {
    outline: none;
    border-color: #c13584;
}

.select-flat {
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    font-size: 14px;
    background: #1a1d26;
    color: #e8e8e8;
    width: 100%;
    font-family: 'Inter', inherit;
    transition: border-color 0.15s;
}

.select-flat:focus {
    outline: none;
    border-color: #c13584;
}

.comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    font-size: 14px;
    background: #1a1d26;
    color: #e8e8e8;
    resize: vertical;
    font-family: 'Inter', inherit;
    transition: border-color 0.15s;
}

.comment-textarea:focus {
    outline: none;
    border-color: #c13584;
    box-shadow: 0 0 0 3px rgba(193, 53, 132, 0.12);
}

.comment-textarea::placeholder {
    color: #404358;
}

/* ===================== AUTO POST FORM ===================== */

.modal-content.modal-autopost-content {
    width: 860px;
    max-width: 96vw;
    height: auto;
    max-height: 94vh;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

#modal-auto-post .modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auto-post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

.auto-post-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#modal-auto-post .form-section {
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 9px 12px;
    border-radius: 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

#modal-auto-post .section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8b8fa8;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
    margin-bottom: 2px;
}

#modal-auto-post .form-col {
    font-size: 12px;
    gap: 3px;
    color: #c0c4d8;
}

#modal-auto-post .form-col span {
    font-size: 11.5px;
    color: #8b8fa8;
    font-weight: 500;
}

#modal-auto-post .input-flat,
#modal-auto-post .select-flat {
    padding: 6px 9px;
    font-size: 12.5px;
    border-radius: 6px;
}

#modal-auto-post .comment-textarea {
    padding: 6px 9px;
    font-size: 12.5px;
    border-radius: 6px;
}

#modal-auto-post .schedule-warning-box {
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    line-height: 1.3;
}

#modal-auto-post .form-check {
    font-size: 11.5px;
    gap: 6px;
    cursor: pointer;
}

#modal-auto-post .modal-actions {
    margin-top: 8px;
    padding-top: 8px;
    gap: 8px;
}

.form-section {
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #555872;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #1e2028;
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ===================== FILTER SECTION ===================== */

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: #1a1d26;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.section-label {
    font-weight: 600;
    font-size: 14px;
    color: #8b8fa8;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 13px;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #c0c4d8;
}

.filter-input {
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    font-size: 13px;
    width: 100%;
    background: #111318;
    color: #e8e8e8;
}

/* ===================== EMOJI ===================== */

.emoji-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.btn-emoji-trigger {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    background: #1a1d26;
    color: #8b8fa8;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.15s;
}

.btn-emoji-trigger:hover {
    background: #22253a;
    color: #c0c4d8;
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: #14161e;
    max-width: 260px;
    max-height: 120px;
    overflow-y: auto;
}

.emoji-picker span {
    cursor: pointer;
    font-size: 18px;
    padding: 3px;
    border-radius: 5px;
    transition: background 0.1s;
}

.emoji-picker span:hover {
    background: rgba(255,255,255,0.1);
}

.emoji-picker-container {
    display: none;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    padding: 8px;
    background: #1a1c24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 6px;
    max-height: 120px;
    overflow-y: auto;
}

/* ===================== COLLAPSIBLE ===================== */

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #8b8fa8;
    transition: color 0.15s;
}

.collapsible-header:hover {
    color: #c0c4d8;
}

/* ===================== USER ROWS / CARDS ===================== */

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid #1a1c22;
    font-size: 12px;
    color: #c0c4d8;
    transition: background 0.12s;
}

.user-row:hover {
    background: rgba(255,255,255,0.03);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    border: 1px solid #2a2d35;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #e8e8e8;
}

.user-status {
    font-size: 13px;
    color: #555872;
}

/* Status badges */
.status-ok { color: #34d399; font-weight: 600; }
.status-fail { color: #f87171; font-weight: 600; }
.status-pending { color: #fbbf24; }
.status-skip { color: #6b7280; }

/* Photo cards */
.photo-card {
    width: 80px;
    height: 80px;
    border: 1px solid #2a2d35;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
}

.photo-card:hover {
    border-color: #c13584;
    transform: scale(1.04);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-card.selected {
    border-color: #833ab4;
    border-width: 2px;
    box-shadow: 0 0 8px rgba(131, 58, 180, 0.3);
}

/* ===================== SCROLLBAR ===================== */

::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 4px;
    opacity: 0.7;
}

::-webkit-scrollbar-thumb:hover {
    background: #833ab4;
    opacity: 1;
}

/* ===================== MISC ===================== */

hr {
    border: none;
    border-top: 1px solid #1e2028;
    margin: 8px 0;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #3d4054;
    font-size: 12px;
    color: #555872;
    cursor: help;
}

.tip-banner { display: none; }

/* ===================== LOG COLORS ===================== */

.log-item.success { color: #34d399; }
.log-item.warn { color: #fbbf24; }
.log-item.error { color: #f87171; }
.log-item .time { color: #555872; }

/* ===================== ANIMATED PULSE (Running indicator) ===================== */

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.running-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 1.4s infinite;
    margin-left: 6px;
    vertical-align: middle;
}

/* ===================== MODAL OPEN ANIMATION ===================== */

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.97) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-overlay {
    animation: overlay-in 0.2s ease;
}

.modal-content {
    animation: modal-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== FORM CHECK TOGGLE ===================== */

input[type="checkbox"] {
    accent-color: #c13584;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

input[type="radio"] {
    accent-color: #833ab4;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ===================== HELP/ABOUT CONTENT ===================== */

.help-item h3 {
    font-size: 13px;
    font-weight: 600;
    color: #c8cce0;
    margin-bottom: 5px;
    margin-top: 12px;
}

.help-item p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}
/* Font Size Themes */
body.font-small { font-size: 13px !important; }
body.font-small .brand-name, body.font-small .brand { font-size: 14px !important; }
body.font-small .sbtn { font-size: 12px !important; }
body.font-small .grid-row { font-size: 12px !important; }
body.font-small .logs-feed { font-size: 11px !important; }
body.font-small .welcome-card-title { font-size: 13px !important; }
body.font-small .welcome-card-desc { font-size: 11px !important; }

body.font-normal { font-size: 15px !important; }

body.font-large { font-size: 16px !important; }
body.font-large .brand-name, body.font-large .brand { font-size: 18px !important; }
body.font-large .sbtn { font-size: 15px !important; }
body.font-large .grid-row { font-size: 15px !important; }
body.font-large .logs-feed { font-size: 14px !important; }
body.font-large .welcome-card-title { font-size: 16px !important; }
body.font-large .welcome-card-desc { font-size: 14px !important; }
body.font-large .input-flat, body.font-large .select-flat, body.font-large .comment-textarea { font-size: 15px !important; }
body.font-large .btn { font-size: 15px !important; }
/* ===================== PROGRESS BAR ===================== */
.progress-bar-container {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    /* Estilo Base: Gradiente genérico que será substituído pelos IDs se necessário */
    background: linear-gradient(90deg, #833ab4, #c13584, #833ab4); 
    background-size: 200% 100%;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1); 
    box-shadow: 0 0 10px rgba(131, 58, 180, 0.4);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    animation: gradientFlow 3s ease infinite, glowPulse 2s ease-in-out infinite alternate;
}

/* Identidade Visual Separada por Função */
#users-progress-fill {
    background: linear-gradient(90deg, #833ab4, #c13584, #833ab4); 
    box-shadow: 0 0 10px rgba(131, 58, 180, 0.5);
}

#photos-progress-fill {
    background: linear-gradient(90deg, #c13584, #833ab4, #c13584); 
    box-shadow: 0 0 12px rgba(193, 53, 132, 0.6);
}

#hashtags-progress-fill {
    background: linear-gradient(90deg, #3b82f6, #c13584, #3b82f6); 
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}


/* Reflexo extra deslizando por cima do líquido */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmerLight 2s infinite;
}

@keyframes gradientFlow {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes glowPulse {
    0% { box-shadow: 0 0 8px rgba(131, 58, 180, 0.5); }
    100% { box-shadow: 0 0 18px rgba(193, 53, 132, 0.8), 0 0 5px rgba(131, 58, 180, 0.5); }
}

@keyframes shimmerLight {
    0% { transform: translateX(0); }
    100% { transform: translateX(400%); } /* Viaja além da barra inteira */
}
.progress-text {
    font-size: 11px;
    color: #8b8fa8;
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.5px;
}

/* Row states */
.grid-row.status-followed {
    background: rgba(52, 211, 153, 0.05);
}

.grid-row.status-followed .col-user {
    color: #34d399;
}

.grid-row.status-followed .status-badge {
    opacity: 1;
}

.status-badge {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

/* Modal Progress Spinner */
.simple-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(131, 58, 180, 0.1);
    border-radius: 50%;
    border-top-color: #833ab4;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================== TUTORIAL INTERATIVO ===================== */
.tutorial-trigger {
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.tutorial-trigger:hover {
    border-color: rgba(193, 53, 132, 0.5) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(193, 53, 132, 0.15) !important;
}

.tutorial-trigger.tutorial-active {
    border-color: rgba(193, 53, 132, 0.7) !important;
    background: rgba(193, 53, 132, 0.06) !important;
    box-shadow: 0 4px 20px rgba(193, 53, 132, 0.2) !important;
}

@keyframes tutorialSlideIn {
    from { opacity: 0; transform: translateY(-15px) scaleY(0.9); transform-origin: top; }
    to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes tutorialSlideOut {
    from { opacity: 1; transform: translateY(0) scaleY(1); transform-origin: top; }
    to   { opacity: 0; transform: translateY(-15px) scaleY(0.9); }
}

.tutorial-closing {
    animation: tutorialSlideOut 0.3s ease-in forwards !important;
}


/* ===================== HASHTAG GENERATOR MAGIC ANIMATIONS ===================== */
.hgen-pulse {
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    background: transparent !important;
}

/* O Círculo Pulsante Central */
.hgen-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    padding-top: 20px;
}

.hgen-circle-loader {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hgen-logo-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(131, 58, 180, 0.7);
    animation: hgenLogoPulse 1.5s infinite ease-in-out;
    position: relative;
    z-index: 2;
}

@keyframes hgenLogoPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(131, 58, 180, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 30px rgba(193, 53, 132, 0.9); transform: scale(1.08); }
}

.hgen-ripple-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(131, 58, 180, 0.7);
    transform: translate(-50%, -50%);
    animation: hgenRipple 2s infinite;
}

.hgen-ripple-ring:nth-child(2) { animation-delay: 0.7s; }
.hgen-ripple-ring:nth-child(3) { animation-delay: 1.4s; }

@keyframes hgenRipple {
    0% { width: 54px; height: 54px; opacity: 1; }
    100% { width: 130px; height: 130px; opacity: 0; border-width: 0.5px; }
}

/* ===== SCROLLBAR ROXO LUXO ===== */
.sidebar::-webkit-scrollbar,
#hgen-results::-webkit-scrollbar,
#tutorial-panel::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track,
#hgen-results::-webkit-scrollbar-track,
#tutorial-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
#hgen-results::-webkit-scrollbar-thumb,
#tutorial-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #833ab4, #c13584);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
#hgen-results::-webkit-scrollbar-thumb:hover,
#tutorial-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff3d81, #833ab4);
}

/* Efeito de Explosão (Shockwave) */
.hgen-exploding {
    position: relative !important;
    overflow: hidden !important;
}

.hgen-exploding::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    background: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 100px 50px rgba(255, 255, 255, 0.9), 0 0 200px 100px rgba(59, 130, 246, 0.5);
    animation: hgenShockwave 0.5s ease-out forwards;
    z-index: 5;
}

@keyframes hgenShockwave {
    0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(40); opacity: 0; }
}

.hgen-item-fade {
    animation: hgenFadeUp 0.4s ease-out forwards;
}

@keyframes hgenFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== PHOTO CARDS & BADGES ===================== */
.photo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.photo-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
    border-left-color: #833ab4;
}

.photo-card.status-liked {
    border-left-color: #833ab4;
    background: rgba(131, 58, 180, 0.03);
}

.photo-thumb-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.photo-thumb {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1c22;
}

.photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.photo-shortcode {
    font-weight: 600;
    font-size: 0.85rem;
    color: #efefef;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-shortcode:hover {
    color: #833ab4;
}

.photo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #777;
}

.badge-liked {
    background: rgba(131, 58, 180, 0.12);
    color: #ff4d4d;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-row-action {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-row-action:hover {
    background: rgba(255,255,255,0.05);
    color: #f87171;
}

.photo-thumb-fallback {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #1a1c22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #333;
}
/* ===================== STATUS ORB ===================== */
.orb-container-generic {
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    position: relative;
    z-index: 10;
    width: 100%;
}

#welcome-dashboard.working:not(.statusCommentActive):not(.feed-working):not(.bulk-comments-active):not(.stories-working) .orb-container-generic {
    display: flex !important;
}

/* ===================== BULK LIKE COMMENTS ISOLATED ORB ===================== */
.orb-container-bulk-like-comments {
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    min-height: 200px;
    position: relative;
    z-index: 20;
}

#welcome-dashboard.bulk-comments-active .orb-container-bulk-like-comments {
    display: flex !important;
}


/* ===================== BULK COMMENT PEN ANIMATION ===================== */
.orb-container-comment {
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    min-height: 200px;
    position: relative;
    z-index: 20;
}

#welcome-dashboard.statusCommentActive .orb-container-comment {
    display: flex !important;
}


/* Animação Moderna de Comentários - Glassmorphism + Typing Glow */
.comment-anim-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 110px;
    margin-bottom: 5px;
}

.comment-bubble-modern {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(193, 53, 132, 0.2), rgba(131, 58, 180, 0.3));
    border: 2px solid rgba(193, 53, 132, 0.45);
    box-shadow: 0 0 35px rgba(193, 53, 132, 0.35), inset 0 0 15px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: commentFloat 3s infinite ease-in-out;
    backdrop-filter: blur(10px);
}

.comment-svg-icon {
    width: 44px;
    height: 44px;
    color: #e1306c;
    stroke: #e1306c;
    filter: drop-shadow(0 0 10px rgba(225, 48, 108, 0.7));
}

.comment-typing-dots {
    position: absolute;
    display: flex;
    gap: 4px;
    top: 36px;
}

.typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 6px #fff, 0 0 12px rgba(253, 29, 29, 0.9);
    animation: dotPulse 1.4s infinite ease-in-out;
}

.typing-dot.d1 { animation-delay: 0s; }
.typing-dot.d2 { animation-delay: 0.2s; }
.typing-dot.d3 { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.35; }
    40% { transform: scale(1.3); opacity: 1; }
}

@keyframes commentFloat {
    0%, 100% { transform: translateY(0px) scale(1); box-shadow: 0 0 25px rgba(193, 53, 132, 0.3); }
    50% { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 45px rgba(193, 53, 132, 0.65); }
}

.comment-bubble-modern.success-pulse {
    animation: commentSuccess 0.7s ease-out forwards;
}

@keyframes commentSuccess {
    0% { transform: scale(1.2); box-shadow: 0 0 60px rgba(253, 29, 29, 0.95), inset 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 35px rgba(193, 53, 132, 0.35); }
}


/* Hide Home UI when working in any mode */
#welcome-dashboard.working .welcome-title, #welcome-dashboard.working .welcome-subtitle, #welcome-dashboard.working .welcome-cards, #welcome-dashboard.working .welcome-tip, #welcome-dashboard.working #rotating-tip,
#welcome-dashboard.feed-working .welcome-title, #welcome-dashboard.feed-working .welcome-subtitle, #welcome-dashboard.feed-working .welcome-cards, #welcome-dashboard.feed-working .welcome-tip, #welcome-dashboard.feed-working #rotating-tip,
#welcome-dashboard.bulk-comments-active .welcome-title, #welcome-dashboard.bulk-comments-active .welcome-subtitle, #welcome-dashboard.bulk-comments-active .welcome-cards, #welcome-dashboard.bulk-comments-active .welcome-tip, #welcome-dashboard.bulk-comments-active #rotating-tip,
#welcome-dashboard.bulk-comment-active .welcome-title, #welcome-dashboard.bulk-comment-active .welcome-subtitle, #welcome-dashboard.bulk-comment-active .welcome-cards, #welcome-dashboard.bulk-comment-active .welcome-tip, #welcome-dashboard.bulk-comment-active #rotating-tip {
    display: none !important;
}



/* Feed Container (No Orb) */
.feed-status-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 80px auto;
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: visible;
}

#welcome-dashboard.feed-working .feed-status-container,
#welcome-dashboard.feed-working-v2 .feed-v2-status-container,
#welcome-dashboard.follow-working-v2 .follow-v2-status-container {
    display: flex;
}

/* ===================== FOLLOW V2 BIO-RADAR ANIMATION ===================== */
.follow-v2-status-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    position: relative;
    z-index: 60;
    width: 100%;
}

#welcome-dashboard.follow-working-v2 .follow-v2-status-container {
    display: flex !important;
}

#welcome-dashboard.follow-working-v2 .welcome-title, 
#welcome-dashboard.follow-working-v2 .welcome-subtitle, 
#welcome-dashboard.follow-working-v2 .welcome-cards, 
#welcome-dashboard.follow-working-v2 .welcome-tip, 
#welcome-dashboard.follow-working-v2 #rotating-tip {
    display: none !important;
}

.bio-radar-wrapper {
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.05) 0%, transparent 70%);
}

.bio-radar-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 255, 0, 0.2));
}

.radar-beam {
    transform-origin: 60px 60px;
    animation: radarSweep 4s linear infinite;
}

@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bio-silhouette {
    animation: bioIdle 2s infinite ease-in-out alternate;
}

@keyframes bioIdle {
    from { opacity: 0.3; transform: scale(0.98); }
    to { opacity: 0.6; transform: scale(1.02); }
}

/* SUCCESS PULSE */
.follow-plus-success.active {
    animation: followPopGreen 1s ease-out forwards;
}

@keyframes followPopGreen {
    0% { transform: translate(0, 20px) scale(0.5); opacity: 0; }
    30% { transform: translate(0, 0) scale(1.5); opacity: 1; filter: drop-shadow(0 0 15px #00ff00); }
    100% { transform: translate(0, -30px) scale(2); opacity: 0; filter: blur(5px); }
}

.follow-v2-status-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 3s infinite alternate;
}

/* ===================== FEED V2 GLASS CARDS ANIMATION ===================== */
.feed-v2-status-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    position: relative;
    z-index: 60;
    width: 100%;
}

#welcome-dashboard.feed-working-v2 .feed-v2-status-container {
    display: flex !important;
}

#welcome-dashboard.feed-working-v2 .welcome-title, 
#welcome-dashboard.feed-working-v2 .welcome-subtitle, 
#welcome-dashboard.feed-working-v2 .welcome-cards, 
#welcome-dashboard.feed-working-v2 .welcome-tip, 
#welcome-dashboard.feed-working-v2 #rotating-tip {
    display: none !important;
}

.card-stack {
    position: relative;
    width: 200px;
    height: 140px;
    perspective: 1000px;
}

.glass-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-front {
    z-index: 3;
    transform: translateY(0) translateZ(20px);
    border: 1px solid rgba(253, 29, 29, 0.3);
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.card-back-1 {
    z-index: 2;
    transform: translateY(15px) translateZ(0) scale(0.95);
    background: rgba(255, 255, 255, 0.03);
    opacity: 0.7;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, #fd1d1d, #c13584);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.2;
}

.card-back-2 {
    z-index: 1;
    transform: translateY(30px) translateZ(-20px) scale(0.9);
    background: rgba(255, 255, 255, 0.01);
    opacity: 0.4;
}

/* Card lines visual */
.card-content-lines {
    margin-top: auto;
}
.line {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 8px;
}
.line-short { width: 40%; }
.line-long { width: 85%; }

/* ICÔNES ACTIONS */
.card-action-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 2rem;
    margin-top: 10px;
}

.feed-heart, .feed-comment {
    opacity: 0.2;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

/* ACTIONS ANIMATIONS CLASSEES */
.feed-heart.active {
    opacity: 1;
    transform: scale(1.4);
    animation: feedHeartPop 0.8s ease-out;
}

@keyframes feedHeartPop {
    0% { transform: scale(0.8); filter: drop-shadow(0 0 0 transparent); }
    50% { transform: scale(1.6); filter: drop-shadow(0 0 15px #fd1d1d); }
    100% { transform: scale(1.2); filter: drop-shadow(0 0 5px rgba(253, 29, 29, 0.4)); }
}

.feed-comment.active {
    opacity: 1;
    animation: feedCommentPop 0.8s ease-out;
}

@keyframes feedCommentPop {
    0% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(-15px) scale(1.3); opacity: 1; filter: drop-shadow(0 0 10px #c13584); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* THE SCROLL ANIMATION (Triggered on new post) */
.card-stack.scrolling .card-front {
    animation: cardScrollOut 0.6s ease-in forwards;
}

@keyframes cardScrollOut {
    0% { transform: translateY(0) translateZ(20px); opacity: 1; }
    100% { transform: translateY(-150px) translateZ(100px) rotateX(20deg); opacity: 0; }
}

/* ===================== BULK COMMENT PEN ANIMATION ===================== */
.comment-status-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 100;
    height: 100%;
    width: 100%;
}

#welcome-dashboard.bulk-comment-active .comment-status-container {
    display: flex;
}

.pen-wrapper {
    position: relative;
    font-size: 5rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 5px 15px rgba(0, 149, 246, 0.4));
}

.pen-emoji {
    display: inline-block;
    animation: penWriting 1.2s infinite ease-in-out alternate;
    transform-origin: bottom right;
}

@keyframes penWriting {
    from { transform: rotate(-5deg) translate(0, 0); }
    to { transform: rotate(15deg) translate(15px, -10px); }
}

.writing-stroke {
    position: absolute;
    bottom: 15px;
    right: 30px;
    width: 0;
    height: 5px;
    background: linear-gradient(90deg, #0095f6, transparent);
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
}

.writing-stroke.active {
    animation: strokeWrite 0.8s ease-out forwards;
}

@keyframes strokeWrite {
    0% { width: 0; opacity: 1; transform: scaleX(0); }
    40% { width: 140px; opacity: 1; transform: scaleX(1); }
    100% { width: 160px; opacity: 0; transform: translateX(50px) scaleX(1.1); }
}

/* ===================== BULK STORIES ANIMATION (CYBER STORY PORTAL) ===================== */
.stories-status-container {
    display: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 25px auto 35px auto;
    position: relative;
    z-index: 50;
    width: 100%;
    animation: storiesFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes storiesFadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#welcome-dashboard.stories-working .stories-status-container {
    display: flex !important;
}

#welcome-dashboard.stories-working .welcome-title, 
#welcome-dashboard.stories-working .welcome-subtitle, 
#welcome-dashboard.stories-working .welcome-cards, 
#welcome-dashboard.stories-working .welcome-tip, 
#welcome-dashboard.stories-working #rotating-tip {
    display: none !important;
}

/* Ambient Deep Atmospheric Glow */
.stories-ambient-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(225, 48, 108, 0.28) 0%, rgba(131, 58, 180, 0.18) 45%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
    border-radius: 50%;
    animation: storiesGlowPulse 4s infinite ease-in-out alternate;
    z-index: 0;
}

@keyframes storiesGlowPulse {
    from { opacity: 0.45; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 0.9; transform: translate(-50%, -50%) scale(1.2); }
}

/* Live Header Pill */
.stories-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #f3f4f6;
    margin-bottom: 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 2;
}

.stories-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff2a5f;
    box-shadow: 0 0 10px #ff2a5f, 0 0 20px rgba(255, 42, 95, 0.8);
    animation: liveDotPulse 1.2s infinite ease-in-out alternate;
}

@keyframes liveDotPulse {
    from { transform: scale(0.85); opacity: 0.7; }
    to { transform: scale(1.25); opacity: 1; }
}

.stories-live-divider {
    color: rgba(255, 255, 255, 0.3);
}

.stories-live-tag {
    color: #ff3366;
    font-weight: 900;
}

/* Portal Container */
.stories-portal-wrapper {
    position: relative;
    width: 176px;
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    z-index: 2;
}

/* Instagram Gradient Spinning Ring */
.stories-gradient-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(#f09433, #e6683c, #dc2743, #cc2366, #bc1888, #833ab4, #405de6, #f09433);
    animation: storyRingRotate 5s linear infinite;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #fff calc(100% - 3.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #fff calc(100% - 3.5px));
    z-index: 2;
}

.stories-ring-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(#f09433, #dc2743, #bc1888, #833ab4, #f09433);
    filter: blur(14px);
    opacity: 0.65;
    animation: storyRingRotate 5s linear infinite, storyRingPulse 3s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes storyRingRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes storyRingPulse {
    from { opacity: 0.45; filter: blur(10px); }
    to { opacity: 0.85; filter: blur(18px); }
}

/* Story Top Progress Segments */
.stories-progress-segments {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 6;
    width: 72px;
    justify-content: center;
}

.story-seg {
    height: 3px;
    flex: 1;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, transform 0.25s ease;
}

.story-seg.seg-active {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 16px rgba(255, 51, 102, 0.7);
    transform: scaleY(1.35);
}

/* Holographic Lens Core */
.stories-lens-core {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #1e0d29 0%, #0c0514 70%, #050208 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.85);
    z-index: 3;
}

/* Radar Rings & HUD */
.stories-radar-ring.ring-1 {
    position: absolute;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    border: 1px dashed rgba(225, 48, 108, 0.22);
    animation: storyRingRotate 20s linear infinite;
    pointer-events: none;
}

.stories-radar-ring.ring-2 {
    position: absolute;
    width: 94px;
    height: 94px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.stories-radar-crosshair {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(225, 48, 108, 0.18) 50%, transparent 90%);
    pointer-events: none;
}

.stories-scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background: linear-gradient(180deg, rgba(255, 0, 127, 0.16), transparent);
    filter: blur(4px);
    animation: storyLaserScan 3s infinite ease-in-out;
    pointer-events: none;
}

@keyframes storyLaserScan {
    0%, 100% { transform: translateY(-40px); opacity: 0; }
    50% { transform: translateY(180px); opacity: 1; }
}

/* Cyber Eye Components */
.stories-iris-ring {
    animation: storyIrisSpin 12s linear infinite;
    transform-origin: 70px 45px;
}

@keyframes storyIrisSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stories-pupil {
    animation: storyPupilPulse 2.5s infinite ease-in-out alternate;
    transform-origin: 70px 45px;
}

@keyframes storyPupilPulse {
    from { transform: scale(0.92); filter: brightness(0.95); }
    to { transform: scale(1.18); filter: brightness(1.35) drop-shadow(0 0 10px rgba(255, 0, 127, 0.8)); }
}

/* Organic Cyber Blink */
.cyber-eyelid-top {
    transform: translateY(-100%);
    animation: cyberBlinkTop 4.5s infinite ease-in-out;
}

.cyber-eyelid-bottom {
    transform: translateY(100%);
    animation: cyberBlinkBottom 4.5s infinite ease-in-out;
}

@keyframes cyberBlinkTop {
    0%, 88%, 100% { transform: translateY(-100%); }
    93%, 95% { transform: translateY(0%); }
}

@keyframes cyberBlinkBottom {
    0%, 88%, 100% { transform: translateY(100%); }
    93%, 95% { transform: translateY(0%); }
}

/* Audio / Activity Waveform */
.stories-waveform {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3.5px;
    height: 14px;
    z-index: 6;
}

.wave-bar {
    width: 2.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff3366, #833ab4);
}

.wave-bar.w1 { animation: storyWave 0.8s 0.0s ease-in-out infinite alternate; }
.wave-bar.w2 { animation: storyWave 0.8s 0.2s ease-in-out infinite alternate; }
.wave-bar.w3 { animation: storyWave 0.8s 0.4s ease-in-out infinite alternate; }
.wave-bar.w4 { animation: storyWave 0.8s 0.1s ease-in-out infinite alternate; }
.wave-bar.w5 { animation: storyWave 0.8s 0.3s ease-in-out infinite alternate; }

@keyframes storyWave {
    from { height: 3px; opacity: 0.4; }
    to { height: 13px; opacity: 1; }
}

/* Status Title */
.stories-status-title {
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    background: linear-gradient(135deg, #ffffff 0%, #ff82a5 45%, #c13584 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 25px rgba(193, 53, 132, 0.45);
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
    animation: storyTitleShimmer 3s ease-in-out infinite alternate;
}

@keyframes storyTitleShimmer {
    from { filter: drop-shadow(0 0 4px rgba(255, 51, 102, 0.3)); }
    to { filter: drop-shadow(0 0 14px rgba(255, 51, 102, 0.7)); }
}

/* Glassmorphic Counter Card */
.stories-counter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 8px 18px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 0 12px rgba(255, 255, 255, 0.02);
    min-width: 220px;
    position: relative;
    z-index: 2;
}

.stories-counter-badge {
    display: flex;
    align-items: center;
    gap: 9px;
}

.stories-counter-icon {
    color: #ff3366;
    filter: drop-shadow(0 0 6px #ff3366);
    animation: storyIconFloat 2s ease-in-out infinite alternate;
}

@keyframes storyIconFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-2px); }
}

.stories-counter-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.stories-safe-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 1px;
    background: rgba(52, 211, 153, 0.1);
    padding: 3px 8px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.stories-safe-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
}

/* Reaction Heart Explosion */
.stories-heart.pop {
    animation: heartPopCyber 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPopCyber {
    0% { transform: scale(0); opacity: 0; }
    25% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 14px #ff0055) drop-shadow(0 0 25px #ff2d55); }
    60% { transform: scale(1.8); opacity: 1; filter: drop-shadow(0 0 20px #ff0055); }
    100% { transform: scale(3.5); opacity: 0; filter: blur(8px); }
}




.status-orb {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c13584, #833ab4, #fd1d1d, #405de6);
    background-size: 400% 400%;
    animation: orbPulse 3s infinite ease-in-out, orbGradient 5s infinite alternate;
    box-shadow: 0 0 50px rgba(193, 53, 132, 0.4), inset 0 0 20px rgba(255,255,255,0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* breathing smooth halo instead of dots */
.status-orb::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #833ab4;
    box-shadow: 0 0 20px #c13584;
    opacity: 0.1;
    animation: haloPulse 3s infinite ease-in-out;
}

.status-orb::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: inherit;
    filter: blur(25px);
    opacity: 0.3;
    z-index: -1;
}

.orb-inner-text {
    font-size: 1rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.4);
    pointer-events: none;
}

/* Success Explosion Triggered by JS */
.orb-active-pulse {
    animation: orbSuccessWave 0.6s ease-out !important;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(193, 53, 132, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 100px rgba(131, 58, 180, 0.7); }
}

@keyframes haloPulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.3); opacity: 0.4; filter: blur(2px); }
}

@keyframes orbGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* RADIATION WAVE: Deep impact pulse on success with Intense Purple */
@keyframes orbSuccessWave {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9), 0 0 0 0 rgba(160, 32, 240, 0.6); transform: scale(1.1); filter: brightness(1.7) contrast(1.3); }
    10% { 
        box-shadow: 0 0 40px 25px rgba(255, 255, 255, 0.9), 0 0 120px 50px rgba(160, 32, 240, 1); 
        transform: scale(1.35); 
        filter: brightness(2.8) contrast(1.6);
    }
    60% { box-shadow: 0 0 0 150px rgba(255, 255, 255, 0), 0 0 0 500px rgba(160, 32, 240, 0); transform: scale(1.05); filter: brightness(1.3); }
    100% { box-shadow: 0 0 40px rgba(193, 53, 132, 0.3); transform: scale(1); filter: brightness(1); }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 15px white;
    z-index: 100;
}

/* Floating Username Effect: Alternating Sides & Purple Gradient */
.floating-username {
    position: absolute;
    font-size: 1.1rem;
    font-weight: 900;
    
    /* Premium Purple Gradient Text */
    background: linear-gradient(135deg, #d8b4fe, #a855f7, #833ab4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.4));
    
    white-space: nowrap;
    pointer-events: none;
    z-index: 500;
    animation: floatUpFadeOut 4s forwards linear;
}

@keyframes floatUpFadeOut {
    0% {
        transform: translateY(0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        transform: translateY(-300px) scale(1);
        opacity: 0;
    }
}

/* Floating Action Particles (Emoji Eruption) */
.floating-action-particle {
    --end-x: 0px;
    --end-y: -200px;
    --rot: 0deg;
    position: absolute;
    font-size: 1.8rem;
    pointer-events: none;
    z-index: 450;
    opacity: 0; 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: floatParticleUpFadeOut forwards cubic-bezier(0.1, 0.8, 0.3, 1);
}

@keyframes floatParticleUpFadeOut {
    0% {
        opacity: 0;
        transform: rotate(var(--rot)) translate(0, 0) scale(0);
    }
    15% {
        opacity: 1;
        /* Small initial pop, giving the impression of bursting out */
        transform: rotate(var(--rot)) translate(0, 10px) scale(1.3); 
    }
    100% {
        opacity: 0;
        /* Move towards the randomly calculated endpoint */
        transform: rotate(var(--rot)) translate(var(--end-x), var(--end-y)) scale(0.9);
    }
}

@keyframes pulse {
    0% { transform: scale(0.98); opacity: 0.8; }
    100% { transform: scale(1.02); opacity: 1; }
}




/* ===================== UNFOLLOW V2 ANIMATION (Broken Chain) ===================== */

.unfollow-v2-status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
}

.chain-break-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chain-svg {
    width: 100%;
    height: 100%;
}

.chain-link {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chain-working .chain-link-left {
    animation: chain-break-left 1s cubic-bezier(0.36, 0, 0.66, -0.56) infinite;
}

.chain-working .chain-link-right {
    animation: chain-break-right 1s cubic-bezier(0.36, 0, 0.66, -0.56) infinite;
}

.chain-working .spark {
    animation: spark-jump 1s ease-out infinite;
}

@keyframes chain-break-left {
    0% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(-5px, -5px) rotate(-10deg); }
    60% { transform: translate(-15px, -15px) rotate(-30deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes chain-break-right {
    0% { transform: translate(0, 0) rotate(0deg); }
    30% { transform: translate(5px, 5px) rotate(10deg); }
    60% { transform: translate(15px, 15px) rotate(30deg); opacity: 0; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

@keyframes spark-jump {
    0%, 20% { opacity: 0; transform: scale(0); }
    30% { opacity: 1; transform: scale(1.5) translate(0,0); }
    60% { opacity: 0; transform: scale(0.5) translate(var(--tx, 10px), var(--ty, -10px)); }
    100% { opacity: 0; }
}

.spark.s1 { --tx: 0px; --ty: -20px; }
.spark.s2 { --tx: 15px; --ty: 10px; animation-delay: 0.1s; }
.spark.s3 { --tx: -15px; --ty: 15px; animation-delay: 0.2s; }

/* ===================== INFO GUIDANCE ICON ===================== */

.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(131, 58, 180, 0.5);
    background: rgba(131, 58, 180, 0.12);
    color: #833ab4;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    font-family: 'Georgia', serif;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
    margin-left: 6px;
}

.info-btn:hover {
    background: rgba(131, 58, 180, 0.3);
    border-color: rgba(131, 58, 180, 0.85);
    color: #c4b5fd;
    box-shadow: 0 0 10px rgba(131, 58, 180, 0.35);
    transform: scale(1.12);
}

.info-btn.active {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.25), rgba(193, 53, 132, 0.25));
    border-color: rgba(131, 58, 180, 0.7);
    color: #f9a8d4;
    box-shadow: 0 0 12px rgba(131, 58, 180, 0.3);
}

.guidance-box {
    display: none;
    background: rgba(193, 53, 132, 0.07);
    border: 1px solid rgba(193, 53, 132, 0.22);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #c5b8d8;
    line-height: 1.7;
    animation: guidanceSlideIn 0.2s ease-out;
}

.guidance-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guidance-box li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
}

.guidance-box li strong {
    color: #e2d9f3;
    white-space: nowrap;
}

@keyframes guidanceSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Wrapper for modal title + info btn */
.modal-title-row {
    display: flex;
    align-items: center;
    gap: 0;
}
/* ==================== LUCIDE VECTORS (PREMIUM) ==================== */
.sidebar-actions .action-group-header span[data-i18n] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sidebar-actions .action-group-header span[data-i18n]::before,
.sidebar-actions .sbtn::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-color: #8e93b0;
}

.sidebar-actions .action-group-header span[data-i18n]::before {
    background-color: #b47fe8;
}

.sidebar-actions .action-group-header:hover span[data-i18n]::before,
.sidebar-actions .action-group:not(.collapsed) .action-group-header span[data-i18n]::before,
.sidebar-actions .sbtn:hover::before,
.sidebar-actions .sbtn.active-sbtn::before {
    background-color: #e84fa3;
}

/* Headers */
.action-group-header[data-target="group-sales-content-body"] span[data-i18n]::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0'/%3E%3Cpath d='M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.action-group-header[data-target="group-intel-targets-body"] span[data-i18n]::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.action-group-header[data-target="group-bulk-actions-body"] span[data-i18n]::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Buttons */
#btn-open-funnel::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-open-dm-followers::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-open-auto-post::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cline x1='12' y1='14' x2='12' y2='18'/%3E%3Cline x1='10' y1='16' x2='14' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-view-scheduled::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1' ry='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M12 11h4'/%3E%3Cpath d='M12 16h4'/%3E%3Cpath d='M8 11h.01'/%3E%3Cpath d='M8 16h.01'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-hashtag-generator::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z'/%3E%3Cpath d='m14 7 3 3'/%3E%3Cpath d='M5 6v4'/%3E%3Cpath d='M19 14v4'/%3E%3Cpath d='M10 2v2'/%3E%3Cpath d='M7 8H3'/%3E%3Cpath d='M21 16h-4'/%3E%3Cpath d='M11 3H9'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-hashtag-rob::before, #btn-hashtag-follow::before, #bf-open-modal::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='20' y1='8' x2='20' y2='14'/%3E%3Cline x1='23' y1='11' x2='17' y2='11'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-spy-stories::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.88 9.88a3 3 0 1 0 4.24 4.24'/%3E%3Cpath d='M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68'/%3E%3Cpath d='M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61'/%3E%3Cline x1='2' y1='2' x2='22' y2='22'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-hashtag-like::before, #btn-bulk-api::before, #btn-bulk-comments::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-hashtag-comment::before, #btn-bulk-post-comment::before, #btn-bulk-reply::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-bulk-unfollow::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='8.5' cy='7' r='4'/%3E%3Cline x1='23' y1='11' x2='17' y2='11'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-bulk-stories::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='10 8 16 12 10 16 10 8'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-bulk-feed::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") no-repeat center / contain;
}
#btn-cancel-pending::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E") no-repeat center / contain;
}


/* Log Control Buttons (CSP Safe) */
.log-control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    outline: none;
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.7;
}

.log-control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.new-feature-badge {
    background: linear-gradient(135deg, #c13584, #833ab4);
    color: white;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(193, 53, 132, 0.3);
}

/* ===================== ROBOT LOGO ANIMATION ===================== */
.brand-logo-svg {
    animation: float-bot 2.4s ease-in-out infinite alternate !important;
    transform-origin: center center !important;
    will-change: transform;
    display: inline-block !important;
}

@keyframes float-bot {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-2.5px) rotate(0.8deg);
    }
}

.brand:hover .brand-logo-svg, .welcome-title:hover .brand-logo-svg {
    animation: wiggle-bot 0.6s ease-in-out !important;
}

@keyframes wiggle-bot {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-14deg) scale(1.12); }
    50% { transform: rotate(14deg) scale(1.12); }
    75% { transform: rotate(-6deg) scale(1.05); }
    100% { transform: rotate(0deg) scale(1); }
}


/* ===================== SDV CYCLE: SIDE-BY-SIDE CONFIG MODE ===================== */
body.sdv-side-mode #modal-sdv-cycle {
    display: flex !important;
    justify-content: flex-start !important;
    padding-left: 36px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.sdv-side-mode #modal-sdv-cycle .modal-content {
    width: 440px !important;
    max-width: 440px !important;
    margin: 0 !important;
}

/* Apenas o modal específico com a classe .sdv-config-active será exibido à direita */
.sdv-config-active {
    display: flex !important;
    justify-content: flex-end !important;
    padding-right: 36px !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
    z-index: 10002 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sdv-config-active .modal-content {
    width: 450px !important;
    max-width: 450px !important;
    margin: 0 !important;
    pointer-events: auto !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.9) !important;
    animation: modal-slide-in-right 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes modal-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sdv-config-active #btn-confirm-bulk-like,
.sdv-config-active #btn-confirm-comment {
    display: none !important;
}

.sdv-config-active #btn-sdv-done-like,
.sdv-config-active #btn-sdv-done-reply {
    display: inline-block !important;
}

.sdv-config-active .sdv-config-badge {
    display: block !important;
}

/* ===================== SAFE PRESETS ONE-CLICK FILL ===================== */
.modal-actions {
    flex-wrap: wrap;
    align-items: center;
}

.btn-safe-preset {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 7px;
    border: 1px solid rgba(16, 185, 129, 0.38);
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    line-height: 1.2;
}

.btn-safe-preset:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.65);
    color: #6ee7b7;
    transform: translateY(-1px);
}

.btn-safe-preset:active {
    transform: translateY(0);
}

.btn-safe-preset svg {
    flex-shrink: 0;
}

.preset-filled-flash {
    animation: safePresetFlash 0.8s ease-out;
}

@keyframes safePresetFlash {
    0% {
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.75);
        border-color: #34d399;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.safe-preset-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9px;
    background: #13221c;
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #a7f3d0;
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    max-width: 360px;
}

.safe-preset-toast.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===================== LIMITED FREE TIER & QUOTA UI ===================== */
.btn-continue-free-limited {
    margin-top: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: #a7f3d0;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.btn-continue-free-limited:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(52, 211, 153, 0.6);
    color: #ffffff;
}

.iga-pro-reason-banner {
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.42);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.free-quota-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 9px;
    background: rgba(16, 185, 129, 0.11);
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: #a7f3d0;
    font-size: 12px;
    font-weight: 600;
}

.free-quota-banner.exhausted {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(248, 113, 113, 0.42);
    color: #fecaca;
}

.free-quota-banner-pro-btn {
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #833ab4, #c13584);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.free-quota-banner-pro-btn:hover {
    filter: brightness(1.08);
}

.sbtn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.sbtn-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sbtn-tier-pill {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.35px;
    flex-shrink: 0;
}

.sbtn-tier-pill.is-free {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
}

.sbtn-tier-pill.is-pro {
    background: rgba(131, 58, 180, 0.16);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.28);
}

.sbtn.sbtn-pro-locked {
    opacity: 0.86;
}

.group-tier-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.group-tier-pill.is-free {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.32);
}

.group-tier-pill.is-pro {
    background: rgba(131, 58, 180, 0.14);
    color: #c4b5fd;
    border: 1px solid rgba(168, 85, 247, 0.25);
}


/* ===================== HOME V2 (WELCOME DASHBOARD ONLY) ===================== */

#welcome-dashboard {
    background: #07030d;
    padding: 16px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.home-v2-shell {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
}

.home-v2-ambient {
    position: absolute;
    inset: -16px -20px;
    background:
        radial-gradient(circle at 50% 8%, rgba(225, 48, 108, 0.20) 0%, rgba(131, 58, 180, 0.12) 38%, transparent 70%),
        radial-gradient(circle at 18% 85%, rgba(131, 58, 180, 0.14) 0%, transparent 48%),
        radial-gradient(circle at 82% 85%, rgba(252, 175, 69, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.home-v2-stars {
    position: absolute;
    inset: -16px -20px;
    background-image:
        radial-gradient(1.2px 1.2px at 14% 22%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, 0.32), transparent),
        radial-gradient(1.4px 1.4px at 45% 15%, rgba(255, 126, 179, 0.50), transparent),
        radial-gradient(1px 1px at 67% 30%, rgba(255, 255, 255, 0.40), transparent),
        radial-gradient(1.5px 1.5px at 84% 18%, rgba(252, 175, 69, 0.45), transparent),
        radial-gradient(1px 1px at 90% 66%, rgba(255, 255, 255, 0.38), transparent),
        radial-gradient(1.2px 1.2px at 12% 62%, rgba(225, 48, 108, 0.40), transparent),
        radial-gradient(1px 1px at 74% 82%, rgba(255, 255, 255, 0.30), transparent),
        radial-gradient(1.3px 1.3px at 54% 90%, rgba(255, 126, 179, 0.35), transparent);
    pointer-events: none;
    z-index: 0;
}

.home-v2-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 780px;
    padding: 26px 30px 22px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(22, 10, 36, 0.86) 0%, rgba(12, 5, 22, 0.94) 100%);
    border: 1px solid rgba(225, 48, 108, 0.28);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.72),
        0 0 40px rgba(131, 58, 180, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-v2-brand-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.home-v2-brand-emblem {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.42), rgba(225, 48, 108, 0.34));
    border: 1px solid rgba(225, 48, 108, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(225, 48, 108, 0.28);
}

.home-v2-brand-title {
    font-family: 'Sora', 'Segoe UI', Inter, sans-serif;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    background: linear-gradient(90deg, #ffffff 0%, #ff9ec4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-v2-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px;
    border-radius: 999px;
    background: rgba(26, 11, 42, 0.92);
    border: 1px solid rgba(225, 48, 108, 0.42);
    box-shadow: 0 0 24px rgba(225, 48, 108, 0.22);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.55px;
    color: #ffd1e3;
    margin-bottom: 16px;
}

.home-v2-eyebrow-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e1306c;
    box-shadow: 0 0 12px #e1306c;
    flex-shrink: 0;
    animation: homeV2PulseGlow 2s infinite;
}

@keyframes homeV2PulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

.home-v2-title {
    font-family: 'Sora', 'Segoe UI', Inter, sans-serif;
    font-size: clamp(23px, 3.1vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    max-width: 660px;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.home-v2-gradient-aurora {
    background: linear-gradient(135deg, #ff7eb3 0%, #e1306c 35%, #f77737 70%, #fcaf45 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-v2-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    color: #b4a5c7;
    max-width: 570px;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.home-v2-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 680px;
    margin-bottom: 20px;
}

.home-v2-pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(26, 12, 42, 0.88);
    border: 1px solid rgba(225, 48, 108, 0.34);
    color: #f3e8ff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition:
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}

.home-v2-pill::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        110px circle at var(--mx, 50%) var(--my, 50%),
        rgba(225, 48, 108, 0.34),
        rgba(252, 175, 69, 0.12) 45%,
        transparent 72%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.home-v2-pill:hover,
.home-v2-pill:focus-visible {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.42), rgba(225, 48, 108, 0.30));
    border-color: #e1306c;
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 12px 26px rgba(225, 48, 108, 0.34),
        0 0 18px rgba(131, 58, 180, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
    outline: none;
}

.home-v2-pill:hover::before,
.home-v2-pill:focus-visible::before {
    opacity: 1;
}

.home-v2-pill:active {
    transform: translateY(0) scale(0.98);
}

.home-v2-pill-dot {
    position: relative;
    z-index: 1;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fcaf45, #e1306c);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-v2-pill:hover .home-v2-pill-dot,
.home-v2-pill:focus-visible .home-v2-pill-dot {
    transform: scale(1.3);
    box-shadow: 0 0 10px #e1306c, 0 0 16px rgba(252, 175, 69, 0.78);
}

.home-v2-pill-label {
    position: relative;
    z-index: 1;
}

#rotating-tip.home-v2-bottom-tip {
    width: 100%;
    max-width: 640px;
    min-height: 0;
    margin: 0 auto;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(252, 175, 69, 0.08);
    border: 1px solid rgba(252, 175, 69, 0.28);
    color: #fde68a;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
}

#welcome-dashboard.working #home-v2-stage,
#welcome-dashboard.feed-working #home-v2-stage,
#welcome-dashboard.feed-working-v2 #home-v2-stage,
#welcome-dashboard.follow-working-v2 #home-v2-stage,
#welcome-dashboard.stories-working #home-v2-stage,
#welcome-dashboard.unfollow-working #home-v2-stage,
#welcome-dashboard.bulk-comments-active #home-v2-stage,
#welcome-dashboard.bulk-comment-active #home-v2-stage,
#welcome-dashboard.statusCommentActive #home-v2-stage {
    display: none !important;
}


/* Fix modal footer button wrapping in pt-BR only */
html[data-lang="pt-BR"] .modal-actions {
    flex-wrap: nowrap;
    gap: 6px;
}

html[data-lang="pt-BR"] .btn-safe-preset {
    font-size: 10px;
    padding: 5px 8px;
    gap: 4px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    flex-shrink: 1;
}

html[data-lang="pt-BR"] .modal-actions .btn {
    font-size: 12px;
    padding: 6px 11px;
    white-space: nowrap;
    flex-shrink: 0;
}
