:root {
    --bc-cream: #f8efc8;
    --bc-cream-deep: #f1e3a3;
    --bc-paper: #fffdf7;
    --bc-paper-soft: #f6f0dd;
    --bc-ink: #111111;
    --bc-ink-soft: #44413a;
    --bc-line: rgba(17, 17, 17, 0.12);
    --bc-accent: #b48a3c;
    --bc-shadow: 0 28px 80px rgba(0, 0, 0, 0.08);
    --bc-radius-xl: 36px;
    --bc-radius-lg: 24px;
    --bc-radius-md: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.bc-body {
    margin: 0;
    min-height: 100vh;
    color: var(--bc-ink);
    font-family: "Optima", "Candara", "Geneva", sans-serif;
    background-color: #fbefc8;
    background-image: url('/fond_bc.png'), linear-gradient(180deg, #fcf3d7 0%, #f8edc5 100%);
    background-repeat: no-repeat, no-repeat;
    background-position: center top, center top;
    background-size: cover, cover;
    background-attachment: fixed;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.bc-shell { width: min(1280px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 60px; }
.bc-topbar {
    display: grid;
    grid-template-columns: minmax(220px, 360px) 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
    background: rgba(255, 252, 245, 0.8);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 28px;
    backdrop-filter: blur(16px);
    box-shadow: var(--bc-shadow);
    position: sticky;
    top: 18px;
    z-index: 20;
}
.bc-brand-lockup { display: flex; align-items: center; gap: 16px; min-width: 0; }
.bc-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bc-cream);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    flex: 0 0 auto;
}
.bc-brand-title { min-width: 0; }
.bc-brand-title strong {
    display: block;
    font-size: 0.92rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.bc-brand-title span {
    display: block;
    color: var(--bc-ink-soft);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bc-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.bc-nav a, .bc-topbar button {
    border: 0;
    background: transparent;
    color: var(--bc-ink-soft);
    padding: 10px 14px;
    border-radius: 999px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}
.bc-nav a:hover, .bc-nav a.is-active, .bc-topbar button:hover { background: var(--bc-ink); color: var(--bc-paper); }
.bc-topbar form { margin: 0; }
.bc-flash, .bc-errors {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: var(--bc-radius-md);
    border: 1px solid var(--bc-line);
    box-shadow: var(--bc-shadow);
}
.bc-flash { background: rgba(17, 17, 17, 0.92); color: var(--bc-paper); }
.bc-errors { background: #fff3ef; color: #7d2f17; }
.bc-main { margin-top: 26px; display: grid; gap: 22px; }
.bc-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(248, 239, 200, 0.85), rgba(255, 252, 245, 0.95));
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--bc-radius-xl);
    box-shadow: var(--bc-shadow);
    padding: clamp(28px, 4vw, 54px);
}
.bc-hero::before {
    content: "";
    position: absolute;
    inset: auto -6% -24% auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.045);
}
.bc-hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 28px; align-items: end; }
.bc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.9);
    color: var(--bc-paper);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.bc-display {
    display: block;
    width: 100%;
    margin: 0;
    font-family: "Didot", "Bodoni 72", "Iowan Old Style", Georgia, serif;
    font-size: clamp(2.1rem, 4.4vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: 0;
    max-width: 100%;
}
.bc-lead { margin: 18px 0 0; max-width: 62ch; color: var(--bc-ink-soft); font-size: 1.04rem; line-height: 1.75; }
.bc-band { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.bc-panel, .bc-card, .bc-listing, .bc-form-card, .bc-media-card, .bc-stat, .bc-empty {
    background: rgba(255, 252, 245, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--bc-radius-lg);
    box-shadow: var(--bc-shadow);
}
.bc-panel, .bc-form-card, .bc-listing, .bc-card, .bc-media-card, .bc-empty { padding: 24px; }
.bc-panel.split,
.bc-form-card.split { grid-column: span 7; }
.bc-panel.stack,
.bc-form-card.stack { grid-column: span 5; }
.bc-section-title, .bc-card h2, .bc-form-card h2, .bc-listing h2, .bc-media-card h2 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.15; }
.bc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.bc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--bc-paper-soft);
    color: var(--bc-ink-soft);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}
