/* =============================================================
   EXTRA PACKS / ACCESS PACKAGESxxx
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

/* ── Hero ─────────────────────────────────────────────────── */
.ep-hero {
    background: linear-gradient(135deg, #1a3caa 0%, #1e3a8a 55%, #0f2461 100%);
    padding: 48px 0 52px;
    position: relative;
    overflow: hidden;
}
.ep-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../img/polygon-bg.png") no-repeat right center / contain;
    opacity: 0.08;
    pointer-events: none;
}
.ep-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.ep-hero__crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
    text-decoration: none;
}
.ep-hero h1 {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.2;
}
.ep-hero p {
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
    margin: 0;
}
@media (max-width: 767px) {
    .ep-hero h1 { font-size: 26px; }
    .ep-hero p  { font-size: 14px; }
}

/* ── Page body ────────────────────────────────────────────── */
.ep-body {
    padding: 0 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Filter tabs ──────────────────────────────────────────── */
.ep-filters {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    margin: 32px 0 36px;
    overflow-x: auto;
    scrollbar-width: none;
}
.ep-filters::-webkit-scrollbar { display: none; }

.ep-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .18s, border-color .18s;
    outline: none;
    margin-bottom: -1px;
}
.ep-filter-btn:hover { color: var(--main-color, #1a3caa); }
.ep-filter-btn.active {
    color: var(--main-color, #1a3caa);
    border-bottom-color: var(--main-color, #1a3caa);
    font-weight: 600;
}
.ep-filter-btn i { font-size: 15px; opacity: .75; }

/* ── Section header ───────────────────────────────────────── */
.ep-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 4px;
}
.ep-section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111928;
    margin: 0;
}
.ep-section-header .ep-count {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}
.ep-section-header .ep-view-all {
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color, #1a3caa);
    text-decoration: none;
}
.ep-section-header .ep-view-all:hover { text-decoration: underline; }
.ep-section-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 22px;
}

/* ══════════════════════════════════════════════════════════
   FEATURED CARDS  (horizontal)
   ══════════════════════════════════════════════════════════ */
.ep-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 20px;
    margin-bottom: 44px;
}
@media (max-width: 767px) { .ep-featured-grid { grid-template-columns: 1fr; } }

.ep-featured-card {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .22s, transform .22s;
}
.ep-featured-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.13);
    transform: translateY(-2px);
}

/* Stretched card link (covers whole card; interactive children raised above it) */
.ep-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.ep-card__wish,
.ep-card__badges,
.ep-card__footer,
.ep-fc__badges,
.ep-fc__actions,
.ep-fc__footer { position: relative; z-index: 2; }

/* Cover column */
.ep-fc__cover {
    flex-shrink: 0;
    width: 200px;
    position: relative;
    overflow: hidden;
}
.ep-fc__cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ep-fc__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 50%);
    z-index: 1;
}
.ep-fc__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 4px;
    z-index: 2;
    flex-wrap: wrap;
}
@media (max-width: 575px) {
    .ep-featured-card { flex-direction: column; }
    .ep-fc__cover { width: 100%; height: 180px; }
}

