/* ==========================================================================
   VTIPZ PROMOTIONS PAGE STYLESHEET
   Thiết kế chuẩn Figma Design System - Node 174:2
   Bảng màu: Primary #0E4E85, Accent #F26B21, Background #F4F8FC, Radius 0 0 40px 0
   ========================================================================== */

/* 1. Layout Trang */
.vtipz-promotions-page {
    background-color: var(--color-bg-light, #F4F8FC);
    padding-bottom: 64px;
}

/* 2. Hero Banner Khuyến Mãi */
.vtipz-promo-hero {
    background: linear-gradient(135deg, #0E4E85 0%, #093760 100%);
    color: #FFFFFF;
    padding: 50px 0 58px;
    border-radius: 0 0 40px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.vtipz-promo-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(242, 107, 33, 0.18) 0%, rgba(14, 78, 133, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.vtipz-promo-hero-inner {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.vtipz-promo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 700;
    color: #F5BD06;
    margin-bottom: 16px;
}

.vtipz-promo-hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 14px;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.vtipz-promo-hero-desc {
    font-size: 15.5px;
    color: #CFE3F6;
    line-height: 1.6;
    margin: 0 auto 30px;
    max-width: 680px;
}

/* 3 Thẻ thống kê nổi bật Hero */
.vtipz-promo-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.vtipz-promo-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 20px 0;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: all 0.25s ease;
}

.vtipz-promo-stat-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.vtipz-promo-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(242, 107, 33, 0.25);
    color: #F26B21;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.vtipz-promo-stat-text strong {
    display: block;
    font-size: 16px;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.vtipz-promo-stat-text span {
    font-size: 12.5px;
    color: #CFE3F6;
}

/* 3. Phân Khu Kho Voucher (Coupon Hub) */
.vtipz-promo-section {
    margin-bottom: 48px;
}

.vtipz-promo-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vtipz-promo-title-group h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0E4E85;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vtipz-promo-title-group p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

.vtipz-coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Thẻ Voucher Vé */
.vtipz-promo-coupon-card {
    background: #FFFFFF;
    border: 1.5px dashed #93C5FD;
    border-radius: 0 0 20px 0;
    box-shadow: 0 6px 18px rgba(14, 78, 133, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 22px;
    position: relative;
    transition: all 0.25s ease;
    overflow: hidden;
}

.vtipz-promo-coupon-card:hover {
    border-color: #0E4E85;
    box-shadow: 0 10px 26px rgba(14, 78, 133, 0.1);
    transform: translateY(-3px);
}

.vtipz-coupon-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vtipz-coupon-badge {
    font-size: 20px;
    font-weight: 800;
    color: #1C75BC;
    line-height: 1.2;
}

.vtipz-coupon-scope-tag {
    font-size: 11px;
    font-weight: 700;
    color: #0E4E85;
    background: #E8F2FB;
    padding: 3px 8px;
    border-radius: 6px;
}

.vtipz-coupon-condition {
    font-size: 13.5px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 6px;
}

.vtipz-coupon-expiry {
    font-size: 12px;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
}

.vtipz-coupon-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed #E2E8F0;
    gap: 10px;
}

.vtipz-coupon-code-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.vtipz-coupon-code-wrap:hover {
    background: #EFF6FF;
    border-color: #1C75BC;
}

.vtipz-coupon-code-wrap code {
    font-weight: 700;
    font-size: 13px;
    color: #0E4E85;
    letter-spacing: 0.5px;
}

.vtipz-btn-coupon-copy {
    background: none;
    border: none;
    color: #64748B;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.vtipz-btn-coupon-use {
    background: linear-gradient(135deg, #0E4E85 0%, #093760 100%);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 0 0 10px 0;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.vtipz-btn-coupon-use:hover {
    background: linear-gradient(135deg, #F26B21 0%, #D85611 100%);
    color: #FFFFFF;
}

/* 3. Lưới Sản Phẩm Đang Khuyến Mãi (AJAX Grid) */
.vtipz-promo-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid #D8DFE7;
    border-radius: 0 0 16px 0;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(14, 78, 133, 0.04);
}

.vtipz-promo-cats-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vtipz-cat-filter-btn {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vtipz-cat-filter-btn:hover {
    background: #E2E8F0;
    color: #0E4E85;
}

.vtipz-cat-filter-btn.is-active {
    background: #0E4E85;
    color: #FFFFFF;
    border-color: #0E4E85;
    box-shadow: 0 2px 8px rgba(14, 78, 133, 0.25);
}

.vtipz-promo-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtipz-promo-sort-wrap label {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
}

.vtipz-promo-sort-select {
    height: 38px;
    padding: 0 30px 0 12px;
    border: 1.5px solid #CBD5E1;
    border-radius: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E") no-repeat right 8px center;
    background-size: 18px;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.vtipz-promo-sort-select:focus {
    border-color: #0E4E85;
}

/* Lưới sản phẩm AJAX */
.vtipz-promo-products-container {
    position: relative;
    min-height: 280px;
}

.vtipz-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: opacity 0.2s ease;
}

.vtipz-promo-grid.is-loading {
    opacity: 0.4;
    pointer-events: none;
}

/* Empty grid */
.vtipz-promo-empty-grid {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border-radius: 0 0 24px 0;
    border: 1px dashed #CBD5E1;
}

.vtipz-promo-empty-grid .empty-icon {
    font-size: 44px;
    color: #94A3B8;
    margin-bottom: 12px;
}

.vtipz-promo-empty-grid h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 6px;
}

.vtipz-promo-empty-grid p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* 6. Phân Trang AJAX (Pagination) */
.vtipz-pagination-wrapper {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.vtipz-ajax-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    padding: 6px 10px;
    border-radius: 0 0 16px 0;
    border: 1px solid #D8DFE7;
    box-shadow: 0 4px 12px rgba(14, 78, 133, 0.04);
}

.vtipz-page-btn {
    height: 38px;
    min-width: 38px;
    padding: 0 10px;
    border-radius: 0 0 8px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.vtipz-page-btn:hover:not(.is-disabled):not(.is-active) {
    background: #E8F2FB;
    color: #0E4E85;
    border-color: #CFE3F6;
}

.vtipz-page-btn.is-active {
    background: #0E4E85;
    color: #FFFFFF;
    border-color: #0E4E85;
    box-shadow: 0 2px 8px rgba(14, 78, 133, 0.25);
}

.vtipz-page-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vtipz-page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vtipz-page-dots {
    padding: 0 4px;
    color: #94A3B8;
    font-weight: 700;
}

/* 7. Banner Ưu Đãi Đại Lý B2B */
.vtipz-b2b-promo-banner {
    background: linear-gradient(135deg, #093760 0%, #0E4E85 100%);
    color: #FFFFFF;
    border-radius: 0 0 36px 0;
    padding: 38px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
    box-shadow: 0 12px 32px rgba(14, 78, 133, 0.15);
    position: relative;
    overflow: hidden;
}

.vtipz-b2b-promo-banner::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 260px;
    height: 100%;
    background: radial-gradient(circle, rgba(242, 107, 33, 0.2) 0%, rgba(14, 78, 133, 0) 70%);
    pointer-events: none;
}

.vtipz-b2b-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.vtipz-b2b-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F26B21;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.vtipz-b2b-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px;
    line-height: 1.3;
}

.vtipz-b2b-content p {
    font-size: 14.5px;
    color: #CFE3F6;
    margin: 0;
    line-height: 1.6;
}

.vtipz-b2b-action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.vtipz-btn-b2b-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F26B21 0%, #D85611 100%);
    color: #FFFFFF;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 0 0 16px 0;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(242, 107, 33, 0.4);
    transition: all 0.25s ease;
}

.vtipz-btn-b2b-cta:hover {
    background: linear-gradient(135deg, #FF7B33 0%, #F26B21 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 107, 33, 0.5);
}

/* 8. Khối Cam Kết Mua Sắm */
.vtipz-commitments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vtipz-commit-card {
    background: #FFFFFF;
    border: 1px solid #D8DFE7;
    border-radius: 0 0 20px 0;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}

.vtipz-commit-card:hover {
    border-color: #0E4E85;
    box-shadow: 0 6px 18px rgba(14, 78, 133, 0.08);
    transform: translateY(-2px);
}

.vtipz-commit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #E8F2FB;
    color: #0E4E85;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.vtipz-commit-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2px;
}

.vtipz-commit-text span {
    font-size: 12.5px;
    color: #64748B;
}

/* Toast Copy Notification */
.vtipz-copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #1E293B;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
}

.vtipz-copy-toast.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.vtipz-copy-toast i {
    color: #009444;
}

/* Responsive */
@media (max-width: 1024px) {
    .vtipz-coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vtipz-promo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .vtipz-commitments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vtipz-b2b-promo-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .vtipz-promo-hero-title {
        font-size: 26px;
    }
    .vtipz-promo-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .vtipz-coupons-grid {
        grid-template-columns: 1fr;
    }
    .vtipz-promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .vtipz-promo-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .vtipz-promo-cats-list {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
        flex-wrap: nowrap;
    }
    .vtipz-commitments-grid {
        grid-template-columns: 1fr;
    }
}