.bc-grid-2, .bc-grid-3, .bc-list { display: grid; gap: 18px; }
.bc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-card { position: relative; overflow: hidden; }
.bc-card::after {
    content: attr(data-index);
    position: absolute;
    right: 18px;
    bottom: 8px;
    font-size: 4.4rem;
    line-height: 1;
    color: rgba(17, 17, 17, 0.05);
    font-weight: 700;
}
.bc-card p, .bc-panel p, .bc-form-card p, .bc-listing p, .bc-media-card p, .bc-empty p { margin: 0; color: var(--bc-ink-soft); line-height: 1.65; }
.bc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.bc-button, .bc-button-secondary, .bc-listing a.bc-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}
.bc-button { background: var(--bc-ink); color: var(--bc-paper); }
.bc-button:hover { transform: translateY(-1px); }
.bc-button-secondary, .bc-listing a.bc-inline-link { background: transparent; color: var(--bc-ink); border-color: rgba(17, 17, 17, 0.12); }
.bc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bc-stat { padding: 18px; }
.bc-stat strong { display: block; font-size: 2rem; margin-bottom: 8px; }
.bc-list { grid-template-columns: 1fr; }
.bc-listing { display: grid; gap: 16px; }
.bc-form-card form, .bc-listing form, .bc-auth-card form { display: grid; gap: 14px; }
.bc-field { display: grid; gap: 7px; }
.bc-field-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--bc-ink-soft); }
.bc-input, .bc-textarea, .bc-select {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: #fffdfa;
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    color: var(--bc-ink);
}
.bc-textarea { min-height: 120px; resize: vertical; }
.bc-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bc-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bc-media-card iframe { width: 100%; min-height: 300px; border: 0; border-radius: 22px; background: #000; }
.bc-auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.bc-auth-card {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 252, 245, 0.92);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 38px;
    overflow: hidden;
    box-shadow: var(--bc-shadow);
}
.bc-auth-card--single {
    width: min(680px, 100%);
    grid-template-columns: 1fr;
}
.bc-auth-art {
    position: relative;
    padding: 42px;
    background: linear-gradient(135deg, #0f0f0f 0%, #23201b 100%);
    color: var(--bc-paper);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-auth-art > * { position: relative; z-index: 1; }
.bc-auth-art img { width: min(100%, 420px); margin: 0; }
.bc-auth-form { padding: 42px; }
.bc-auth-demo { margin-top: 22px; padding: 18px; border-radius: 20px; background: var(--bc-paper-soft); }
.bc-auth-demo p { margin: 0 0 10px; }
.bc-page-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.bc-page-title h2 { margin: 0; }
.bc-footer-note { margin-top: 6px; color: var(--bc-ink-soft); font-size: 0.92rem; }
.bc-media-grid--single { grid-template-columns: 1fr; }
.bc-gift-card { align-content: start; }
.bc-photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.bc-photo-grid[data-count="1"] { grid-template-columns: 1fr; }
.bc-photo-frame { overflow: hidden; border-radius: 18px; background: rgba(255, 248, 232, 0.95); aspect-ratio: 1 / 1; }
.bc-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.bc-claim-form { display: grid; gap: 14px; margin-top: 18px; }
.bc-claim-state { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.bc-chip-locked { background: #efe1c0; color: #7a5f28; }
@media (max-width: 1080px) {
    .bc-topbar, .bc-hero-grid, .bc-auth-card, .bc-band, .bc-grid-3, .bc-stats, .bc-media-grid { grid-template-columns: 1fr; }
    .bc-panel.split, .bc-panel.stack { grid-column: span 12; }
}
@media (max-width: 780px) {
    .bc-shell { width: min(100% - 22px, 1280px); padding-top: 16px; }
    .bc-topbar { position: static; grid-template-columns: 1fr; border-radius: 24px; }
    .bc-nav { justify-content: flex-start; }
    .bc-hero, .bc-panel, .bc-card, .bc-listing, .bc-form-card, .bc-media-card, .bc-empty, .bc-auth-art, .bc-auth-form { padding: 20px; }
    .bc-grid-2, .bc-stats { grid-template-columns: 1fr; }
}
.bc-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.bc-topbar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: var(--bc-paper-soft);
    display: inline-flex;
}
.bc-topbar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bc-profile-card { display: flex; align-items: center; gap: 20px; min-height: 100%; }
.bc-profile-avatar {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bc-paper-soft);
    border: 1px solid rgba(17, 17, 17, 0.08);
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    font-weight: 700;
}
.bc-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
    .bc-topbar { grid-template-columns: 1fr; }
    .bc-topbar-actions { justify-content: flex-start; }
}

.bc-inline-between { justify-content: space-between; width: 100%; }
.bc-auth-link { color: var(--bc-ink-soft); text-decoration: none; }
.bc-auth-link:hover { color: var(--bc-ink); text-decoration: underline; }

.bc-dive-grid { align-items: stretch; }
.bc-dive-card { display: grid; align-content: start; }
.bc-dive-thumb { position: relative; display: block; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #10253b, #174a72); aspect-ratio: 16 / 10; text-decoration: none; }
.bc-dive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bc-dive-thumb--small { aspect-ratio: 16 / 9; margin-bottom: 14px; }
.bc-dive-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; padding: 24px; color: rgba(255,255,255,.92); font-family: "Didot", "Bodoni 72", "Iowan Old Style", Georgia, serif; font-size: 1.6rem; text-align: center; }
.bc-dive-play { position: absolute; right: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(17, 17, 17, 0.72); color: var(--bc-paper); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
