/**
 * Eira Premium — global design system (Digital Academy)
 * Loaded after styles.css + eira-premium-home.css on all pages.
 */

body.eira-premium {
    --eira-glow-violet: 0 0 42px rgba(139, 92, 246, 0.22);
    --eira-glow-cyan: 0 0 36px rgba(6, 182, 212, 0.18);
    --eira-glow-gold: 0 0 28px rgba(212, 175, 55, 0.2);
}

/* ----- Buttons (site-wide) ----- */
body.eira-premium .btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 45%, #0891b2 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    box-shadow: var(--eira-glow-violet);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.eira-premium .btn-primary:hover {
    filter: brightness(1.06);
    box-shadow: var(--eira-glow-violet), var(--eira-glow-cyan);
    transform: translateY(-1px);
}

body.eira-premium .btn-ghost {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

body.eira-premium .btn-ghost:hover {
    border-color: rgba(139, 92, 246, 0.45);
    color: #fff;
}

body.eira-premium .link-button,
body.eira-premium .btn-link {
    color: #a5b4fc;
}

body.eira-premium .link-button:hover,
body.eira-premium .btn-link:hover {
    color: #5eead4;
}

body.eira-premium .btn-danger,
body.eira-premium button.link-button.text-danger {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
}

/* ----- Layout shells ----- */
.eira-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
}

.eira-shell--narrow {
    max-width: 720px;
}

.eira-page-hero {
    position: relative;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    border-radius: 0 0 var(--radius-lg, 16px) var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.45) 0%, rgba(15, 23, 42, 0.35) 55%, transparent 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.eira-page-hero h1 {
    font-family: var(--font-display, "Outfit", sans-serif);
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.eira-page-hero .muted,
.eira-page-hero p {
    max-width: 40rem;
    margin: 0;
    color: #94a3b8;
}

.eira-page-hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 0.35rem;
    display: block;
}

/* ----- Breadcrumb ----- */
.eira-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.eira-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.eira-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
}

.eira-breadcrumb a:hover {
    color: #5eead4;
}

.eira-breadcrumb__sep {
    opacity: 0.45;
    user-select: none;
}

/* ----- Filter chips (Shop) ----- */
.eira-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.25rem;
}

.eira-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.eira-filter-chip:hover {
    border-color: rgba(139, 92, 246, 0.45);
    color: #fff;
}

.eira-filter-chip.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(6, 182, 212, 0.2));
    border-color: rgba(139, 92, 246, 0.55);
    color: #f8fafc;
}

/* ----- Shop product grid (glass cards) ----- */
body.eira-premium .shop-page .product-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

body.eira-premium .shop-page .product-card {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(28, 28, 38, 0.95), rgba(12, 12, 20, 0.92));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.eira-premium .shop-page .product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--eira-glow-violet), 0 20px 48px rgba(0, 0, 0, 0.55);
}

body.eira-premium .shop-page .product-card .product-cover {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.eira-premium .shop-page .product-meta {
    padding: 0.85rem 1rem 1rem;
}

body.eira-premium .shop-page .product-meta h2 {
    font-size: 1.02rem;
    margin: 0 0 0.25rem;
}

body.eira-premium .shop-card-cta {
    margin-top: 0.75rem;
}

body.eira-premium .shop-card-cta-btn {
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.eira-premium .shop-card-trust {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
}

body.eira-premium .shop-premium .shop-filters-card,
body.eira-premium .shop-premium .shop-filters,
body.eira-premium .shop-page .shop-filters-card,
body.eira-premium .shop-page .shop-filters {
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
}

/* ----- Badges ----- */
.eira-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
}

.eira-badge--gold {
    border-color: rgba(212, 175, 55, 0.45);
    color: #fde68a;
}

.eira-badge--cyan {
    border-color: rgba(6, 182, 212, 0.45);
    color: #5eead4;
}

.eira-badge--violet {
    border-color: rgba(167, 139, 250, 0.45);
    color: #ddd6fe;
}

/* ----- Forms ----- */
body.eira-premium .field input,
body.eira-premium .field textarea,
body.eira-premium .field select,
body.eira-premium .auth-card input {
    border-radius: var(--radius-sm, 8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.65);
    color: #f1f5f9;
}

body.eira-premium .field input:focus,
body.eira-premium .field textarea:focus,
body.eira-premium .field select:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* ----- FAQ ----- */
body.eira-premium .faq-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

body.eira-premium .faq-category {
    margin-bottom: 2rem;
    padding: 1.25rem 1.25rem 0.25rem;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
}

body.eira-premium .faq-details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.eira-premium .faq-summary {
    cursor: pointer;
    padding: 0.85rem 0;
    font-weight: 600;
    color: #e2e8f0;
}

body.eira-premium .faq-summary:hover {
    color: #c4b5fd;
}

/* ----- Contact / Auth ----- */
body.eira-premium .contact-page,
body.eira-premium .auth-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

body.eira-premium .contact-form-card,
body.eira-premium .contact-support-card,
body.eira-premium .auth-card {
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(28, 28, 38, 0.92), rgba(12, 12, 18, 0.9));
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

body.eira-premium .contact-grid {
    gap: 1.25rem;
}

/* ----- Cart / Checkout ----- */
body.eira-premium .cart-page,
body.eira-premium .checkout-growth-note,
body.eira-premium .growth-page-shell .card {
    border-radius: var(--radius-lg, 16px);
}

body.eira-premium .cart-item-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
    border-radius: var(--radius, 12px);
}

