/* ================================================================
   Birthday Memory Portal — Frontend CSS
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
    --bmp-primary: #e74c8b;
    --bmp-primary-dark: #c93573;
    --bmp-secondary: #6c5ce7;
    --bmp-gold: #f9a825;
    --bmp-bg: #fdf2f8;
    --bmp-card-bg: #ffffff;
    --bmp-text: #2d3436;
    --bmp-text-light: #636e72;
    --bmp-border: #f0e0ea;
    --bmp-radius: 16px;
    --bmp-radius-sm: 10px;
    --bmp-shadow: 0 4px 24px rgba(231,76,139,0.08);
    --bmp-shadow-lg: 0 12px 48px rgba(231,76,139,0.15);
    --bmp-transition: 0.3s cubic-bezier(.4,0,.2,1);
    --bmp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* ── Base ───────────────────────────────────────────────────────── */
.bmp-wrap, .bmp-landing, .bmp-reveal-page, .bmp-slideshow-page {
    font-family: var(--bmp-font);
    color: var(--bmp-text);
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}
.bmp-hidden { display: none !important; }
.required { color: var(--bmp-primary); }

/* ── Buttons ────────────────────────────────────────────────────── */
.bmp-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--bmp-transition);
    line-height: 1.4;
}
.bmp-btn-primary {
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    color: #fff;
}
.bmp-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--bmp-shadow-lg); color:#fff; }
.bmp-btn-outline {
    background: transparent;
    border-color: var(--bmp-primary);
    color: var(--bmp-primary);
}
.bmp-btn-outline:hover { background: var(--bmp-primary); color: #fff; }
.bmp-btn-outline-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.bmp-btn-outline-light:hover { background: rgba(255,255,255,.15); color:#fff; }
.bmp-btn-block { display: block; width: 100%; }
.bmp-btn-sm { padding: 8px 18px; font-size: 13px; }
.bmp-btn-large { padding: 18px 48px; font-size: 18px; }
.bmp-btn-heart {
    background: linear-gradient(135deg, #ff6b6b, var(--bmp-primary));
    color: #fff;
    animation: bmp-heartbeat 2s infinite;
}
.bmp-btn-glow {
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    color: #fff;
    box-shadow: 0 0 30px rgba(231,76,139,0.4);
    animation: bmp-glow 2s ease-in-out infinite alternate;
}
@keyframes bmp-glow {
    from { box-shadow: 0 0 20px rgba(231,76,139,0.3); }
    to   { box-shadow: 0 0 40px rgba(231,76,139,0.6); }
}
@keyframes bmp-heartbeat {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ── Cards ──────────────────────────────────────────────────────── */
.bmp-card {
    background: var(--bmp-card-bg);
    border-radius: var(--bmp-radius);
    padding: 32px;
    box-shadow: var(--bmp-shadow);
}
.bmp-card-form { max-width: 600px; margin: 24px auto; }
.bmp-card-narrow { max-width: 420px; }

/* ── Forms ──────────────────────────────────────────────────────── */
.bmp-form-group { margin-bottom: 16px; }
.bmp-form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--bmp-text); }
.bmp-form input[type="text"],
.bmp-form input[type="email"],
.bmp-form input[type="password"],
.bmp-form input[type="tel"],
.bmp-form input[type="url"],
.bmp-form input[type="number"],
.bmp-form input[type="date"],
.bmp-form textarea,
.bmp-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--bmp-border);
    border-radius: var(--bmp-radius-sm);
    font-size: 15px;
    font-family: var(--bmp-font);
    transition: border-color var(--bmp-transition);
    background: #fff;
}
.bmp-form input:focus, .bmp-form textarea:focus, .bmp-form select:focus {
    outline: none;
    border-color: var(--bmp-primary);
}
.bmp-form-row { display: flex; gap: 12px; }
.bmp-form-row > * { flex: 1; }
.bmp-form-msg {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: var(--bmp-radius-sm);
    display: none;
    font-size: 14px;
}
.bmp-form-msg.success { display: block; background: #d4edda; color: #155724; }
.bmp-form-msg.error   { display: block; background: #f8d7da; color: #721c24; }
.bmp-text-center { text-align: center; }
.bmp-mt-1 { margin-top: 16px; }
.bmp-hint { display: block; font-size: 12px; color: var(--bmp-text-light); margin-top: 4px; }
.bmp-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.bmp-back-link { display: inline-block; margin-bottom: 16px; color: var(--bmp-primary); text-decoration: none; font-weight: 600; }

/* ── File Drop Zone ─────────────────────────────────────────────── */
.bmp-file-drop {
    border: 2px dashed var(--bmp-border);
    border-radius: var(--bmp-radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--bmp-transition);
    position: relative;
    overflow: hidden;
}
.bmp-file-drop:hover, .bmp-file-drop.drag-over {
    border-color: var(--bmp-primary);
    background: rgba(231,76,139,0.03);
}
.bmp-file-drop input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.bmp-drop-icon { font-size: 48px; display: block; margin-bottom: 8px; }
.bmp-file-preview img, .bmp-file-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--bmp-radius-sm);
}

