/* ================================================
   Cosmic Birthday Theme – Digital Invitation
   Space-mission motif, deep-navy starfield, rocket badge,
   playful rounded type. All artwork is CSS/SVG — no photo assets.
   ================================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:      #0B1130;
    --bg-alt:       #131A3A;
    --panel:        #1B2350;
    --panel-light:  #232C5E;
    --white:        #F5F6FF;
    --body:         #B9C0E0;
    --muted:        #8890B8;
    --purple:       #7C5CFC;
    --purple-light: #A78BFA;
    --gold:         #FFD166;
    --gold-pale:    #FFE9B0;
    --coral:        #FF6B6B;
    --accent-color: var(--purple);
    --radius:       16px;
    --btn-radius:   999px;
    --ff-display:   'Baloo 2', 'Comic Sans MS', cursive, sans-serif;
    --ff-body:      'Quicksand', sans-serif;

    /* Wave curve baked into a background-image so it can auto-alternate per
       section via nth-child without repeating markup — same technique as
       the royal theme, recolored for the navy palette. */
    --bc-wave-deep:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C83,90 167,10 250,50 C333,90 417,10 500,50 C583,90 667,10 750,50 C833,90 917,10 1000,50 L1000,100 L0,100 Z' fill='%230B1130'/%3E%3C/svg%3E");
    --bc-wave-alt:    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMDAwIDEwMCcgcHJlc2VydmVBc3BlY3RSYXRpbz0nbm9uZSc+PHBhdGggZD0nTTAsNTAgQzgzLDkwIDE2NywxMCAyNTAsNTAgQzMzMyw5MCA0MTcsMTAgNTAwLDUwIEM1ODMsOTAgNjY3LDEwIDc1MCw1MCBDODMzLDkwIDkxNywxMCAxMDAwLDUwIEwxMDAwLDEwMCBMMCwxMDAgWicgZmlsbD0nIzdjNWNmYzEyJy8+PC9zdmc+");
    --bc-wave-purple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C83,90 167,10 250,50 C333,90 417,10 500,50 C583,90 667,10 750,50 C833,90 917,10 1000,50 L1000,100 L0,100 Z' fill='%237C5CFC'/%3E%3C/svg%3E");

    /* Palette read by the shared <x-checkerboard-gallery-grid> lightbox engine. */
    --cbg-ink:      var(--bg-deep);
    --cbg-accent:   var(--bg-deep);
    --cbg-backdrop: #050714;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-body);
    font-weight: 500;
    color: var(--body);
    background-color: var(--bg-deep);
    /* Starfield: two star-dot layers + a faint golden speck, fixed so it
       shows through every section regardless of scroll or alternation. */
    background-image:
        radial-gradient(circle, rgba(255,255,255,.85) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255,209,102,.8) 1.4px, transparent 2px);
    background-size: 180px 180px, 90px 90px, 260px 260px;
    background-position: 0 0, 40px 60px, 120px 20px;
    background-attachment: fixed;
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: var(--purple-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.bc-container         { max-width: 1100px; margin: 0 auto; }
.bc-container--narrow { max-width: 680px; }

/* Sections alternate a subtle tint over the fixed starfield instead of a
   flat opaque color, so the stars stay visible everywhere. */
.bc-alt-sections > * {
    position: relative;
    background: transparent;
}
.bc-alt-sections > *:nth-child(even) {
    background: rgba(124,92,252,.07);
}

.bc-alt-sections > *:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0px;
    height: 46px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}
.bc-alt-sections > *:nth-child(odd):not(:last-child)::after {
    background-image: var(--bc-wave-alt);
}
.bc-poem::after,
.bc-alt-sections > *:nth-child(even):not(:last-child)::after {
    background-image: var(--bc-wave-deep);
}

