/* Tigule Boost / Promotion modals — brand red (#C8102E) */
.boost-promo-dialog,
#boostSelectorModal .modal-dialog,
#newListingBoostModal .modal-dialog,
#promotionModal .modal-dialog {
    --bp-red: #c8102e;
    --bp-red-mid: #e02040;
    --bp-red-deep: #a00d25;
    --bp-red-dark: #8b0a20;
    --bp-red-soft: #faf7f8;
    --bp-ink: #1c1b1f;
    --bp-muted: #79747e;
    --bp-border: #f3ecee;
    max-width: 420px;
    width: calc(100% - 1.5rem);
    margin: .75rem auto;
}

.boost-promo-shell,
#boostSelectorModal .modal-content,
#newListingBoostModal .modal-content,
#promotionModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(28, 27, 31, .18);
    background: #fff;
}

.boost-promo-hero {
    position: relative;
    padding: 1.05rem 1rem .85rem 1.15rem;
    color: #1c1b1f;
    background: #fff;
    background-image: radial-gradient(280px 120px at 0% 0%, rgba(200, 16, 46, .14), transparent 70%);
    overflow: hidden;
}

.boost-promo-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.boost-promo-hero-glow--1,
.boost-promo-hero-glow--2,
.boost-promo-hero-icon {
    display: none;
}

.boost-promo-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1b1f;
    background: #faf7f8;
    transition: background 0.2s ease;
}

.boost-promo-close:hover {
    background: #ffdad6;
    color: #C8102E;
}

.boost-promo-hero-inner {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 0 2.2rem 0 0;
}

.boost-promo-hero-icon {
    display: none;
}

.boost-promo-hero-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1c1b1f;
}

.boost-promo-hero-sub {
    margin: .22rem 0 0;
    font-size: .84rem;
    line-height: 1.4;
    color: #79747e;
}

.boost-promo-hero-sub strong {
    color: #1c1b1f;
    font-weight: 700;
}

.boost-promo-body,
#promotionModal .modal-body,
#newListingBoostModal .modal-body,
#boostSelectorModal .modal-body {
    padding: .35rem 1rem .85rem;
    max-height: min(52vh, 420px);
    overflow-y: auto;
}

.boost-promo-intro {
    font-size: 0.875rem;
    color: var(--bp-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.05) 0%, #f8fafc 100%);
    border: 1px solid rgba(200, 16, 46, 0.1);
}

.boost-promo-status {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.85rem;
    font-size: 0.84rem;
    color: var(--bp-red-dark);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(139, 10, 32, 0.05) 100%);
    border: 1px solid rgba(200, 16, 46, 0.18);
    line-height: 1.45;
}

.boost-promo-status i {
    color: var(--bp-red);
    margin-top: 0.15rem;
}

#promotionPlanOptions,
#newListingPlanOptions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promotion-plan-option {
    position: relative;
}

.promotion-plan-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.promotion-plan-card {
    display: block;
    position: relative;
    border-radius: 16px;
    border: 1.5px solid #f3ecee;
    padding: .85rem .9rem .85rem 2.55rem;
    background: #fff;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.promotion-plan-card:hover {
    border-color: rgba(200, 16, 46, 0.28);
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.1);
}

.plan-select-indicator {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: transparent;
    transition: all 0.2s ease;
}

.promotion-plan-radio:checked + .promotion-plan-card {
    border-color: #C8102E;
    transform: none;
    box-shadow: none;
    background: #fff;
}

.promotion-plan-radio:checked + .promotion-plan-card .plan-select-indicator {
    background: linear-gradient(135deg, var(--bp-red), var(--bp-red-dark));
    border-color: var(--bp-red);
    color: #fff;
}

.promotion-plan-card .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.promotion-plan-card .plan-title-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.promotion-plan-card .plan-title {
    font-size: .92rem;
    font-weight: 800;
    color: #1c1b1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promotion-plan-card .plan-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--bp-red), var(--bp-red-dark));
    color: #fff;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.promotion-plan-card .plan-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bp-red);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.25rem 0.55rem;
    border-radius: 0.5rem;
    background: var(--bp-red-soft);
}

.promotion-plan-card .plan-price i {
    display: none;
}

.promotion-plan-card .plan-duration {
    display: none;
}

.promotion-plan-card .plan-duration i {
    color: var(--bp-red);
    font-size: 0.75rem;
}

.promotion-plan-card .plan-description {
    font-size: .78rem;
    color: #79747e;
    margin-top: .2rem;
    margin-bottom: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.boost-promo-footer,
#promotionModal .modal-footer,
#newListingBoostModal .modal-footer,
#boostSelectorModal .modal-footer {
    padding: .15rem 1rem 1rem;
    border-top: 0;
    background: #fff;
    gap: .45rem;
    flex-direction: column;
}

.boost-promo-btn,
.boost-promo-footer .btn-promote,
.boost-promo-footer #promotionWalletBtn,
.boost-promo-footer #newListingWalletBtn {
    width: 100%;
    border-radius: 999px;
    font-weight: 700;
    font-size: .88rem;
    padding: .62rem .9rem;
}