/* ── Progress Bar ───────────────────────────────────────────────── */
.bmp-progress {
    height: 8px;
    background: var(--bmp-border);
    border-radius: 4px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}
.bmp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bmp-primary), var(--bmp-secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
}
.bmp-progress-text {
    position: absolute; right: 0; top: -20px; font-size: 12px; color: var(--bmp-text-light);
}

/* ── Badges ─────────────────────────────────────────────────────── */
.bmp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bmp-badge-green  { background: #d4edda; color: #155724; }
.bmp-badge-orange { background: #fff3cd; color: #856404; }
.bmp-badge-red    { background: #f8d7da; color: #721c24; }
.bmp-badge-gold   { background: linear-gradient(135deg,#fff3cd,#ffe082); color: #7b6b00; }

/* ── Stat Pills ─────────────────────────────────────────────────── */
.bmp-stat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bmp-pill {
    padding: 6px 14px;
    background: var(--bmp-bg);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.bmp-pill-total { background: linear-gradient(135deg,var(--bmp-primary),var(--bmp-secondary)); color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   HERO / LANDING
   ══════════════════════════════════════════════════════════════════ */
.bmp-landing { max-width: 100%; padding: 0; }
.bmp-hero {
    background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 50%, #fce7f3 100%);
    padding: 64px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.bmp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(231,76,139,0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(108,92,231,0.08) 0%, transparent 60%);
}
.bmp-hero-photo {
    width: 140px; height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 24px;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(231,76,139,0.2);
    position: relative;
    z-index: 1;
}
.bmp-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.bmp-hero-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--bmp-primary);
    margin: 0 0 8px;
    position: relative; z-index: 1;
}
.bmp-hero-name {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px;
    position: relative; z-index: 1;
}
.bmp-hero-tagline {
    font-size: 17px;
    color: var(--bmp-text-light);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
    position: relative; z-index: 1;
}

/* Countdown */
.bmp-countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    position: relative; z-index: 1;
}
.bmp-countdown-item { text-align: center; }
.bmp-cd-num {
    display: block;
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.bmp-cd-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--bmp-text-light); }

.bmp-landing-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0;
    position: relative; z-index: 1;
}
.bmp-landing-stats span {
    font-size: 14px;
    color: var(--bmp-text-light);
    font-weight: 500;
}
.bmp-landing-actions {
    text-align: center;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.bmp-landing-section {
    max-width: 600px;
    margin: 32px auto;
    padding: 0 24px;
}
.bmp-landing-section h3 { text-align: center; margin-bottom: 8px; }
.bmp-landing-section p { text-align: center; color: var(--bmp-text-light); margin-bottom: 20px; }
.bmp-landing-footer {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(to bottom, transparent, var(--bmp-bg));
}
.bmp-footer-quote {
    font-style: italic;
    color: var(--bmp-text-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════════
   CONTRIBUTOR DASHBOARD
   ══════════════════════════════════════════════════════════════════ */
.bmp-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.bmp-dash-welcome { display: flex; align-items: center; gap: 16px; }
.bmp-dash-avatar, .bmp-dash-avatar-placeholder {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.bmp-dash-avatar-placeholder {
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.bmp-dash-welcome h2 { margin: 0; font-size: 22px; }
.bmp-dash-welcome p { margin: 4px 0 0; color: var(--bmp-text-light); font-size: 14px; }

.bmp-contribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}
.bmp-contrib-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bmp-card-bg);
    border-radius: var(--bmp-radius);
    box-shadow: var(--bmp-shadow);
    text-decoration: none;
    color: var(--bmp-text);
    transition: all var(--bmp-transition);
}
.bmp-contrib-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bmp-shadow-lg);
    color: var(--bmp-primary);
}
.bmp-cc-icon { font-size: 36px; }
.bmp-cc-label { font-size: 13px; font-weight: 600; text-align: center; }

.bmp-my-stats, .bmp-my-submissions { margin-bottom: 32px; }
.bmp-my-stats h3, .bmp-my-submissions h3 { margin-bottom: 12px; }

.bmp-sub-list { background: var(--bmp-card-bg); border-radius: var(--bmp-radius); box-shadow: var(--bmp-shadow); overflow: hidden; }
.bmp-sub-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bmp-border);
}
.bmp-sub-row:last-child { border-bottom: none; }
.bmp-sub-icon { font-size: 20px; flex-shrink: 0; }
.bmp-sub-info { flex: 1; min-width: 0; }
.bmp-sub-info strong { font-size: 14px; }
.bmp-sub-info small { color: var(--bmp-text-light); }
.bmp-sub-date { font-size: 12px; color: var(--bmp-text-light); flex-shrink: 0; }

