/**
 * ═══════════════════════════════════════════════════════════════════════════
 * CAMPAIGN REEL STYLES
 * Estilos para el sistema de donaciones en Reels
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* Campaign Overlay Container */
.campaign-overlay-reel {
    position: absolute;
    bottom: 110px;
    left: 15px;
    right: 70px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 2500;
}

.campaign-overlay-reel .campaign-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    max-width: 100%;
}

.campaign-overlay-reel .campaign-title::before {
    content: "🎯";
    flex-shrink: 0;
    margin-right: 8px;
}

.campaign-overlay-reel .campaign-cause {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 2.8em;
}

/* Donors Inline - inside overlay above donate button */
.campaign-donors-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* Centered donors */
    margin: 8px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
    gap: 0;
}

.campaign-donor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #181a20;
    overflow: hidden;
    margin-right: -8px;
    /* Overlap effect */
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.campaign-donor-avatar:last-of-type {
    margin-right: 0;
}

.campaign-donor-avatar.anonymous {
    background: linear-gradient(135deg, #4a4a4a 0%, #2d2d2d 100%);
}

.campaign-donor-avatar.more-donors {
    background: linear-gradient(135deg, #ff6b4a 0%, #fea032 100%);
    font-size: 10px;
    font-weight: 800;
}

.campaign-donors-count {
    margin-left: 15px;
    /* Space for the overlapping avatars */
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.campaign-donor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Donate Button */
.campaign-donate-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(90deg, #ff9a56 0%, #ff6b4a 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.campaign-donate-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4);
}

.campaign-donate-btn .heart-icon {
    font-size: 22px;
}

/* Progress Bar */
.campaign-progress-container {
    margin-bottom: 12px;
}

.campaign-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    /* overflow: hidden; Removed to allow percentage to show outside */
    position: relative;
}

.campaign-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00dbde 0%, #fc00ff 100%);
    border-radius: 10px;
    position: relative;
    transition: width 0.5s ease;
    animation: campaign-glow 2s ease-in-out infinite;
}

@keyframes campaign-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 219, 222, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(252, 0, 255, 0.8);
    }
}

.campaign-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.campaign-progress-amount {
    color: #00dbde;
    font-weight: 700;
}

/* Percentage Badge inside Progress Bar */
.campaign-progress-percent {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 28px;
    text-align: center;
    white-space: nowrap;
}

/* If progress is too small (using class), show percent outside */
.campaign-progress-fill.low-progress .campaign-progress-percent {
    right: -55px;
    /* Moved further right to accommodate longer decimals like 0.01% */
    color: #00dbde;
    text-shadow: none;
    background: none;
}

/* Anonymous Toggle */
.campaign-anonymous-toggle {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.campaign-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.campaign-toggle-label input[type="checkbox"] {
    display: none;
}

.campaign-toggle-switch {
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.campaign-toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.campaign-toggle-label input:checked+.campaign-toggle-switch {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #764ba2;
}

.campaign-toggle-label input:checked+.campaign-toggle-switch::after {
    left: calc(100% - 20px);
}

.campaign-toggle-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: color 0.3s;
}

.campaign-toggle-label input:checked~.campaign-toggle-text {
    color: #fff;
}

/* Donate Button */
.campaign-donate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #ff6b4a 0%, #fea032 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: campaign-pulse 2s infinite;
    transition: transform 0.2s;
}

.campaign-donate-btn:hover {
    transform: scale(1.02);
}

@keyframes campaign-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 74, 0.5);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 74, 0);
    }
}

.campaign-donate-btn .heart-icon {
    animation: campaign-heartbeat 1.5s infinite;
}

@keyframes campaign-heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Donation Modal */
.campaign-donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.campaign-donation-modal.active {
    display: flex;
}

.campaign-modal-card {
    width: 90%;
    max-width: 360px;
    background: linear-gradient(rgba(30, 30, 30, 0.98), rgba(30, 30, 30, 0.98)) padding-box,
        linear-gradient(135deg, #00dbde 0%, #fc00ff 100%) border-box;
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 25px;
    animation: campaign-modalIn 0.3s ease;
}

@keyframes campaign-modalIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.campaign-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.campaign-modal-header h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.campaign-modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.campaign-amount-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    outline: none;
}

.campaign-amount-input:focus {
    border-color: #00dbde;
}

