/**
 * Brand landing – mirrors BestCouponsHub store page layout/CSS.
 * Scoped under .brand-landing-page to avoid Tailwind CDN conflicts.
 */
.brand-landing-page {
    --bl-primary: #FF6B9D;
    --bl-primary-dark: #E94B8A;
    --bl-primary-end: #C77DFF;
    --bl-code-btn-start: #FF6B9D;
    --bl-code-btn-end: #C77DFF;
    --bl-deal-btn-start: #FF6B6B;
    --bl-deal-btn-end: #E63946;
    --bl-success: #52BE80;
    --bl-text-dark: #1A1A2E;
    --bl-text-muted: #6B7280;
    --bl-bg-light: #F8F9FA;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    color: var(--bl-text-dark);
    line-height: 1.6;
    font-size: 16px;
}

.brand-landing-page *,
.brand-landing-page *::before,
.brand-landing-page *::after {
    box-sizing: border-box;
}

/* Match site header Tailwind .container width (logo ↔ search alignment) */
.brand-landing-page .bl-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .brand-landing-page .bl-container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .brand-landing-page .bl-container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .brand-landing-page .bl-container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .brand-landing-page .bl-container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .brand-landing-page .bl-container {
        max-width: 1536px;
    }
}

.brand-landing-page .bl-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.brand-landing-page .bl-col-sidebar,
.brand-landing-page .bl-col-main,
.brand-landing-page .bl-col-mobile-sidebar {
    position: relative;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.brand-landing-page .bl-col-sidebar {
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .brand-landing-page .bl-col-sidebar {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 0;
    }

    .brand-landing-page .bl-col-main {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .brand-landing-page .bl-hide-lg {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .brand-landing-page .bl-hide-mobile {
        display: none !important;
    }

    .brand-landing-page .bl-col-mobile-sidebar {
        margin-top: 1.5rem;
    }
}

/* Store header – match BCH .store-header.py-3.bg-light */
.brand-landing-page .store-header,
.brand-landing-page .bg-light {
    background-color: var(--bl-bg-light) !important;
}

.brand-landing-page .store-header {
    padding: 1rem 0 !important;
    border-bottom: 1px solid #E5E7EB;
}

.brand-landing-page .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.brand-landing-page .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.brand-landing-page .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.brand-landing-page .mb-4 {
    margin-bottom: 1.5rem !important;
}

.brand-landing-page .mt-4 {
    margin-top: 1.5rem !important;
}

.brand-landing-page .text-center {
    text-align: center !important;
}

.brand-landing-page .store-header .bl-header-flex {
    display: flex !important;
    align-items: center !important;
    gap: 0;
}

.brand-landing-page .store-logo-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 1rem;
    overflow: hidden;
}

.brand-landing-page .store-logo-circle img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain !important;
    display: block !important;
}

.brand-landing-page .store-header-info {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-landing-page .store-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bl-text-dark);
    line-height: 1.3;
    margin: 0 0 0.25rem;
    font-family: inherit;
}

.brand-landing-page .store-verification {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.brand-landing-page .store-header .verified-badge-text {
    color: var(--bl-success);
    font-size: 0.875rem;
    font-weight: 600;
}

.brand-landing-page .store-rating {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.brand-landing-page .store-rating .rating {
    display: inline;
}

.brand-landing-page .store-rating .bl-muted {
    color: var(--bl-text-muted);
}

.brand-landing-page .store-rating .fa-star,
.brand-landing-page .store-rating .fa-star-half-alt {
    color: #f59e0b;
}

.brand-landing-page .store-rating .fa-star.bl-star-empty {
    color: #9CA3AF;
}

/* Main content */
.brand-landing-page .main-content {
    padding: 1.5rem 0 !important;
    background: #fff;
}

/* Sidebar – BCH #F8F9FA card */
.brand-landing-page .sidebar-card {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: none;
}

.brand-landing-page .sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bl-text-dark);
    margin: 0 0 1rem;
    font-family: inherit;
}

.brand-landing-page .sidebar-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--bl-text-muted);
    margin: 0 0 1.5rem;
}

