*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    position: relative; /* side banners will anchor to the whole page */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #020617;
    background-image: url('/assets/img/bg-cosmic.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* HEADER */
.site-header {
    border-bottom: 1px solid rgba(148,163,184,0.45);
    background: rgba(2,6,23,0.9);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
}

/* tighter vertical padding only in header */
.site-header .container {
    padding-top: 0.65rem;
    padding-bottom: 0.55rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.logo a {
    font-weight: 600;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    background: linear-gradient(135deg, #22c55e, #3b82f6);
    color: #020617;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
    font-size: 0.78rem;
}

/* NAV AS PILL BUTTONS – slightly smaller & tighter */
.main-nav {
    display: flex;
    gap: 0.55rem;
    font-size: 0.9rem;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.32rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.75);
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.45), transparent 55%),
        rgba(15,23,42,0.98);
    color: #e0f2fe;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
    opacity: 1;
    text-decoration: none;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        border-color 0.12s ease,
        background 0.12s ease;
}

.main-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(129, 230, 217, 0.95);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.95);
}

/* MAIN / FOOTER */

.site-main {
    padding: 1.4rem 0 3rem;
}

.site-footer {
    border-top: 1px solid rgba(148,163,184,0.4);
    background: rgba(2,6,23,0.96);
    padding: 1.5rem 0 2rem;
    color: #9ca3af;
    font-size: 0.85rem;
}

.footer-inner {
    text-align: center;
}

/* LAYOUT */

.page {
    /* no position / padding tricks here – keeps content full width */
    display: grid;
    gap: 1.5rem;
}

.page-header {
    margin-bottom: 1rem;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.page-subtitle {
    color: #cbd5f5;
    font-size: 0.95rem;
}

/* CARDS */

.cards-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card {
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(168,85,247,0.35), transparent 55%),
        rgba(15,23,42,0.96);
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 1.25rem 1.35rem;
    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    transform: translateY(0);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(129, 230, 217, 0.95);
    box-shadow:
        0 26px 70px rgba(15, 23, 42, 0.98),
        0 0 0 1px rgba(56, 189, 248, 0.35);
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.card-body {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.card-footer {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9ca3af;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(148,163,184,0.6);
    color: #e5e7eb;
}

/* PROSE / TEXT PANELS */

.prose {
    display: grid;
    gap: 1rem;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.prose h2 {
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.prose h3 {
    font-size: 1.1rem;
    margin-top: 0.35rem;
}

.prose p {
    color: #e5e7eb;
}

.prose ul {
    list-style: disc;
    margin-left: 1.25rem;
    color: #e5e7eb;
}

.prose li + li {
    margin-top: 0.25rem;
}

.link {
    color: #7dd3fc;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* REVIEW HERO / RATING */

.review-hero {
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.35), transparent 60%),
        radial-gradient(circle at bottom right, rgba(168,85,247,0.45), transparent 60%),
        rgba(15,23,42,0.96);
    border-radius: 1.2rem;
    border: 1px solid rgba(96,165,250,0.9);
    padding: 1.25rem 1.35rem;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-hero-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.review-hero-sub {
    font-size: 0.95rem;
    color: #e0f2fe;
}

.review-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #cbd5f5;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(56,189,248,0.95);
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.5), transparent 55%),
        rgba(15,23,42,1);
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0f2fe;
    margin-top: 0.35rem;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        border-color 0.12s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(15,23,42,0.95);
    border-color: rgba(129,230,217,0.95);
}

.rating-card {
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.35), transparent 60%),
        radial-gradient(circle at bottom right, rgba(168,85,247,0.45), transparent 60%),
        rgba(15,23,42,0.96);
    border-radius: 1.2rem;
    border: 1px solid rgba(96,165,250,0.9);
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.9rem;
    display: grid;
    gap: 0.45rem;
}

.rating-table {
    display: grid;
    gap: 0.25rem;
    font-size: 0.9rem;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-label {
    color: #e5e7eb;
}

.rating-stars {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.08em;
}

.rating-stars .full {
    color: #facc15;
}

.rating-stars .half {
    color: #fde68a;
}

.rating-stars .empty {
    color: #4b5563;
    opacity: 0.7;
}

/* GENERIC TEXT PANEL */

.text-panel {
    background: rgba(2, 6, 23, 0.92);
    padding: 1.4rem 1.5rem;
    border-radius: 1.05rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    margin-top: 0.9rem;
}

/* HERO PANEL FOR ABOUT/CONTACT */

.hero-panel {
    max-width: 860px;
    background: rgba(2, 6, 23, 0.9);
    border-radius: 1rem;
    padding: 1.2rem 1.4rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(6px);
}

.hero-panel .page-title {
    margin-bottom: 0.5rem;
}

.hero-panel .page-subtitle {
    color: #e5e7eb;
}

/* REFERRAL BANNER (LEGACY – safe to delete if not used) */

.referral-banner {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.referral-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.referral-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 0.9rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

/* PROMO BANNERS – generic single banner */

.promo-banner {
    margin-bottom: 1.75rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.promo-banner a {
    display: block;
}

.promo-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.75);
}

/* Smaller promo when used inside the footer */
.site-footer .promo-banner {
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.site-footer .promo-banner img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

/* GENERIC BANNER SLOT WRAPPERS */

.banner-slot {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.banner-item {
    background: rgba(2, 6, 23, 0.92);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    padding: 0.6rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.85);
    text-align: center;
}

.banner-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
}

.banner-fallback-text {
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* legacy footer-banner class (from older layout) */
.footer-banner {
    max-width: 420px;
    margin: 0 auto 0.75rem;
}

.footer-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

/* ================================
   Top-of-home banner strip
   1 big hero + small row under
   ================================ */

.promo-banner-strip {
    display: flex;
    flex-direction: column;   /* stack big + row of smalls */
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Big first banner (top-home-1) */
.promo-banner--large img {
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* Row that holds the smaller banners (top-home-2..5) */
.small-banner-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 900px;
}

/* Individual small banners */
.promo-banner--small img {
    max-height: 90px;     /* 728x90 style height */
    width: auto;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

/* ==========================
   Home – right-side banner stack (card style, scrolls with page)
   ========================== */

.home-side-banners {
    position: absolute;      /* anchored to body (full page), not the content column */
    right: 24px;
    top: 170px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 280px;
    opacity: 1;
    transition: opacity 0.25s ease-out;
}

/* Optional hidden state (only used if JS toggles this) */
.home-side-banners.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Card that holds each banner */
.home-side-banner-item {
    background: radial-gradient(circle at top left,
                rgba(255, 255, 255, 0.14),
                rgba(10, 20, 40, 0.95));
    border-radius: 1.1rem;
    padding: 10px 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Make the banner image center nicely inside the card */
.home-side-banner-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide the side stack on tablets/phones so it doesn't clutter */
@media (max-width: 1100px) {
    .home-side-banners {
        display: none;
    }
}

/* RESPONSIVE TWEAKS */

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .container {
        padding: 1rem;
    }

    .site-header .container {
        padding-top: 0.55rem;
        padding-bottom: 0.5rem;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .main-nav {
        flex-wrap: wrap;
        row-gap: 0.3rem;
        font-size: 0.85rem;
    }

    .site-main {
        padding: 1.25rem 0 2.25rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .review-hero,
    .rating-card,
    .text-panel {
        padding: 1.05rem 1.1rem;
    }

    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.85rem;
    }

    .logo a {
        font-size: 0.95rem;
    }

    .logo-mark {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .card {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.35rem;
    }
}
