/**
 * GNOZIS - Модуль платного просування (Promotion Styles)
 * Cyber-Mystic Dark Luxury Aesthetics & High-Conversion UI
 */

/* ==========================================================================
   1. Бейджі просування (Badges & Highlights)
   ========================================================================== */
.badge-promoted-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.3));
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fde047;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
    vertical-align: middle;
    animation: promoGlowPulse 3s infinite ease-in-out;
}

.badge-promoted-hero {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 88, 12, 0.35));
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fef08a;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

@keyframes promoGlowPulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
        border-color: rgba(245, 158, 11, 0.45);
    }
    50% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
        border-color: rgba(245, 158, 11, 0.75);
    }
}

/* ==========================================================================
   2. Картки в списках і стрічці (Feed & Catalog Cards)
   ========================================================================== */
.is-promoted-card {
    position: relative;
    border-color: rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(245, 158, 11, 0.12) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.is-promoted-card:hover {
    border-color: rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.22) !important;
}

.gnozis-promoted-feed-card {
    border-left: 3px solid #f59e0b !important;
}

/* ==========================================================================
   3. Кнопки виклику в шапці (Header Action Buttons)
   ========================================================================== */
.btn-promote-action {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-promote-action:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-1px);
}

.btn-promote-stats {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
    transition: all 0.2s ease;
}

.btn-promote-stats:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    color: #7dd3fc !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   4. Модальні вікна (Dialog & Headers)
   ========================================================================== */
.modal-promotion-plan,
.modal-promotion-stats {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-promotion-plan.open,
.modal-promotion-stats.open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.promo-dialog-box {
    position: relative;
    max-width: 540px;
    width: 100%;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    background: #0f172a !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(14, 165, 233, 0.15) !important;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.modal-promotion-plan.open .promo-dialog-box,
.modal-promotion-stats.open .promo-dialog-box {
    transform: translateY(0) scale(1) !important;
}

.promo-modal-header {
    position: relative;
    padding: 20px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.95);
    flex-shrink: 0;
}

.promo-sigil-badge {
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.promo-header-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-modal-header .modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}

.promo-target-highlight {
    font-size: 0.92rem;
    color: #38bdf8;
    font-weight: 600;
}

.promo-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    margin-left: 12px;
    flex-shrink: 0;
}

.promo-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
    transform: rotate(90deg);
}

.promo-modal-body {
    padding: 22px 24px;
    background: #0f172a;
    overflow-y: auto;
    max-height: calc(100vh - 130px);
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.3) rgba(15, 23, 42, 0.5);
}

.promo-modal-body::-webkit-scrollbar {
    width: 6px;
}
.promo-modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}
.promo-modal-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}
.promo-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.6);
}


/* ==========================================================================
   5. Тарифи та радіо-кнопки (Plans & Custom Radio)
   ========================================================================== */
.promo-section-block {
    margin-bottom: 18px;
}

.promo-section-label {
    display: block;
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.promo-plans-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-plan-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-plan-card:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.promo-plan-card.is-selected {
    background: rgba(14, 165, 233, 0.12) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.22), inset 0 0 15px rgba(56, 189, 248, 0.06) !important;
}

.promo-plan-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-radio-native {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.promo-radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: rgba(15, 23, 42, 0.7);
}

.promo-radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #38bdf8;
    transform: scale(0);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 8px #38bdf8;
}

.promo-plan-card.is-selected .promo-radio-indicator {
    border-color: #38bdf8;
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

.promo-plan-card.is-selected .promo-radio-inner {
    transform: scale(1);
}

.promo-plan-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-plan-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.promo-plan-name {
    font-size: 1rem;
    color: #f8fafc;
    font-weight: 600;
}

.promo-plan-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.promo-plan-sub {
    font-size: 0.82rem;
    color: #94a3b8;
}

.promo-multiplier-val {
    color: #38bdf8;
}

.promo-plan-price-wrap {
    text-align: right;
}

.promo-plan-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
    font-family: 'JetBrains Mono', -apple-system, BlinkMacSystemFont, monospace, sans-serif;
    letter-spacing: -0.3px;
}

/* ==========================================================================
   6. Інфо-блок переваг та помилок (Benefit Box & Errors)
   ========================================================================== */
