/* ==========================================================================
   PM4U ULTRA-MODERN OFFERS & COUPONS SYSTEM STYLES (BRAND THEME)
   Cohesive Color Palette Tailored to the PM4U Logo (Royal Navy, Sky Blue & Growth Green)
   ========================================================================== */

:root {
    /* Brand Logo Colors */
    --offer-brand-navy: #001f54;
    --offer-brand-blue: #013f8c;
    --offer-brand-blue-hover: #002d72;
    --offer-brand-sky: #0284c7;
    --offer-brand-green: #16a34a;
    --offer-brand-green-hover: #15803d;
    --offer-brand-green-light: #f0fdf4;
    --offer-brand-blue-light: #f0f9ff;
    
    /* Functional Tokens */
    --offer-primary: #013f8c;
    --offer-primary-hover: #002d72;
    --offer-primary-light: #e0f2fe;
    --offer-secondary: #001f54;
    --offer-accent: #0284c7;
    --offer-success: #16a34a;
    --offer-success-hover: #15803d;
    --offer-bg: #f8fafc;
    --offer-card-bg: #ffffff;
    --offer-border: rgba(226, 232, 240, 0.85);
    --offer-border-hover: rgba(1, 63, 140, 0.35);
    --offer-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --offer-shadow-hover: 0 20px 30px -10px rgba(1, 63, 140, 0.15), 0 10px 15px -5px rgba(15, 23, 42, 0.08);
    --offer-radius: 18px;
    --offer-transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.offers-hero-section {
    background: linear-gradient(135deg, rgba(9, 14, 26, 0.90) 0%, rgba(15, 23, 42, 0.88) 100%), 
                url('../images/offers-hero-bg.jpg') center/cover no-repeat;
    padding: 85px 0 75px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.offers-hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.18) 0%, rgba(255, 87, 34, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.offers-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.offers-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.45);
    color: #4ade80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.offers-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.offers-hero-title span {
    background: linear-gradient(135deg, #ff8a65 0%, #ff5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offers-hero-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 680px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.offers-breadcrumb,
.offer-detail-hero .offers-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.95rem;
    color: #ffffff !important;
    margin-top: 10px;
    font-weight: 500;
}

.offers-breadcrumb a,
.offer-detail-hero .offers-breadcrumb a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    transition: var(--offer-transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.offers-breadcrumb a:hover,
.offer-detail-hero .offers-breadcrumb a:hover {
    color: #38bdf8 !important;
    text-decoration: underline !important;
}

.offers-breadcrumb span.sep,
.offer-detail-hero .offers-breadcrumb span.sep {
    color: #e2e8f0 !important;
    font-size: 11px;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
}

.offers-breadcrumb span.current,
.offer-detail-hero .offers-breadcrumb span.current {
    color: #ffffff !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18) !important;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ==========================================================================
   2. MODERN VOUCHER / COUPON CARD (TICKET CUTOUT)
   ========================================================================== */
.offers-grid-section {
    padding: 50px 0 80px;
    background-color: var(--offer-bg);
}

.coupon-ticket-card {
    background: #ffffff;
    border-radius: var(--offer-radius);
    border: 1px solid var(--offer-border);
    box-shadow: var(--offer-shadow);
    transition: var(--offer-transition);
    position: relative;
    display: flex;
    overflow: hidden;
    height: 100%;
}

.coupon-ticket-card:hover {
    border-color: var(--offer-border-hover);
    box-shadow: var(--offer-shadow-hover);
    transform: translateY(-5px);
}

/* Left main content */
.ticket-main {
    flex: 1 1 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.ticket-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(22, 163, 74, 0.22);
    overflow: hidden;
}

.ticket-icon-box img {
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
}

.ticket-icon-box i {
    font-size: 22px;
    color: var(--offer-brand-green);
}

.ticket-cat-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--offer-brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(1, 63, 140, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    display: inline-block;
}

.ticket-title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 12px;
}

.ticket-title a {
    color: #0f172a;
    text-decoration: none;
    transition: var(--offer-transition);
}

.ticket-title a:hover {
    color: var(--offer-brand-blue);
}

.ticket-meta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px dashed #e2e8f0;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
}

.ticket-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.ticket-expiry i {
    color: #0284c7;
}

.ticket-price-preview {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.ticket-price-preview del {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 4px;
}

/* Perforated Divider with concave circular notches */
.ticket-divider {
    position: relative;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
    margin: 0 4px;
    flex-shrink: 0;
}

.ticket-divider::before,
.ticket-divider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--offer-bg);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px var(--offer-border);
    z-index: 2;
}

.ticket-divider::before {
    top: -11px;
}

.ticket-divider::after {
    bottom: -11px;
}

/* Right Voucher Stub */
.ticket-stub {
    width: 140px;
    background: linear-gradient(180deg, #f0fdf4 0%, #e0f2fe 100%);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.ticket-discount-tag {
    font-size: 1.65rem;
    font-weight: 900;
    line-height: 1;
    color: var(--offer-brand-green);
    letter-spacing: -0.02em;
}

.ticket-discount-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--offer-brand-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    margin-bottom: 16px;
}

