/* Tigule Boost / Promotion modals — brand red (#C8102E) */
.boost-promo-dialog,
#boostSelectorModal .modal-dialog,
#newListingBoostModal .modal-dialog {
    --bp-red: #c8102e;
    --bp-red-mid: #e02040;
    --bp-red-deep: #a00d25;
    --bp-red-dark: #8b0a20;
    --bp-red-soft: rgba(200, 16, 46, 0.08);
    --bp-ink: #0f172a;
    --bp-muted: #64748b;
    --bp-border: rgba(15, 23, 42, 0.08);
}

.boost-promo-shell,
#boostSelectorModal .modal-content,
#newListingBoostModal .modal-content,
#promotionModal .modal-content {
    border: none;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
    background: #fff;
}

.boost-promo-hero {
    position: relative;
    padding: 1.65rem 1.75rem 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, #c8102e 0%, #e02040 35%, #a00d25 70%, #8b0a20 100%);
    overflow: hidden;
}

.boost-promo-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.boost-promo-hero-glow--1 {
    width: 200px;
    height: 200px;
    top: -70px;
    right: -30px;
    background: rgba(255, 255, 255, 0.1);
}

.boost-promo-hero-glow--2 {
    width: 110px;
    height: 110px;
    bottom: -35px;
    left: 8%;
    background: rgba(255, 255, 255, 0.06);
}

.boost-promo-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.boost-promo-close:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.boost-promo-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.5rem;
}

.boost-promo-hero-icon {
    width: 3.1rem;
    height: 3.1rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.boost-promo-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.boost-promo-hero-sub {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.94;
    line-height: 1.45;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.boost-promo-body,
#promotionModal .modal-body,
#newListingBoostModal .modal-body,
#boostSelectorModal .modal-body {
    padding: 1.35rem 1.75rem 1rem;
    max-height: min(58vh, 520px);
    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: 1rem;
    border: 1.5px solid var(--bp-border);
    padding: 1.15rem 1.2rem 1.15rem 3.25rem;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    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: rgba(200, 16, 46, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(200, 16, 46, 0.16);
    background: linear-gradient(135deg, rgba(200, 16, 46, 0.04) 0%, #fff 100%);
}

.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: 1rem;
    font-weight: 700;
    color: var(--bp-ink);
}

.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 {
    font-size: 0.8rem;
}

.promotion-plan-card .plan-duration {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bp-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.promotion-plan-card .plan-duration i {
    color: var(--bp-red);
    font-size: 0.75rem;
}

.promotion-plan-card .plan-description {
    font-size: 0.84rem;
    color: var(--bp-muted);
    margin-top: 0.55rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.boost-promo-footer,
#promotionModal .modal-footer,
#newListingBoostModal .modal-footer,
#boostSelectorModal .modal-footer {
    padding: 0.85rem 1.75rem 1.35rem;
    border-top: 1px solid var(--bp-border);
    background: #fafbfc;
    gap: 0.65rem;
}

.boost-promo-btn {
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.62rem 1.2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.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 {
    border: none;
    color: #fff !important;
    background: linear-gradient(135deg, #c8102e 0%, #8b0a20 100%);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}

.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: 0.85rem 1rem 1.1rem;
        flex-direction: column-reverse;
    }

    .boost-promo-btn,
    .boost-promo-footer .btn-promote {
        width: 100%;
    }

    .promotion-plan-card {
        padding: 1rem 1rem 1rem 2.85rem;
    }

    .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;
}