.bc-section-title {
    font-family: var(--ff-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}
.bc-section-title::after {
    content: '';
    position: absolute;
    top: -22px;
    left: 50%;
    width: 70px;
    height: 14px;
    transform: translateX(-50%);
    background-image:
        radial-gradient(circle at 10px 7px, var(--gold) 6px, transparent 6.5px),
        radial-gradient(circle at 35px 7px, var(--purple-light) 6px, transparent 6.5px),
        radial-gradient(circle at 60px 7px, var(--coral) 6px, transparent 6.5px);
}

@keyframes bc-float {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%      { transform: translateY(-6px) rotate(6deg); }
}

@keyframes bc-twinkle {
    0%, 100% { opacity: .55; }
    50%      { opacity: 1; }
}

/* ---------- Shape dividers ----------
   A full-width SVG with preserveAspectRatio="none" pinned to the section
   edge, so the curve stretches to any width without distorting its height. */
.bc-shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    direction: ltr;
    pointer-events: none;
    z-index: 1;
}
.bc-shape-top { top: -1px; }
.bc-shape-bottom { bottom: -1px; }
.bc-shape[data-negative="false"].bc-shape-bottom,
.bc-shape[data-negative="true"].bc-shape-top {
    transform: rotate(180deg);
}
.bc-shape svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.bc-shape-fill {
    transform-origin: center;
}

/* ---------- Hero ---------- */
.bc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 1.5rem 6rem;
}

.bc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 25%, rgba(124,92,252,.35), transparent 55%),
        radial-gradient(circle at 82% 75%, rgba(255,209,102,.18), transparent 50%);
    animation: bc-twinkle 5s ease-in-out infinite;
    pointer-events: none;
}

.bc-hero__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.bc-hero__grid.bc-container { max-width: 1400px; }

/* ---------- Hero media (circular "porthole" window) ---------- */
.bc-hero__media {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
}

.bc-hero__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: var(--panel);
    border: 10px solid var(--panel-light);
    box-shadow: 0 0 0 4px var(--gold), 0 25px 60px rgba(0,0,0,.55);
}

.bc-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bc-hero__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.bc-hero__badge {
    position: absolute;
    top: -4px;
    right: 4%;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,.4);
    color: var(--gold);
    animation: bc-float 3.5s ease-in-out infinite;
    z-index: 2;
}
.bc-hero__badge svg { width: 68px; height: 68px; }

/* ---------- Hero content (text column) ---------- */
.bc-hero__content {
    position: relative;
    z-index: 3;
}

.bc-hero__eyebrow {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    opacity: .9;
    margin-bottom: .5rem;
}

.bc-hero__name {
    font-family: var(--ff-display);
    font-size: 72px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.bc-hero__age {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
}

.bc-hero__date-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--bg-deep);
    background: var(--gold);
    border: 3px solid var(--gold-pale);
    border-radius: var(--btn-radius);
    padding: .65rem 1.25rem;
    box-shadow: 0 4px 15px rgba(255,209,102,.35);
}

.bc-hero__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.bc-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--btn-radius);
    padding: .5rem 1.15rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

@media (max-width: 820px) {
    .bc-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bc-hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .bc-hero__meta { justify-content: center; }
    .bc-hero__name { font-size: clamp(2rem, 9vw, 72px); }
    .bc-hero__frame {
        width: 80%;
        margin: 5rem auto 0;
    }
    .bc-hero__badge {
        width: 64px;
        height: 64px;
        top: 5rem;
        right: 15%;
    }
}

/* Floating topbar */
.bc-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: .9rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background .3s ease, backdrop-filter .3s ease;
}

/* Desktop only (mobile hides these links behind the hamburger toggle, which
   already has its own self-contained dark-blur backdrop — the bar itself
   stays transparent unconditionally there). Give the bar a solid/blurred
   background past the scroll threshold (.scrolled toggled by data-topbar in
   theme.js) — dark here (matching var(--bg-deep), this theme's own page
   tone) since .bc-topbar__links a is light var(--body) text throughout. */