.brand-landing-page .sidebar-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bl-text-dark);
    margin: 0 0 1rem;
}

/* FAQ accordion */
.brand-landing-page .brand-faq details {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fff;
}

.brand-landing-page .brand-faq summary {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    list-style: none;
    color: var(--bl-text-dark);
}

.brand-landing-page .brand-faq summary::-webkit-details-marker {
    display: none;
}

.brand-landing-page .brand-faq .faq-answer {
    font-size: 0.85rem;
    color: var(--bl-text-muted);
    line-height: 1.5;
    padding: 0 1rem 0.75rem;
    margin: 0;
}

/* Coupon section header – BCH 1.75rem uppercase */
.brand-landing-page .coupon-date-header {
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.brand-landing-page .coupon-section-title {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.35em;
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bl-text-dark);
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.2;
}

.brand-landing-page .coupon-section-title .coupon-title-label,
.brand-landing-page .coupon-section-title .coupon-title-date {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tabs – BCH nav-pills underline */
.brand-landing-page .coupon-tabs-container {
    margin-bottom: 1.5rem;
}

.brand-landing-page .coupon-tabs {
    display: flex !important;
    flex-wrap: wrap;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #E5E7EB;
}

.brand-landing-page .coupon-tabs .nav-item {
    margin: 0;
    padding: 0;
}

.brand-landing-page .coupon-tabs .nav-link {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: #6B7280 !important;
    background: transparent !important;
    border-bottom: 3px solid transparent !important;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
    box-shadow: none !important;
}

.brand-landing-page .coupon-tabs .nav-link:hover {
    color: var(--bl-primary) !important;
}

.brand-landing-page .coupon-tabs .nav-link.active {
    color: var(--bl-primary) !important;
    border-bottom-color: var(--bl-primary) !important;
}

.brand-landing-page .tab-pane {
    display: none;
}

.brand-landing-page .tab-pane.active {
    display: block;
}

/* Coupon list & cards */
.brand-landing-page .coupons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-landing-page .coupon-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E5E7EB;
    position: relative;
    transition: all 0.3s ease;
}

.brand-landing-page .coupon-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.brand-landing-page .coupon-card > .verified-badge {
    position: absolute;
    top: -8px;
    right: 1rem;
    background: var(--bl-success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.brand-landing-page .coupon-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.brand-landing-page .coupon-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem;
}

.brand-landing-page .store-logo-mini {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #E5E7EB;
}

.brand-landing-page .store-logo-mini img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
}

.brand-landing-page .store-logo-mini i {
    color: var(--bl-text-muted);
    font-size: 1.5rem;
}

.brand-landing-page .coupon-info {
    flex: 1;
    min-width: 0;
}

.brand-landing-page .coupon-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bl-text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.brand-landing-page .coupon-description {
    font-size: 0.9rem;
    color: var(--bl-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Footer – BCH horizontal align end */
.brand-landing-page .coupon-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 1rem;
}

.brand-landing-page .coupon-actions {
    display: flex !important;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.brand-landing-page .get-code-btn {
    background: linear-gradient(135deg, var(--bl-code-btn-start) 0%, var(--bl-code-btn-end) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.35);
    font-family: inherit;
}

.brand-landing-page .get-code-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 125, 255, 0.45);
    color: white !important;
}

.brand-landing-page .get-deal-btn {
    background: linear-gradient(135deg, var(--bl-deal-btn-start) 0%, var(--bl-deal-btn-end) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-landing-page .get-deal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.45);
    color: white !important;
}

.brand-landing-page .details-btn {
    background: transparent !important;
    border: none !important;
    color: var(--bl-text-muted) !important;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 4px;
    padding: 0.5rem;
    font-family: inherit;
    box-shadow: none !important;
}

.brand-landing-page .details-btn:hover {
    color: var(--bl-primary) !important;
}

.brand-landing-page .coupon-used-count {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--bl-text-muted);
}

.brand-landing-page .bl-muted {
    color: var(--bl-text-muted);
}

.brand-landing-page .coupon-used-count i {
    margin-right: 0.25rem;
}