.boost-promo-btn:active {
    transform: scale(0.98);
}

.boost-promo-btn--ghost {
    border: 1px solid rgba(200, 16, 46, 0.22);
    background: #fff;
    color: var(--bp-red-dark);
}

.boost-promo-btn--ghost:hover {
    background: var(--bp-red-soft);
    color: var(--bp-red);
    border-color: rgba(200, 16, 46, 0.35);
}

.btn-promote,
.boost-promo-btn--primary {
    order: 1;
    border: none;
    color: #fff !important;
    background: #C8102E;
    box-shadow: none;
}

.boost-promo-footer #promotionWalletBtn,
.boost-promo-footer #newListingWalletBtn {
    order: 2;
}

.boost-promo-btn--ghost {
    order: 3;
}

.btn-promote:hover,
.btn-promote:focus,
.boost-promo-btn--primary:hover {
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.35);
}

/* Boost selector (pick listing) */
.boost-selector-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.boost-selector-item {
    border-radius: 1rem !important;
    border: 1.5px solid var(--bp-border) !important;
    background: #fff !important;
    padding: 0.95rem 1.1rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.boost-selector-item:hover,
.boost-selector-item:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
    border-color: rgba(200, 16, 46, 0.35) !important;
}

.boost-selector-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    background: var(--bp-red-soft);
    color: var(--bp-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.boost-selector-item i.fas.fa-chevron-right {
    color: var(--bp-red);
}

.boost-selector-meta .text-warning {
    color: var(--bp-red) !important;
    font-weight: 600;
}

#newListingBoostModal.show {
    z-index: 99999 !important;
    pointer-events: auto !important;
}

@media (max-width: 767.98px) {
    .boost-promo-body,
    #promotionModal .modal-body,
    #newListingBoostModal .modal-body,
    #boostSelectorModal .modal-body,
    #addToShopModal .modal-body {
        padding: 1rem;
        max-height: 62vh;
    }

    .boost-promo-footer,
    #promotionModal .modal-footer,
    #newListingBoostModal .modal-footer,
    #boostSelectorModal .modal-footer,
    #addToShopModal .modal-footer {
        padding: .15rem .9rem 1rem;
        flex-direction: column;
    }

    .boost-promo-btn,
    .boost-promo-footer .btn-promote {
        width: 100%;
    }

    .promotion-plan-card {
        padding: .8rem .8rem .8rem 2.45rem;
    }

    .plan-select-indicator {
        left: 0.85rem;
    }
}

/* Add listing to shop modal */
#addToShopModal .modal-content {
    border: none;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    background: #fff;
}

.shop-picker-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.shop-picker-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: left;
    border: 1.5px solid var(--bp-border, rgba(15, 23, 42, 0.08));
    border-radius: 1rem;
    background: #fff;
    padding: 0.95rem 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.shop-picker-item:hover,
.shop-picker-item:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
    border-color: rgba(200, 16, 46, 0.35);
    outline: none;
}

.shop-picker-item:active {
    transform: translateY(0);
}

.shop-picker-avatar {
    width: 52px;
    height: 52px;
    border-radius: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(139, 10, 32, 0.05) 100%);
    border: 1px solid rgba(200, 16, 46, 0.12);
    color: var(--bp-red, #c8102e);
    font-size: 1.15rem;
}

.shop-picker-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-picker-body {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-picker-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--bp-ink, #0f172a);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-picker-desc {
    font-size: 0.82rem;
    color: var(--bp-muted, #64748b);
    line-height: 1.4;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-picker-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bp-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.shop-picker-meta i {
    color: var(--bp-red, #c8102e);
    font-size: 0.72rem;
}

.shop-picker-arrow {
    color: var(--bp-red, #c8102e);
    flex-shrink: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.shop-picker-loading {
    text-align: center;
    padding: 2rem 1rem;
}

.shop-picker-loading__spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 3px solid rgba(200, 16, 46, 0.15);
    border-top-color: var(--bp-red, #c8102e);
    animation: shop-picker-spin 0.75s linear infinite;
}

@keyframes shop-picker-spin {
    to { transform: rotate(360deg); }
}

.shop-picker-loading__text {
    font-size: 0.9rem;
    color: var(--bp-muted, #64748b);
    margin: 0;
}

.shop-picker-empty {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.shop-picker-empty__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bp-red, #c8102e);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.1) 0%, rgba(139, 10, 32, 0.06) 100%);
    border: 1px solid rgba(200, 16, 46, 0.15);
}

.shop-picker-empty__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp-ink, #0f172a);
    margin-bottom: 0.45rem;
}

.shop-picker-empty__sub {
    font-size: 0.88rem;
    color: var(--bp-muted, #64748b);
    line-height: 1.5;
    margin-bottom: 1.15rem;
}

.shop-picker-error {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    font-size: 0.86rem;
    color: var(--bp-red-dark, #8b0a20);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(139, 10, 32, 0.05) 100%);
    border: 1px solid rgba(200, 16, 46, 0.18);
    line-height: 1.45;
}

.shop-picker-error i {
    color: var(--bp-red, #c8102e);
    margin-top: 0.1rem;
}
