.like_popup_container {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #191919;
    border-radius: 40px;
    padding: 15px 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
    white-space: nowrap;
    border: none;
    margin-bottom: 15px;
}

.dark-theme .like_popup_container {
    background: #191919;
}

.like_popup_container.show {
    display: flex;
    gap: 30px;
}

.like_choice_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.like_choice_wrapper:hover {
    transform: scale(1.1);
}

.like_choice_wrapper img {
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
}

.like_choice_wrapper span {
    font-size: 14px;
    color: #d1d1d1 !important;
    font-family: inherit;
    font-weight: 400;
}

.like_choice_wrapper.active span {
    color: #ffffff !important;
    font-weight: 600;
}

.like_container {
    position: relative;
}

.like_text {
    font-size: inherit !important;
    display: inline !important;
    margin-top: 0 !important;
}

.dark-theme .like_text.active {
    color: #ffffff;
}

/* Wallet popup styles */
@keyframes wallet_spin {
    to { transform: rotate(360deg); }
}

#wallet_popup_modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1055 !important;
    display: none;
    overflow-y: auto !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

#wallet_popup_modal .modal-dialog {
    max-width: 752px !important;
    width: 752px !important;
    margin: 40px auto !important;
    top: 0 !important;
}

#wallet_popup_modal .wallet_new_modal_content {
    display: flex;
    width: 752px;
    min-height: 560px;
    padding: 18px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;

    border-radius: 24px !important;
    border: 1px solid #1E293B !important;
    background: #0D181C !important;
    box-shadow: 0 16px 32px 0 rgba(0, 0, 0, 0.50) !important;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#wallet_data_container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wallet_new_modal_header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.wallet_new_modal_title {
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.wallet_close_btn_new {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8 !important;
    text-decoration: none !important;
    transition: background 0.2s ease;
    cursor: pointer;
}

.wallet_close_btn_new:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF !important;
}

.wallet_close_btn_new::after {
    content: "✕";
    font-size: 14px;
    font-weight: 600;
}

/* User Section */
.wallet_new_user_section {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.wallet_new_user_info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet_new_user_avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563EB;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet_new_user_details {
    display: flex;
    flex-direction: column;
}

.wallet_new_user_name {
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 0 0 2px 0 !important;
}

.wallet_new_user_email {
    color: #94A3B8 !important;
    font-size: 12px !important;
    margin: 0 !important;
}

/* Coins Box CSS */
.wallet_new_balance_pill {
    display: flex;
    width: 121px;
    height: 45px;
    padding: 4px 10px;
    justify-content: center;
    align-items: center;
    gap: 6px;

    border-radius: 999px;
    border: 1px solid #1E293B;
    background: #111827;
}

.wallet_new_coin_icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #FBBF24 0%, #D97706 100%);
    border-radius: 50%;
}