.ticket-btn-action {
    background: linear-gradient(135deg, #013f8c 0%, #0284c7 100%);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-block;
    width: 100%;
    box-shadow: 0 3px 10px rgba(1, 63, 140, 0.25);
    transition: var(--offer-transition);
    white-space: nowrap;
}

.ticket-btn-action:hover {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    box-shadow: 0 5px 14px rgba(22, 163, 74, 0.35);
    transform: scale(1.03);
}

/* Responsive adjustment for Mobile Cards */
@media (max-width: 575px) {
    .coupon-ticket-card {
        flex-direction: column;
    }
    .ticket-divider {
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(to right, #cbd5e1 0, #cbd5e1 6px, transparent 6px, transparent 12px);
        margin: 4px 0;
    }
    .ticket-divider::before {
        top: 50%;
        left: -11px;
        transform: translateY(-50%);
    }
    .ticket-divider::after {
        top: 50%;
        bottom: auto;
        right: -11px;
        left: auto;
        transform: translateY(-50%);
    }
    .ticket-stub {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px 20px;
    }
    .ticket-discount-label {
        margin-bottom: 0;
    }
    .ticket-btn-action {
        width: auto;
    }
}

/* ==========================================================================
   3. SINGLE OFFER DETAILS PAGE
   ========================================================================== */
.offer-detail-hero {
    background: linear-gradient(135deg, rgba(9, 14, 26, 0.92) 0%, rgba(22, 32, 50, 0.88) 60%, rgba(15, 23, 42, 0.90) 100%), 
                url('../images/offers-hero-bg.jpg') center/cover no-repeat;
    padding: 70px 0 65px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.offer-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 45%, rgba(255, 87, 34, 0.16) 0%, transparent 60%);
    pointer-events: none;
}

.offer-detail-hero .ticket-cat-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.offer-detail-banner-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 30px;
}

.offer-content-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 35px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--offer-shadow);
    margin-bottom: 30px;
}

.offer-content-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--offer-brand-navy);
    margin-bottom: 20px;
    line-height: 1.35;
}

.offer-content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--offer-brand-blue);
    margin-top: 25px;
    margin-bottom: 14px;
}

.offer-content-card p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

.offer-content-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.offer-content-card li {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ==========================================================================
   4. SIDEBAR: COUPON HIGHLIGHTS & RELATED DEALS
   ========================================================================== */
.offer-sidebar-box {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.sidebar-box-header {
    background: linear-gradient(135deg, #001f54 0%, #013f8c 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-box-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.sidebar-box-body {
    padding: 24px;
}

/* Coupon Code Box with Copy Button */
.coupon-code-voucher-box {
    background: #f0fdf4;
    border: 2px dashed #22c55e;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.voucher-code-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voucher-code-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #15803d;
    font-family: monospace, sans-serif;
    letter-spacing: 1.5px;
}

.btn-copy-code {
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--offer-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy-code:hover {
    background: #15803d;
    transform: scale(1.05);
}

.btn-copy-code.copied {
    background: #0284c7;
}

/* Pricing in Highlights */
.sidebar-pricing-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-deal-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--offer-brand-navy);
}

.sidebar-regular-price {
    font-size: 1.15rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

.sidebar-save-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

/* "Get Deal" Claim CTA Button */
.btn-claim-deal-main {
    background: linear-gradient(135deg, #013f8c 0%, #0284c7 100%);
    color: #ffffff !important;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    border-radius: 12px;
    text-align: center;
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px -2px rgba(1, 63, 140, 0.35);
    transition: var(--offer-transition);
    margin-bottom: 22px;
}

.btn-claim-deal-main:hover {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    box-shadow: 0 12px 25px -4px rgba(22, 163, 74, 0.45);
    transform: translateY(-2px);
}

/* Specs Details List */
.sidebar-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sidebar-specs-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
}

.sidebar-specs-item:last-child {
    border-bottom: none;
}

.specs-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 500;
}

.specs-label i {
    color: #0284c7;
    font-size: 0.85rem;
    width: 16px;
}

.specs-val {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

/* Social Share in Highlights */
.sidebar-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    font-size: 0.88rem;
    color: #64748b;
}

.sidebar-share-links {
    display: flex;
    gap: 8px;
}

.sidebar-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.sidebar-share-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

.sidebar-share-btn.whatsapp:hover {
    background: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.sidebar-share-btn.linkedin:hover {
    background: #0A66C2 !important;
    color: #ffffff !important;
    border-color: #0A66C2 !important;
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
}

.sidebar-share-btn.facebook:hover {
    background: #1877F2 !important;
    color: #ffffff !important;
    border-color: #1877F2 !important;
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
}

.sidebar-share-btn.twitter:hover,
.sidebar-share-btn.x-twitter:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* Related Coupons List */
.related-coupons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-coupon-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-coupon-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-coupon-item:first-child {
    padding-top: 0;
}

.related-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.related-icon-box i {
    color: var(--offer-brand-green);
    font-size: 1rem;
}

.related-info {
    flex-grow: 1;
}

.related-info a {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.35;
    text-decoration: none;
    transition: var(--offer-transition);
    display: block;
}

.related-info a:hover {
    color: var(--offer-brand-blue);
}

.related-discount-pill {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--offer-brand-green);
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

/* ==========================================================================
   5. INTERACTIVE DEAL MODAL
   ========================================================================== */
.deal-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.deal-modal .modal-header {
    background: linear-gradient(135deg, #001f54 0%, #013f8c 100%);
    color: #ffffff;
    padding: 20px 28px;
    border: none;
}

.deal-modal .modal-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
}

.deal-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.deal-modal .modal-body {
    padding: 28px;
}

.deal-highlight-preview {
    background: #f0fdf4;
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deal-highlight-preview h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #166534;
    margin: 0;
}

.deal-code-badge {
    background: var(--offer-brand-green);
    color: #ffffff;
    font-family: monospace;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.deal-form .form-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.deal-form .form-control,
.deal-form .form-select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: var(--offer-transition);
}

.deal-form .form-control:focus,
.deal-form .form-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-submit-deal {
    background: linear-gradient(135deg, #013f8c 0%, #0284c7 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--offer-transition);
    cursor: pointer;
}

.btn-submit-deal:hover {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

/* Toast alert notification */
.offer-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #001f54;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid var(--offer-brand-green);
}

.offer-toast.show {
    transform: translateY(0);
    opacity: 1;
}
