/* ============================================
   Passport – Exclusive Offers
   ============================================ */

.exclusive-offers-wrapper {
    max-width: 1100px;
}

/* ── Passport Identity Header ── */
.passport-id-header {
    margin-top: 32px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #04132D 0%, #0a2347 100%);
    border-radius: 12px;
    color: #fff;
}

.passport-id-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.passport-id-title {
    font-family: "roc-grotesk", sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    font-stretch: normal !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    text-align: left !important;
    color: #96ff94;
    text-transform: uppercase;
    white-space: nowrap;
}

.passport-id-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
    flex-wrap: wrap;
}

.passport-id-name {
    font-weight: 600;
    color: #ffffff;
}

.passport-id-separator {
    color: rgba(150, 255, 148, 0.5);
    font-size: 16px;
}

.passport-id-number {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: normal;
}

.passport-id-number strong {
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 575px) {
    .passport-id-header {
        padding: 14px 16px;
    }

    .passport-id-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .passport-id-title {
        font-size: 15px !important;
    }

    .passport-id-details {
        font-size: 13px;
    }
}

/* ── Toolbar ── */
.offers-toolbar {
    margin-bottom: 28px;
}

.offers-search {
    position: relative;
    margin-bottom: 16px;
    max-width: 400px;
}

.offers-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.offers-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #04132D;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.offers-search input:focus {
    border-color: #96ff94;
    box-shadow: 0 0 0 3px rgba(150, 255, 148, 0.15);
}

.offers-search input::placeholder {
    color: #9ca3af;
}

.offers-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Category Pills ── */
.offers-category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-pill {
    padding: 8px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.category-pill:hover {
    border-color: #96ff94;
    color: #04132D;
}

.category-pill.active {
    background: #04132D;
    color: #fff;
    border-color: #04132D;
}

/* ── Sort ── */
.offers-sort select {
    padding: 8px 32px 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.offers-sort select:focus {
    border-color: #96ff94;
}

/* ── Grid ── */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    transition: opacity 0.2s;
}

.offers-grid.offers-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Offer Card ── */
.offer-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.offer-card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Card Header ── */
.offer-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.offer-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
}

.offer-brand-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 24px;
    font-weight: 700;
}

.offer-brand-info {
    min-width: 0;
    flex: 1;
    text-align: left;
}

.offer-brand-name {
    font-family: "roc-grotesk", sans-serif;
    font-size: 16px !important;
    font-weight: 700;
    font-stretch: normal !important;
    font-style: normal;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    color: #04132D;
    margin: 0 0 2px;
    white-space: normal;
    word-break: break-word;
}

.offer-brand-tagline {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Category Badges ── */
.offer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.offer-category-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #374151;
    background: #f3f4f6;
    border-radius: 6px;
}

/* ── Brand Images Carousel ── */
.offer-carousel-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}

.offer-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.offer-carousel::-webkit-scrollbar {
    display: none;
}

.offer-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.offer-carousel-slide img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.offer-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #04132D;
    transition: background 0.15s, transform 0.15s;
    z-index: 2;
    padding: 0;
}

.offer-carousel-btn:hover {
    background: #fff;
    transform: translateY(-60%) scale(1.1);
}

.offer-carousel-prev {
    left: 8px;
}

.offer-carousel-next {
    right: 8px;
}

.offer-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.offer-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.offer-carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ── Brand Description (collapsible) ── */
.offer-brand-description-wrapper {
    position: relative;
}

.offer-brand-description {
    font-size: 10px;
    line-height: 1.55;
    color: #6b7280;
    max-height: 3.1em; /* ~2 lines */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.offer-brand-description-wrapper.expanded .offer-brand-description {
    max-height: 600px;
}

.offer-brand-description p {
    margin: 0 0 6px;
}

.offer-brand-description p:last-child {
    margin-bottom: 0;
}

.offer-brand-description a {
    color: #2563eb;
    text-decoration: underline;
}

.offer-desc-fade {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
    pointer-events: none;
    transition: opacity 0.2s;
}

.offer-brand-description-wrapper.expanded .offer-desc-fade {
    opacity: 0;
}

.offer-desc-toggle {
    display: block;
    background: none;
    border: none;
    padding: 2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #04132D;
    cursor: pointer;
    transition: color 0.15s;
}

.offer-desc-toggle:hover {
    color: #1a2a4a;
}

/* ── User Gets ── */
.offer-user-gets {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 12px 16px;
    border-left: 3px solid #96ff94;
}

.offer-user-gets p {
    font-size: 14px;
    font-weight: 600;
    color: #04132D;
    margin: 0;
    line-height: 1.5;
}

/* ── Reveal Area ── */
.offer-reveal-area {
    margin-top: auto;
}

.offer-reveal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 15px;
    font-weight: 600;
    color: #04132D;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offer-reveal-btn:hover {
    border-color: #96ff94;
    background: #f0fdf4;
    color: #04132D;
}

.offer-reveal-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ── Revealed Code ── */
.offer-code-revealed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: #04132D;
    border-radius: 10px;
}

.offer-code-text {
    font-family: "Courier New", Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #96ff94;
    letter-spacing: 2px;
}

.offer-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #fff;
    transition: all 0.15s;
    flex-shrink: 0;
}

.offer-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.offer-copy-btn.copied {
    background: #96ff94;
    color: #04132D;
}

.offer-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #04132D;
    text-decoration: none;
    transition: all 0.15s;
    text-align: center;
}

.offer-visit-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #04132D;
}

/* ── Terms Toggle ── */
.offer-terms-wrapper {
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
}

.offer-terms-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s;
}

.offer-terms-toggle:hover {
    color: #4b5563;
}

.offer-terms-toggle svg {
    transition: transform 0.2s;
}

.offer-terms-wrapper.open .offer-terms-toggle svg {
    transform: rotate(180deg);
}

.offer-terms-content {
    display: none;
    padding-top: 8px;
}

.offer-terms-content p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── Load More ── */
.offers-load-more {
    text-align: center;
    margin-top: 32px;
}

.offers-load-more-btn {
    padding: 12px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #04132D;
    cursor: pointer;
    transition: all 0.15s;
}

.offers-load-more-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ── No Offers ── */
.no-offers-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    color: #9ca3af;
}

.no-offers-found p {
    font-size: 16px;
    margin: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offers-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .offers-category-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .category-pill {
        flex-shrink: 0;
    }

    .offers-search {
        max-width: 100%;
    }

    .offer-code-text {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .offer-carousel-slide img {
        height: 180px;
    }

    .offer-carousel-btn {
        width: 26px;
        height: 26px;
    }

    .offer-carousel-btn svg {
        width: 14px;
        height: 14px;
    }

    .offer-brand-description {
        font-size: 10px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