/* Body column */
.ep-fc__body {
    flex: 1;
    padding: 20px 22px 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ep-fc__type {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.ep-fc__title {
    font-size: 18px;
    font-weight: 800;
    color: #111928;
    margin: 0 0 8px;
    line-height: 1.3;
}
.ep-fc__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 2×2 stats grid */
.ep-fc__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 12px;
    margin-bottom: 14px;
}
.ep-fc__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}
.ep-fc__stat i { font-size: 15px; color: var(--main-color, #1a3caa); opacity: .75; flex-shrink: 0; }

/* Footer: price + buttons */
.ep-fc__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.ep-fc__price { flex-shrink: 0; }
.ep-fc__price .ep-price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    margin-right: 4px;
}
.ep-fc__price .ep-price-current {
    font-size: 24px;
    font-weight: 800;
    color: #111928;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.ep-fc__price .ep-price-current small {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.ep-fc__price .ep-price-free {
    font-size: 22px;
    font-weight: 800;
    color: #059669;
}

.ep-fc__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.ep-fc__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .18s, transform .1s;
    text-decoration: none !important;
    border: none;
    white-space: nowrap;
}
.ep-fc__btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none !important; }
.ep-fc__btn--primary { background: var(--main-color, #1a3caa); color: #fff !important; }
.ep-fc__btn--free    { background: #059669; color: #fff !important; }
.ep-fc__btn--access  { background: #fff7ed; color: #92400e !important; border: 1.5px solid #f59e0b !important; }
.ep-fc__btn--active  { background: #d1fae5; color: #065f46 !important; cursor: default; }
.ep-fc__btn--disabled { background: #f3f4f6; color: #9ca3af !important; cursor: default; }
.ep-fc__btn--notify  { background: #fff; color: var(--main-color, #1a3caa) !important; border: 1.5px solid var(--main-color, #1a3caa) !important; }

.ep-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #6b7280;
    transition: color .15s, border-color .15s;
    flex-shrink: 0;
    padding: 0;
}
.ep-icon-btn:hover { color: #ef4444; border-color: #ef4444; }
.ep-icon-btn.active,
.ep-icon-btn.active:hover { color: #ef4444; border-color: #ef4444; }
.ep-icon-btn.active .fa-heart { font-weight: 900; }

/* ══════════════════════════════════════════════════════════
   GRID CARDS
   ══════════════════════════════════════════════════════════ */
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
@media (max-width: 480px) { .ep-grid { grid-template-columns: 1fr; } }

.ep-card-wrapper {
    display: flex;
    height: 100%;
}

.ep-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: box-shadow .25s, transform .25s;
}
.ep-card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,.14);
    transform: translateY(-4px);
}

/* ── Cover ────────────────────────────────────────────────── */
.ep-card__cover {
    position: relative;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

/* full-bleed image */
.ep-card__cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* gradient overlay */
.ep-card__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,.25) 0%,
        transparent     40%,
        rgba(0,0,0,.55) 100%);
    z-index: 1;
}

/* Badges top-left */
.ep-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 4px;
    z-index: 2;
    flex-wrap: wrap;
}

/* Wishlist top-right */
.ep-card__wish {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    color: #6b7280;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: color .15s;
    padding: 0;
}
.ep-card__wish:hover { color: #ef4444; }
.ep-card__wish.active,
.ep-card__wish.active:hover { color: #ef4444; }
.ep-card__wish.active .fa-heart { font-weight: 900; }

/* Bottom bar: duration + rating */
.ep-card__cover-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 12px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}
.ep-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(0,0,0,.5);
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Card body ────────────────────────────────────────────── */
.ep-card__body {
    flex: 1;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
}

.ep-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #111928;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ep-card__desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-card__divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    width: 100%;
    margin: auto 0 10px;
}

/* ── Stats 2×2 grid ───────────────────────────────────────── */
.ep-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 8px;
    padding: 10px 0;
    margin-bottom: 10px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}
.ep-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #374151;
    font-weight: 500;
    min-width: 0;
}
.ep-stat i {
    font-size: 15px;
    color: var(--main-color, #1a3caa);
    opacity: .75;
    flex-shrink: 0;
}
.ep-stat span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Card footer (price + CTA side by side) ──────────────── */
.ep-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ep-card__footer-price { flex-shrink: 0; }

.ep-card__footer .ep-cta {
    width: auto;
    flex-shrink: 0;
    padding: 9px 14px;
    white-space: nowrap;
}

/* ── Urgency ──────────────────────────────────────────────── */
.ep-card__urgency {
    font-size: 12px;
    font-weight: 600;
    color: #ef4444;
    margin: 0 0 8px;
}

/* ── Launching state ──────────────────────────────────────── */
.ep-card__launching {
    margin: 0 0 10px;
}
.ep-card__launching-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--main-color, #1a3caa);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 2px;
}
.ep-card__launching-date {
    font-size: 14px;
    font-weight: 600;
    color: #111928;
}