body.eira-premium .cart-summary--modern {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.35), rgba(15, 23, 42, 0.75));
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
}

/* ----- Library vault ----- */
body.eira-premium .growth-page-shell--library .library-content h1 {
    font-family: var(--font-display, "Outfit", sans-serif);
}

body.eira-premium .library-card {
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.5);
    overflow: hidden;
}

body.eira-premium .growth-quicklinks a,
body.eira-premium .library-filter-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
}

body.eira-premium .growth-quicklinks a.active,
body.eira-premium .library-filter-pill.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(6, 182, 212, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
}

/* ----- Magazine editorial ----- */
body.eira-premium .magazine-editorial {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

body.eira-premium .magazine-masthead-editorial {
    padding: 2rem 1.25rem 1.25rem;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(30, 27, 75, 0.5), rgba(15, 23, 42, 0.65));
    margin-bottom: 1.25rem;
}

body.eira-premium .magazine-cat-pill,
body.eira-premium .magazine-view-btn {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
}

body.eira-premium .magazine-cat-pill.active,
body.eira-premium .magazine-view-btn.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(6, 182, 212, 0.2));
    border-color: rgba(139, 92, 246, 0.5);
}

body.eira-premium .magazine-card-editorial,
body.eira-premium .magazine-hero-article {
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(12, 12, 18, 0.88);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.eira-premium .magazine-card-editorial:hover {
    transform: translateY(-2px);
    box-shadow: var(--eira-glow-violet);
}

/* ----- About ----- */
body.eira-premium .about-block {
    border-radius: var(--radius-lg, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
}

/* ----- 404 ----- */
body.eira-premium .eira-404 {
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem) 1rem;
    max-width: 520px;
    margin: 0 auto;
}

body.eira-premium .eira-404 h1 {
    font-family: var(--font-display, "Outfit", sans-serif);
}

/* ----- Mobile header ----- */
@media (max-width: 900px) {
    body.eira-premium .header-top-inner {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
    }

    body.eira-premium .header-search {
        grid-column: 1 / -1;
        order: 3;
        max-width: none;
    }

    body.eira-premium .header-controls {
        order: 2;
    }

    body.eira-premium .logo {
        order: 1;
    }
}

/* ----- Support / reco panels ----- */
body.eira-premium .support-panel,
body.eira-premium .reco-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(20, 20, 32, 0.98), rgba(10, 10, 16, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

body.eira-premium .footer-grid--five {
    display: grid;
    gap: 1.5rem 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (min-width: 960px) {
    body.eira-premium .footer-grid--five {
        grid-template-columns: 1.1fr repeat(4, 1fr);
    }
}

body.eira-premium .support-widget-toggle,
body.eira-premium .reco-widget-toggle {
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
}

/* ----- Legal / rewards / errors ----- */
body.eira-premium .legal-content.eira-shell .eira-page-hero {
    margin-bottom: 1.75rem;
}

body.eira-premium .legal-content h2 {
    font-family: var(--font-display, "Outfit", sans-serif);
    font-size: 1.15rem;
    margin-top: 1.75rem;
    color: #e2e8f0;
}

body.eira-premium .legal-content p,
body.eira-premium .legal-content li {
    line-height: 1.65;
    color: #cbd5e1;
}

body.eira-premium .history-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
}

body.eira-premium .history-table th,
body.eira-premium .history-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.eira-premium .history-table thead th {
    background: rgba(30, 27, 75, 0.5);
    font-weight: 600;
    color: #e2e8f0;
}

body.eira-premium .error-500-page .eira-page-hero {
    text-align: center;
}

body.eira-premium .error-500-page .eira-page-hero p:last-of-type {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