.wallet_new_coin_text {
    color: #EAB308 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* Coins Credited / Redeemed Box CSS */
.wallet_new_stats_section {
    display: flex;
    padding: 16px !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px !important;
    align-self: stretch;
    box-sizing: border-box !important;

    border-radius: 12px !important;
    border: 1px solid #1E293B !important;
    background: #111827 !important;
    min-height: 172px;
}

.wallet_new_stat_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.wallet_new_stat_left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet_new_stat_left span {
    color: #94A3B8;
    font-family: Mulish, sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.wallet_new_icon_up {
    display: flex;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 8px;
    background: #052E16;
}

.wallet_new_icon_down {
    display: flex;
    width: 28px;
    height: 28px;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    border-radius: 8px;
    background: #3A2A07;
}

.wallet_new_stat_divider {
    width: 100%;
    height: 1px;
    background: #1E293B;
    margin: 0;
}

.wallet_new_stat_right {
    color: #F8FAFC !important;
    font-family: Mulish, sans-serif;
    font-size: 15px !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: normal;
}

/* Action Buttons CSS */
.wallet_new_action_section {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    margin-top: 4px;
    width: 100%;
}

/* Apply button */
button.wallet_new_apply_btn,
.wallet_new_modal_content button.wallet_new_apply_btn,
.wallet_new_apply_btn {
    display: flex;
    flex: 1;
    height: 40px;
    padding: 10px 24px;
    justify-content: center;
    align-items: center;
    gap: 9px;

    border-radius: 8px;
    background-color: #D41F52 !important;
    color: #FFFFFF !important;
    font-family: Mulish, sans-serif;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 600 !important;
    line-height: normal;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.wallet_new_apply_btn span {
    color: #FFFFFF !important;
    font-family: Mulish, sans-serif;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: normal;
}

.wallet_new_apply_btn::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2.66663 8H13.3333M9.33329 12L13.3333 8L9.33329 4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.wallet_new_apply_btn:hover {
    opacity: 0.9;
}

.wallet_new_qty_controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* - button */
.wallet_new_qty_btn_minus {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: rgba(212, 31, 82, 0.63);
    color: #FFFFFF !important;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

/* + button */
.wallet_new_qty_btn_plus {
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #D41F52;
    color: #FFFFFF !important;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.wallet_new_qty_val {
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 4px;
}

/* Transaction History Section */
.wallet_new_history_section {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.wallet_new_history_title {
    color: #94A3B8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin: 0 0 6px 0 !important;
}

#wallet_transactions_list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

#wallet_transactions_list::-webkit-scrollbar {
    width: 5px;
}

#wallet_transactions_list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#wallet_transactions_list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

#wallet_transactions_list::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.wallet_new_history_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1E293B;
    background: transparent;
}

.wallet_new_history_item:last-child {
    border-bottom: none;
}

.wallet_new_hist_left .wallet_new_hist_name {
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin: 0 0 3px 0 !important;
}

.wallet_new_hist_left .wallet_new_hist_date {
    color: #64748B !important;
    font-size: 12px !important;
    margin: 0 !important;
}

.wallet_new_hist_right {
    font-size: 14px !important;
    font-weight: 700 !important;
}

.wallet_new_hist_right.text_green { color: #22C55E !important; }
.wallet_new_hist_right.text_red { color: #EF4444 !important; }
.wallet_new_hist_right.text_amber { color: #F59E0B !important; }

/* Header alignment for back logo and wallet icon */
.hed_sec {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 16px !important;
}

.plan_in_text_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Wallet button styles */
.wallet_icon_btn_wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hed_wallet_icon {
    display: none !important;
}

.desktop_wallet_icon {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    .hed_wallet_icon {
        display: inline-flex !important;
        margin-left: auto !important;
    }

    .desktop_wallet_icon {
        display: none !important;
    }
}

.wallet_bg_circle {
    width: 48px;
    height: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none'%3E%3CforeignObject x='-3' y='-3' width='54' height='54'%3E%3Cdiv xmlns='http://www.w3.org/1999/xhtml' style='backdrop-filter:blur(1.5px);clip-path:url(%23bgblur_0_2946_2218_clip_path);height:100%25;width:100%25'%3E%3C/div%3E%3C/foreignObject%3E%3Ccircle data-figma-bg-blur-radius='3' cx='24' cy='24' r='24' fill='%23D9D9D9' fill-opacity='0.36'/%3E%3Cdefs%3E%3CclipPath id='bgblur_0_2946_2218_clip_path' transform='translate(3 3)'%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.wallet_icon_img {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M16.5 14H16.51M3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V9C21 7.89543 20.1046 7 19 7L5 7C3.89543 7 3 6.10457 3 5ZM3 5C3 3.89543 3.89543 3 5 3H17M17 14C17 14.2761 16.7761 14.5 16.5 14.5C16.2239 14.5 16 14.2761 16 14C16 13.7239 16.2239 13.5 16.5 13.5C16.7761 13.5 17 13.7239 17 14Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Mobile Web (mweb) Responsive Wallet Styles */
@media (max-width: 768px) {
    #wallet_popup_modal .modal-dialog {
        max-width: calc(100% - 24px) !important;
        width: calc(100% - 24px) !important;
        margin: 20px auto !important;
    }

    #wallet_popup_modal .wallet_new_modal_content {
        width: 100% !important;
        min-height: auto !important;
        padding: 16px !important;
        border-radius: 16px !important;
        gap: 16px !important;
    }

    .wallet_new_modal_header {
        width: 100%;
    }

    .wallet_new_modal_title {
        font-size: 16px !important;
    }

    .wallet_close_btn_new {
        width: 28px;
        height: 28px;
    }

    .wallet_new_user_section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .wallet_new_user_info {
        gap: 8px;
        min-width: 0;
        flex: 1;
    }

    .wallet_new_user_avatar {
        width: 36px;
        height: 36px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .wallet_new_user_details {
        min-width: 0;
        flex: 1;
    }

    .wallet_new_user_name {
        font-size: 13px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wallet_new_user_email {
        font-size: 11px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .wallet_new_balance_pill {
        height: 36px;
        padding: 4px 8px;
        width: auto;
        min-width: 95px;
        flex-shrink: 0;
    }

    .wallet_new_coin_icon {
        width: 15px;
        height: 15px;
    }

    .wallet_new_coin_text {
        font-size: 12px !important;
    }

    .wallet_new_stats_section {
        padding: 12px !important;
        min-height: auto;
        gap: 10px !important;
        border-radius: 12px !important;
    }

    .wallet_new_stat_left span {
        font-size: 12px;
    }

    .wallet_new_icon_up, .wallet_new_icon_down {
        width: 24px;
        height: 24px;
    }

    .wallet_new_stat_right {
        font-size: 13px !important;
    }

    .wallet_new_action_section {
        gap: 8px;
        margin-top: 2px;
    }

    button.wallet_new_apply_btn,
    .wallet_new_modal_content button.wallet_new_apply_btn,
    .wallet_new_apply_btn {
        height: 36px;
        padding: 6px 12px;
        font-size: 13px !important;
    }

    .wallet_new_apply_btn span {
        font-size: 13px !important;
    }

    .wallet_new_qty_btn_minus,
    .wallet_new_qty_btn_plus {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .wallet_new_qty_val {
        font-size: 13px !important;
    }

    .wallet_new_history_title {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    #wallet_transactions_list {
        max-height: 160px;
    }

    .wallet_new_history_item {
        padding: 8px 0;
    }

    .wallet_new_hist_left .wallet_new_hist_name {
        font-size: 12px !important;
    }

    .wallet_new_hist_left .wallet_new_hist_date {
        font-size: 10px !important;
    }

    .wallet_new_hist_right {
        font-size: 12px !important;
    }

    .wallet_bg_circle {
        width: 40px;
        height: 40px;
    }

    .wallet_icon_img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 380px) {
    #wallet_popup_modal .modal-dialog {
        max-width: calc(100% - 16px) !important;
        width: calc(100% - 16px) !important;
        margin: 12px auto !important;
    }

    #wallet_popup_modal .wallet_new_modal_content {
        padding: 12px !important;
        gap: 12px !important;
    }

    .wallet_new_user_name {
        max-width: 100px;
    }

    .wallet_new_user_email {
        max-width: 100px;
    }
}

/* Compact Wallet Modal Style (No Wallet / Logged Out / Error) */
#wallet_popup_modal.wallet_modal_compact .modal-dialog {
    max-width: 340px !important;
    width: 340px !important;
    margin: 80px auto !important;
}

#wallet_popup_modal.wallet_modal_compact .wallet_new_modal_content {
    width: 340px !important;
    min-height: auto !important;
    padding: 18px 20px !important;
    gap: 10px !important;
    border-radius: 16px !important;
}

@media (max-width: 768px) {
    #wallet_popup_modal.wallet_modal_compact .modal-dialog {
        max-width: calc(100% - 40px) !important;
        width: min(340px, calc(100% - 40px)) !important;
        margin: 60px auto !important;
    }

    #wallet_popup_modal.wallet_modal_compact .wallet_new_modal_content {
        width: 100% !important;
        padding: 16px !important;
    }
}