/* ── Upload Header ──────────────────────────────────────────────── */
.bmp-upload-header {
    text-align: center;
    margin-bottom: 24px;
}
.bmp-upload-icon { font-size: 48px; display: block; margin-bottom: 8px; }

/* ══════════════════════════════════════════════════════════════════
   CENTREPIECE 1: REVEAL PAGE
   ══════════════════════════════════════════════════════════════════ */
.bmp-reveal-page {
    max-width: 100%;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Pre-reveal */
.bmp-pre-reveal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    text-align: center;
    padding: 24px;
}
.bmp-floating-hearts {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.bmp-floating-heart {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: bmp-float-up 6s ease-in infinite;
}
@keyframes bmp-float-up {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.7; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
.bmp-lock-icon { font-size: 64px; margin-bottom: 24px; animation: bmp-heartbeat 2s infinite; }
.bmp-pre-title {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 8px;
    letter-spacing: 2px;
}
.bmp-pre-name {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ff6b6b, var(--bmp-gold), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bmp-pre-tagline { opacity: 0.7; max-width: 400px; margin: 0 auto 32px; line-height: 1.6; }
.bmp-pre-hint { opacity: 0.4; font-size: 13px; margin-top: 32px; }

/* Reveal countdown */
.bmp-reveal-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.bmp-rcd-item { text-align: center; }
.bmp-rcd-num {
    display: block;
    font-size: 48px;
    font-weight: 800;
    min-width: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 12px;
    line-height: 1.2;
}
.bmp-rcd-sep { font-size: 32px; font-weight: 300; opacity: 0.3; margin-top: -16px; }
.bmp-rcd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; margin-top: 4px; display: block; }

/* Post-reveal */
.bmp-post-reveal {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
    text-align: center;
    padding: 48px 24px;
    position: relative;
}

/* Confetti */
.bmp-confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Fireworks */
.bmp-fireworks {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}
.bmp-fw {
    position: absolute;
    width: 6px; height: 6px;
    border-radius: 50%;
    animation: bmp-firework 3s ease-out infinite;
}
.bmp-fw-1 { left: 20%; top: 30%; background: #ff6b6b; animation-delay: 0s; }
.bmp-fw-2 { left: 70%; top: 20%; background: var(--bmp-gold); animation-delay: 0.5s; }
.bmp-fw-3 { left: 50%; top: 40%; background: #6c5ce7; animation-delay: 1s; }
.bmp-fw-4 { left: 30%; top: 60%; background: #00cec9; animation-delay: 1.5s; }
.bmp-fw-5 { left: 80%; top: 50%; background: #fd79a8; animation-delay: 2s; }
@keyframes bmp-firework {
    0%   { transform: scale(0); opacity: 1; box-shadow: 0 0 0 0 currentColor; }
    50%  { transform: scale(1); opacity: 1;
           box-shadow: 30px -20px 0 currentColor, -30px -20px 0 currentColor,
                       20px 30px 0 currentColor, -20px 30px 0 currentColor,
                       0px -40px 0 currentColor, 40px 0px 0 currentColor,
                       -40px 0px 0 currentColor, 0px 40px 0 currentColor; }
    100% { transform: scale(1.5); opacity: 0;
           box-shadow: 60px -40px 0 transparent, -60px -40px 0 transparent,
                       40px 60px 0 transparent, -40px 60px 0 transparent,
                       0px -80px 0 transparent, 80px 0px 0 transparent,
                       -80px 0px 0 transparent, 0px 80px 0 transparent; }
}

.bmp-reveal-hero { position: relative; z-index: 2; max-width: 700px; }
.bmp-reveal-photo {
    width: 160px; height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 32px;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 60px rgba(231,76,139,0.4);
}
.bmp-reveal-photo img { width: 100%; height: 100%; object-fit: cover; }
.bmp-reveal-title {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0 0 8px;
    opacity: 0.8;
}
.bmp-reveal-name {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #ff6b6b, var(--bmp-gold), #ff6b6b, var(--bmp-gold));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bmp-shimmer 3s ease-in-out infinite;
}
@keyframes bmp-shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.bmp-reveal-tagline { opacity: 0.7; font-size: 17px; line-height: 1.7; margin-bottom: 32px; }

/* Reveal stats ribbon */
.bmp-reveal-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--bmp-radius);
    backdrop-filter: blur(10px);
}
.bmp-rs-item { text-align: center; }
.bmp-rs-num { display: block; font-size: 28px; font-weight: 800; }
.bmp-rs-label { font-size: 12px; opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; }

.bmp-reveal-ctas { margin-bottom: 40px; }
.bmp-reveal-sub-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.bmp-reveal-ending blockquote {
    font-style: italic;
    opacity: 0.6;
    font-size: 16px;
    line-height: 1.8;
    border-left: 3px solid rgba(255,255,255,0.2);
    padding-left: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* Animate-in */
.bmp-animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: bmp-fade-up 0.8s ease forwards;
}
.bmp-delay-1 { animation-delay: 0.3s; }
.bmp-delay-2 { animation-delay: 0.6s; }
.bmp-delay-3 { animation-delay: 0.9s; }
.bmp-delay-4 { animation-delay: 1.2s; }
.bmp-delay-5 { animation-delay: 1.8s; }
@keyframes bmp-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   CENTREPIECE 2: MEMORY WALL
   ══════════════════════════════════════════════════════════════════ */
.bmp-wall-header {
    text-align: center;
    margin-bottom: 24px;
}
.bmp-wall-title { font-size: 32px; margin: 0 0 8px; }
.bmp-wall-subtitle { color: var(--bmp-text-light); font-size: 15px; }

.bmp-wall-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}
.bmp-filter-btn {
    padding: 8px 18px;
    border: 2px solid var(--bmp-border);
    border-radius: 50px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--bmp-transition);
    font-family: var(--bmp-font);
}
.bmp-filter-btn:hover { border-color: var(--bmp-primary); color: var(--bmp-primary); }
.bmp-filter-btn.active {
    background: var(--bmp-primary);
    border-color: var(--bmp-primary);
    color: #fff;
}

.bmp-wall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.bmp-wall-loading { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--bmp-text-light); }

/* Memory Card */
.bmp-memory-card {
    background: var(--bmp-card-bg);
    border-radius: var(--bmp-radius);
    overflow: hidden;
    box-shadow: var(--bmp-shadow);
    transition: all var(--bmp-transition);
    cursor: pointer;
}
.bmp-memory-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bmp-shadow-lg);
}
.bmp-memory-card.featured {
    border: 2px solid var(--bmp-gold);
    position: relative;
}
.bmp-memory-card.featured::after {
    content: '⭐ Featured';
    position: absolute;
    top: 12px; right: 12px;
    background: var(--bmp-gold);
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
}
.bmp-mc-media {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0e0ea, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bmp-mc-media img { width: 100%; height: 100%; object-fit: cover; }
.bmp-mc-media-placeholder { font-size: 48px; }
.bmp-mc-body { padding: 16px; }
.bmp-mc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.bmp-mc-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.bmp-mc-avatar-ph {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.bmp-mc-name { font-weight: 700; font-size: 14px; }
.bmp-mc-rel  { font-size: 12px; color: var(--bmp-text-light); }
.bmp-mc-title { font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.bmp-mc-text {
    font-size: 14px;
    color: var(--bmp-text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bmp-mc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--bmp-text-light);
}
.bmp-mc-type-badge {
    padding: 2px 8px;
    background: var(--bmp-bg);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ── Modal ──────────────────────────────────────────────────────── */
.bmp-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.bmp-modal.open { display: flex; }
.bmp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.bmp-modal-content {
    position: relative;
    background: var(--bmp-card-bg);
    border-radius: var(--bmp-radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
}
.bmp-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--bmp-text-light);
    line-height: 1;
}
.bmp-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.bmp-modal-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bmp-modal-body img { max-width: 100%; border-radius: var(--bmp-radius-sm); }
.bmp-modal-body video, .bmp-modal-body audio { max-width: 100%; }
.bmp-modal-body .bmp-modal-message {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 16px;
}
.bmp-modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 13px;
    color: var(--bmp-text-light);
}
.bmp-modal-type-badge {
    padding: 4px 12px;
    background: var(--bmp-bg);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════
   CENTREPIECE 3: TIMELINE
   ══════════════════════════════════════════════════════════════════ */
.bmp-timeline-header { text-align: center; margin-bottom: 32px; }
.bmp-timeline-title { font-size: 32px; margin: 0 0 8px; }
.bmp-timeline-subtitle { color: var(--bmp-text-light); }

.bmp-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 32px;
    padding: 20px 0;
}
.bmp-timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--bmp-primary), var(--bmp-secondary));
    transform: translateX(-50%);
}
.bmp-timeline-loading { text-align: center; padding: 48px; color: var(--bmp-text-light); }