@media (min-width: 601px) {
    .bc-topbar.scrolled {
        background: color-mix(in srgb, var(--bg-deep) 92%, transparent);
        backdrop-filter: blur(10px);
    }
}

.bc-topbar__links {
    display: flex;
    gap: 1.25rem;
}
.bc-topbar__links a {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--body);
    transition: color .2s;
}
.bc-topbar__links a:hover { color: var(--gold); text-decoration: none; }

.bc-topbar__toggle { display: none; }

/* Demo-only Basic/Standard switch + close + cart badge — shared look defined
   globally in layouts/theme.blade.php, just positioned here at opposite bottom
   corners, at every screen width. */
.dpb-switch,
.dpb-fab {
    position: fixed;
    bottom: 1rem;
    z-index: 9999;
}
.dpb-fab { right: 1rem; }
.dpb-close { right: 4rem; }
.dpb-switch {
    left: 1rem;
    display: flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 .25rem;
}
.dpb-switch a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 .9rem;
    font-size: 12px;
}

/* Mobile: collapse the link row behind a bordered hamburger button, opening a
   dropdown panel with the same links stacked. .bc-topbar is space-between
   (brand left, toggle right) on desktop — pin the toggle to the left instead
   on mobile, matching every other theme. */
@media (max-width: 600px) {
    .bc-topbar { justify-content: flex-start; }
    .bc-topbar__toggle { order: -1; }

    .bc-topbar__toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1.5px solid rgba(255,255,255,.25);
        border-radius: 50%;
        background: rgba(11,17,48,.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        cursor: pointer;
        transition: background .2s;
    }
    .bc-topbar__toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 1px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }
    .bc-topbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .bc-topbar__toggle.is-active span:nth-child(2) { opacity: 0; }
    .bc-topbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .bc-topbar__links {
        display: flex;
        flex-direction: column;
        gap: .25rem;
        position: absolute;
        top: calc(100% + .5rem);
        left: 1rem;
        right: 1rem;
        padding: .5rem;
        background: rgba(11,17,48,.97);
        border: 1px solid rgba(255,209,102,.25);
        border-radius: 12px;
        box-shadow: 0 12px 32px rgba(0,0,0,.5);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .bc-topbar__links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .bc-topbar__links a {
        text-align: center;
        padding: .65rem 1rem;
        border-radius: 8px;
        color: var(--body);
    }
    .bc-topbar__links a:hover { background: rgba(255,209,102,.12); color: var(--gold); }

}

/* ---------- Audio ---------- */
.bc-audio {
    position: relative;
    padding: 5rem 1.25rem 8rem;
    overflow: hidden;
}

/* ---------- Countdown ---------- */
.bc-countdown {
    position: relative;
    padding: 5rem 1.25rem 8rem;
    overflow: hidden;
}

.bc-countdown__inner {
    position: relative;
    z-index: 2;
}

.bc-countdown__intro {
    text-align: center;
    color: var(--body);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
}

/* Illustrated CSS "scene" (planet + ring + stars) behind the timer, in place
   of a photo — there's no space photography in the app, so this keeps the
   theme fully self-contained. */
.bc-countdown__photo-wrap {
    position: relative;
    max-width: 900px;
    margin: 2.5rem auto 0;
    aspect-ratio: 1143 / 502;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    overflow: hidden;
}

.bc-countdown__scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 30% 25%, rgba(124,92,252,.4), transparent 60%), var(--panel);
}

.bc-countdown__scene::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1.6px);
    background-size: 46px 46px;
    opacity: .5;
}

.bc-countdown__planet {
    position: absolute;
    right: 8%;
    top: 14%;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--gold-pale), var(--gold) 45%, #C9962F 100%);
    box-shadow: 0 0 45px rgba(255,209,102,.5);
}