/* ── Pricing ──────────────────────────────────────────────── */
.ep-card__pricing {
    margin-bottom: 12px;
}
.ep-pricing-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1px;
}
.ep-price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}
.ep-price-discount {
    font-size: 11px;
    font-weight: 700;
    background: #fee2e2;
    color: #b91c1c;
    padding: 1px 6px;
    border-radius: 4px;
}
.ep-price-current {
    font-size: 22px;
    font-weight: 800;
    color: #111928;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.2;
}
.ep-price-current small {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.ep-price-free {
    font-size: 24px;
    font-weight: 800;
    color: #059669;
}

/* ── CTA button ───────────────────────────────────────────── */
.ep-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: opacity .18s, transform .1s;
    text-decoration: none !important;
    border: none;
}
.ep-cta:hover:not(.ep-cta--disabled):not(.ep-cta--active) {
    opacity: .88;
    transform: translateY(-1px);
    text-decoration: none !important;
}
.ep-cta--primary  { background: var(--main-color, #1a3caa); color: #fff !important; }
.ep-cta--free     { background: #059669;                    color: #fff !important; }
.ep-cta--notify   { background: #fff; color: var(--main-color, #1a3caa) !important; border: 1.5px solid var(--main-color, #1a3caa) !important; }
.ep-cta--access   { background: #fff7ed; color: #92400e !important; border: 1.5px solid #f59e0b !important; }
.ep-cta--disabled { background: #f3f4f6; color: #9ca3af !important; cursor: default; }
.ep-cta--active   { background: #d1fae5; color: #065f46 !important; cursor: default; }

/* ── Badge chips ──────────────────────────────────────────── */
.ep-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.6;
    white-space: nowrap;
}
.ep-badge--free       { background: #059669; color: #fff; }
.ep-badge--paid       { background: #1d4ed8; color: #fff; }
.ep-badge--access     { background: #d97706; color: #fff; }
.ep-badge--invite     { background: #7c3aed; color: #fff; }
.ep-badge--active     { background: #059669; color: #fff; }
.ep-badge--tag        { background: #111928; color: #fff; }
.ep-badge--sub        { background: #0891b2; color: #fff; }
.ep-badge--save       { background: #f59e0b; color: #111928; }
.ep-badge--featured   { background: #1d4ed8; color: #fff; }
.ep-badge--limited    { background: #ef4444; color: #fff; }
.ep-badge--upcoming   { background: #7c3aed; color: #fff; }
.ep-badge--closing    { background: #ef4444; color: #fff; }

/* ── Window ending date ───────────────────────────────────── */
.ep-window-ends {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    margin-top: 4px;
}
.ep-window-ends i { font-size: 12px; }

/* ── Empty state ──────────────────────────────────────────── */
.ep-empty {
    text-align: center;
    padding: 80px 20px;
    color: #9ca3af;
}
.ep-empty i { font-size: 54px; display: block; margin-bottom: 16px; opacity: .45; }
.ep-empty p { font-size: 15px; margin: 0; }


/* =============================================================
   DETAIL PAGE  (epd-)
   ============================================================= */

/* ── Hero ──────────────────────────────────────────────────── */
.epd-hero {
    position: relative;
    padding: 44px 0 52px;
    overflow: hidden;
}
.epd-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
    pointer-events: none;
}
.epd-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}
.epd-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.65);
    margin-bottom: 14px;
}
.epd-crumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.epd-crumb a:hover { color: #fff; text-decoration: underline; }
.epd-crumb i { font-size: 15px; opacity: .6; }
.epd-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.epd-hero__title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
    max-width: 680px;
}
.epd-hero__desc {
    font-size: 14px;
    color: rgba(255,255,255,.82);
    margin: 0 0 18px;
    max-width: 620px;
    line-height: 1.65;
}
.epd-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 22px;
}
.epd-hero__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.88);
}
.epd-hero__meta i { font-size: 15px; }
.epd-hero__actions { display: flex; gap: 10px; }
.epd-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s;
}
.epd-hero__btn:hover { background: rgba(255,255,255,.2); }
.epd-hero__btn.active { color: #ef4444; border-color: rgba(239,68,68,.55); }
.epd-hero__btn.active .fa-heart { font-weight: 900; }
.epd-hero__actions .dropdown.share { position: static; }
.epd-hero__actions .dropdown.share > button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; backdrop-filter: blur(4px); transition: background .15s; }
.epd-hero__actions .dropdown.share > button::after { display: none; }
.epd-hero__actions .dropdown.share > button:hover { background: rgba(255,255,255,.2); }
.epd-hero__actions .dropdown.share > button i { font-size: 14px; }
.epd-hero__actions .dropdown.share > button i::after { content: ' Share'; font-family: inherit; font-size: 13px; font-style: normal; font-weight: 500; }
.epd-hero__actions .dropdown.share ul.dropdown-menu { top: calc(100% + 8px); left: 0; right: auto; min-width: 0; padding: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; }
.epd-hero__actions .dropdown.share.show ul.dropdown-menu,
.epd-hero__actions .dropdown.share.open ul.dropdown-menu { display: flex; gap: 4px; }
.epd-hero__actions .dropdown.share ul.dropdown-menu li { list-style: none; margin: 0; }
.epd-hero__actions .dropdown.share ul.dropdown-menu li a,
.epd-hero__actions .dropdown.share ul.dropdown-menu li span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; font-size: 17px; color: #374151; background: #f3f4f6; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.epd-hero__actions .dropdown.share ul.dropdown-menu li a:hover,
.epd-hero__actions .dropdown.share ul.dropdown-menu li span:hover { background: #e5e7eb; color: #111; }

/* ── Body layout ───────────────────────────────────────────── */
.epd-body { background: #f3f4f8; padding: 28px 0 64px; }
.epd-body__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.epd-main { flex: 1; min-width: 0; }
.epd-sidebar { width: 316px; flex-shrink: 0; position: sticky; top: 80px; }

/* ── Alerts ────────────────────────────────────────────────── */
.epd-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
}
.epd-alert i { font-size: 18px; flex-shrink: 0; }
.epd-alert--info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.epd-alert--warning { background: #fff7ed; color: #92400e; border: 1px solid #fed7aa; }

/* ── Tabs ──────────────────────────────────────────────────── */
.epd-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 0;
    padding: 0 8px;
    overflow-x: auto;
}
.epd-tab {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.epd-tab:hover { color: var(--main-color, #1a3caa); }
.epd-tab.active { color: var(--main-color, #1a3caa); border-bottom-color: var(--main-color, #1a3caa); font-weight: 600; }
.epd-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 10px;
    font-weight: 700;
    color: #374151;
}
.epd-tab.active .epd-tab-count { background: var(--main-color, #1a3caa); color: #fff; }

/* ── Panels ────────────────────────────────────────────────── */
.epd-panel { display: none; background: #fff; border-radius: 0 0 12px 12px; padding: 24px; margin-bottom: 20px; }
.epd-panel.active { display: block; }

/* ── Stats strip ───────────────────────────────────────────── */
.epd-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.epd-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 16px 10px;
    border-right: 1px solid #e5e7eb;
}
.epd-stat-item:last-child { border-right: none; }
.epd-stat-item i { font-size: 20px; color: var(--main-color, #1a3caa); opacity: .75; }
.epd-stat-value { font-size: 18px; font-weight: 700; color: #111928; }
.epd-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }

/* ── Content card ──────────────────────────────────────────── */
.epd-card { background: #fff; border: 1px solid #f0f0f0; border-radius: 10px; padding: 22px; }
.epd-card__title { font-size: 17px; font-weight: 700; color: #111928; margin: 0 0 14px; }
.epd-description { font-size: 14px; line-height: 1.75; color: #374151; }
.epd-description * { max-width: 100%; }

/* ── Plans comparison grid ─────────────────────────────────── */
.epd-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.epd-plan-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px 18px 18px;
    position: relative;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.epd-plan-card { cursor: pointer; }
.epd-plan-card:hover { border-color: var(--main-color, #1a3caa); box-shadow: 0 4px 18px rgba(26,60,170,.1); }
.epd-plan-card--popular { border-color: var(--main-color, #1a3caa); box-shadow: 0 4px 18px rgba(26,60,170,.12); }
.epd-plan-card--selected {
    border-color: var(--main-color, #1a3caa);
    box-shadow: 0 0 0 3px rgba(26,60,170,.18), 0 4px 18px rgba(26,60,170,.12);
    background: #f5f8ff;
}
.epd-plan-card__badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-color, #1a3caa);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.epd-plan-card__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #6b7280; margin-bottom: 12px; margin-top: 4px; }
.epd-plan-card__price { margin-bottom: 14px; }
.epd-plan-card__old { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; text-decoration: line-through; margin-bottom: 4px; }
.epd-plan-card__amount { font-size: 24px; font-weight: 700; color: #111928; }
.epd-plan-card__amount small { font-size: 12px; font-weight: 500; color: #6b7280; margin-left: 2px; }
.epd-plan-card__perks { list-style: none; padding: 0; margin: 0 0 16px; flex: 1; }
.epd-plan-card__perks li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; padding: 4px 0; }
.epd-plan-card__perks li i { color: #10b981; font-size: 14px; }
.epd-save-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* ── Cart card ─────────────────────────────────────────────── */
.epd-cart {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 28px rgba(0,0,0,.11);
    overflow: hidden;
}
.epd-cart__cover {
    height: 136px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.epd-cart__cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.3));
}
.epd-cart__cover img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.3));
}

/* Cart plan selector tabs */
.epd-plan-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid #f3f4f6; }
.epd-plan-tab {
    flex: 1;
    padding: 11px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.epd-plan-tab.active { color: var(--main-color, #1a3caa); border-bottom-color: var(--main-color, #1a3caa); font-weight: 600; }

/* Cart price panels */
.epd-plan-panels { padding: 18px 16px 4px; }
.epd-plan-panel { display: none; }
.epd-plan-panel form { margin: 0; }
.epd-plan-panel.active { display: block; }
.epd-cart__price-block { margin-bottom: 14px; }
.epd-cart__price-free { font-size: 26px; font-weight: 700; color: #10b981; margin-bottom: 14px; }
.epd-cart__price-old-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.epd-cart__price-old { font-size: 13px; color: #9ca3af; text-decoration: line-through; }
.epd-cart__price-main { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.epd-cart__price-amount { font-size: 30px; font-weight: 700; color: #111928; }
.epd-cart__price-currency { font-size: 13px; font-weight: 500; color: #6b7280; }
.epd-cart__price-period { font-size: 12px; color: #9ca3af; margin-bottom: 2px; }

/* Cart CTA button */
.epd-cart__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: var(--main-color, #1a3caa);
    color: #fff;
    margin-bottom: 16px;
    transition: filter .15s, transform .1s;
}
.epd-cart__cta:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.epd-cart__cta--free    { background: #10b981; }
.epd-cart__cta--access  { background: #7c3aed; }
.epd-cart__cta--notify  { background: #f59e0b; color: #111928; cursor: default; }
.epd-cart__cta--disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; }
.epd-cart__cta--disabled:hover,
.epd-cart__cta--notify:hover { filter: none; transform: none; }

/* Cart state: subscribed */
.epd-cart__subscribed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
    font-weight: 500;
}
.epd-cart__subscribed i { font-size: 22px; color: #10b981; flex-shrink: 0; }
.epd-cart__subscribed--expired { background: #fef2f2; color: #991b1b; }
.epd-cart__subscribed--expired i { color: #ef4444; }
.epd-cart__restricted { display: flex; align-items: center; gap: 10px; padding: 20px 16px; background: #fef9ec; color: #92400e; font-size: 14px; font-weight: 500; }
.epd-cart__restricted i { font-size: 22px; color: #f59e0b; flex-shrink: 0; }

/* Cart state: guest */
.epd-cart__guest { padding: 24px 20px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.epd-cart__guest-icon { width: 52px; height: 52px; border-radius: 50%; background: #f0f4ff; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.epd-cart__guest-icon i { font-size: 26px; color: var(--main-color, #1a3caa); }
.epd-cart__guest-title { font-size: 15px; font-weight: 700; color: #111928; }
.epd-cart__guest-sub { font-size: 13px; color: #6b7280; margin-bottom: 8px; line-height: 1.5; }
.epd-cart__cta--login { background: var(--main-color, #1a3caa); }

/* Cart state: invited */
.epd-cart__invited { padding: 20px 16px; text-align: center; }
.epd-cart__invited-msg { display: flex; align-items: center; justify-content: center; gap: 8px; background: #eff6ff; color: #1e40af; font-size: 14px; font-weight: 500; border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.epd-cart__invited-msg i { font-size: 20px; flex-shrink: 0; }

/* Cart state: upcoming / invite-only */
.epd-cart__upcoming { padding: 20px 16px; text-align: center; }
.epd-cart__lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--main-color, #1a3caa); margin-bottom: 4px; }
.epd-cart__ldate { font-size: 20px; font-weight: 700; color: #111928; margin-bottom: 16px; }

/* Cart details list */
.epd-cart__details { border-top: 1px solid #f3f4f6; padding: 14px 16px 6px; }
.epd-detail-row {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f9fafb;
}
.epd-detail-row:last-child { border-bottom: none; }
.epd-detail-row--expired { background: #fef2f2; color: #991b1b; border-radius: 6px; }
.epd-detail-row--expired .epd-detail-icon,
.epd-detail-row--expired .epd-detail-label,
.epd-detail-row--expired .epd-detail-value { color: #991b1b; }
.epd-detail-icon { font-size: 15px; color: #9ca3af; text-align: center; }
.epd-detail-label { color: #6b7280; }
.epd-detail-value { color: #111928; font-weight: 500; text-align: right; font-size: 12px; }
.epd-detail-value--red { color: #ef4444; }

/* Cart back link */
.epd-cart__back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 16px;
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    border-top: 1px solid #f3f4f6;
    transition: color .15s;
}
.epd-cart__back:hover { color: var(--main-color, #1a3caa); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
    .epd-body__inner { flex-direction: column-reverse; }
    .epd-sidebar { width: 100%; position: static; }
    .epd-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .epd-stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
    .epd-hero__title { font-size: 22px; }
    .epd-plans-grid { grid-template-columns: 1fr; }
    .epd-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Page wrapper ────────────────────────────────────────── */
.epd-wrap { min-height: 100vh; background: #f3f4f8; }

/* ── Sticky tabs modifier ────────────────────────────────── */
.epd-tabs--sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 0;
}
.epd-tabs--sticky::-webkit-scrollbar { display: none; }

/* ── Section anchors (visible, scroll-based) ─────────────── */
.epd-section-anchor { padding-top: 32px; margin-bottom: 12px; }

/* ── Section label + title ───────────────────────────────── */
.epd-sec-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--main-color, #1a3caa);
    margin: 0 0 4px;
}
.epd-sec-title {
    font-size: 22px;
    font-weight: 700;
    color: #111928;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* ── Content card (white box for description etc.) ───────── */
.epd-content-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 8px;
}

/* ── Savings box ─────────────────────────────────────────── */
.epd-savings-box {
    background: #f0fdf4;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.epd-savings-box__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #059669;
}
.epd-savings-box__main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.epd-savings-box__amount {
    font-size: 22px;
    font-weight: 700;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 8px;
}
.epd-savings-box__pct {
    font-size: 13px;
    font-weight: 600;
    background: #10b981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
}
.epd-savings-box__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #374151;
    text-align: right;
}

/* ── Stats bar (4-col) ───────────────────────────────────── */
.epd-stat-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.epd-stat-bar--5col { grid-template-columns: repeat(5, 1fr); }
.epd-stat-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border-right: 1px solid #f3f4f6;
    text-align: center;
}
.epd-stat-bar__item:last-child { border-right: none; }
.epd-stat-bar__value {
    font-size: 20px;
    font-weight: 700;
    color: #111928;
    line-height: 1.2;
}
.epd-stat-bar__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
    margin-top: 3px;
}

/* ── Plan card period text ───────────────────────────────── */
.epd-plan-card__period {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* ── Plan card CTA (inherits ep-cta base) ────────────────── */
.epd-plan-cta {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

/* ep-cta outline variant (secondary plans) */
.ep-cta--outline {
    background: transparent;
    border: 1.5px solid var(--main-color, #1a3caa);
    color: var(--main-color, #1a3caa);
}
.ep-cta--outline:hover {
    background: var(--main-color, #1a3caa);
    color: #fff;
}

/* ── Cart: plan pill toggle ──────────────────────────────── */
.epd-cart__toggle-wrap {
    padding: 14px 16px 0;
}
.epd-cart__toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.epd-cart__toggle-btn {
    flex: 1;
    padding: 7px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
    outline: none;
}
.epd-cart__toggle-btn.active {
    background: #fff;
    color: var(--main-color, #1a3caa);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Cart price "per period" inline label */
.epd-cart__price-per {
    font-size: 13px;
    color: #9ca3af;
    margin-left: 2px;
}

/* ── Cart: coupon section ────────────────────────────────── */
.epd-cart__coupon {
    padding: 10px 16px 14px;
    border-top: 1px solid #f3f4f6;
}
.epd-coupon-wrap {
    display: flex;
    gap: 6px;
}
.epd-coupon-input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    outline: none;
    transition: border-color .15s;
}
.epd-coupon-input:focus { border-color: var(--main-color, #1a3caa); }
.epd-coupon-btn {
    height: 38px;
    padding: 0 16px;
    background: var(--main-color, #1a3caa);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
    white-space: nowrap;
}
.epd-coupon-btn:hover { filter: brightness(1.12); }
.epd-coupon-btn:disabled { opacity: .7; cursor: default; }
.epd-coupon-message {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* ── Cart: seats remaining alert ─────────────────────────── */
.epd-cart__seats-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fffbf2;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
}
.epd-cart__seats-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fef3c7;
}
.epd-cart__seats-icon i { font-size: 13px; color: #b45309; }

/* ── Related packages section (full-width) ───────────────── */
.epd-related-section {
    background: #fff;
    padding: 52px 0 60px;
    border-top: 1px solid #e9eaf0;
}
.epd-related-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════
   PRICE ITEMS SECTION  (epi-)
   ═══════════════════════════════════════════════════════════ */

/* Plan switcher (multi-price) */
.epi-plan-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.epi-plan-sw-btn {
    padding: 7px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    outline: none;
}
.epi-plan-sw-btn:hover  { border-color: var(--main-color, #1a3caa); color: var(--main-color, #1a3caa); }
.epi-plan-sw-btn.active { border-color: var(--main-color, #1a3caa); background: var(--main-color, #1a3caa); color: #fff; }

/* Loading state */
.epi-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
    color: #9ca3af;
    font-size: 14px;
}
.epi-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--main-color, #1a3caa);
    border-radius: 50%;
    animation: epi-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes epi-spin { to { transform: rotate(360deg); } }

/* Empty state */
.epi-empty {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}
.epi-empty i    { font-size: 36px; display: block; margin-bottom: 10px; }
.epi-empty p    { font-size: 14px; margin: 0; }

/* Item tabs */
.epi-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 14px;
}
.epi-tabs::-webkit-scrollbar { display: none; }
.epi-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
}
.epi-tab:hover { color: var(--main-color, #1a3caa); }
.epi-tab.active {
    color: var(--main-color, #1a3caa);
    border-bottom-color: var(--main-color, #1a3caa);
    font-weight: 600;
}
.epi-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}
.epi-tab.active .epi-tab__count { background: var(--main-color, #1a3caa); color: #fff; }

/* Search */
.epi-search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.epi-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
}
.epi-search {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 38px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    outline: none;
    transition: border-color .15s;
}
.epi-search:focus { border-color: var(--main-color, #1a3caa); }

/* Count line */
.epi-count {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 14px;
    min-height: 18px;
}

/* Card grid */
.epi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

/* Grouped view (Free Picks / Discounted Items): one card per entitlement/product-item */
.epi-grouped { display: flex; flex-direction: column; gap: 18px; }
.epi-group-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow .18s;
}
.epi-group-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.epi-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}
.epi-group-title-row { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.epi-group-icon-sm {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ede9fe;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.epi-group-titles { min-width: 0; }
.epi-group-name     { font-size: 15px; font-weight: 700; color: #111827; margin: 0; }
.epi-group-subtitle { font-size: 12.5px; color: #6b7280; margin: 2px 0 0; }

/* Picks used / progress */
.epi-group-picks     { text-align: right; flex-shrink: 0; }
.epi-group-picks-label { display: block; font-size: 11px; color: #9ca3af; }
.epi-group-picks-value { display: block; font-size: 15px; font-weight: 800; color: #7c3aed; }
.epi-group-progress {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}
.epi-group-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #6d28d9);
    border-radius: 999px;
    transition: width .3s;
}
.epi-group-hint { font-size: 12px; color: #9ca3af; margin-bottom: 14px; }

.epi-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

/* Item card */
.epi-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .18s, transform .15s;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.epi-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.epi-card__cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #e5e7eb;
    overflow: hidden;
}
.epi-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.epi-card__no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 28px;
}
.epi-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
}
.epi-badge--free       { background: #10b981; }
.epi-badge--save       { background: #f59e0b; color: #111; }
.epi-badge--digital    { background: #7c3aed; }
.epi-badge--subscribed { background: #2563eb; }

.epi-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.epi-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #111928;
    margin: 0 0 6px;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.epi-card__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 8px;
}
.epi-card__meta i { font-size: 13px; }
.epi-card__footer { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.epi-price {
    font-size: 14px;
    font-weight: 700;
    color: #111928;
}
.epi-price small { font-size: 11px; font-weight: 500; color: #6b7280; }
.epi-price--free  { color: #10b981; }
.epi-price-wrap   { display: flex; align-items: baseline; gap: 6px; }
.epi-price-old    { font-size: 11px; color: #9ca3af; text-decoration: line-through; }
.epi-save-text    { font-size: 11px; color: #059669; font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   REDEEM PAGE  (epr-)
   ═══════════════════════════════════════════════════════════ */

.epr-layout {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* Pack summary card */
.epr-summary {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.epr-summary__cover {
    width: 100%;
    padding-top: 60%;
    position: relative;
}
.epr-summary__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}
.epr-summary__body  { padding: 16px 18px 20px; }
.epr-summary__name  { font-size: 16px; font-weight: 700; color: #111928; margin: 0 0 8px; }
.epr-summary__desc  { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0 0 12px; }
.epr-summary__meta  { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #6b7280; }
.epr-summary__meta span { display: flex; align-items: center; gap: 6px; }
.epr-summary__meta i { font-size: 14px; color: var(--main-color, #1a3caa); opacity: .7; }

/* Form card */
.epr-form-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 32px 36px 28px;
}
.epr-form-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}
.epr-form-card__icon {
    font-size: 32px;
    color: var(--main-color, #1a3caa);
    flex-shrink: 0;
    margin-top: 2px;
}
.epr-form-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #111928;
    margin: 0 0 4px;
}
.epr-form-card__sub  { font-size: 13px; color: #6b7280; margin: 0; }

/* Alerts */
.epr-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}
.epr-alert i { font-size: 18px; flex-shrink: 0; }
.epr-alert a { margin-left: auto; font-weight: 600; text-decoration: none; white-space: nowrap; }
.epr-alert--success { background: #f0fdf4; color: #166534; border: 1px solid #a7f3d0; }
.epr-alert--success a { color: #059669; }
.epr-alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Form */
.epr-form { display: flex; flex-direction: column; gap: 0; }
.epr-input-group { margin-bottom: 20px; }
.epr-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}
.epr-input-wrap { position: relative; }
.epr-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #9ca3af;
    pointer-events: none;
}
.epr-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: monospace;
    letter-spacing: .06em;
    color: #111928;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.epr-input:focus {
    border-color: var(--main-color, #1a3caa);
    box-shadow: 0 0 0 3px rgba(26,60,170,.1);
}
.epr-hint { font-size: 12px; color: #9ca3af; margin: 6px 0 0; }

.epr-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: var(--main-color, #1a3caa);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s, transform .1s;
    margin-bottom: 16px;
}
.epr-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.epr-submit i { font-size: 18px; }

.epr-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
}
.epr-back:hover { color: var(--main-color, #1a3caa); }

/* Responsive */
@media (max-width: 700px) {
    .epr-layout { grid-template-columns: 1fr; }
    .epr-summary { position: static; }
    .epr-form-card { padding: 24px 20px; }
}

/* ── My Packs page ───────────────────────────────────────── */
.ep-hero--compact { padding: 32px 0 28px; }
.ep-hero--compact h1 { font-size: 26px; }

.mypacks-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

.mypacks-empty {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}
.mypacks-empty__icon { font-size: 52px; color: #d1d5db; margin-bottom: 16px; }
.mypacks-empty h3 { font-size: 20px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
.mypacks-empty p { font-size: 14px; margin: 0 0 24px; }

.mypacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.mypacks-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.mypacks-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.mypacks-card--expired { opacity: .75; }

.mypacks-card__cover {
    position: relative;
    height: 120px;
    overflow: hidden;
}
.mypacks-card__status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.mypacks-card--active .mypacks-card__status-badge {
    background: rgba(16,185,129,.15);
    color: #065f46;
    backdrop-filter: blur(4px);
}
.mypacks-card--expired .mypacks-card__status-badge {
    background: rgba(239,68,68,.15);
    color: #991b1b;
    backdrop-filter: blur(4px);
}

.mypacks-card__body {
    flex: 1;
    padding: 16px 18px 12px;
}
.mypacks-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.3;
}
.mypacks-card__plan-label {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 12px;
}

.mypacks-card__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mypacks-card__meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.mypacks-card__meta-label { color: #9ca3af; }
.mypacks-card__meta-value { color: #374151; font-weight: 600; }

.mypacks-card__days-left { color: #059669; }
.mypacks-card__days-left--urgent { color: #dc2626; }

.mypacks-card__footer {
    padding: 12px 18px 16px;
    border-top: 1px solid #f3f4f6;
}
.mypacks-card__footer .ep-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ── Responsive extras ───────────────────────────────────── */
@media (max-width: 960px) {
    .epd-stat-bar { grid-template-columns: repeat(2, 1fr); }
    .epd-stat-bar__item:nth-child(2) { border-right: none; }
    .epd-stat-bar__item:nth-child(3) { border-top: 1px solid #f3f4f6; }
    .epd-stat-bar__item:nth-child(4) { border-top: 1px solid #f3f4f6; border-right: none; }
}
@media (max-width: 600px) {
    .epd-stat-bar { grid-template-columns: repeat(2, 1fr); }
    .epd-sec-title { font-size: 18px; }
    .epd-savings-box__main { flex-direction: column; }
    .epd-savings-box__meta { text-align: left; }
    .epd-cart__toggle-btn { font-size: 11px; padding: 6px 8px; }
    .epd-related-section { padding: 36px 0 44px; }
}