/* Year marker */
.bmp-tl-year {
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 32px 0 24px;
}
.bmp-tl-year-badge {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--bmp-primary), var(--bmp-secondary));
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(231,76,139,0.3);
}

/* Timeline node */
.bmp-tl-node {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    position: relative;
}
.bmp-tl-node:nth-child(odd) { flex-direction: row-reverse; }
.bmp-tl-node:nth-child(odd) .bmp-tl-card { margin-left: 0; margin-right: calc(50% + 24px); text-align: right; }
.bmp-tl-node:nth-child(even) .bmp-tl-card { margin-left: calc(50% + 24px); }

.bmp-tl-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 14px; height: 14px;
    background: var(--bmp-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(231,76,139,0.3);
}

.bmp-tl-card {
    background: var(--bmp-card-bg);
    border-radius: var(--bmp-radius);
    padding: 16px;
    box-shadow: var(--bmp-shadow);
    width: calc(50% - 36px);
    cursor: pointer;
    transition: all var(--bmp-transition);
}
.bmp-tl-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bmp-shadow-lg);
}
.bmp-tl-thumb {
    width: 100%;
    height: 120px;
    border-radius: var(--bmp-radius-sm);
    object-fit: cover;
    margin-bottom: 10px;
}
.bmp-tl-type { font-size: 20px; margin-bottom: 4px; }
.bmp-tl-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.bmp-tl-card-from { font-size: 13px; color: var(--bmp-text-light); }
.bmp-tl-card-text {
    font-size: 13px;
    color: var(--bmp-text-light);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════
   CENTREPIECE 4: SLIDESHOW
   ══════════════════════════════════════════════════════════════════ */
.bmp-slideshow-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
    position: relative;
}