.bc-countdown__ring {
    position: absolute;
    right: 1%;
    top: 33%;
    width: 210px;
    height: 54px;
    border: 6px solid rgba(255,209,102,.55);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.bc-countdown__timer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.bc-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(11,17,48,.75);
    border: 2px solid rgba(255,209,102,.4);
    padding: 40px 0 25px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,.35);
    min-width: 100px;
}

.bc-countdown__number {
    font-family: var(--ff-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.bc-countdown__label {
    font-family: var(--ff-display);
    font-size: .72rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .35rem;
}

/* ---------- Program / Flight Plan ---------- */
.bc-program {
    padding: 5rem 1.25rem 8rem;
}

.bc-timeline { margin-top: 1rem; }

.bc-timeline__item {
    display: grid;
    grid-template-columns: 80px 20px 1fr;
    gap: 0 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.bc-timeline__time {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .88rem;
    color: var(--gold);
    text-align: right;
    padding-top: .15rem;
}

.bc-timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--purple);
    margin-top: .25rem;
    position: relative;
}

.bc-timeline__dot::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255,255,255,.15);
    height: calc(100% + 1.5rem + 14px);
}

.bc-timeline__item:last-child .bc-timeline__dot::after { display: none; }

.bc-timeline__label {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--white);
}

.bc-timeline__location {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    margin-top: .15rem;
}
.bc-timeline__location a { margin-left: .4em; opacity: .85; font-size: .9em; color: var(--purple-light); }

/* ---------- Mission Briefing (message / quote card) ---------- */
.bc-poem {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
    position: relative;
}

.bc-poem__card {
    position: relative;
    background: var(--panel);
    border: 3px dashed rgba(255,209,102,.45);
    border-radius: var(--radius);
    padding: 3rem 2rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
}

.bc-poem__quote {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--gold);
    opacity: .85;
}
.bc-poem__quote svg { width: 100%; height: 100%; }

.bc-poem__text {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    line-height: 1.8;
    white-space: pre-line;
    color: var(--white);
}

.bc-poem__rocket {
    margin-top: 1.25rem;
    font-size: 1.4rem;
    opacity: .8;
}

/* ---------- Mission Log (Our Story) ---------- */
.bc-story {
    padding: 5rem 1.25rem 8rem;
    text-align: center;
}

.bc-story__intro {
    max-width: 34rem;
    margin: 0 auto 1rem;
    font-size: 1rem;
    line-height: 1.7;
}

.bc-story__timeline {
    position: relative;
    max-width: 780px;
    margin: 3rem auto 0;
    text-align: left;
}

.bc-story__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent-color) 0,
        var(--accent-color) 10px,
        transparent 10px,
        transparent 20px
    );
    transform: translateX(-50%);
}

.bc-story__item {
    position: relative;
    width: 50%;
    padding-bottom: 3.5rem;
}

.bc-story__item:last-child {
    padding-bottom: 0;
}

.bc-story__item--left {
    padding-right: 3rem;
    text-align: right;
}

.bc-story__item--right {
    width: 50%;
    margin-left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.bc-story__dot {
    position: absolute;
    top: .3rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid var(--bg-deep);
    box-shadow: 0 0 0 3px var(--accent-color);
    z-index: 2;
}

.bc-story__item--left .bc-story__dot { right: -9px; }
.bc-story__item--right .bc-story__dot { left: -9px; }

/* Photo framed with a plain gold border instead of an overlay image. */
.bc-story__photo {
    position: relative;
    width: min(100%, 260px);
    aspect-ratio: 675 / 697;
    margin-bottom: 1rem;
    display: inline-block;
}

.bc-story__item--left .bc-story__photo { margin-left: auto; }
.bc-story__item--right .bc-story__photo { margin-right: auto; }

.bc-story__photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 3px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,.45);
    display: block;
}