.campaign-quick-amounts {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.campaign-quick-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.campaign-quick-btn:hover,
.campaign-quick-btn.active {
    background: rgba(0, 219, 222, 0.2);
    border-color: #00dbde;
}

/* Payment Methods */
.campaign-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.campaign-wallet-btn {
    width: 100%;
    padding: 18px 25px;
    /* Identical to image with Flowing Animation */
    background: linear-gradient(90deg, #ff7a50 0%, #ff8347 100%) padding-box,
        linear-gradient(90deg, #00dbde, #fc00ff, #00dbde) border-box;
    background-size: 100% 100%, 200% 100%;
    border: 2px solid transparent;
    border-radius: 50px;
    /* Pill shape like the image */
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: border-flow 6s linear infinite;
}

@keyframes border-flow {
    0% {
        background-position: 0% 0%, 0% 0%;
    }

    100% {
        background-position: 0% 0%, 200% 0%;
    }
}

.campaign-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.4);
    filter: brightness(1.2);
}

.campaign-wallet-btn:active {
    transform: translateY(0);
}

.campaign-wallet-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.campaign-wallet-balance {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 4px;
}

.campaign-card-btn {
    width: 100%;
    padding: 15px;
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.campaign-card-btn:hover {
    border-color: #00dbde;
    background: rgba(0, 219, 222, 0.1);
}

.campaign-card-btn .card-icon {
    color: #fea032;
}

.campaign-cancel-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: pointer;
}

/* Limit Warning Modal */
.campaign-limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.campaign-limit-modal.active {
    display: flex;
}

.campaign-limit-card {
    width: 85%;
    max-width: 340px;
    background: linear-gradient(rgba(40, 30, 30, 0.98), rgba(40, 30, 30, 0.98)) padding-box,
        linear-gradient(135deg, #ff6b4a 0%, #fea032 100%) border-box;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    animation: campaign-modalIn 0.3s ease;
}

.campaign-limit-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.campaign-limit-title {
    color: #fea032;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

.campaign-limit-message {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.campaign-limit-message strong {
    color: #fff;
}

.campaign-limit-ok-btn {
    padding: 12px 40px;
    background: linear-gradient(90deg, #ff6b4a 0%, #fea032 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Success Modal */
.campaign-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.campaign-success-modal.active {
    display: flex;
}

.campaign-success-card {
    text-align: center;
    padding: 40px;
    animation: campaign-successIn 0.5s ease;
}

@keyframes campaign-successIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.campaign-success-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: campaign-bounce 0.6s ease;
}

@keyframes campaign-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.campaign-success-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.campaign-success-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.5;
}

/* Donors Sidebar */
.campaign-donors-sidebar {
    position: absolute;
    right: 10px;
    bottom: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.campaign-donor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
}

.campaign-donor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-donors-count {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
}

/* Video Pause Effect */
.reel-video-paused {
    filter: brightness(0.4);
}

/* Adaptación para Campaña Reel (sin portada) */
.is-reel-campaign .campaign_cover_block {
    display: none !important;
}

.is-reel-campaign .campaign_popup_card {
    max-height: 80vh;
    overflow-y: auto;
}

/* Unificación y Pulido Visual del Modal de Campaña */
.campaign_popup_card {
    background: #0f1119 !important;
    border: 1px solid #2f3544 !important;
    gap: 20px !important;
    /* Un poco más de aire entre bloques */
}

.campaign_popup_card .i_input,
.campaign_popup_card textarea,
.campaign_popup_card .campaign_fields select,
.campaign_popup_card .schedule_dt_group select {
    background: #0c0f13 !important;
    border: 1px solid #1f2937 !important;
    border-radius: 12px !important;
    color: #e5e7eb !important;
    padding: 12px !important;
    font-size: 14px !important;
    box-sizing: border-box;
}

.campaign_popup_card .i_input:focus,
.campaign_popup_card textarea:focus,
.campaign_popup_card select:focus {
    border-color: #00dbde !important;
    background: #0f1319 !important;
    outline: none !important;
}

/* Estandarización de Etiquetas (Labels) */
.campaign_popup_card .i_input_wrapper>span,
.campaign_popup_card .schedule_dt_label {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #f5f6fb !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

/* Etiquetas internas para Día/Mes/Año/Hora/etc */
.campaign_popup_card .schedule_dt_item .schedule_dt_label {
    font-size: 10px !important;
    opacity: 0.7;
    margin-bottom: 4px !important;
    text-transform: uppercase !important;
}

.campaign_popup_card .schedule_dt_inputs {
    margin-top: 0 !important;
    gap: 15px !important;
}

.campaign_popup_card .campaign_amounts {
    gap: 15px !important;
}

/* Eliminar posibles backgrounds o bordes extra en sub-contenedores que causan el efecto "cortado" */
.campaign_popup_card .campaign_fields,
.campaign_popup_card .campaign_amounts,
.campaign_popup_card .schedule_dt_inputs,
.campaign_popup_card .schedule_dt_group {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================================================== */
/* SOLUCIÓN NUCLEAR PARA PC (ESCRITORIO)                      */
/* SE ACTIVA POR ID ÚNICO PARA MÁXIMA ESPECIFICIDAD          */
/* =========================================================== */

#i_modal_wrapper_id .i_modal_content .campaign_popup_card {
    /* 1. Reset de contenedor */
    width: 650px !important;
    max-width: 90vw !important;
    height: auto !important;
    max-height: 85vh !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    padding: 30px !important;
    overflow-y: auto !important;
    /* Scroll interno si es necesario */
    scrollbar-width: thin;
    scrollbar-color: #2f3544 #0f1119;
}

/* 2. Grid para campos principales (Título, Goal, Deadline) */
#i_modal_wrapper_id .campaign_fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    /* Dos columnas */
    gap: 20px !important;
}

/* Hacer que el Título y Descripción ocupen todo el ancho si se desea */
#i_modal_wrapper_id .campaign_fields .i_input_wrapper:nth-child(1),
#i_modal_wrapper_id .campaign_fields .i_input_wrapper:nth-child(4) {
    grid-column: span 2 !important;
}

/* 3. Amounts (Montos) en fila horizontal */
#i_modal_wrapper_id .campaign_amounts {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

#i_modal_wrapper_id .campaign_amounts .i_input_wrapper {
    flex: 1 !important;
    /* Todos mismo ancho */
}

/* 4. Schedule (Fechas) en fila horizontal limpia */
#i_modal_wrapper_id .schedule_dt_inputs {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    /* Espacio uniforme */
    justify-content: flex-start !important;
    align-items: flex-end !important;
}

#i_modal_wrapper_id .schedule_dt_group {
    flex: 1 !important;
    /* Distribuir espacio */
    min-width: 80px !important;
}