/* Empty state */
.brand-landing-page .bl-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.brand-landing-page .bl-empty-state .fa-ticket-alt {
    font-size: 4rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
    display: block;
}

.brand-landing-page .bl-empty-state h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.brand-landing-page .bl-empty-state p {
    color: var(--bl-text-muted);
    margin-bottom: 1.5rem;
}

.brand-landing-page .btn-visit-store {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bl-primary) 0%, var(--bl-primary-end) 100%);
    color: white !important;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

/* About store bottom */
.brand-landing-page .about-store {
    padding: 3rem 0 !important;
    background: var(--bl-bg-light) !important;
}

.brand-landing-page .about-store .bl-about-inner {
    max-width: 66.666667%;
    margin-left: auto;
    margin-right: auto;
}

.brand-landing-page .about-store h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem;
    font-family: inherit;
}

.brand-landing-page .about-store p {
    color: var(--bl-text-muted);
    margin: 0;
    line-height: 1.7;
}

.brand-landing-page .bl-alert-info {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #cff4fc;
    border: 1px solid #b6effb;
    border-radius: 0.375rem;
    color: var(--bl-text-dark);
    font-size: 0.95rem;
}

/* Articles – keep below, minimal */
.brand-landing-articles {
    background: #FAFAFA;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .brand-landing-page .store-main-title {
        font-size: 1.5rem !important;
    }

    .brand-landing-page .store-logo-circle {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }

    .brand-landing-page .store-logo-circle img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .brand-landing-page .coupon-section-title {
        font-size: clamp(0.8125rem, 3.8vw, 1.25rem);
        letter-spacing: 0.5px;
        gap: 0.25em;
    }

    .brand-landing-page .store-logo-mini {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .brand-landing-page .store-logo-mini img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }

    .brand-landing-page .coupon-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.6rem 1rem !important;
    }

    .brand-landing-page .coupon-card {
        padding: 1rem !important;
    }

    .brand-landing-page .coupon-title {
        font-size: 1rem !important;
    }

    .brand-landing-page .get-code-btn,
    .brand-landing-page .get-deal-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }

    .brand-landing-page .about-store .bl-about-inner {
        max-width: 100%;
    }
}

/* Modal */
#coupon-code-modal.coupon-code-modal-turbo {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

#coupon-code-modal.coupon-code-modal-turbo.is-open {
    display: block !important;
}

#coupon-code-modal.coupon-code-modal-turbo .bl-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

#coupon-code-modal.coupon-code-modal-turbo .bl-modal-center {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1;
}

#coupon-code-modal.coupon-code-modal-turbo .modal-dialog-inner {
    background: white;
    border-radius: 12px;
    max-width: 28rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#coupon-code-modal.coupon-code-modal-turbo .coupon-modal-go-store {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF6B9D 0%, #C77DFF 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.35);
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#coupon-code-modal.coupon-code-modal-turbo .coupon-modal-go-store:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 125, 255, 0.45);
}

#coupon-code-modal.coupon-code-modal-turbo .coupon-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 0.25rem;
    width: 100%;
}

#coupon-code-modal.coupon-code-modal-turbo .coupon-modal-close-text {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    margin: 0;
    padding: 0.25rem 0;
    background: none;
    border: none;
    color: #6B7280;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

#coupon-code-modal.coupon-code-modal-turbo .coupon-modal-close-text:hover {
    color: #374151;
}

/* Toast – Get Deal redirect (like BestCouponsHub) */
.bl-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    min-width: 300px;
    max-width: 360px;
    padding: 1rem 2.5rem 1rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Roboto', 'Segoe UI', sans-serif;
    animation: bl-toast-in 0.25s ease-out;
}

@keyframes bl-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bl-toast-info {
    background: #cff4fc;
    border: 1px solid #9eeaf9;
    color: #055160;
}

.bl-toast-success {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.bl-toast-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.bl-toast-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.bl-toast-message {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.bl-toast-close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
}

.bl-toast-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .bl-toast {
        left: 1rem;
        right: 1rem;
        min-width: 0;
        max-width: none;
    }
}