.bc-story__photo-caption {
    position: absolute;
    left: .6rem;
    right: .6rem;
    bottom: .6rem;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    background: rgba(11,17,48,.75);
    border-radius: var(--btn-radius);
    padding: .3rem .5rem;
    z-index: 2;
}

.bc-story__period {
    display: block;
    font-family: var(--ff-display);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .25rem;
}

.bc-story__title {
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .35rem;
}

.bc-story__desc {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--body);
}

@media (max-width: 720px) {
    .bc-story__timeline::before {
        left: 1.4rem;
        transform: none;
    }

    .bc-story__item,
    .bc-story__item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
        padding-right: 0;
        text-align: left;
    }

    .bc-story__item--left .bc-story__dot,
    .bc-story__item--right .bc-story__dot {
        left: 1.4rem;
        right: auto;
        transform: translateX(-50%);
    }

    .bc-story__item--left .bc-story__photo,
    .bc-story__item--right .bc-story__photo {
        margin-left: 0;
        margin-right: auto;
    }
}

/* ---------- Gallery / Guest Wall ---------- */
.bc-gallery { padding: 5rem 1.25rem 8rem; text-align: center; }
.bc-guest-wall { padding: 5rem 1.25rem 8rem; text-align: center; }
.bc-gallery-upload { padding: 5rem 1.25rem 8rem; text-align: center; }

.bc-gallery-upload .gu-form {
    max-width: 620px;
    padding: 0 1.5rem;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ---------- Dress Code / Good to Know ---------- */
.bc-dress-code { padding: 5rem 1.25rem 8rem; text-align: center; }
.bc-good-to-know { padding: 5rem 1.25rem 8rem; text-align: center; }

/* ---------- Closing ---------- */
.bc-closing {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.bc-closing p {
    font-family: var(--ff-display);
    font-size: .95rem;
    color: var(--white);
    opacity: .65;
    margin: 0;
}

/* ---------- Landing Site (Map) ---------- */
.bc-location { padding: 5rem 1.25rem 8rem; }

.bc-location__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

@media (max-width: 820px) {
    .bc-location__grid {
        grid-template-columns: 1fr;
    }
}

.bc-location__map iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
    border-radius: 100px 30px 100px 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,.45);
    filter: grayscale(.15) invert(.92) hue-rotate(180deg);
}

.bc-location__info {
    text-align: center;
}

.bc-location__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--panel);
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.bc-location__name {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.bc-location__address {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* ---------- Mission Archive (Album) ---------- */
.bc-album { padding: 5rem 1.25rem; text-align: center; }
.bc-album__text { opacity: .75; margin-bottom: 2rem; }

/* ---------- RSVP ---------- */
.bc-rsvp {
    position: relative;
    padding: 5rem 1.25rem 8rem;
}
.bc-rsvp .rsvp-deadline {
    background: transparent;
    margin-bottom: 10px;
}
.bc-rsvp::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 46px;
    background-image: var(--bc-wave-purple);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.bc-rsvp__subtitle {
    text-align: center;
    color: var(--white);
    opacity: .8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.bc-alert--success {
    background: var(--panel);
    color: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
}

/* "Mission control panel" card — asymmetric radius echoes the hero porthole. */
.rsvp-layout-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--panel);
    border: 2px solid rgba(255,209,102,.4);
    border-radius: 100px 30px 100px 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
    padding: 3.5rem 2.5rem;
}

@media (max-width: 500px) {
    .rsvp-layout-wrap {
        border-radius: 40px 20px 40px 20px;
        padding: 2.5rem 1.25rem;
    }
}

.bc-rsvp .form__group label {
    display: block;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .82rem;
    color: var(--gold);
    margin-bottom: .4rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.bc-rsvp .form__group input[type="text"],
.bc-rsvp .form__group input[type="email"],
.bc-rsvp .form__group input[type="tel"],
.bc-rsvp .form__group select,
.bc-rsvp .form__group textarea {
    width: 100%;
    padding: .95rem 1.25rem;
    border: 0;
    border-radius: 8px;
    font-family: var(--ff-body);
    font-weight: 500;
    font-size: .95rem;
    color: var(--white);
    background-color: var(--panel-light);
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    transition: box-shadow .2s;
    outline: none;
}
.bc-rsvp .form__group .rsvp-stepper {
    background: var(--panel-light);
}

.bc-rsvp .form__group input[type="text"]:focus,
.bc-rsvp .form__group input[type="email"]:focus,
.bc-rsvp .form__group input[type="tel"]:focus,
.bc-rsvp .form__group select:focus,
.bc-rsvp .form__group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255,209,102,.25), 0 0 0 5px var(--gold);
    background-color: var(--panel-light);
}