/* 5. Warning oculto por defecto */
#i_modal_wrapper_id .campaign_fee_warning {
    margin-top: 10px !important;
}

/* =========================================================== */
/* AJUSTES PARA MÓVIL (PANTALLAS PEQUEÑAS)                   */
/* =========================================================== */
@media screen and (max-width: 768px) {
    #i_modal_wrapper_id .i_modal_content .campaign_popup_card {
        padding: 20px !important;
        gap: 15px !important;
        width: 95% !important;
    }

    #i_modal_wrapper_id .campaign_fields {
        grid-template-columns: 1fr !important;
        /* Una columna en móvil */
    }

    #i_modal_wrapper_id .campaign_fields .i_input_wrapper:nth-child(1),
    #i_modal_wrapper_id .campaign_fields .i_input_wrapper:nth-child(4) {
        grid-column: span 1 !important;
    }

    #i_modal_wrapper_id .campaign_amounts,
    #i_modal_wrapper_id .schedule_dt_inputs {
        flex-direction: column !important;
        /* Apilar en móvil */
        gap: 10px !important;
    }
}

.publishReels.campaign-ready {
    background: linear-gradient(90deg, #ff6b4a 0%, #fea032 100%) !important;
    animation: campaign-pulse 2s infinite;
}

.publishReels.campaign-ready .pbtn {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .scroll-buttons {
        display: none !important;
    }
}

/* Tip Button Pulse Animation */
.pulse_btn {
    position: relative;
    z-index: 10;
}

.pulse_btn svg {
    width: 38px !important;
    height: 38px !important;
}

.pulse_btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: pulse-ring 1s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* Fix Menu Z-Index to stay above overlay */
.i_post_menu_container {
    z-index: 9999 !important;
}


/* TIP ICON VISIBILITY FIX */
.in_tips svg {
    fill: #ffffff !important;
    stroke: #ffffff !important;
    width: 32px !important;
    height: 32px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.tip_icon_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


/* Fix View Count Icon Size */
.right-ui .action svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

/* Specific fix for tip icon */
.in_tips svg {
    width: 32px !important;
    height: 32px !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
}

/* Ensure empty icons don't collapse */
.right-ui .action {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================= */
/* SIZE FIX: Restore Modal & Menu to Original Proportions   */
/* ========================================================= */

/* 1. Reduce Menu Dimensions */
.i_post_menu_container .i_post_menu_item_wrapper {
    width: 250px !important;
    /* Original width */
    max-width: 80vw !important;
}

.i_post_menu_item_out {
    padding: 10px 15px !important;
    /* Standard padding */
    font-size: 14px !important;
    /* Normal font size */
    gap: 10px !important;
}

/* 2. Restore Icon Sizes */
.i_post_menu_item_out svg,
.i_post_menu_item_out svg path {
    width: 18px !important;
    /* Standard icon size */
    height: 18px !important;
    min-width: 18px !important;
}

/* 3. Reduce Campaign Modal if also affected */
#i_modal_wrapper_id .i_modal_content .campaign_popup_card {
    padding: 20px !important;
    width: 500px !important;
}


/* FORCE VISIBILITY FOR MENU ICONS */
.i_post_menu_item_out svg,
.i_post_menu_item_out svg path {
    fill: #cccccc !important;
    /* Force a visible light gray */
    color: #cccccc !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Specific fix for 'Who can see this' icon - Remove white background circle */
.i_post_menu_item_out.wcs {
    background: transparent !important;
}

.i_post_menu_item_out.wcs span {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: none !important;
    background-color: transparent !important;
}

/* Force ALL circle elements in SVGs to be transparent */
.i_post_menu_container svg circle,
.i_post_menu_container svg ellipse {
    fill: none !important;
    fill-opacity: 0 !important;
    stroke: #858fad !important;
}

.i_post_menu_container svg,
.i_post_menu_container svg path,
.i_post_menu_container svg g {
    fill: #858fad !important;
}

.i_post_menu_container .i_post_menu_item_out:hover svg,
.i_post_menu_container .i_post_menu_item_out:hover svg path,
.i_post_menu_container .i_post_menu_item_out:hover svg circle {
    fill: #f65169 !important;
    stroke: #f65169 !important;
}


/* ROTATE 3 DOTS MENU TO VERTICAL */
.openPostMenu_reel svg {
    transform: rotate(90deg);
}


/* ========================================================= */
/* SIZE & SPACING CONFIGURATION (Based on User Requirements) */
/* ========================================================= */

/* 1. Icon Size: 30px (Slightly larger than original) */
.right-ui .action svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
}

/* 2. Spacing: 11px Gap between buttons */
.right-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px !important;
    padding-bottom: 20px;
}

/* 3. Margin Cleaning: Ensure alignment */
.right-ui .action {
    margin: 0 !important;
    padding: 0 !important;
}

/* Move counts closer/group with buttons due to gap */
.right-ui .lp_sum {
    margin-top: -15px !important;
    margin-bottom: 0 !important;
}


/* FAVORITE BUTTON FIX (Icon 207) */
/* Ensure it matches size and is forced to white */
.right-ui .action.in_save svg,
.right-ui .action.in_save svg path,
.right-ui .action.svp svg,
.right-ui .action.svp svg path {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
    color: #ffffff !important;
}


/* TIP BUTTON COLOR FIX (Cross-Platform & Interactive States) */
.action.in_tips,
.action.in_tips:hover,
.action.in_tips:active,
.action.in_tips:focus {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b4a 100%) !important;
    /* Force Orange Gradient */
    background-color: #ff6b4a !important;
    /* Fallback */
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1 !important;
    box-shadow: none !important;
    /* No extra gray shadows */
    outline: none !important;
}

/* Make the dollar ICON white */
.action.in_tips svg,
.action.in_tips svg path {
    fill: #ffffff !important;
    /* White color for the icon */
    stroke: #ffffff !important;
    color: #ffffff !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
}

/* Pulse animation fix */
.pulse_btn {
    animation: none !important;
}

/* MODERN RED HEART COLOR */
/* More vibrant/modern red than standard #ff0000 */
.right-ui .action.in_unlike svg,
.right-ui .action.in_unlike svg path {
    fill: #ff3b5c !important;
    /* TikTok/Modern App Red */
    stroke: #ff3b5c !important;
    color: #ff3b5c !important;
    filter: drop-shadow(0 2px 8px rgba(255, 59, 92, 0.4));
    /* Nice glow */
}

/* REMOVE GRAY TOUCH HIGHLIGHT FROM ALL ACTION BUTTONS */
/* Except the tip button which keeps its own orange style */
.right-ui .action:not(.in_tips):active,
.right-ui .action:not(.in_tips):focus,
.right-ui .action:not(.in_tips):hover {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

/* Also ensure SVGs don't catch events that trigger highlights */
.right-ui .action svg {
    pointer-events: none;
}