.bmp-ss-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    gap: 16px;
}
.bmp-ss-spinner {
    width: 48px; height: 48px;
    border: 4px solid rgba(255,255,255,0.1);
    border-top-color: var(--bmp-primary);
    border-radius: 50%;
    animation: bmp-spin 0.8s linear infinite;
}
@keyframes bmp-spin { to { transform: rotate(360deg); } }

.bmp-ss-viewport {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100;
}
.bmp-ss-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}
.bmp-ss-slide-next { opacity: 0; z-index: 1; }
.bmp-ss-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.bmp-ss-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    pointer-events: none;
}

/* Caption */
.bmp-ss-caption {
    position: absolute;
    bottom: 60px; left: 0; right: 0;
    z-index: 10;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}
.bmp-ss-caption-inner {
    max-width: 600px;
    margin: 0 auto;
}
.bmp-ss-caption-text {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin: 0 0 8px;
}
.bmp-ss-caption-from {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 600;
}
.bmp-ss-caption-year {
    font-size: 13px;
    opacity: 0.5;
    margin-left: 8px;
}

/* Controls */
.bmp-ss-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}
.bmp-ss-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bmp-ss-btn:hover { background: rgba(255,255,255,0.3); }
.bmp-ss-playpause { width: 52px; height: 52px; font-size: 16px; }