.promo-multiplier-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.promo-multiplier-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-multiplier-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.promo-multiplier-texts {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.promo-multiplier-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.promo-multiplier-desc {
    font-size: 0.78rem;
    color: #38bdf8;
    line-height: 1.3;
}

.promo-multiplier-badge {
    font-size: 1.25rem;
    font-weight: 800;
    color: #38bdf8;
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
    font-family: 'JetBrains Mono', monospace, sans-serif;
    flex-shrink: 0;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
}

/* ==========================================================================
   6.1. Розширений блок переваг просування (Promotion Benefits Grid)
   ========================================================================== */
.promo-benefits-block {
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.promo-benefits-header {
    margin: 0 0 14px 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .promo-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.promo-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.promo-benefit-item:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.promo-benefit-icon {
    font-size: 1.2rem;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1px;
}

.promo-benefit-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.promo-benefit-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.25;
}

.promo-benefit-desc {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.35;
}

.promo-error-banner {
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.88rem;
    margin-bottom: 18px;
    line-height: 1.4;
}

/* ==========================================================================
   7. Кнопки оформлення та дій (CTA Buttons)
   ========================================================================== */
.promo-actions-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-submit-promo-checkout,
.btn-trigger-extend-promo,
.btn-trigger-start-promo {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-submit-promo-checkout:hover:not(:disabled),
.btn-trigger-extend-promo:hover,
.btn-trigger-start-promo:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

.btn-submit-promo-checkout:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   8. Статистика та Порожній стан (Stats & Empty State)
   ========================================================================== */
.promo-stats-loading-box {
    text-align: center;
    padding: 36px 0;
    color: #94a3b8;
}

.promo-loading-spinner {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
    animation: promoSpin 2s infinite linear;
}

@keyframes promoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.promo-status-summary-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

.promo-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-status-row:not(:last-child) {
    margin-bottom: 10px;
}

.promo-status-label {
    color: #94a3b8;
    font-size: 0.9rem;
}

.promo-status-badge-active {
    font-weight: 700;
    font-size: 0.95rem;
    color: #34d399;
}

.promo-days-left-val {
    color: #f8fafc;
    font-size: 1rem;
}

.promo-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.promo-metric-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.promo-metric-card.metric-impressions {
    border-color: rgba(56, 189, 248, 0.3);
}

.promo-metric-card.metric-clicks {
    border-color: rgba(52, 211, 153, 0.3);
}

.promo-metric-card.metric-ctr {
    border-color: rgba(245, 158, 11, 0.3);
}

.promo-metric-label {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.promo-metric-val {
    font-size: 1.3rem;
    font-family: 'JetBrains Mono', monospace, sans-serif;
    display: block;
}

.metric-impressions .promo-metric-val { color: #38bdf8; }
.metric-clicks .promo-metric-val { color: #34d399; }
.metric-ctr .promo-metric-val { color: #fbbf24; }

/* Empty state */
.promo-empty-state-box {
    text-align: center;
    padding: 24px 12px;
}

.promo-empty-icon-wrap {
    margin-bottom: 14px;
}

.promo-empty-icon {
    font-size: 3rem;
    display: inline-block;
}

.promo-empty-title {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 700;
}

.promo-empty-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 auto 22px;
    max-width: 360px;
    line-height: 1.5;
}

/* ==========================================================================
   9. Мобільна адаптація (Mobile Responsive)
   ========================================================================== */
@media (max-width: 640px) {
    .promo-dialog-box {
        width: 96% !important;
        margin: 10px auto !important;
        border-radius: 16px !important;
    }
    
    .promo-modal-header {
        padding: 16px 18px !important;
    }
    
    .promo-modal-body {
        padding: 16px 18px !important;
    }

    .promo-plan-card {
        padding: 12px 14px !important;
    }

    .promo-plan-name {
        font-size: 0.94rem !important;
    }

    .promo-plan-price {
        font-size: 1.1rem !important;
    }

    .promo-metrics-grid {
        gap: 8px;
    }

    .promo-metric-card {
        padding: 10px 6px;
    }

    .promo-metric-val {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   10. Сакральний блок купонів та промокодів (Checkout Coupon Styles)
   ========================================================================== */
.woocommerce-form-coupon-toggle.gnozis-coupon-toggle-wrap,
.woocommerce-form-coupon-toggle {
    display: none !important;
    margin-bottom: 20px !important;
}

.gnozis-coupon-notice-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    background: rgba(14, 26, 41, 0.7) !important;
    border: 1px dashed rgba(56, 189, 248, 0.35) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.25s ease !important;
}

.gnozis-coupon-notice-bar:hover {
    border-color: rgba(56, 189, 248, 0.6) !important;
    background: rgba(17, 32, 51, 0.85) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(56, 189, 248, 0.15) !important;
}

.coupon-notice-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.coupon-tag-icon {
    font-size: 1.15rem !important;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4)) !important;
}

.coupon-prompt-text {
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #F1F5F9 !important;
}

.gnozis-showcoupon-link,
.woocommerce-form-coupon-toggle .showcoupon {
    color: #38BDF8 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.gnozis-showcoupon-link:hover,
.woocommerce-form-coupon-toggle .showcoupon:hover {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.25) !important;
    border-color: rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

/* Форма введення купона */
form.checkout_coupon.woocommerce-form-coupon,
form.checkout_coupon.gnozis-checkout-coupon-form,
.woocommerce form.checkout_coupon {
    background: #0E1A29 !important;
    background-color: #0E1A29 !important;
    border: 1px solid #1F3247 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin: 0 0 24px 0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.coupon-input-group,
form.checkout_coupon .coupon-input-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
}

/* Поле вводу купона */
.gnozis-coupon-input,
form.checkout_coupon input#coupon_code.input-text,
.woocommerce form.checkout_coupon input.input-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    background: #060C14 !important;
    background-color: #060C14 !important;
    border: 1px solid #283C50 !important;
    border-radius: 8px !important;
    color: #F1F5F9 !important;
    font-size: 0.95rem !important;
    padding: 0 16px !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
}

.gnozis-coupon-input:focus,
form.checkout_coupon input#coupon_code.input-text:focus {
    border-color: #38BDF8 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
    background-color: #0B1420 !important;
}

/* Кнопка "Застосувати" */
.btn-coupon-submit,
.woocommerce form.checkout_coupon button.button,
.woocommerce form.checkout_coupon button[name="apply_coupon"],
.woocommerce .checkout_coupon button.button,
.woocommerce-checkout form.checkout_coupon button.button,
.btn-apply-gnozis-coupon {
    flex: 0 0 auto !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 26px !important;
    background: linear-gradient(135deg, #1E40AF 0%, #1D4ED8 50%, #2563EB 100%) !important;
    background-color: #1D4ED8 !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(96, 165, 250, 0.45) !important;
    border-radius: 8px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    margin: 0 !important;
    float: none !important;
    white-space: nowrap !important;
}

.btn-coupon-submit span,
.woocommerce form.checkout_coupon button.button span {
    color: #FFFFFF !important;
}

.btn-coupon-submit:hover,
.woocommerce form.checkout_coupon button.button:hover,
.woocommerce form.checkout_coupon button[name="apply_coupon"]:hover,
.woocommerce .checkout_coupon button.button:hover,
.woocommerce-checkout form.checkout_coupon button.button:hover,
.btn-apply-gnozis-coupon:hover {
    background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%) !important;
    border-color: rgba(125, 211, 252, 0.7) !important;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.5) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

.btn-coupon-submit:active,
.woocommerce form.checkout_coupon button.button:active,
.woocommerce form.checkout_coupon button[name="apply_coupon"]:active,
.btn-apply-gnozis-coupon:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

@media (max-width: 640px) {
    .coupon-input-group,
    form.checkout_coupon .coupon-input-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .btn-coupon-submit,
    .woocommerce form.checkout_coupon button.button {
        width: 100% !important;
    }
}

/* ==========================================================================
   11. Точне позиціонування хедера профілю (Нижче межі банера)
   ========================================================================== */
.profile-hero-content {
    padding: 0 32px 28px !important;
    position: relative !important;
    z-index: 2 !important;
}

.profile-avatar-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin-top: -50px !important;
    margin-bottom: 22px !important;
}

.profile-avatar-wrap {
    position: relative !important;
    width: 106px !important;
    height: 106px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
}

.profile-identity {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 58px !important;
    padding-bottom: 0 !important;
}

.identity-name-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
}

.identity-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.profile-display-name {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #E0E8F0 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.profile-badges-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.profile-header-actions-wrap {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-left: auto !important;
}

.profile-meta-info-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 4px !important;
}

@media (max-width: 768px) {
    .profile-hero-content {
        padding: 0 16px 22px !important;
    }

    .profile-avatar-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: -50px !important;
        gap: 14px !important;
    }

    .profile-avatar-wrap {
        margin: 0 auto !important;
    }

    .profile-identity {
        margin-top: 0 !important;
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
    }

    .identity-name-row {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }

    .identity-title-group {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }

    .profile-badges-row {
        justify-content: center !important;
    }

    .profile-header-actions-wrap {
        justify-content: center !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    .profile-meta-info-row {
        justify-content: center !important;
    }
}

/* ==========================================================================
   12. Бейджі просування у стрічці публікацій (Feed Author & Comment Badges)
   ========================================================================== */
.badge-promoted-author {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.2 !important;
    margin-left: 2px !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(245, 158, 11, 0.28)) !important;
    border: 1px solid rgba(56, 189, 248, 0.5) !important;
    color: #38bdf8 !important;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.15) !important;
    vertical-align: middle !important;
}

.badge-promoted-comment {
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    margin-left: 4px !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(245, 158, 11, 0.25)) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    vertical-align: middle !important;
}

.author-name-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.group-target-pill.is-group-promoted a {
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
}

.group-promoted-mini-star {
    color: #facc15 !important;
    font-size: 0.75rem !important;
    margin-left: 2px !important;
    text-shadow: 0 0 6px rgba(250, 204, 21, 0.6) !important;
}