.bc-rsvp .form__error {
    display: block;
    color: var(--coral);
    font-size: .82rem;
    margin-top: .3rem;
}

.bc-btn {
    display: block;
    width: 100%;
    padding: .9rem 2rem;
    background: var(--purple);
    color: var(--white);
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.05rem;
    border: 3px solid var(--purple-light);
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    box-shadow: 0 4px 15px rgba(124,92,252,.4);
    letter-spacing: .02em;
    margin-top: .5rem;
}

.bc-btn:hover {
    background: var(--coral);
    border-color: #ff9494;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255,107,107,.4);
    text-decoration: none;
}

.bc-location .bc-btn,
.bc-album .bc-btn { display: inline-block; width: auto; margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.bc-footer {
    background: var(--purple);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 2.5rem 1.25rem;
    font-size: .9rem;
}

.bc-footer p { margin-bottom: .35rem; }
.bc-footer a { color: var(--gold); }
.bc-footer__ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    max-width: 13rem;
    margin: 0 auto 1rem;
    color: rgba(255,255,255,.5);
}
.bc-footer__ornament-line { flex: 1; height: 1px; background: linear-gradient(to right, transparent, currentColor); }
.bc-footer__ornament-line:last-child { background: linear-gradient(to left, transparent, currentColor); }
.bc-footer__ornament-mark { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.bc-footer__signoff { max-width: 24rem; margin: 0 auto 1.5rem; opacity: .8; }
/* Not .bc-btn — its background matches the footer; a white pill lifts off it. */
.bc-footer__cal {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    padding: .7rem 1.5rem;
    background: #fff;
    color: #1f2937 !important;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,.22);
    transition: transform .15s, box-shadow .15s;
}
.bc-footer__cal:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.3); text-decoration: none; }
.bc-footer__cal-icon { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    /* nowrap + scroll fallback guarantees all 4 units stay on one row down to
       360px, instead of flex-wrap letting them fall to a 2x2 block once
       their min-width no longer fits. */
    .bc-countdown__timer {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bc-countdown__timer::-webkit-scrollbar { display: none; }
    .bc-countdown__unit {
        padding: .9rem 1rem;
        min-width: 58px;
        flex-shrink: 0;
    }
    .bc-countdown__number { font-size: 2rem; }

    .bc-poem__card { padding: 2.5rem 1.25rem 1.75rem; }
}

/* Standardized horizontal gutter across every content section on mobile
   (padding-x: 1rem), matching wedding-romantic-bloom's convention — several
   sections here otherwise use a wider desktop-only gutter (1.25rem/1.5rem)
   that just eats into already-limited mobile width. Appended at the very end
   of the file (not folded into an earlier @media block) so equal-specificity
   source order guarantees this wins over each section's own base padding
   rule, which is declared later in the file than this file's other,
   topbar-only 600px media query. */
@media (max-width: 600px) {
.bc-hero,
.bc-countdown,
.bc-program,
.bc-poem,
.bc-story,
.bc-gallery,
.bc-guest-wall,
.bc-gallery-upload,
.bc-dress-code,
.bc-good-to-know,
.bc-closing,
.bc-location,
.bc-album,
.bc-rsvp,
.bc-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