.bmp-ss-progress {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 20;
}
.bmp-ss-progress-bar {
    height: 100%;
    background: var(--bmp-primary);
    width: 0%;
    transition: width linear;
}

.bmp-ss-counter {
    position: absolute;
    top: 16px; right: 16px;
    z-index: 20;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}
.bmp-ss-exit {
    position: absolute;
    top: 12px; left: 16px;
    z-index: 20;
    color: rgba(255,255,255,0.5);
    font-size: 32px;
    text-decoration: none;
    line-height: 1;
}
.bmp-ss-exit:hover { color: #fff; }

/* Ending */
.bmp-ss-ending {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 24px;
}
.bmp-ss-ending-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ff6b6b, var(--bmp-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bmp-ss-ending-quote {
    font-style: italic;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto 32px;
    border: none;
}
.bmp-ss-ending-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Nav Bar ────────────────────────────────────────────────────── */
.bmp-wall-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 32px;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .bmp-hero-name { font-size: 32px; }
    .bmp-cd-num { font-size: 28px; }
    .bmp-reveal-name { font-size: 36px; }
    .bmp-rcd-num { font-size: 32px; padding: 6px 8px; }
    .bmp-form-row { flex-direction: column; }
    .bmp-contribution-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .bmp-wall-grid { grid-template-columns: 1fr; }
    .bmp-reveal-stats { gap: 16px; }
    .bmp-reveal-sub-ctas { flex-direction: column; }

    /* Timeline: single column on mobile */
    .bmp-timeline-line { left: 20px; }
    .bmp-tl-dot { left: 20px; }
    .bmp-tl-node, .bmp-tl-node:nth-child(odd) { flex-direction: row; }
    .bmp-tl-node .bmp-tl-card,
    .bmp-tl-node:nth-child(odd) .bmp-tl-card {
        margin-left: 48px;
        margin-right: 0;
        width: calc(100% - 60px);
        text-align: left;
    }

    .bmp-modal-content { padding: 20px; margin: 12px; }
    .bmp-ss-caption-text { font-size: 15px; }
}
