:root {
    color-scheme: dark;
    --bg: #05070b;
    --bg-deep: #020308;
    --bg-soft: #0b1119;
    --surface: #111821;
    --surface-elevated: #17202b;
    --surface-muted: #0d131b;
    --border: #273241;
    --border-strong: #3a4656;
    --text: #f7f8fb;
    --text-soft: #d6dbe3;
    --muted: #98a2b3;
    --accent: #f97316;
    --accent-hover: #fb8c2e;
    --success: #22c55e;
    --info: #38bdf8;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 22px 80px rgba(0, 0, 0, .42);
    --radius: 10px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, .18), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .1), transparent 24rem),
        linear-gradient(180deg, #0a1018 0%, var(--bg) 34rem, var(--bg-deep) 100%);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.56;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .12;
    background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, #000, transparent 76%);
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    margin: 0;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.06;
    letter-spacing: 0;
}

h1 {
    max-width: 980px;
    font-size: clamp(42px, 7vw, 82px);
    font-weight: 950;
}

h2 {
    font-size: clamp(26px, 4vw, 40px);
}

h3 {
    font-size: 21px;
}

strong {
    color: var(--text);
}

.wrap,
.site-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 7, 11, .9);
    border-bottom: 1px solid rgba(58, 70, 86, .72);
    backdrop-filter: blur(18px);
}

.site-nav {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 950;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    box-shadow: 0 0 28px rgba(249, 115, 22, .24);
}

.brand span span,
.brand-copy span {
    color: var(--accent);
}

.nav-links,
.nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nav-links {
    justify-content: center;
}

.nav-actions {
    justify-content: flex-end;
}

.nav-links a,
.link-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-soft);
    font-weight: 850;
    padding: 8px 12px;
    background: transparent;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active,
.link-button:hover {
    color: var(--text);
    border-color: rgba(249, 115, 22, .42);
    background: rgba(249, 115, 22, .09);
}

.site-main {
    position: relative;
    padding: 34px 0 72px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #080c12, #030407);
    padding: 36px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(160px, .75fr));
    gap: 24px;
    align-items: start;
}

.footer-brand p,
.footer-soon p {
    margin-top: 12px;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 750;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 7vw, 92px) 0 clamp(34px, 5vw, 64px);
}

.page-hero {
    min-height: 320px;
    display: grid;
    align-content: center;
}

.hero-landing {
    min-height: 620px;
    display: grid;
    align-items: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 14px 0 auto auto;
    width: min(48vw, 560px);
    height: 280px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(249,115,22,.24), transparent 42%),
        linear-gradient(225deg, rgba(56,189,248,.12), transparent 50%),
        #101722;
    border: 1px solid rgba(255,255,255,.06);
    transform: skewX(-8deg);
    opacity: .35;
    z-index: -1;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
}

.hero-copy {
    min-width: 0;
}

.hero-kicker,
.tag,
.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-kicker,
.tag {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    margin-bottom: 16px;
    border: 1px solid rgba(249, 115, 22, .45);
    border-radius: 999px;
    background: rgba(249, 115, 22, .12);
}

.lede {
    max-width: 780px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: clamp(17px, 2.2vw, 22px);
}

.page-intro {
    max-width: 760px;
    margin-top: 12px;
}

.hero-media,
.hero-aside,
.detail-aside {
    background:
        linear-gradient(145deg, rgba(249, 115, 22, .16), transparent 48%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero-poster {
    width: 100%;
    aspect-ratio: 16 / 11;
}

.hero-poster span {
    color: var(--accent);
    font-size: 46px;
}

.hero-event-card {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 17px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(23, 32, 43, .86);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--surface-elevated);
}

.btn.primary {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent));
    border-color: var(--accent);
    color: #120803;
    box-shadow: 0 12px 32px rgba(249, 115, 22, .24);
}

.btn.primary:hover {
    background: var(--accent-hover);
}

.btn-primary {
    background: linear-gradient(180deg, var(--accent-hover), var(--accent));
    border-color: var(--accent);
    color: #120803;
    box-shadow: 0 12px 32px rgba(249, 115, 22, .24);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(23, 32, 43, .86);
}

.btn-small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 14px;
}

.btn.small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 14px;
}

.btn.full {
    width: 100%;
}

.section {
    margin-top: clamp(36px, 6vw, 68px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.section-header p {
    max-width: 660px;
}

.grid {
    display: grid;
    gap: 18px;
}

.cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.two-col {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
}

.card,
.feature-card,
.event-card,
.club-card,
.info-panel,
.form-panel,
.empty-state,
.filter-panel,
.featured-strip,
.featured-event,
.cta-band {
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 44%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.card,
.feature-card,
.info-panel,
.form-panel,
.empty-state,
.filter-panel {
    padding: 22px;
}

.event-card,
.club-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 100%;
    padding: 18px;
    overflow: hidden;
}

.event-card:hover,
.club-card:hover,
.feature-card:hover {
    border-color: rgba(249,115,22,.5);
}

.card-clickable { cursor: pointer; }
.card-clickable:focus-visible {
    outline: 3px solid rgba(249,115,22,.75);
    outline-offset: 3px;
    border-color: var(--accent);
}

.event-poster--clickable { cursor: zoom-in; }
.event-poster--clickable:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.attendance-login-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.attendance-login-cta strong { flex-basis: 100%; }

.poster-lightbox {
    position: fixed; inset: 0; z-index: 1300; display: none;
    align-items: center; justify-content: center; padding: 2.5vh 2.5vw;
}
.poster-lightbox.is-open { display: flex; }
.poster-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); }
.poster-lightbox__content { position: relative; z-index: 1; display: grid; place-items: center; }
.poster-lightbox__content img { display: block; max-width: 95vw; max-height: 90vh; width: auto; height: auto; object-fit: contain; }
.poster-lightbox__close {
    position: absolute; z-index: 2; top: -18px; right: -18px; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text);
    font-size: 28px; cursor: pointer;
}

.organizer-events { display: grid; gap: 20px; }
.club-event-filters {
    display: flex;
    gap: 9px;
    width: 100%;
    max-width: 1180px;
    margin: 22px auto 0;
    padding: 0 20px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.club-event-filter {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    padding: 10px 13px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.club-event-filter:hover,
.club-event-filter:focus-visible { color: var(--text); border-color: rgba(249,115,22,.6); }
.club-event-filter.is-active { color: #1b0b02; background: var(--accent); border-color: var(--accent); }
.club-event-filter span { min-width: 1.5em; text-align: center; opacity: .8; }
.badge.event-status-past { color: #dbeafe; background: rgba(71,85,105,.48); border-color: rgba(148,163,184,.45); }
.badge.event-status-rejected { color: #fecaca; background: rgba(127,29,29,.4); border-color: rgba(248,113,113,.48); }
.badge.event-status-hidden { color: #cbd5e1; background: rgba(51,65,85,.35); border-color: rgba(100,116,139,.42); }
.organizer-event { scroll-margin-top: 20px; }
.attendance-group { display: grid; gap: 10px; margin-top: 22px; }
.attendance-row { border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.025); overflow: hidden; }
.attendance-row summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; }
.attendance-row summary::-webkit-details-marker { display: none; }
.attendance-row summary > span:first-child { display: grid; gap: 3px; min-width: 0; }
.attendance-row summary small { color: var(--muted); }
.attendance-row__toggle { color: var(--accent); font-size: 25px; font-weight: 900; }
.attendance-row[open] .attendance-row__toggle { transform: rotate(45deg); }
.attendance-row__details { padding: 0 16px 14px; }
.attendance-row > p { margin: 0 16px 16px; padding: 12px; background: rgba(249,115,22,.07); border-radius: 8px; }

.media-preview {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(249,115,22,.18), transparent 48%),
        linear-gradient(225deg, rgba(56,189,248,.1), transparent 42%),
        var(--surface-muted);
    color: var(--muted);
    font-weight: 950;
    text-align: center;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-preview {
    width: 116px;
    height: 116px;
    flex: 0 0 auto;
}

.event-poster {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.date-chip {
    display: inline-grid;
    place-items: center;
    width: 72px;
    min-height: 72px;
    border: 1px solid rgba(249,115,22,.5);
    border-radius: 12px;
    background: rgba(249,115,22,.12);
    color: var(--text);
}

.date-chip strong {
    font-size: 27px;
    line-height: 1;
}

.date-chip span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.card-top,
.card-footer,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.card-footer {
    margin-top: auto;
    justify-content: space-between;
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 900;
}

.badge.accent,
.badge.warning {
    border-color: rgba(245,158,11,.55);
    background: rgba(245,158,11,.16);
    color: #ffd28a;
}

.badge.success {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.16);
    color: #9cf2b6;
}

.badge.info {
    border-color: rgba(56,189,248,.55);
    background: rgba(56,189,248,.14);
    color: #a6e7ff;
}

.badge.danger {
    border-color: rgba(239,68,68,.55);
    background: rgba(239,68,68,.16);
    color: #ffc2c2;
}

.badge.muted {
    color: var(--muted);
}

.badge-success {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.16);
    color: #9cf2b6;
}

.badge-info {
    border-color: rgba(56,189,248,.55);
    background: rgba(56,189,248,.14);
    color: #a6e7ff;
}

.badge-warning {
    border-color: rgba(245,158,11,.55);
    background: rgba(245,158,11,.16);
    color: #ffd28a;
}

.badge-danger {
    border-color: rgba(239,68,68,.55);
    background: rgba(239,68,68,.16);
    color: #ffc2c2;
}

.badge-muted {
    color: var(--muted);
}

.page-hero--compact {
    min-height: 300px;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 24px;
    align-items: center;
}

.page-hero__content p {
    max-width: 760px;
    margin-top: 14px;
    color: var(--text-soft);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-stat-card {
    display: grid;
    gap: 6px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(249,115,22,.18), transparent 56%),
        var(--surface);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
    font-weight: 950;
    color: var(--text);
}

.stat-label,
.filter-count,
.filter-summary {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.filter-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field span {
    color: var(--text);
    font-weight: 850;
}

.form-field small {
    color: var(--muted);
}

.card-grid {
    display: grid;
    gap: 18px;
}

.card-grid--clubs,
.card-grid--events {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.card-meta {
    color: var(--muted);
    font-size: 14px;
}

.club-card__media,
.event-card__media,
.club-logo,
.event-poster--featured {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(249,115,22,.18), transparent 48%),
        linear-gradient(225deg, rgba(56,189,248,.1), transparent 42%),
        var(--surface-muted);
    color: var(--accent);
    font-weight: 950;
    text-align: center;
}

.club-card__media,
.event-card__media {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.club-card__media img,
.event-card__media img,
.club-logo img,
.event-poster--featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.club-logo {
    width: 112px;
    height: 112px;
    flex: 0 0 auto;
    font-size: 30px;
}

.club-logo--large {
    width: 132px;
    height: 132px;
}

.featured-card,
.cta-card,
.form-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 44%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
    padding: 22px;
}

.featured-card,
.cta-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.featured-card--event {
    grid-template-columns: minmax(260px, .5fr) minmax(0, 1fr) auto;
}

.form-card__intro {
    margin-bottom: 20px;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.pagination-wrap {
    margin-top: 20px;
}

.filter-panel {
    margin-top: -12px;
}

.filter-grid,
.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.filter-grid .wide {
    grid-column: span 2;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.featured-strip,
.featured-event,
.cta-band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 22px;
}

.featured-event {
    grid-template-columns: minmax(260px, .5fr) minmax(0, 1fr) auto;
}

.cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    background:
        linear-gradient(135deg, rgba(249,115,22,.18), transparent 50%),
        var(--surface-elevated);
}

.stat-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.stat-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.stat-value {
    color: var(--text);
    font-size: 26px;
    font-weight: 950;
}

.notice,
.error-list {
    border-radius: var(--radius);
    padding: 13px 15px;
    margin-bottom: 18px;
}

.notice {
    border: 1px solid rgba(34,197,94,.45);
    background: rgba(34,197,94,.1);
    color: #d7ffe0;
}

.notice.warning {
    border-color: rgba(245,158,11,.45);
    background: rgba(245,158,11,.12);
    color: #fed7aa;
}

.error-list {
    border: 1px solid rgba(239,68,68,.5);
    background: rgba(239,68,68,.1);
    color: #fecaca;
}

.verification-methods {
    margin: 22px 0;
}

.verification-methods h3 {
    margin: 0 0 10px;
}

.method-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.method-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15,23,42,.66);
    padding: 16px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.method-card:hover {
    border-color: rgba(249,115,22,.55);
    transform: translateY(-1px);
}

.method-card input {
    width: auto;
    min-height: auto;
    margin-top: 4px;
    accent-color: var(--accent);
}

.method-card strong,
.method-card small {
    display: block;
}

.method-card strong {
    color: var(--text);
}

.method-card small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
}

.field {
    display: grid;
    gap: 7px;
}

label,
.field-label {
    color: var(--text);
    font-weight: 850;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #080d14;
    color: var(--text);
    padding: 11px 12px;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input[type="file"] {
    padding: 10px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(249,115,22,.34);
    border-color: var(--accent);
}

.field-error {
    color: #fecaca;
    font-size: 13px;
}

.required-marker {
    color: var(--accent);
}

.check-field {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 14px;
}

.check-field input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.detail-header {
    padding: clamp(28px, 5vw, 64px) 0 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 22px;
}

.detail-title {
    margin-top: 12px;
}

.info-list {
    display: grid;
    gap: 10px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.info-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-list span:first-child {
    color: var(--muted);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.admin-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.admin-stat-card {
    display: grid;
    gap: 8px;
}

.admin-stat-card strong {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1;
}

.admin-list-card {
    display: grid;
    gap: 14px;
}

.admin-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.admin-list-item:first-of-type,
.admin-compact-item:first-of-type {
    border-top: 0;
}

.admin-compact-item {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.pagination {
    margin-top: 18px;
}

.status-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.form-actions {
    margin-top: 16px;
}

.is-disabled {
    opacity: .58;
}

.detail-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(34px, 6vw, 76px) 0 18px;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 20px 0 auto auto;
    width: min(50vw, 620px);
    height: 320px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(249,115,22,.2), transparent 48%),
        linear-gradient(225deg, rgba(56,189,248,.12), transparent 44%),
        var(--surface-muted);
    border: 1px solid rgba(255,255,255,.06);
    transform: skewX(-7deg);
    opacity: .5;
    z-index: -1;
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 46px);
    align-items: center;
}

.detail-hero__grid--event {
    grid-template-columns: minmax(300px, 480px) minmax(0, 1fr);
}

.detail-hero__content {
    display: grid;
    gap: 14px;
}

.detail-hero__content h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-location {
    color: var(--text-soft);
    font-weight: 800;
}

.back-link {
    width: fit-content;
    color: var(--accent);
    font-weight: 900;
}

.club-logo--hero {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 1;
    font-size: clamp(44px, 8vw, 82px);
    box-shadow: var(--shadow);
}

.event-poster--hero {
    width: 100%;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow);
}

.event-poster--hero span {
    color: var(--accent);
    font-size: clamp(28px, 5vw, 48px);
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.info-card,
.sidebar-card,
.related-card,
.mini-event-card,
.timeline-item,
.benefit-item {
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 44%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.info-card {
    display: grid;
    gap: 8px;
    padding: 17px;
}

.info-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.info-card strong {
    font-size: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: start;
}

.detail-main,
.detail-sidebar,
.mini-card-list,
.timeline-list,
.sidebar-links {
    display: grid;
    gap: 16px;
}

.detail-sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-card {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.sidebar-card h2 {
    font-size: 22px;
}

.sidebar-links a {
    color: var(--text-soft);
    font-weight: 850;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar-links a:hover {
    color: var(--accent);
}

.section-header--compact {
    margin-bottom: 14px;
}

.mini-event-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
}

.timeline-item {
    padding: 16px;
}

.benefit-grid,
.related-grid,
.gallery-grid {
    display: grid;
    gap: 12px;
}

.benefit-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.benefit-item {
    padding: 14px;
}

.related-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.related-card {
    display: grid;
    gap: 9px;
    padding: 15px;
}

.related-card:hover,
.mini-event-card:hover {
    border-color: rgba(249,115,22,.5);
}

.related-card small {
    color: var(--muted);
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.gallery-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 9px 11px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state--compact {
    padding: 16px;
}

.organizer-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.organizer-card .club-logo {
    width: 74px;
    height: 74px;
    font-size: 20px;
}

@media (max-width: 980px) {
    .site-nav,
    .hero-panel,
    .two-col,
    .detail-grid,
    .detail-hero__grid,
    .detail-hero__grid--event,
    .detail-layout,
    .featured-strip,
    .featured-event,
    .featured-card,
    .featured-card--event,
    .cta-band,
    .cta-card,
    .page-hero__grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        padding: 14px 0;
    }

    .nav-links,
    .nav-actions {
        justify-content: flex-start;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-grid .wide {
        grid-column: span 1;
    }

    .detail-sidebar {
        position: static;
    }

    .mini-event-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .wrap,
    .site-main {
        width: min(100% - 24px, 1180px);
    }

    h1 {
        font-size: 40px;
    }

    .brand-copy {
        display: none;
    }

    .card,
    .feature-card,
    .info-panel,
    .form-panel,
    .empty-state,
    .filter-panel,
    .featured-strip,
    .featured-event,
    .cta-band,
    .featured-card,
    .cta-card,
    .form-card,
    .event-card,
    .club-card {
        padding: 16px;
    }

    .admin-list-item,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
}

/* Responsive layout */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

body {
    width: 100%;
}

.site-nav,
.nav-links,
.nav-actions,
.hero-panel,
.hero-copy,
.hero-media,
.hero-aside,
.page-hero__grid,
.page-hero__content,
.detail-hero__grid,
.detail-hero__content,
.detail-layout,
.detail-main,
.detail-sidebar,
.grid,
.card-grid,
.filter-grid,
.form-grid,
.footer-grid,
.featured-card,
.cta-card,
.card,
.feature-card,
.event-card,
.club-card,
.info-panel,
.form-panel,
.form-card,
.filter-panel,
.sidebar-card,
.admin-list-item {
    min-width: 0;
    max-width: 100%;
}

a,
p,
li,
td,
th,
strong,
span,
.btn,
.badge,
.meta,
.card-meta,
.detail-location,
.info-list strong,
.sidebar-links a {
    overflow-wrap: break-word;
    word-break: normal;
}

.sidebar-links a,
.info-list strong,
.field-error,
.error-list,
.notice {
    overflow-wrap: anywhere;
}

.lede,
.page-intro,
.detail-location,
.page-hero__content p,
.hero-copy p,
.detail-hero__content p {
    width: 100%;
    max-width: 100%;
}

.btn {
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 1024px) {
    .site-nav {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: start;
        padding: 14px 0;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-actions form {
        margin: 0;
    }

    .hero-landing {
        min-height: auto;
    }

    .hero-panel,
    .page-hero__grid,
    .detail-hero__grid,
    .detail-hero__grid--event,
    .detail-layout,
    .detail-grid,
    .two-col,
    .featured-card,
    .featured-card--event,
    .featured-strip,
    .featured-event,
    .cta-card,
    .cta-band,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

    .hero::after,
    .detail-hero::after {
        opacity: .22;
        width: min(80vw, 520px);
    }

    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table table,
    table.admin-table {
        min-width: 760px;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding-top: 24px;
        padding-bottom: 52px;
    }

    .section {
        margin-top: 34px;
    }

    .hero,
    .detail-hero {
        padding-top: 32px;
        padding-bottom: 20px;
    }

    h1,
    .detail-hero__content h1 {
        font-size: clamp(34px, 10vw, 48px);
        max-width: 100%;
    }

    h2 {
        font-size: clamp(24px, 7vw, 34px);
    }

    h3 {
        font-size: 19px;
    }

    .lede,
    .page-hero__content p {
        font-size: 17px;
    }

    .filter-panel__header,
    .section-header,
    .card-footer,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-grid,
    .form-grid,
    .method-options,
    .quick-info-grid,
    .benefit-grid,
    .related-grid,
    .gallery-grid,
    .card-grid--clubs,
    .card-grid--events,
    .cards,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid .wide {
        grid-column: span 1;
    }

    .filter-actions,
    .hero-actions,
    .actions,
    .button-row,
    .form-actions,
    .status-filters {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .filter-actions .btn,
    .hero-actions .btn,
    .actions .btn,
    .button-row .btn,
    .form-actions .btn,
    .status-filters .btn,
    .card-footer .btn {
        width: 100%;
    }

    .featured-card,
    .featured-strip,
    .featured-event,
    .cta-card,
    .cta-band,
    .mini-event-card,
    .admin-list-item {
        grid-template-columns: 1fr;
    }

    .event-card,
    .club-card,
    .feature-card,
    .card,
    .info-panel,
    .form-panel,
    .form-card,
    .filter-panel,
    .empty-state,
    .sidebar-card,
    .featured-card,
    .cta-card {
        min-width: 0;
    }

    .event-card__media,
    .club-card__media,
    .event-poster,
    .hero-poster {
        max-height: 360px;
    }

    .event-poster--hero {
        width: min(100%, 420px);
        margin-inline: auto;
    }

    .club-logo--hero {
        width: min(220px, 70vw);
        margin-inline: auto;
    }

    .detail-hero__media {
        justify-self: center;
        width: 100%;
    }

    .info-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .check-field {
        align-items: flex-start;
    }

    input[type="file"] {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .wrap,
    .site-main {
        width: min(100% - 24px, 1180px);
    }

    .container {
        width: 100%;
    }

    .site-header {
        position: static;
    }

    .brand {
        font-size: 22px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .nav-links,
    .nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .nav-links a,
    .nav-actions .btn,
    .nav-actions .link-button {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        padding-inline: 10px;
        text-align: center;
    }

    .nav-actions form {
        display: contents;
    }

    .hero-kicker,
    .tag {
        max-width: 100%;
        white-space: normal;
    }

    .hero-stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 42px;
    }

    .btn {
        min-height: 44px;
        padding: 11px 14px;
        white-space: normal;
        text-align: center;
    }

    .badge {
        max-width: 100%;
        white-space: normal;
    }

    .card,
    .feature-card,
    .info-panel,
    .form-panel,
    .empty-state,
    .filter-panel,
    .featured-strip,
    .featured-event,
    .cta-band,
    .featured-card,
    .cta-card,
    .form-card,
    .event-card,
    .club-card,
    .sidebar-card {
        padding: 16px;
    }

    .date-chip {
        width: 64px;
        min-height: 64px;
    }

    .date-chip strong {
        font-size: 23px;
    }

    .organizer-card {
        grid-template-columns: 1fr;
    }

    .organizer-card .club-logo,
    .club-logo {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 480px) {
    .wrap,
    .site-main {
        width: min(100% - 20px, 1180px);
    }

    .site-main {
        padding-top: 18px;
    }

    h1,
    .detail-hero__content h1 {
        font-size: clamp(31px, 11vw, 40px);
    }

    h2 {
        font-size: clamp(22px, 8vw, 30px);
    }

    .lede,
    .page-hero__content p {
        font-size: 16px;
    }

    .brand-copy {
        display: inline;
    }

    .hero::after,
    .detail-hero::after {
        display: none;
    }

    .page-hero {
        min-height: auto;
    }

    .hero-actions,
    .actions,
    .button-row {
        margin-top: 18px;
    }

    .event-poster--hero {
        aspect-ratio: 16 / 11;
    }

    .club-logo--hero {
        width: min(190px, 72vw);
    }

    .quick-info-grid {
        gap: 10px;
    }

    .info-card {
        padding: 14px;
    }

    .field,
    .form-field,
    .stack-form {
        min-width: 0;
    }

    input,
    textarea,
    select {
        min-width: 0;
        font-size: 16px;
    }

    .method-card {
        padding: 14px;
    }

    .check-field {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
}

@media (max-width: 380px) {
    .wrap,
    .site-main {
        width: min(100% - 16px, 1180px);
    }

    .brand {
        font-size: 20px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .card,
    .feature-card,
    .info-panel,
    .form-panel,
    .empty-state,
    .filter-panel,
    .featured-card,
    .cta-card,
    .form-card,
    .event-card,
    .club-card,
    .sidebar-card {
        padding: 14px;
    }

    .date-chip {
        width: 58px;
        min-height: 58px;
    }
}

/* Mobile navigation */
.mobile-menu-toggle,
.mobile-menu {
    display: none;
}

.mobile-menu[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .site-nav {
        grid-template-columns: minmax(0, 1fr) auto !important;
        justify-items: stretch;
        align-items: center;
        gap: 10px;
        min-height: 66px;
        padding: 10px 0;
    }

    .site-nav > .brand {
        min-width: 0;
        justify-self: start;
    }

    .brand-copy {
        display: inline;
    }

    .site-nav > .nav-links,
    .site-nav > .nav-actions {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        justify-self: end;
        border: 1px solid rgba(249, 115, 22, .42);
        border-radius: 10px;
        background: rgba(13, 19, 27, .95);
        color: var(--text);
        cursor: pointer;
        box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus-visible,
    .mobile-menu-toggle[aria-expanded="true"] {
        border-color: var(--accent);
        background: rgba(249, 115, 22, .14);
        outline: none;
    }

    .mobile-menu:not([hidden]) {
        grid-column: 1 / -1;
        display: grid !important;
        width: 100%;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        gap: 8px;
        margin-top: 6px;
        padding: 12px;
        border: 1px solid rgba(58, 70, 86, .82);
        border-radius: var(--radius);
        background: rgba(8, 13, 20, .98);
        box-shadow: var(--shadow);
        z-index: 30;
    }

    .mobile-menu a,
    .mobile-menu button {
        display: flex;
        width: 100%;
        min-height: 44px;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 12px;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: var(--text-soft);
        font: inherit;
        font-weight: 850;
        text-align: left;
        cursor: pointer;
    }

    .mobile-menu a:hover,
    .mobile-menu a:focus-visible,
    .mobile-menu a.active,
    .mobile-menu button:hover,
    .mobile-menu button:focus-visible {
        color: var(--text);
        border-color: rgba(249, 115, 22, .45);
        background: rgba(249, 115, 22, .1);
        outline: none;
    }

    .mobile-menu__primary {
        color: #140804 !important;
        border-color: var(--accent) !important;
        background: linear-gradient(180deg, var(--accent-hover), var(--accent)) !important;
        box-shadow: 0 12px 28px rgba(249, 115, 22, .22);
    }

    .mobile-menu form {
        margin: 0;
    }

    .mobile-account-toggle {
        justify-content: space-between !important;
        gap: 10px;
        border-color: rgba(249, 115, 22, .34) !important;
        background: rgba(249, 115, 22, .08) !important;
        color: var(--text) !important;
    }

    .mobile-account-toggle__chevron {
        flex: 0 0 auto;
        color: var(--accent);
        font-size: 18px;
        line-height: 1;
        transition: transform .18s ease;
    }

    .mobile-account-toggle[aria-expanded="true"] .mobile-account-toggle__chevron {
        transform: rotate(180deg);
    }

    .mobile-account-submenu {
        display: grid;
        gap: 7px;
        margin: -2px 0 4px 8px;
        padding: 8px 0 0 10px;
        border-left: 1px solid rgba(249, 115, 22, .26);
    }

    .mobile-account-submenu[hidden] {
        display: none !important;
    }

    .mobile-account-submenu a,
    .mobile-account-submenu button {
        min-height: 42px;
        padding-left: 14px;
        background: rgba(255, 255, 255, .025);
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }
}

/* Mobile featured scrollers */
.mobile-section-action {
    display: none;
}

@media (max-width: 768px) {
    .home-featured-row {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 85vw);
        grid-template-columns: none !important;
        gap: 14px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 2px 4px 14px;
        margin-inline: -4px;
    }

    .home-featured-row > * {
        min-width: 0;
        scroll-snap-align: start;
    }

    .home-featured-row .event-card,
    .home-featured-row .club-card,
    .home-featured-row .empty-state {
        width: 100%;
    }

    .home-featured-row .card-footer {
        align-items: stretch;
    }

    .home-featured-row .card-footer .btn {
        width: 100%;
    }

    .home-featured-section .section-header > .btn {
        display: none;
    }

    .mobile-section-action {
        display: flex;
        margin-top: 16px;
        align-items: stretch;
    }

    .mobile-section-action .btn {
        width: 100%;
    }
}

/* Mobile collapsible filters */
.mobile-filter-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-collapsible-filter {
        display: grid;
        gap: 12px;
    }

    .mobile-filter-toggle {
        display: flex;
        width: 100%;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px;
        border: 1px solid rgba(249, 115, 22, .34);
        border-radius: var(--radius);
        background:
            linear-gradient(135deg, rgba(249, 115, 22, .12), transparent 44%),
            rgba(13, 19, 27, .96);
        color: var(--text);
        box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
        cursor: pointer;
        text-align: left;
    }

    .mobile-filter-toggle:hover,
    .mobile-filter-toggle:focus-visible {
        border-color: var(--accent);
        outline: none;
    }

    .mobile-filter-toggle strong,
    .mobile-filter-toggle small {
        display: block;
    }

    .mobile-filter-toggle strong {
        font-size: 16px;
        line-height: 1.2;
    }

    .mobile-filter-toggle small {
        margin-top: 4px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 700;
    }

    .mobile-filter-toggle__icon {
        flex: 0 0 auto;
        display: inline-grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid rgba(249, 115, 22, .4);
        border-radius: 999px;
        color: var(--accent);
        background: rgba(249, 115, 22, .08);
        font-size: 24px;
        font-weight: 850;
        line-height: 1;
    }

    .mobile-filter-toggle__icon::before {
        content: "+";
        transform: translateY(-1px);
    }

    .mobile-collapsible-filter.is-open .mobile-filter-toggle__icon::before {
        content: "-";
    }

    .filter-active-badge {
        flex: 0 0 auto;
        max-width: 38%;
        padding: 5px 9px;
        border: 1px solid rgba(245, 158, 11, .5);
        border-radius: 999px;
        color: #fde68a;
        background: rgba(245, 158, 11, .14);
        font-size: 12px;
        font-weight: 850;
        white-space: normal;
        text-align: center;
    }

    .mobile-collapsible-filter:not(.is-open) .filter-panel {
        display: none;
    }

    .mobile-collapsible-filter .filter-panel {
        margin-top: 0;
    }

    .mobile-collapsible-filter .filter-panel__header {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-filter-toggle {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .filter-active-badge {
        max-width: 100%;
        order: 3;
    }

    .mobile-filter-toggle__icon {
        margin-left: auto;
    }
}

/* Event map picker and conditional fee fields */
.event-map-picker {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.event-map-picker__map {
    min-height: 320px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .1), transparent 42%),
        var(--surface-muted);
}

.event-map-picker__status {
    color: var(--text-soft);
    font-weight: 800;
}

.event-map-picker--fallback .event-map-picker__map::before {
    content: "Mapa nije učitana. Unesite koordinate ručno.";
    display: grid;
    min-height: 320px;
    place-items: center;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.coordinate-fallback {
    margin-top: 12px;
}

.form-field.is-disabled {
    opacity: .62;
}

.form-field.is-disabled input,
.form-field.is-disabled textarea {
    background: rgba(8, 13, 20, .75);
    color: var(--muted);
    cursor: not-allowed;
}

.facilities-options {
    margin-top: 18px;
}

.event-fee-note-field {
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .event-map-picker__map,
    .event-map-picker--fallback .event-map-picker__map::before {
        min-height: 260px;
    }
}

/* Public event map */
.public-map-card {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .08), transparent 40%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.public-map-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.public-map-card__header h2 {
    margin: .15rem 0 .35rem;
}

.public-map-card__header p {
    margin: 0;
    color: var(--muted);
}

.public-event-map-wrap {
    position: relative;
    min-height: 440px;
    background: #070b11;
}

.public-event-map {
    z-index: 1;
    width: 100%;
    height: 480px;
    min-height: 360px;
}

.public-map-empty,
.public-map-fallback {
    position: absolute;
    inset: 1rem;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--muted);
    text-align: center;
    background: rgba(8, 13, 20, .86);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    pointer-events: none;
}

.public-map-fallback[hidden] {
    display: none;
}

.public-event-map .leaflet-popup-content-wrapper,
.public-event-map .leaflet-popup-tip {
    color: var(--text);
    background: #111827;
    border: 1px solid rgba(255, 255, 255, .12);
}

.public-event-map .leaflet-popup-content {
    margin: .75rem;
}

.map-popup {
    display: grid;
    gap: .35rem;
    min-width: 210px;
    color: var(--text);
}

.map-popup strong {
    font-size: .95rem;
    line-height: 1.25;
}

.map-popup span {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.35;
}

.map-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}

.map-popup__actions a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: .45rem .65rem;
    color: #160b03;
    font-weight: 800;
    text-decoration: none;
    background: var(--accent);
    border-radius: 999px;
}

.map-popup__actions a + a {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

@media (max-width: 640px) {
    .public-map-card__header {
        display: grid;
        padding: 1rem;
    }

    .public-event-map-wrap {
        min-height: 340px;
    }

    .public-event-map {
        height: 360px;
        min-height: 320px;
    }

    .map-popup {
        min-width: 190px;
        max-width: 72vw;
    }
}

/* Attendance modal */
body.modal-open {
    overflow: hidden;
}

.attendance-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.attendance-modal.is-open {
    display: flex;
}

.attendance-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 12, .78);
    backdrop-filter: blur(8px);
}

.attendance-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(88vh, 920px);
    overflow: auto;
    padding: 28px;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .08), transparent 42%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.attendance-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
}

.attendance-modal__close:hover,
.attendance-modal__close:focus-visible {
    color: #140803;
    background: var(--accent);
}

.attendance-type-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.attendance-type-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: start;
    min-height: 96px;
    padding: 16px;
    color: var(--text);
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.attendance-type-card input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.attendance-type-card strong,
.attendance-type-card span {
    grid-column: 2;
}

.attendance-type-card span {
    color: var(--muted);
    font-size: .92rem;
}

.attendance-type-card.is-active {
    border-color: rgba(249, 115, 22, .68);
    background: rgba(249, 115, 22, .1);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .18);
}

.attendance-panel {
    display: grid;
    gap: 16px;
}

.attendance-panel[hidden] {
    display: none;
}

.club-card__media { position: relative; background: linear-gradient(135deg, rgba(249,115,22,.2), rgba(13,19,27,.96)); }
.club-card__media .club-card__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.club-card__logo {
    position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px;
    overflow: hidden; color: var(--text); font-size: 1.5rem; font-weight: 900;
    background: rgba(5,7,11,.9); border: 2px solid rgba(255,255,255,.72); border-radius: 50%; box-shadow: var(--shadow);
}
.club-card__logo img { width: 100%; height: 100%; object-fit: contain; }

.detail-hero--club.has-club-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5,7,11,.94) 0%, rgba(5,7,11,.72) 52%, rgba(5,7,11,.86) 100%),
        linear-gradient(0deg, var(--bg), transparent 65%),
        var(--club-cover-image) center var(--bb-cover-position-y, 50%) / cover no-repeat;
}

.detail-hero--club.has-club-cover::after { opacity: .28; }

.club-profile-form { display: grid; gap: 20px; }
.club-profile-form .form-panel { display: grid; gap: 16px; }
.profile-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}
.phone-input-group { display: grid; grid-template-columns: minmax(125px, .42fr) minmax(0, 1fr); gap: 8px; }
.phone-input-group select,
.phone-input-group input { width: 100%; }
@media (max-width: 480px) { .phone-input-group { grid-template-columns: 1fr; } }
.club-profile-previews { display: grid; grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr); gap: 14px; }
.club-profile-preview {
    display: grid; gap: 8px; place-items: center; min-height: 150px; padding: 12px;
    overflow: hidden; color: var(--muted); text-align: center; background: var(--surface-muted);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.club-profile-preview > span { justify-self: start; font-size: .82rem; font-weight: 800; }
.club-profile-preview img { display: block; width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }
.club-profile-preview--cover img { object-position: center var(--bb-cover-position-y, 50%); }
.club-profile-preview--logo img { width: 120px; height: 120px; object-fit: contain; }
.bb-cover-focus-field { gap: 10px; }
.bb-cover-focus-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.bb-cover-focus-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}
.bb-avatar-upload-preview {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border: 2px solid rgba(249,115,22,.72);
    border-radius: 50%;
}
.my-club-cover { width: 100%; height: clamp(180px, 30vw, 340px); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.my-club-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.owner-notifications { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.notification-list { display: grid; gap: 8px; }
.notification-item {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
    padding: 13px 14px; color: var(--text-soft); text-decoration: none; background: rgba(255,255,255,.025);
    border: 1px solid var(--border); border-radius: 10px;
}
.notification-item:hover { border-color: rgba(249,115,22,.55); }
.notification-item.is-unread { background: rgba(249,115,22,.07); border-color: rgba(249,115,22,.32); }
.notification-item > span:nth-child(2) { display: grid; gap: 4px; }
.notification-item small,
.notification-item time { color: var(--muted); }
.notification-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.notification-item.is-unread .notification-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; padding: 9px 13px; color: var(--text); font-weight: 800; border: 1px solid var(--border); border-radius: 999px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu__panel { position: absolute; top: calc(100% + 9px); right: 0; z-index: 40; display: grid; min-width: 230px; padding: 8px; background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.account-menu__panel a,
.account-menu__panel button { width: 100%; padding: 10px 12px; color: var(--text-soft); text-align: left; text-decoration: none; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.account-menu__panel a:hover,
.account-menu__panel button:hover { color: var(--text); background: rgba(249,115,22,.1); }
.membership-row { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.membership-row > div:first-child { display: grid; gap: 5px; }
.membership-row small { color: var(--muted); }
.profile-avatar { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--accent); border-radius: 50%; margin-bottom: 1rem; }
@media (max-width: 640px) {
    .notification-item { grid-template-columns: auto minmax(0, 1fr); }
    .notification-item time { grid-column: 2; }
    .membership-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) { .club-profile-previews { grid-template-columns: 1fr; } }

.attendance-modal .form-errors {
    margin: 16px 0;
    padding: 14px 16px;
    color: #fecaca;
    background: rgba(127, 29, 29, .42);
    border: 1px solid rgba(248, 113, 113, .65);
    border-radius: 12px;
}
.attendance-modal .form-errors ul { margin: 8px 0 0; padding-left: 20px; }

.quick-info-grid--compact {
    margin: 18px 0;
}

@media (max-width: 768px) {
    .attendance-modal {
        align-items: flex-end;
        padding: 0;
    }

    .attendance-modal__panel {
        width: 100%;
        max-height: 94vh;
        padding: 22px 16px 18px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }

    .attendance-type-switch {
        grid-template-columns: 1fr;
    }

    .attendance-modal .btn {
        width: 100%;
    }
}

/* Closed Beta UI polish */
:root {
    --radius: 14px;
    --radius-lg: 22px;
    --focus-ring: 0 0 0 3px rgba(249, 115, 22, .28);
}

::selection {
    color: #170902;
    background: rgba(249, 115, 22, .78);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.site-header {
    box-shadow: 0 10px 34px rgba(0, 0, 0, .24);
}

.site-nav {
    min-height: 72px;
}

.nav-links a,
.link-button,
.account-menu summary {
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.account-menu summary:hover {
    border-color: rgba(249, 115, 22, .5);
    background: rgba(249, 115, 22, .08);
}

.account-menu__panel {
    gap: 3px;
    min-width: 250px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), transparent 52%),
        rgba(18, 27, 37, .98);
}

.account-menu__panel a,
.account-menu__panel button,
.mobile-menu a,
.mobile-menu button {
    font-weight: 850;
}

.hero,
.detail-hero,
.page-hero {
    border-bottom: 1px solid rgba(58, 70, 86, .38);
}

.hero-kicker,
.tag,
.eyebrow {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.section-header h2,
.card h2,
.info-panel h2,
.form-panel h2,
.sidebar-card h2 {
    letter-spacing: -.02em;
}

.card,
.feature-card,
.event-card,
.club-card,
.info-panel,
.form-panel,
.empty-state,
.filter-panel,
.featured-card,
.cta-card,
.form-card,
.sidebar-card,
.info-card,
.timeline-item,
.related-card,
.mini-event-card,
.admin-stat-card,
.admin-list-card {
    border-color: rgba(58, 70, 86, .78);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .22);
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.card:hover,
.feature-card:hover,
.event-card:hover,
.club-card:hover,
.info-panel:hover,
.featured-card:hover,
.cta-card:hover,
.related-card:hover,
.mini-event-card:hover {
    border-color: rgba(249, 115, 22, .42);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.info-panel,
.card,
.feature-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.info-panel .actions,
.card .actions,
.feature-card .actions {
    margin-top: auto;
}

.btn,
.btn-primary,
.btn-secondary,
.link-button {
    text-decoration: none;
    line-height: 1.1;
}

.btn.secondary,
.btn-secondary {
    border-color: rgba(148, 163, 184, .32);
    background: rgba(15, 23, 42, .72);
    color: var(--text-soft);
}

.btn.ghost,
.btn-muted {
    border-color: transparent;
    background: transparent;
    color: var(--text-soft);
}

.btn.danger,
.btn-danger {
    border-color: rgba(239,68,68,.62);
    background: rgba(127,29,29,.34);
    color: #fecaca;
}

.btn.danger:hover,
.btn-danger:hover {
    border-color: rgba(248,113,113,.86);
    background: rgba(153,27,27,.52);
}

.btn[disabled],
button[disabled],
.btn.is-disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.badge {
    letter-spacing: .01em;
}

.badge.role-user,
.badge.public,
.badge.published {
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.12);
    color: #a6e7ff;
}

.badge.role-moderator,
.badge.private,
.badge.pending,
.badge.draft {
    border-color: rgba(245,158,11,.5);
    background: rgba(245,158,11,.13);
    color: #ffd28a;
}

.badge.role-superadmin,
.badge.verified,
.badge.approved {
    border-color: rgba(34,197,94,.5);
    background: rgba(34,197,94,.14);
    color: #a7f3d0;
}

.notice,
.error-list {
    width: min(1180px, 100%);
    margin-inline: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,.16);
}

.notice.info {
    border-color: rgba(56,189,248,.45);
    background: rgba(56,189,248,.1);
    color: #bae6fd;
}

.empty-state {
    display: grid;
    gap: 10px;
    padding: 26px;
    text-align: left;
}

.empty-state h2,
.empty-state h3 {
    font-size: clamp(21px, 3vw, 28px);
}

.filter-panel,
.form-panel,
.form-card {
    background:
        linear-gradient(135deg, rgba(249,115,22,.07), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 44%),
        var(--surface);
}

label,
.field-label,
.form-field span {
    color: var(--text-soft);
}

input,
textarea,
select {
    border-color: rgba(58,70,86,.9);
    background: rgba(5, 10, 17, .88);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input:hover,
textarea:hover,
select:hover {
    border-color: rgba(148, 163, 184, .42);
}

input::placeholder,
textarea::placeholder {
    color: #6f7a89;
}

.admin-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(8, 13, 20, .64);
}

.admin-table th {
    background: rgba(255,255,255,.035);
    color: var(--text-soft);
    letter-spacing: .04em;
}

.admin-table tr:hover td {
    background: rgba(249,115,22,.045);
}

.admin-list-item,
.membership-row,
.notification-item,
.attendance-row,
.stat-item {
    border-color: rgba(58, 70, 86, .72);
}

.quick-info-grid .info-card,
.admin-stat-card {
    min-height: 112px;
}

.event-card .btn,
.club-card .btn,
.ride-card .btn,
.card-footer .btn {
    min-height: 40px;
    padding: 10px 14px;
}

.participant-list,
.member-list,
.notification-list,
.inquiry-list {
    display: grid;
    gap: 12px;
}

.participant-list > *,
.member-list > *,
.notification-list > *,
.inquiry-list > * {
    min-width: 0;
}

.profile-avatar,
.club-logo,
.club-logo--hero,
.media-preview,
.event-poster,
.event-card__media,
.club-card__media {
    background-color: var(--surface-muted);
}

.footer-links a:hover,
.sidebar-links a:hover,
.back-link:hover {
    color: var(--accent-hover);
}

@media (min-width: 769px) {
    .cards > .info-panel,
    .cards > .card,
    .grid.two-col > .info-panel,
    .grid.two-col > .card {
        min-height: 100%;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: sticky;
    }

    .mobile-menu:not([hidden]) {
        max-height: calc(100vh - 86px);
        overflow-y: auto;
    }

    .admin-table {
        border-radius: 12px;
    }

    .notice,
    .error-list {
        width: 100%;
    }
}

/* Visual Design System + Admin UI Remodeling 1.0 */
body.bb-theme {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, .2), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .12), transparent 24rem),
        linear-gradient(180deg, #0a1018 0%, var(--bg) 34rem, var(--bg-deep) 100%);
    color: var(--text);
}

.bb-theme .site-header {
    background: rgba(5, 7, 11, .94);
    border-bottom-color: rgba(249, 115, 22, .2);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

.bb-theme .site-main {
    color: var(--text);
}

.bb-theme .site-footer {
    border-top-color: rgba(249, 115, 22, .18);
}

.bb-theme a:focus-visible,
.bb-theme button:focus-visible,
.bb-theme input:focus-visible,
.bb-theme textarea:focus-visible,
.bb-theme select:focus-visible {
    outline: 2px solid rgba(249, 115, 22, .82);
    outline-offset: 3px;
}

/* Homepage + Public Layout Visual Remodeling 1.0 */
.bb-site-header {
    background:
        linear-gradient(180deg, rgba(8, 13, 20, .96), rgba(8, 13, 20, .82));
    border-bottom: 1px solid rgba(249, 115, 22, .22);
}

.bb-nav {
    position: relative;
}

.bb-nav::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .48), transparent);
    opacity: .8;
}

.bb-nav .nav-links a {
    position: relative;
    border-color: transparent;
    background: transparent;
}

.bb-nav .nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity .18s ease, transform .18s ease;
}

.bb-nav .nav-links a:hover::after,
.bb-nav .nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.bb-nav .account-menu summary {
    border: 1px solid rgba(249, 115, 22, .3);
    background: rgba(249, 115, 22, .09);
}

.bb-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.bb-brand-logo {
    display: block;
    width: 170px;
    max-height: 64px;
    height: auto;
    object-fit: contain;
}

.bb-hero {
    position: relative;
    overflow: hidden;
    margin: -10px 0 44px;
    padding: clamp(46px, 8vw, 104px) 0 clamp(34px, 6vw, 70px);
    min-height: clamp(360px, 56vw, 460px);
    display: grid;
    align-items: center;
    border-bottom: 1px solid rgba(249, 115, 22, .22);
    background-color: #03080c;
    background-image:
        linear-gradient(90deg, rgba(3, 8, 12, .96) 0%, rgba(3, 8, 12, .74) 45%, rgba(3, 8, 12, .36) 100%),
        radial-gradient(circle at 78% 16%, rgba(249, 115, 22, .22), transparent 24rem);
    background-size: cover;
    background-position: center;
}

.bb-hero-home {
    background-image:
        linear-gradient(90deg, rgba(3, 8, 12, .95) 0%, rgba(3, 8, 12, .72) 45%, rgba(3, 8, 12, .35) 100%),
        url('/images/ui/hero-home.jpg');
}

.bb-hero-clubs {
    background-image:
        linear-gradient(90deg, rgba(3, 8, 12, .95) 0%, rgba(3, 8, 12, .72) 45%, rgba(3, 8, 12, .35) 100%),
        url('/images/ui/hero-clubs.jpg');
}

.bb-hero-events {
    background-image:
        linear-gradient(90deg, rgba(3, 8, 12, .95) 0%, rgba(3, 8, 12, .72) 45%, rgba(3, 8, 12, .35) 100%),
        url('/images/ui/hero-events.jpg');
}

.bb-hero-rides {
    background-image:
        linear-gradient(90deg, rgba(3, 8, 12, .95) 0%, rgba(3, 8, 12, .72) 45%, rgba(3, 8, 12, .35) 100%),
        url('/images/ui/hero-rides.jpg');
}

.bb-hero::before {
    content: "";
    position: absolute;
    inset: 8% -18% auto auto;
    width: min(780px, 76vw);
    height: min(420px, 44vw);
    border: 1px solid rgba(249, 115, 22, .18);
    border-radius: 40px;
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 115, 22, .34), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(3, 7, 18, .18));
    transform: skewX(-9deg) rotate(-2deg);
    filter: blur(.2px);
    opacity: .82;
    z-index: -1;
}

.bb-hero-inner,
.bb-hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr);
    gap: clamp(24px, 5vw, 64px);
    align-items: center;
}

.bb-hero-layout {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.bb-hero-copy {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.bb-eyebrow {
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bb-hero-title,
.bb-hero h1 {
    max-width: 860px;
    font-size: clamp(44px, 7.4vw, 88px);
    letter-spacing: -.045em;
    color: #fff;
    text-shadow: 0 8px 38px rgba(0, 0, 0, .44);
}

.bb-hero-subtitle,
.bb-hero-lede {
    max-width: 680px;
    color: var(--text-soft);
    font-size: clamp(18px, 2.4vw, 24px);
    text-shadow: 0 5px 24px rgba(0, 0, 0, .4);
}

.bb-hero-actions,
.bb-card-footer,
.bb-section-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.bb-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 950;
    line-height: 1;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.bb-btn:hover {
    transform: translateY(-1px);
}

.bb-btn-primary {
    border-color: rgba(249, 115, 22, .82);
    background: linear-gradient(180deg, var(--accent-hover), var(--accent));
    color: #111827;
    box-shadow: 0 16px 36px rgba(249, 115, 22, .26);
}

.bb-btn-outline {
    background: rgba(15, 23, 42, .62);
    color: var(--text);
}

.bb-btn-outline:hover {
    border-color: rgba(249, 115, 22, .56);
    background: rgba(249, 115, 22, .11);
}

.bb-btn-small {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 14px;
}

.bb-hero-card,
.bb-card,
.bb-empty-card,
.bb-cta-band {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(58, 70, 86, .86);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), transparent 44%),
        rgba(12, 18, 28, .88);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.bb-hero-card {
    min-height: 340px;
    display: grid;
    align-content: end;
    gap: 14px;
    padding: clamp(22px, 4vw, 32px);
    min-width: 0;
    max-width: 100%;
}

.bb-event-hero-card {
    width: 100%;
    max-width: 460px;
    justify-self: end;
}

.bb-event-hero-card h2,
.bb-event-hero-title {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.bb-hero-card__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 26% 18%, rgba(249, 115, 22, .28), transparent 24%),
        linear-gradient(135deg, transparent 0 42%, rgba(249, 115, 22, .12) 42% 43%, transparent 43% 100%);
    pointer-events: none;
}

.bb-hero-card > *:not(.bb-hero-card__glow) {
    position: relative;
}

.bb-hero-date,
.bb-date-pill {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(249, 115, 22, .52);
    border-radius: 18px;
    background: rgba(249, 115, 22, .13);
    color: var(--text);
    text-align: center;
}

.bb-hero-date strong,
.bb-date-pill strong {
    font-size: 28px;
    line-height: 1;
}

.bb-hero-date span,
.bb-date-pill span {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 850;
}

.bb-card-link {
    color: var(--accent);
    font-weight: 950;
}

.bb-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 42px;
}

.bb-section-header {
    justify-content: space-between;
    margin-bottom: 18px;
}

.bb-section-header h2 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -.03em;
}

.bb-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 18px;
}

.bb-card {
    display: grid;
    gap: 14px;
    min-height: 100%;
    padding: 22px;
}

.bb-card:hover {
    border-color: rgba(249, 115, 22, .42);
}

.bb-card-accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(249, 115, 22, .08));
}

.bb-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.bb-meta {
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
}

.bb-card-footer {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(58, 70, 86, .68);
}

.bb-club-mark {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(249, 115, 22, .35);
    border-radius: 20px;
    background: rgba(255, 255, 255, .04);
}

.bb-club-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.bb-club-mark span {
    color: var(--accent);
    font-size: 24px;
    font-weight: 950;
}

.bb-empty-card {
    grid-column: 1 / -1;
    padding: 26px;
}

.bb-cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: clamp(24px, 4vw, 34px);
    border-color: rgba(249, 115, 22, .32);
}

.bb-footer {
    background:
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, .12), transparent 26rem),
        linear-gradient(180deg, #070b11, #030407);
}

.bb-footer .footer-links a:hover {
    color: var(--accent);
}

/* Klubovi Public UI Remodeling 1.0 */
.bb-filter-panel {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(58, 70, 86, .82);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 48%),
        rgba(10, 15, 23, .88);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .26);
}

/* Moto Susreti Public UI Remodeling 1.0 */
.bb-event-filter-panel {
    border-color: rgba(249, 115, 22, .22);
}

/* Vožnje / Rides Public UI Remodeling 1.0 */
.bb-ride-filter-panel {
    border-color: rgba(249, 115, 22, .22);
}

.bb-ride-grid {
    align-items: stretch;
}

.bb-ride-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    border-color: rgba(58, 70, 86, .88);
}

.bb-ride-card:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 115, 22, .44);
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.bb-ride-card-title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.18;
}

.bb-ride-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .85rem;
    color: var(--text-soft);
    font-size: .95rem;
    font-weight: 760;
}

.bb-ride-badges,
.bb-ride-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.bb-ride-action-row form {
    margin: 0;
}

.bb-ride-detail-hero {
    position: relative;
    min-height: clamp(480px, 58vw, 640px);
    display: flex;
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 20%, rgba(249, 115, 22, .22), transparent 34%),
        linear-gradient(135deg, rgba(3, 8, 12, .98), rgba(13, 20, 30, .92) 52%, rgba(22, 31, 45, .82));
}

.bb-ride-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(3,8,12,.96) 0%, rgba(3,8,12,.78) 54%, rgba(3,8,12,.46) 100%),
        url('/images/ui/hero-rides.jpg');
    background-size: cover;
    background-position: center;
    opacity: .9;
}

.bb-ride-detail-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: center;
}

.bb-ride-join-card {
    border-color: rgba(249, 115, 22, .34);
}

.bb-ride-join-card h2 {
    margin: .2rem 0;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    color: var(--accent);
}

.bb-ride-info-grid {
    margin-top: 0;
}

.bb-ride-info-card {
    min-height: 120px;
}

.bb-participant-list {
    display: grid;
    gap: .85rem;
}

.bb-participant-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}

.bb-participant-avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, .34);
    background: rgba(249, 115, 22, .12);
    color: var(--accent);
    font-weight: 950;
}

.bb-organizer-badge {
    justify-self: end;
}

@media (max-width: 860px) {
    .bb-ride-detail-inner {
        grid-template-columns: 1fr;
    }

    .bb-ride-join-card {
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    .bb-ride-detail-hero {
        min-height: auto;
        padding: 2.4rem 1rem;
    }

    .bb-participant-item {
        grid-template-columns: auto 1fr;
    }

    .bb-organizer-badge,
    .bb-participant-item .badge {
        grid-column: 2;
        justify-self: start;
    }
}

.bb-event-map-card {
    overflow: hidden;
}

.bb-event-grid {
    align-items: stretch;
}

.bb-event-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    overflow: hidden;
    border-color: rgba(58, 70, 86, .88);
}

.bb-event-card:hover,
.bb-featured-event:hover {
    border-color: rgba(249, 115, 22, .46);
    transform: translateY(-2px);
}

.bb-event-image {
    position: relative;
    margin: -1.25rem -1.25rem 0;
    width: calc(100% + 2.5rem);
    min-height: 190px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.bb-event-image img,
.bb-event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-event-date {
    box-shadow: 0 12px 30px rgba(0,0,0,.34);
}

.bb-event-card-title {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.15;
}

.bb-event-meta {
    color: var(--text-soft);
    font-size: .95rem;
    font-weight: 750;
}

.bb-event-badges,
.bb-event-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.bb-featured-event {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    border-color: rgba(249, 115, 22, .36);
}

.bb-event-poster {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, .32);
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 115, 22, .16), transparent 42%),
        rgba(255,255,255,.04);
    color: var(--accent);
    font-weight: 950;
}

.bb-event-poster--featured {
    min-height: 230px;
    border-radius: 24px;
}

.bb-event-detail-hero {
    position: relative;
    min-height: clamp(520px, 64vw, 680px);
    display: flex;
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 22%, rgba(249, 115, 22, .2), transparent 34%),
        linear-gradient(135deg, rgba(3, 8, 12, .98), rgba(13, 20, 30, .92) 48%, rgba(22, 31, 45, .78));
}

.bb-event-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(3,8,12,.96) 0%, rgba(3,8,12,.78) 52%, rgba(3,8,12,.52) 100%),
        var(--event-cover-image, url('/images/ui/hero-events.jpg'));
    background-size: cover;
    background-position: center;
    opacity: .92;
}

.bb-event-detail-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.bb-event-poster--hero {
    width: min(340px, 100%);
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    box-shadow: 0 28px 90px rgba(0,0,0,.48);
}

.bb-event-info-grid {
    margin-top: 0;
}

.bb-event-info-card {
    min-height: 120px;
}

.bb-attendance-modal {
    color: var(--text);
}

.bb-attendance-form {
    margin-top: 1rem;
}

@media (max-width: 860px) {
    .bb-featured-event,
    .bb-event-detail-inner {
        grid-template-columns: 1fr;
    }

    .bb-featured-event > .bb-btn {
        width: 100%;
    }

    .bb-event-poster--hero {
        width: min(260px, 80vw);
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .bb-event-image {
        min-height: 155px;
    }

    .bb-event-detail-hero {
        min-height: auto;
        padding: 2.4rem 1rem;
    }
}

.bb-club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.bb-club-card,
.bb-featured-club {
    border-color: rgba(58, 70, 86, .88);
}

.bb-club-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.bb-club-card .club-card__cover {
    display: block;
    width: calc(100% + 2.5rem);
    height: 145px;
    margin: -1.25rem -1.25rem 0;
    object-fit: cover;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.bb-featured-club {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    border-color: rgba(249, 115, 22, .36);
}

.bb-club-logo,
.bb-club-detail-logo {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid rgba(249, 115, 22, .36);
    background:
        radial-gradient(circle at 30% 20%, rgba(249, 115, 22, .18), transparent 42%),
        rgba(255,255,255,.04);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.bb-club-logo {
    width: 82px;
    height: 82px;
    border-radius: 22px;
}

.bb-club-logo--large {
    width: 110px;
    height: 110px;
    border-radius: 28px;
}

.bb-club-logo img,
.bb-club-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.bb-club-logo span,
.bb-club-detail-logo span {
    color: var(--accent);
    font-size: 26px;
    font-weight: 950;
}

.bb-club-card-title {
    font-size: 24px;
}

.bb-club-meta {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
}

.bb-club-badges,
.bb-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.bb-club-detail-hero {
    position: relative;
    min-height: clamp(420px, 58vw, 560px);
    display: grid;
    align-items: end;
    margin: -10px 0 38px;
    background:
        linear-gradient(90deg, rgba(3, 8, 12, .96), rgba(3, 8, 12, .72) 48%, rgba(3, 8, 12, .42)),
        var(--club-cover-image, radial-gradient(circle at 80% 12%, rgba(249,115,22,.2), transparent 26rem));
    background-size: cover;
    background-position: center, center var(--bb-cover-position-y, 50%);
    border-bottom: 1px solid rgba(249, 115, 22, .22);
}

.bb-detail-hero-overlay {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(42px, 7vw, 86px) 0;
}

.bb-detail-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: end;
}

.bb-club-detail-logo {
    width: clamp(118px, 16vw, 176px);
    height: clamp(118px, 16vw, 176px);
    border-radius: 34px;
}

.bb-detail-hero-content {
    display: grid;
    gap: 14px;
}

.bb-detail-hero-content h1 {
    font-size: clamp(42px, 6vw, 76px);
    letter-spacing: -.045em;
}

.bb-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.bb-info-card,
.bb-sidebar-card {
    padding: 18px;
    border: 1px solid rgba(58, 70, 86, .82);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 52%),
        rgba(10, 15, 23, .82);
}

.bb-info-card span,
.bb-info-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bb-info-card strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 20px;
}

.bb-public-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: start;
}

.bb-detail-main,
.bb-detail-sidebar,
.bb-mini-list,
.bb-sidebar-links,
.bb-info-list {
    display: grid;
    gap: 14px;
}

.bb-detail-sidebar {
    position: sticky;
    top: 96px;
}

.bb-mini-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}

.bb-mini-card > img {
    width: 86px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
}

.bb-empty-state {
    padding: 24px;
    border: 1px dashed rgba(148, 163, 184, .34);
    border-radius: 20px;
    background: rgba(15, 23, 42, .42);
}

.bb-gallery-grid,
.bb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.bb-gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: 18px;
    background: rgba(255,255,255,.035);
}

.bb-gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.bb-gallery-grid figcaption {
    padding: 10px;
    color: var(--muted);
    font-size: 13px;
}

.bb-related-card,
.bb-sidebar-links a {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.bb-related-card:hover,
.bb-sidebar-links a:hover {
    border-color: rgba(249,115,22,.46);
    background: rgba(249,115,22,.08);
}

.bb-info-list > div {
    display: grid;
    gap: 3px;
}

@media (max-width: 860px) {
    .bb-featured-club,
    .bb-detail-grid,
    .bb-public-detail-layout,
    .bb-mini-card {
        grid-template-columns: 1fr;
    }

    .bb-detail-sidebar {
        position: static;
    }

    .bb-club-detail-hero {
        min-height: 360px;
    }
}

@media (max-width: 767px) {
    .bb-club-detail-hero.has-club-cover {
        display: block;
        width: min(100% - 24px, 1180px);
        min-height: 0;
        margin: 0 auto 28px;
        overflow: hidden;
        border: 1px solid rgba(249, 115, 22, .22);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255,255,255,.045), transparent 52%),
            rgba(8, 13, 20, .94);
    }

    .bb-club-detail-hero.has-club-cover::before {
        content: "";
        display: block;
        width: 100%;
        height: clamp(180px, 52vw, 220px);
        background:
            linear-gradient(180deg, rgba(3, 8, 12, .08), rgba(3, 8, 12, .72)),
            var(--club-cover-image) center var(--bb-cover-position-y, 50%) / cover no-repeat;
        border-bottom: 1px solid rgba(249, 115, 22, .18);
    }

    .bb-club-detail-hero.has-club-cover .bb-detail-hero-overlay {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .bb-club-detail-hero.has-club-cover .bb-detail-grid {
        display: block;
        padding: 0 16px 20px;
    }

    .bb-club-detail-hero.has-club-cover .bb-club-detail-logo {
        position: relative;
        z-index: 1;
        width: clamp(96px, 28vw, 116px);
        height: clamp(96px, 28vw, 116px);
        margin: calc(clamp(96px, 28vw, 116px) / -2) 0 14px;
        border-radius: 24px;
    }

    .bb-club-detail-hero.has-club-cover .bb-detail-hero-content {
        min-width: 0;
        gap: 12px;
    }

    .bb-club-detail-hero.has-club-cover .bb-detail-hero-content h1 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: .98;
        overflow-wrap: anywhere;
    }

    .bb-club-detail-hero.has-club-cover .bb-hero-subtitle,
    .bb-club-detail-hero.has-club-cover .bb-club-meta,
    .bb-club-detail-hero.has-club-cover .bb-meta {
        overflow-wrap: anywhere;
    }

    .bb-club-detail-hero.has-club-cover .bb-club-badges {
        flex-wrap: wrap;
        min-width: 0;
    }

    .bb-club-detail-hero.has-club-cover .bb-club-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: .65rem;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .bb-club-detail-hero.has-club-cover .bb-club-hero-actions form,
    .bb-club-detail-hero.has-club-cover .bb-club-hero-actions .actions,
    .bb-club-detail-hero.has-club-cover .bb-club-hero-actions .bb-btn,
    .bb-club-detail-hero.has-club-cover .bb-club-hero-actions .btn,
    .bb-club-detail-hero.has-club-cover .bb-club-hero-actions button {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }
}

@media (max-width: 860px) {
    .bb-hero-content,
    .bb-hero-inner,
    .bb-hero-layout,
    .bb-cta-band {
        grid-template-columns: 1fr;
    }

    .bb-hero {
        margin-top: 0;
        min-height: 320px;
        background-position: center right;
    }

    .bb-section-header {
        align-items: flex-start;
    }

    .bb-event-hero-card {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .bb-brand-logo {
        width: 135px;
        max-height: 54px;
    }
}

.four-col {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.five-col {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.page-shell,
.admin-shell {
    display: grid;
    gap: clamp(18px, 3vw, 28px);
}

.admin-dashboard-card,
.admin-stat-card,
.five-col > .card {
    position: relative;
    overflow: hidden;
}

.admin-dashboard-card::before,
.admin-stat-card::before,
.five-col > .card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(249,115,22,.18));
    opacity: .9;
}

.five-col > .card,
.admin-stat-card {
    padding-left: 24px;
}

.five-col > .card h3,
.admin-stat-card strong {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(58,70,86,.72);
}

.list-row:first-child {
    padding-top: 0;
}

.list-row:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}

.list-row h3 {
    margin: 4px 0 6px;
    font-size: clamp(20px, 3vw, 26px);
}

.list-row p:not(.meta) {
    color: var(--text-soft);
}

.table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-card table,
.admin-table {
    min-width: 760px;
}

.table-card table {
    width: 100%;
    border-collapse: collapse;
}

.table-card th,
.table-card td {
    padding: 12px;
    border-bottom: 1px solid rgba(58,70,86,.72);
    text-align: left;
    vertical-align: top;
}

.table-card th {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .055em;
    text-transform: uppercase;
    background: rgba(255,255,255,.035);
}

.table-card tr:hover td {
    background: rgba(249,115,22,.045);
}

.status-open,
.badge.open,
.badge.status-open {
    border-color: rgba(245,158,11,.56);
    background: rgba(245,158,11,.14);
    color: #ffd28a;
}

.status-reviewed,
.badge.reviewed,
.badge.status-reviewed,
.badge.needs-supplement {
    border-color: rgba(56,189,248,.55);
    background: rgba(56,189,248,.13);
    color: #bae6fd;
}

.status-dismissed,
.badge.dismissed,
.badge.status-dismissed,
.badge.inactive {
    border-color: rgba(148,163,184,.38);
    background: rgba(100,116,139,.16);
    color: #cbd5e1;
}

.status-action-taken,
.badge.action-taken,
.badge.status-action-taken {
    border-color: rgba(34,197,94,.55);
    background: rgba(34,197,94,.14);
    color: #a7f3d0;
}

.priority-low,
.badge.priority-low {
    border-color: rgba(148,163,184,.38);
    background: rgba(100,116,139,.16);
    color: #cbd5e1;
}

.priority-normal,
.badge.priority-normal {
    border-color: rgba(56,189,248,.44);
    background: rgba(56,189,248,.1);
    color: #bae6fd;
}

.priority-high,
.badge.priority-high {
    border-color: rgba(239,68,68,.6);
    background: rgba(239,68,68,.15);
    color: #fecaca;
}

.badge.duplicate,
.badge.other {
    border-color: rgba(168,85,247,.5);
    background: rgba(88,28,135,.24);
    color: #e9d5ff;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 18px;
    align-items: start;
}

.admin-detail-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 46%),
        var(--surface);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-section {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: var(--radius);
    background: rgba(8,13,20,.52);
}

.pill-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-options label {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    cursor: pointer;
}

.pill-options input {
    width: auto;
    min-height: auto;
    accent-color: var(--accent);
}

.modal,
.attendance-modal {
    backdrop-filter: blur(6px);
}

.attendance-modal__panel {
    box-shadow: 0 28px 90px rgba(0,0,0,.52);
}

@media (max-width: 768px) {
    .list-row,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .list-row > .btn {
        width: 100%;
    }

    .five-col > .card,
    .admin-stat-card {
        padding-left: 20px;
    }
}

/* Bajkeri Public UI Remodeling 1.0 */
.bb-hero-bikers {
    background-image:
        linear-gradient(90deg, rgba(3,8,12,.96) 0%, rgba(3,8,12,.74) 48%, rgba(3,8,12,.36) 100%),
        url('/images/ui/hero-bikers.jpg');
}

.bb-biker-filter-panel {
    position: relative;
    overflow: hidden;
}

.bb-biker-filter-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(249,115,22,.2));
}

.bb-checkbox-field {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    align-self: end;
    min-height: 44px;
    color: var(--text-soft);
    font-weight: 800;
}

.bb-checkbox-field input {
    width: auto;
    min-height: auto;
    accent-color: var(--accent);
}

.bb-btn-ghost {
    border-color: rgba(239,68,68,.36);
    background: rgba(239,68,68,.08);
    color: #fecaca;
}

.bb-btn-ghost:hover {
    border-color: rgba(239,68,68,.7);
    background: rgba(239,68,68,.16);
    color: #fff;
}

.bb-biker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

.bb-biker-card {
    position: relative;
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at top left, rgba(249,115,22,.12), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow-soft);
}

.bb-biker-card-link {
    display: grid;
    gap: 12px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.bb-biker-card-link:hover .bb-biker-card-title,
.bb-biker-card-title a:hover {
    color: var(--accent);
}

.bb-biker-avatar,
.bb-biker-profile-avatar,
.bb-public-motorcycle-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249,115,22,.36);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(249,115,22,.42), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,.92), rgba(3,8,12,.96));
    color: #fff7ed;
    font-weight: 950;
    letter-spacing: .05em;
    box-shadow: 0 18px 45px rgba(0,0,0,.32);
}

.bb-biker-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    font-size: 30px;
}

.bb-biker-card-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(22px, 3vw, 28px);
}

.bb-biker-card-title a {
    color: inherit;
    text-decoration: none;
}

.bb-biker-name {
    margin: -6px 0 0;
    color: var(--text-soft);
    font-weight: 800;
}

.bb-biker-meta,
.bb-biker-badges,
.bb-profile-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.bb-biker-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
}

.bb-biker-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(249,115,22,.78);
}

.bb-biker-detail-hero {
    position: relative;
    overflow: hidden;
    margin: -1px auto 0;
    border-bottom: 1px solid rgba(249,115,22,.24);
    background:
        linear-gradient(90deg, rgba(3,8,12,.97) 0%, rgba(3,8,12,.82) 52%, rgba(3,8,12,.48) 100%),
        radial-gradient(circle at 78% 22%, rgba(249,115,22,.22), transparent 32%);
}

.bb-biker-detail-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    min-height: 320px;
    margin: 0 auto;
    padding: clamp(44px, 8vw, 86px) 0;
}

.bb-biker-profile-avatar {
    width: clamp(128px, 16vw, 190px);
    height: clamp(128px, 16vw, 190px);
    object-fit: cover;
    font-size: clamp(52px, 8vw, 82px);
}

.bb-biker-profile-copy {
    display: grid;
    gap: 14px;
}

.bb-biker-profile-copy h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(42px, 7vw, 78px);
    line-height: .95;
}

.bb-biker-hero-actions,
.bb-public-profile-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .65rem;
    max-width: 100%;
    margin-top: 1rem;
}

.bb-biker-hero-actions .actions,
.bb-public-profile-actions .actions {
    display: contents;
}

.bb-biker-hero-actions form,
.bb-public-profile-actions form {
    margin: 0;
}

.bb-biker-hero-actions .bb-btn,
.bb-public-profile-actions .bb-btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: .65rem .95rem;
    border-radius: 999px;
    white-space: nowrap;
}

.bb-profile-action-row .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bb-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.bb-profile-info-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(8,13,20,.68);
}

.bb-profile-info-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.bb-profile-info-card strong,
.bb-profile-info-card a {
    color: var(--text);
    font-size: 18px;
    text-decoration: none;
}

.bb-profile-info-card a:hover {
    color: var(--accent);
}

.bb-public-garage {
    position: relative;
}

.bb-public-motorcycle-card {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), transparent 38%),
        rgba(8,13,20,.82);
    box-shadow: var(--shadow-soft);
}

.bb-public-motorcycle-card h3 {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 32px);
}

.bb-public-motorcycle-image,
.bb-public-motorcycle-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
}

.bb-public-motorcycle-image {
    display: block;
    object-fit: cover;
    border: 1px solid rgba(58,70,86,.72);
    background: rgba(3,8,12,.9);
}

.bb-public-motorcycle-placeholder {
    font-size: 58px;
    border-radius: var(--radius-sm);
}

.bb-motorcycle-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 0;
}

.bb-motorcycle-specs div {
    padding: 12px;
    border: 1px solid rgba(58,70,86,.68);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
}

.bb-motorcycle-specs dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bb-motorcycle-specs dd {
    margin: 5px 0 0;
    color: var(--text);
    font-weight: 850;
}

.bb-public-motorcycle-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}

.bb-public-motorcycle-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: 14px;
}

@media (max-width: 768px) {
    .bb-biker-detail-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .bb-biker-profile-avatar {
        width: 128px;
        height: 128px;
    }

    .bb-profile-action-row,
    .bb-profile-action-row .actions {
        align-items: stretch;
    }

    .bb-profile-action-row .bb-btn,
    .bb-profile-action-row .btn,
    .bb-profile-action-row form,
    .bb-action-row .bb-btn {
        width: 100%;
    }
}

/* Moj Profil Dashboard UI Remodeling 1.0 */
.bb-dashboard {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px) 0;
}

.bb-dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid rgba(249,115,22,.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 20%, rgba(249,115,22,.18), transparent 30%),
        linear-gradient(135deg, rgba(17,24,39,.94), rgba(8,13,20,.86));
    box-shadow: var(--shadow-soft);
}

.bb-dashboard-user {
    display: flex;
    gap: 18px;
    align-items: center;
    min-width: 0;
}

.bb-dashboard-avatar {
    flex: 0 0 auto;
    width: clamp(82px, 10vw, 116px);
    height: clamp(82px, 10vw, 116px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249,115,22,.42);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(249,115,22,.44), transparent 36%),
        linear-gradient(135deg, rgba(15,23,42,.94), rgba(3,8,12,.98));
    color: #fff7ed;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 950;
    object-fit: cover;
    box-shadow: 0 20px 54px rgba(0,0,0,.36);
}

.bb-dashboard-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -.04em;
}

.bb-dashboard-subtitle {
    max-width: 720px;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: clamp(17px, 2.2vw, 21px);
}

.bb-dashboard-meta,
.bb-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.bb-dashboard-meta span:not(.badge) {
    color: var(--muted);
    font-weight: 850;
}

.bb-dashboard-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.bb-dashboard-section {
    display: grid;
    gap: 16px;
}

.bb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.bb-dashboard-card,
.bb-dashboard-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
        rgba(12,18,28,.88);
    box-shadow: var(--shadow-soft);
}

.bb-dashboard-card {
    display: grid;
    gap: 10px;
    min-height: 210px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.bb-dashboard-card::before,
.bb-dashboard-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(249,115,22,.12));
}

.bb-dashboard-card:hover {
    border-color: rgba(249,115,22,.48);
    transform: translateY(-2px);
}

.bb-dashboard-card-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249,115,22,.28);
    border-radius: 14px;
    background: rgba(249,115,22,.1);
    color: #fed7aa;
    font-weight: 950;
}

.bb-dashboard-card-title {
    margin: 0;
    color: var(--text);
    font-size: 22px;
}

.bb-dashboard-card-text {
    color: var(--text-soft);
}

.bb-dashboard-card-meta {
    align-self: end;
    color: var(--accent);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bb-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 18px;
    align-items: start;
}

.bb-dashboard-panel {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 4vw, 28px);
}

.bb-dashboard-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(56,189,248,.38);
    border-radius: 999px;
    background: rgba(56,189,248,.1);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bb-dashboard-status {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(58,70,86,.78);
    border-radius: var(--radius-sm);
    background: rgba(8,13,20,.58);
}

.bb-dashboard-status legend {
    padding: 0 8px;
    color: var(--text);
    font-weight: 950;
}

.bb-dashboard-status p {
    color: var(--text-soft);
}

.bb-profile-visibility-card {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
    padding: 20px;
    border: 1px solid rgba(249, 115, 22, .28);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .1), transparent 44%),
        rgba(8, 13, 20, .72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
}

.bb-profile-visibility-card h3 {
    margin: 2px 0 10px;
    color: var(--text);
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1;
}

.bb-profile-visibility-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bb-profile-visibility-status-on {
    border: 1px solid rgba(34, 197, 94, .38);
    background: rgba(34, 197, 94, .12);
    color: #bbf7d0;
}

.bb-profile-visibility-status-off {
    border: 1px solid rgba(251, 191, 36, .38);
    background: rgba(251, 191, 36, .12);
    color: #fde68a;
}

.bb-profile-visibility-note {
    color: var(--text-soft);
    line-height: 1.65;
}

.bb-profile-visibility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bb-profile-visibility-actions form {
    margin: 0;
}

.bb-follow-page {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
}

.bb-follow-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bb-follow-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid rgba(249, 115, 22, .32);
    border-radius: 999px;
    background: rgba(8, 13, 20, .7);
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
}

.bb-follow-tab:hover,
.bb-follow-tab:focus {
    border-color: rgba(249, 115, 22, .72);
    background: rgba(249, 115, 22, .14);
    color: #fff;
}

.bb-follow-panel {
    scroll-margin-top: 110px;
    display: grid;
    gap: 16px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(58, 70, 86, .78);
    border-radius: var(--radius);
    background: rgba(8, 13, 20, .56);
}

.bb-follow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.bb-follow-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(58, 70, 86, .72);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, .74);
}

.bb-follow-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(249, 115, 22, .4);
    border-radius: 50%;
    background: rgba(249, 115, 22, .14);
    color: #fed7aa;
    font-weight: 950;
}

.bb-follow-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bb-follow-meta h3 {
    margin: 0;
    font-size: 1.05rem;
}

.bb-follow-meta p,
.bb-follow-meta span,
.bb-follow-note {
    color: var(--text-soft);
}

.bb-follow-meta span {
    display: block;
    overflow-wrap: anywhere;
    font-size: .92rem;
}

.bb-follow-card form {
    grid-column: 1 / -1;
    margin: 0;
}

.bb-follow-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    background: rgba(15, 23, 42, .44);
}

.bb-club-followers-page {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.bb-club-followers-count {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(249, 115, 22, .34);
    border-radius: 999px;
    background: rgba(249, 115, 22, .1);
    color: #fed7aa;
    font-weight: 900;
}

.bb-club-followers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.bb-club-follower-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(58, 70, 86, .72);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, .74);
}

.bb-club-follower-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(249, 115, 22, .4);
    border-radius: 50%;
    background: rgba(249, 115, 22, .14);
    color: #fed7aa;
    font-weight: 950;
}

.bb-club-follower-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.bb-club-follower-meta h3 {
    margin: 0;
    font-size: 1.05rem;
}

.bb-club-follower-meta p,
.bb-club-follower-meta span {
    color: var(--text-soft);
}

.bb-club-follower-meta span {
    display: block;
    overflow-wrap: anywhere;
    font-size: .92rem;
}

.bb-club-followers-empty {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, .28);
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    background: rgba(15, 23, 42, .44);
}

.bb-dashboard-empty {
    padding: 18px;
    text-align: left;
}

.bb-dashboard-list-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(58,70,86,.68);
}

.bb-dashboard-list-item:last-child {
    border-bottom: 0;
}

@media (max-width: 900px) {
    .bb-dashboard-header,
    .bb-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .bb-dashboard-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .bb-dashboard-user {
        align-items: flex-start;
        flex-direction: column;
    }

    .bb-dashboard-actions .bb-btn,
    .bb-dashboard-card,
    .bb-dashboard-panel .bb-btn,
    .bb-profile-visibility-actions .bb-btn {
        width: 100%;
    }

    .bb-profile-visibility-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bb-biker-hero-actions,
    .bb-public-profile-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .bb-biker-hero-actions .bb-btn,
    .bb-public-profile-actions .bb-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .bb-follow-tabs,
    .bb-follow-tab,
    .bb-follow-card .bb-btn {
        width: 100%;
    }

    .bb-follow-card {
        grid-template-columns: 1fr;
    }
}

/* Digital Garage UI Remodeling 1.0 */
.bb-garage {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px) 0;
}

.bb-garage-header,
.bb-motorcycle-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid rgba(249,115,22,.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 20%, rgba(249,115,22,.18), transparent 30%),
        linear-gradient(135deg, rgba(17,24,39,.94), rgba(8,13,20,.86));
    box-shadow: var(--shadow-soft);
}

.bb-garage-header h1,
.bb-motorcycle-detail-header h1 {
    color: var(--text);
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -.045em;
}

.bb-garage-header p:not(.bb-eyebrow),
.bb-motorcycle-detail-header p:not(.bb-eyebrow) {
    max-width: 720px;
    color: var(--text-soft);
    font-size: clamp(17px, 2vw, 21px);
}

.bb-garage-actions,
.bb-garage-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bb-garage-actions {
    justify-content: flex-end;
}

.bb-garage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 18px;
}

.bb-motorcycle-card,
.bb-garage-form,
.bb-form-section,
.bb-service-record-card,
.bb-reminder-card,
.bb-garage-gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
        rgba(12,18,28,.88);
    box-shadow: var(--shadow-soft);
}

.bb-motorcycle-card {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.bb-motorcycle-image,
.bb-motorcycle-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
}

.bb-motorcycle-image {
    display: block;
    object-fit: cover;
    border: 1px solid rgba(58,70,86,.72);
    background: rgba(3,8,12,.9);
}

.bb-motorcycle-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(249,115,22,.34);
    background:
        radial-gradient(circle at 35% 25%, rgba(249,115,22,.42), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,.92), rgba(3,8,12,.96));
    color: #fff7ed;
    font-size: clamp(54px, 8vw, 82px);
    font-weight: 950;
}

.bb-motorcycle-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3vw, 32px);
}

.bb-motorcycle-meta,
.bb-motorcycle-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.bb-motorcycle-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
}

.bb-motorcycle-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(249,115,22,.78);
}

.bb-motorcycle-detail-header {
    grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
}

.bb-motorcycle-detail-media .bb-motorcycle-image,
.bb-motorcycle-detail-media .bb-motorcycle-placeholder {
    min-height: 260px;
}

.bb-motorcycle-detail-copy {
    display: grid;
    gap: 14px;
}

.bb-motorcycle-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
}

.bb-garage-section {
    display: grid;
    gap: 16px;
}

.bb-garage-form,
.bb-form-section {
    display: grid;
    gap: 16px;
    padding: clamp(18px, 4vw, 26px);
}

.bb-garage-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.bb-garage-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.bb-garage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.bb-garage-gallery-item {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.bb-garage-gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: 16px;
}

.bb-service-records,
.bb-reminders {
    align-content: start;
}

.bb-service-record-card,
.bb-reminder-card {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.bb-service-record-card h3,
.bb-reminder-card h3 {
    color: var(--text);
}

.bb-service-record-card details,
.bb-reminder-card details {
    padding: 12px;
    border: 1px solid rgba(58,70,86,.68);
    border-radius: 14px;
    background: rgba(8,13,20,.5);
}

.bb-service-record-card summary,
.bb-reminder-card summary {
    color: var(--accent);
    font-weight: 950;
    cursor: pointer;
}

.bb-reminder-card.muted {
    opacity: .78;
}

@media (max-width: 900px) {
    .bb-garage-header,
    .bb-motorcycle-detail-header {
        grid-template-columns: 1fr;
    }

    .bb-garage-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .bb-garage-actions .bb-btn,
    .bb-garage-actions form,
    .bb-garage-card-actions .bb-btn,
    .bb-garage-card-actions form,
    .bb-garage-upload-form .bb-btn {
        width: 100%;
    }

    .bb-garage-upload-form {
        grid-template-columns: 1fr;
    }
}

/* Beta Pages UI Remodeling 1.0 */
.bb-beta-page {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px) 0;
}

.bb-beta-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid rgba(249,115,22,.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 20%, rgba(249,115,22,.18), transparent 30%),
        linear-gradient(135deg, rgba(17,24,39,.94), rgba(8,13,20,.86));
    box-shadow: var(--shadow-soft);
}

.bb-beta-kicker {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bb-beta-title {
    color: var(--text);
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -.045em;
}

.bb-beta-subtitle {
    max-width: 760px;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: clamp(17px, 2vw, 22px);
}

.bb-beta-note {
    max-width: 860px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(245,158,11,.32);
    border-radius: var(--radius-sm);
    background: rgba(245,158,11,.08);
    color: #fde68a;
}

.bb-beta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.bb-beta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.bb-beta-section {
    display: grid;
    gap: 18px;
}

.bb-beta-card,
.bb-beta-form {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
        rgba(12,18,28,.88);
    box-shadow: var(--shadow-soft);
}

.bb-beta-card {
    display: grid;
    gap: 14px;
    padding: clamp(20px, 4vw, 28px);
}

.bb-beta-card::before,
.bb-beta-form::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent), rgba(249,115,22,.12));
}

.bb-beta-card h2,
.bb-beta-form h2 {
    color: var(--text);
}

.bb-beta-card p,
.bb-beta-card li {
    color: var(--text-soft);
}

.bb-beta-card a:not(.bb-btn) {
    color: #fed7aa;
    text-decoration: underline;
    text-decoration-color: rgba(249,115,22,.42);
    text-underline-offset: 3px;
}

.bb-beta-card ol,
.bb-beta-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 22px;
}

.bb-beta-form {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 4vw, 28px);
}

@media (max-width: 900px) {
    .bb-beta-header {
        grid-template-columns: 1fr;
    }

    .bb-beta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .bb-beta-actions .bb-btn,
    .bb-beta-form .bb-btn {
        width: 100%;
    }
}

/* Admin / Moderator Panel UI Remodeling 1.0 */
.bb-admin {
    display: grid;
    gap: clamp(22px, 4vw, 34px);
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px) 0;
}

.bb-admin-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 4vw, 34px);
    align-items: center;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid rgba(249,115,22,.26);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 16%, rgba(249,115,22,.2), transparent 32%),
        linear-gradient(135deg, rgba(12,18,28,.96), rgba(3,8,12,.9));
    box-shadow: var(--shadow-soft);
}

.bb-admin-title {
    color: var(--text);
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.045em;
}

.bb-admin-subtitle {
    max-width: 760px;
    color: var(--text-soft);
}

p.bb-admin-subtitle:first-child,
.bb-admin-section > div > .bb-admin-subtitle {
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.bb-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(58,70,86,.72);
    border-radius: 20px;
    background: rgba(8,13,20,.78);
    box-shadow: var(--shadow-soft);
}

.bb-admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(58,70,86,.78);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.bb-admin-nav-link:hover,
.bb-admin-nav-link:focus {
    border-color: rgba(249,115,22,.55);
    background: rgba(249,115,22,.1);
    color: var(--text);
}

.bb-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.bb-admin-section {
    display: grid;
    gap: 18px;
}

.bb-admin-card,
.bb-admin-stat,
.bb-admin-table-wrap,
.bb-admin-filters,
.bb-admin-detail,
.bb-admin-form,
.bb-admin-timeline {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 44%),
        rgba(12,18,28,.88);
    box-shadow: var(--shadow-soft);
}

.bb-admin-card,
.bb-admin-stat,
.bb-admin-table-wrap,
.bb-admin-filters,
.bb-admin-form,
.bb-admin-timeline {
    padding: clamp(18px, 3vw, 24px);
}

.bb-admin-card,
.bb-admin-form,
.bb-admin-timeline {
    display: grid;
    gap: 12px;
}

.bb-admin-card h2,
.bb-admin-card h3,
.bb-admin-section h2,
.bb-admin-table-wrap h2 {
    color: var(--text);
}

.bb-admin-stat {
    display: grid;
    gap: 8px;
    min-height: 118px;
}

.bb-admin-stat-value {
    color: var(--text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.bb-admin-stat-label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.bb-admin-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    align-items: end;
}

.bb-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.bb-admin-header .bb-admin-actions {
    justify-content: flex-end;
}

.bb-admin-table-wrap {
    overflow-x: auto;
}

.bb-admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.bb-admin-table th,
.bb-admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(58,70,86,.58);
    text-align: left;
    vertical-align: top;
}

.bb-admin-table th {
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bb-admin-table td {
    color: var(--text-soft);
}

.bb-admin-table tbody tr:hover {
    background: rgba(249,115,22,.055);
}

.bb-admin-list-item,
.bb-admin-compact-item {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid rgba(58,70,86,.55);
}

.bb-admin-list-item:first-of-type,
.bb-admin-compact-item:first-of-type {
    border-top: 0;
}

.bb-admin-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
    gap: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.bb-admin-role-badge,
.bb-admin-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 999px;
    background: rgba(148,163,184,.12);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.bb-admin-badge-success {
    border-color: rgba(34,197,94,.34);
    background: rgba(34,197,94,.12);
    color: #bbf7d0;
}

.bb-admin-badge-warning {
    border-color: rgba(245,158,11,.38);
    background: rgba(245,158,11,.13);
    color: #fde68a;
}

.bb-admin-badge-danger {
    border-color: rgba(239,68,68,.4);
    background: rgba(239,68,68,.13);
    color: #fecaca;
}

.bb-admin-badge-info {
    border-color: rgba(59,130,246,.36);
    background: rgba(59,130,246,.13);
    color: #bfdbfe;
}

.bb-admin-badge-muted {
    border-color: rgba(148,163,184,.28);
    background: rgba(148,163,184,.1);
    color: #cbd5e1;
}

.bb-admin-empty {
    margin: 0;
    color: var(--muted);
}

.bb-admin-card pre {
    overflow-x: auto;
    padding: 14px;
    border: 1px solid rgba(58,70,86,.68);
    border-radius: 14px;
    background: rgba(3,8,12,.62);
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .bb-admin-header,
    .bb-admin-detail {
        grid-template-columns: 1fr;
    }

    .bb-admin-header .bb-admin-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .bb-admin-actions .bb-btn,
    .bb-admin-actions form,
    .bb-admin-form .bb-btn {
        width: 100%;
    }
}

/* Global Forms + Modals Polish 1.0 */
.bb-form,
.stack-form {
    display: grid;
    gap: 18px;
}

.bb-form-card,
.form-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
        rgba(12,18,28,.88);
    box-shadow: var(--shadow-soft);
}

.bb-form-section,
.bb-fieldset {
    display: grid;
    gap: 16px;
    padding: clamp(16px, 3vw, 22px);
    border: 1px solid rgba(58,70,86,.64);
    border-radius: 18px;
    background: rgba(3,8,12,.28);
}

.bb-form-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.bb-form-group,
.form-field,
.field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.bb-label,
.form-field > span,
.field label,
.field > span,
.bb-form-group > span {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.bb-required,
.form-field strong {
    color: var(--accent);
}

.bb-input,
.bb-select,
.bb-textarea,
.bb-form input:not([type="checkbox"]):not([type="radio"]),
.bb-form select,
.bb-form textarea,
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.bb-admin-filters input,
.bb-admin-filters select,
.bb-admin-filters textarea,
.bb-beta-form input:not([type="checkbox"]):not([type="radio"]),
.bb-beta-form select,
.bb-beta-form textarea,
.bb-garage-form input:not([type="checkbox"]):not([type="radio"]),
.bb-garage-form select,
.bb-garage-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid rgba(58,70,86,.85);
    border-radius: 12px;
    background: rgba(3,8,12,.7);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.bb-form textarea,
.form-field textarea,
.field textarea,
.bb-admin-filters textarea,
.bb-beta-form textarea,
.bb-garage-form textarea {
    min-height: 130px;
    resize: vertical;
}

.bb-form input::placeholder,
.form-field input::placeholder,
.field input::placeholder,
.bb-form textarea::placeholder,
.form-field textarea::placeholder,
.field textarea::placeholder {
    color: rgba(148,163,184,.7);
}

.bb-form input:focus,
.bb-form select:focus,
.bb-form textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.bb-admin-filters input:focus,
.bb-admin-filters select:focus,
.bb-admin-filters textarea:focus {
    border-color: rgba(249,115,22,.78);
    box-shadow: 0 0 0 4px rgba(249,115,22,.14);
    background: rgba(8,13,20,.9);
}

.bb-form input:disabled,
.bb-form select:disabled,
.bb-form textarea:disabled,
.form-field input:disabled,
.form-field select:disabled,
.form-field textarea:disabled,
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.bb-help,
.form-field small,
.field small,
.bb-form small {
    color: var(--muted);
    font-size: 13px;
}

.bb-auth-help {
    margin: -4px 0 4px;
    font-size: 0.94rem;
}

.bb-auth-help a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.bb-auth-help a:hover,
.bb-auth-help a:focus {
    color: #fff;
}

.bb-error,
.field-error,
.form-error,
.form-errors {
    color: #fecaca;
    font-size: 13px;
    font-weight: 800;
}

.field-error,
.form-error {
    display: inline-block;
    padding: 4px 0;
}

.bb-checkbox,
.bb-radio,
.bb-toggle-row,
.check-field,
.bb-checkbox-field,
.attendance-type-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid rgba(58,70,86,.68);
    border-radius: 14px;
    background: rgba(3,8,12,.36);
    color: var(--text-soft);
}

.bb-checkbox input,
.bb-radio input,
.check-field input,
.bb-checkbox-field input,
.attendance-type-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
}

.bb-form-actions,
.form-actions,
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.bb-btn-secondary,
.bb-btn-muted {
    border-color: rgba(148,163,184,.3);
    background: rgba(148,163,184,.1);
    color: var(--text-soft);
}

.bb-btn-success {
    border-color: rgba(34,197,94,.38);
    background: rgba(34,197,94,.14);
    color: #bbf7d0;
}

.bb-btn-warning {
    border-color: rgba(245,158,11,.42);
    background: rgba(245,158,11,.14);
    color: #fde68a;
}

.bb-btn-danger,
.btn.danger {
    border-color: rgba(239,68,68,.42);
    background: rgba(239,68,68,.15);
    color: #fecaca;
}

.bb-btn-sm,
.bb-btn-small,
.btn.small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.bb-btn-block {
    width: 100%;
}

.bb-alert,
.notice,
.notice-inline,
.error-list,
.form-errors {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto;
    padding: 14px 16px;
    border: 1px solid rgba(59,130,246,.34);
    border-radius: 16px;
    background: rgba(59,130,246,.1);
    color: #bfdbfe;
    box-shadow: var(--shadow-soft);
}

.bb-alert-success,
.notice:not(.warning):not(.error),
.notice-inline:not(.warning):not(.error) {
    border-color: rgba(34,197,94,.34);
    background: rgba(34,197,94,.1);
    color: #bbf7d0;
}

.bb-alert-warning,
.notice.warning,
.notice-inline.warning {
    border-color: rgba(245,158,11,.42);
    background: rgba(245,158,11,.12);
    color: #fde68a;
}

.bb-alert-error,
.error-list,
.form-errors {
    border-color: rgba(239,68,68,.42);
    background: rgba(239,68,68,.12);
    color: #fecaca;
}

.bb-alert-info {
    border-color: rgba(59,130,246,.34);
    background: rgba(59,130,246,.1);
    color: #bfdbfe;
}

.bb-modal-backdrop,
.attendance-modal,
.poster-lightbox {
    background: rgba(3,8,12,.78);
    backdrop-filter: blur(8px);
}

.bb-modal-panel,
.attendance-modal__panel,
.poster-lightbox__content {
    border: 1px solid rgba(249,115,22,.24);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 42%),
        rgba(12,18,28,.96);
    color: var(--text);
    box-shadow: var(--shadow-strong);
}

.bb-modal-title,
.attendance-modal__panel h2 {
    color: var(--text);
}

.attendance-modal__close,
.poster-lightbox__close {
    border: 1px solid rgba(58,70,86,.7);
    border-radius: 999px;
    background: rgba(3,8,12,.74);
    color: var(--text);
}

.bb-pagination,
.pagination,
nav[role="navigation"] {
    color: var(--text-soft);
}

.pagination a,
.pagination span,
nav[role="navigation"] a,
nav[role="navigation"] span {
    border-color: rgba(58,70,86,.72) !important;
    background: rgba(8,13,20,.72) !important;
    color: var(--text-soft) !important;
}

.pagination a:hover,
nav[role="navigation"] a:hover {
    border-color: rgba(249,115,22,.55) !important;
    color: var(--text) !important;
}

.bb-table-wrap,
.table-card {
    overflow-x: auto;
}

.bb-table,
.admin-table,
.table-card table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 640px) {
    .bb-form-actions .bb-btn,
    .actions .bb-btn,
    .actions .btn,
    .bb-form-actions form,
    .actions form {
        width: 100%;
    }
}

/* Mobile Usability Pass 1.0 */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.bb-card,
.bb-admin-card,
.bb-dashboard-card,
.bb-dashboard-panel,
.bb-garage-section,
.bb-beta-card,
.bb-form-card,
.bb-sidebar-card,
.bb-info-card,
.bb-club-card,
.bb-biker-card,
.bb-event-card,
.bb-ride-card,
.bb-motorcycle-card,
.bb-public-motorcycle-card,
.bb-admin-detail,
.bb-modal-panel {
    min-width: 0;
    overflow-wrap: anywhere;
}

.bb-hero-actions,
.bb-dashboard-actions,
.bb-garage-actions,
.bb-admin-actions,
.bb-form-actions,
.bb-event-action-row,
.bb-ride-action-row,
.bb-profile-action-row,
.bb-action-row,
.actions,
.button-row,
.filter-actions,
.status-filters,
.bb-card-footer {
    flex-wrap: wrap;
}

.bb-admin-table-wrap,
.bb-table-wrap,
.table-card,
.admin-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bb-admin-table,
.bb-table,
.admin-table table,
.table-card table {
    min-width: 680px;
}

.bb-pagination,
.pagination,
nav[role="navigation"] {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .bb-hero-inner,
    .bb-hero-content,
    .bb-detail-grid,
    .bb-info-grid,
    .bb-profile-info-grid,
    .bb-event-info-grid,
    .bb-ride-info-grid,
    .bb-motorcycle-info-grid,
    .bb-admin-detail,
    .bb-dashboard-layout,
    .bb-motorcycle-detail-header {
        grid-template-columns: 1fr;
    }

    .bb-admin-table,
    .bb-table,
    .admin-table table,
    .table-card table {
        min-width: 720px;
    }

    .bb-footer-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wrap,
    .bb-container,
    .bb-admin,
    .bb-beta-page,
    .bb-garage,
    .bb-dashboard {
        width: min(100% - 24px, 1180px);
    }

    .site-nav {
        min-height: 66px;
        gap: 10px;
    }

    .bb-brand-logo {
        width: 132px;
        max-height: 52px;
    }

    .bb-nav,
    .nav-links,
    .nav-actions {
        min-width: 0;
    }

    .bb-nav .nav-links,
    .nav-links {
        gap: 8px;
    }

    .bb-nav .nav-links a,
    .nav-links a,
    .nav-actions a,
    .nav-actions button {
        min-height: 42px;
        padding: 9px 12px;
    }

    .bb-hero {
        min-height: auto;
        margin-bottom: 32px;
        padding: 54px 0 48px;
        background-position: center right;
    }

    .bb-hero::before {
        width: 92vw;
        height: 42vw;
        opacity: .42;
    }

    .bb-hero-inner,
    .bb-hero-content {
        width: min(100% - 24px, 1180px);
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .bb-hero-title,
    .bb-hero h1 {
        font-size: clamp(2rem, 12vw, 2.75rem);
        letter-spacing: -.035em;
    }

    .bb-hero-subtitle,
    .bb-hero-lede {
        font-size: 1rem;
    }

    .bb-hero-card,
    .bb-hero-stat-card {
        width: 100%;
        max-width: none;
        min-height: 0;
    }

    .bb-hero-actions .bb-btn,
    .bb-hero-actions .btn,
    .bb-dashboard-actions .bb-btn,
    .bb-dashboard-actions .btn,
    .bb-garage-actions .bb-btn,
    .bb-garage-actions .btn,
    .bb-admin-actions .bb-btn,
    .bb-admin-actions .btn,
    .bb-form-actions .bb-btn,
    .bb-form-actions .btn,
    .bb-event-action-row .bb-btn,
    .bb-event-action-row .btn,
    .bb-ride-action-row .bb-btn,
    .bb-ride-action-row .btn,
    .bb-profile-action-row .bb-btn,
    .bb-profile-action-row .btn,
    .actions .bb-btn,
    .actions .btn,
    .button-row .bb-btn,
    .button-row .btn,
    .filter-actions .bb-btn,
    .filter-actions .btn,
    .status-filters .bb-btn,
    .status-filters .btn {
        width: 100%;
    }

    .bb-hero-actions form,
    .bb-dashboard-actions form,
    .bb-garage-actions form,
    .bb-admin-actions form,
    .bb-form-actions form,
    .bb-event-action-row form,
    .bb-ride-action-row form,
    .bb-profile-action-row form,
    .actions form,
    .button-row form,
    .filter-actions form,
    .status-filters form {
        width: 100%;
    }

    .bb-hero-actions form .bb-btn,
    .bb-dashboard-actions form .bb-btn,
    .bb-garage-actions form .bb-btn,
    .bb-admin-actions form .bb-btn,
    .bb-form-actions form .bb-btn,
    .bb-event-action-row form .bb-btn,
    .bb-ride-action-row form .bb-btn,
    .bb-profile-action-row form .bb-btn,
    .actions form .bb-btn,
    .button-row form .bb-btn,
    .filter-actions form .bb-btn,
    .status-filters form .bb-btn {
        width: 100%;
    }

    .bb-card-grid,
    .bb-club-grid,
    .bb-event-grid,
    .bb-ride-grid,
    .bb-biker-grid,
    .bb-dashboard-grid,
    .bb-garage-grid,
    .bb-beta-grid,
    .bb-admin-grid,
    .bb-profile-info-grid,
    .bb-motorcycle-info-grid,
    .bb-info-grid,
    .bb-event-info-grid,
    .bb-ride-info-grid,
    .bb-detail-grid,
    .bb-gallery-grid,
    .bb-garage-gallery,
    .bb-related-grid {
        grid-template-columns: 1fr;
    }

    .bb-form-grid,
    .form-grid,
    .bb-admin-filters,
    .bb-filter-panel,
    .bb-event-filter-panel,
    .bb-ride-filter-panel,
    .bb-biker-filter-panel,
    .bb-garage-upload-form,
    .phone-input-group {
        grid-template-columns: 1fr;
    }

    .bb-form input:not([type="checkbox"]):not([type="radio"]),
    .bb-form select,
    .bb-form textarea,
    .bb-input,
    .bb-select,
    .bb-textarea,
    input,
    select,
    textarea {
        max-width: 100%;
    }

    .bb-modal-panel,
    .attendance-modal__panel,
    .poster-lightbox__content {
        width: min(100% - 24px, 560px);
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .bb-admin-nav {
        display: flex;
        flex-wrap: wrap;
    }

    .bb-admin-nav-link {
        flex: 1 1 150px;
    }

    .bb-admin-table,
    .bb-table,
    .admin-table table,
    .table-card table {
        min-width: 640px;
    }
}

/* Public biker profile hero actions: keep follow/save/report on the same baseline. */
.bb-biker-detail-hero .bb-biker-hero-actions,
.bb-biker-detail-hero .bb-public-profile-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .65rem;
    max-width: 100%;
}

.bb-biker-detail-hero .bb-biker-hero-actions .actions,
.bb-biker-detail-hero .bb-public-profile-actions .actions {
    display: contents;
}

.bb-biker-detail-hero .bb-biker-hero-actions form,
.bb-biker-detail-hero .bb-public-profile-actions form {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
}

.bb-biker-detail-hero .bb-biker-hero-actions .bb-btn,
.bb-biker-detail-hero .bb-public-profile-actions .bb-btn,
.bb-biker-detail-hero .bb-biker-hero-actions button,
.bb-biker-detail-hero .bb-public-profile-actions button,
.bb-biker-detail-hero .bb-biker-hero-actions a,
.bb-biker-detail-hero .bb-public-profile-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .bb-biker-detail-hero .bb-biker-hero-actions,
    .bb-biker-detail-hero .bb-public-profile-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .bb-biker-detail-hero .bb-biker-hero-actions form,
    .bb-biker-detail-hero .bb-public-profile-actions form,
    .bb-biker-detail-hero .bb-biker-hero-actions .bb-btn,
    .bb-biker-detail-hero .bb-public-profile-actions .bb-btn {
        width: 100%;
    }

    .bb-biker-detail-hero .bb-biker-hero-actions .bb-btn,
    .bb-biker-detail-hero .bb-public-profile-actions .bb-btn {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding-top: 18px;
        padding-bottom: 42px;
    }

    .bb-brand-logo {
        width: 120px;
        max-height: 48px;
    }

    .bb-hero {
        padding: 44px 0 38px;
    }

    .bb-hero-title,
    .bb-hero h1,
    .bb-admin-title,
    .bb-dashboard-title,
    .bb-beta-title {
        font-size: clamp(1.9rem, 13vw, 2.35rem);
    }

    .bb-section,
    .section,
    .bb-admin,
    .bb-dashboard,
    .bb-garage,
    .bb-beta-page {
        gap: 18px;
    }

    .bb-card,
    .bb-dashboard-card,
    .bb-garage-section,
    .bb-beta-card,
    .bb-admin-card,
    .bb-form-card,
    .bb-admin-table-wrap,
    .bb-admin-filters,
    .bb-admin-form,
    .bb-admin-timeline {
        border-radius: 18px;
    }

    .bb-btn,
    .btn,
    button,
    input[type="submit"] {
        min-height: 44px;
    }

    .bb-participant-item,
    .bb-admin-list-item,
    .bb-admin-compact-item,
    .bb-dashboard-list-item,
    .bb-reminder-card,
    .bb-service-record-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .bb-event-poster,
    .bb-biker-profile-avatar,
    .bb-club-detail-logo,
    .bb-motorcycle-detail-media,
    .bb-motorcycle-image,
    .bb-club-logo,
    .bb-biker-avatar {
        max-width: 100%;
    }

    .bb-badges,
    .bb-club-badges,
    .bb-biker-badges,
    .bb-event-badges,
    .bb-ride-badges,
    .bb-motorcycle-badges,
    .bb-admin-actions,
    .bb-action-row {
        gap: 8px;
    }

    .bb-admin-table,
    .bb-table,
    .admin-table table,
    .table-card table {
        min-width: 600px;
    }

    .bb-footer-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Moto Susreti hero hard-fix: stable shared hero/detail containment */
.bb-hero,
.bb-event-detail-hero {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.bb-hero-layout {
    width: min(100%, 1320px);
    max-width: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.bb-hero-copy,
.bb-hero-stat-card {
    min-width: 0;
    max-width: 100%;
}

.bb-hero-stat-card {
    width: 100%;
    max-width: 460px;
    justify-self: end;
}

body.bb-theme .bb-hero.bb-hero-events .bb-hero-layout {
    width: min(100% - 4rem, 1400px);
    margin-inline: auto;
}

body.bb-theme .bb-hero.bb-hero-events .bb-hero-copy {
    max-width: 780px;
}

body.bb-theme .bb-hero.bb-hero-events .bb-hero-stat-card,
body.bb-theme .bb-hero.bb-hero-events .bb-event-hero-card {
    max-width: 500px;
    justify-self: end;
}

.bb-event-detail-hero {
    min-height: auto;
    display: grid;
    align-items: center;
    padding: clamp(3rem, 7vw, 6rem) 1rem;
    background:
        linear-gradient(90deg, rgba(3,8,12,.96) 0%, rgba(3,8,12,.78) 52%, rgba(3,8,12,.52) 100%),
        url('/images/ui/hero-events.jpg') center / cover no-repeat;
}

.bb-event-detail-hero::before,
.bb-event-detail-hero .bb-detail-hero-overlay {
    content: none;
    display: none;
}

.bb-event-detail-hero-layout {
    position: relative;
    z-index: 1;
    width: min(100%, 1320px);
    max-width: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.bb-event-detail-hero-layout > .bb-event-poster--hero {
    display: none;
}

.bb-event-detail-copy,
.bb-event-detail-side-card {
    min-width: 0;
    max-width: 100%;
}

.bb-event-detail-copy {
    display: grid;
    gap: 1rem;
}

.bb-event-detail-side-card {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    display: grid;
    gap: .9rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(249, 115, 22, .28);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 44%),
        rgba(12, 18, 28, .9);
    box-shadow: var(--shadow-soft);
}

.bb-event-detail-side-card h2 {
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.bb-event-detail-side-card dl {
    display: grid;
    gap: .85rem;
    margin: 0;
}

.bb-event-detail-side-card dt {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bb-event-detail-side-card dd {
    margin: .15rem 0 0;
    color: var(--text);
    font-weight: 850;
}

.bb-event-detail-title {
    color: var(--text);
    font-size: clamp(2.7rem, 7vw, 5.75rem);
    line-height: .96;
    letter-spacing: -.045em;
}

.bb-event-detail-subtitle,
.bb-event-detail-meta {
    max-width: 760px;
    color: var(--text-soft);
}

.bb-event-detail-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.bb-event-hero-excerpt {
    max-width: 760px;
    margin-bottom: 0.35rem;
}

.bb-event-read-more {
    display: inline-flex;
    margin-top: 0.1rem;
    margin-bottom: 0.85rem;
    color: var(--accent);
    font-weight: 850;
    text-decoration: none;
}

.bb-event-read-more:hover,
.bb-event-read-more:focus {
    color: #fff;
}

.bb-event-detail-meta a {
    color: #fed7aa;
}

.bb-hero-title,
.bb-event-detail-title,
.bb-event-hero-title,
.bb-event-card-title {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.bb-hero-actions,
.bb-event-action-row,
.bb-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    max-width: 100%;
}

@media (max-width: 768px) {
    .bb-hero-layout,
    .bb-event-detail-hero-layout {
        grid-template-columns: 1fr;
    }

    .bb-hero-stat-card,
    .bb-event-detail-side-card {
        justify-self: stretch;
        max-width: none;
        width: 100%;
    }

    .bb-hero-title,
    .bb-event-detail-title {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
        line-height: .95;
    }

    .bb-hero-actions,
    .bb-event-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .bb-hero-actions .bb-btn,
    .bb-event-action-row .bb-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    body.bb-theme .bb-hero.bb-hero-events .bb-hero-layout {
        width: min(100% - 3rem, 1120px);
    }
}

@media (max-width: 768px) {
    body.bb-theme .bb-hero.bb-hero-events .bb-hero-layout {
        width: min(100% - 2rem, 100%);
        grid-template-columns: 1fr;
    }

    body.bb-theme .bb-hero.bb-hero-events .bb-hero-stat-card,
    body.bb-theme .bb-hero.bb-hero-events .bb-event-hero-card {
        justify-self: stretch;
        max-width: none;
    }
}

/* Selective UX Fix Pass 1 */
.bb-hero-card,
.bb-hero-stat-card,
.bb-event-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.bb-hero-card .bb-hero-card__glow {
    position: absolute;
}

.bb-hero-card h2,
.bb-hero-stat-card h2,
.bb-event-hero-card h2 {
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.bb-btn-primary:hover,
.bb-btn-primary:focus,
.bb-btn-primary:focus-visible,
button.bb-btn-primary:hover,
button.bb-btn-primary:focus,
input[type="submit"].bb-btn-primary:hover,
input[type="submit"].bb-btn-primary:focus {
    border-color: rgba(249, 115, 22, .95);
    background: linear-gradient(180deg, #ea580c, #c2410c);
    color: #fff;
}

.bb-btn-primary:hover *,
.bb-btn-primary:focus * {
    color: inherit;
}

.bb-card-grid .bb-club-card .bb-card-topline {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}

.bb-card-grid .bb-club-card .bb-card-topline .badge {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.bb-club-grid .bb-club-card .club-card__cover {
    display: none;
}

.bb-ride-detail-hero {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    min-height: auto;
    display: grid;
    align-items: center;
}

.bb-ride-detail-inner {
    width: min(100% - 4rem, 1320px);
    max-width: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.bb-ride-detail-inner .bb-detail-hero-content,
.bb-ride-join-card {
    min-width: 0;
    max-width: 100%;
}

.bb-ride-detail-inner .bb-detail-hero-content h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.bb-ride-join-card {
    width: 100%;
    max-width: 420px;
    justify-self: end;
}

.bb-ride-action-row {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .bb-ride-detail-inner {
        width: min(100% - 3rem, 1120px);
    }
}

@media (max-width: 768px) {
    .bb-card-grid .bb-club-card .bb-card-topline {
        flex-wrap: wrap;
        overflow: visible;
    }

    .bb-ride-detail-inner {
        width: min(100% - 2rem, 100%);
        grid-template-columns: 1fr;
    }

    .bb-ride-join-card {
        justify-self: stretch;
        max-width: none;
    }
}

/* Selective UX Fix Pass 4: polished event detail poster layout */
body.bb-theme .bb-event-detail-page {
    max-width: 100%;
}

body.bb-theme .bb-event-detail-hero {
    padding: clamp(2.75rem, 6vw, 5.5rem) 0;
}

body.bb-theme .bb-event-detail-hero-layout {
    width: min(100% - 4rem, 1320px);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
}

body.bb-theme .bb-event-detail-hero-layout > .bb-event-detail-side-card {
    display: none;
}

body.bb-theme .bb-event-detail-copy {
    align-content: center;
    max-width: 820px;
}

body.bb-theme .bb-event-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

body.bb-theme .bb-event-poster-card {
    min-width: 0;
    width: 100%;
    max-width: 430px;
    justify-self: end;
    border: 1px solid rgba(249, 115, 22, .3);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 42%),
        rgba(9, 14, 22, .88);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: .75rem;
}

body.bb-theme .bb-event-poster-frame {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(3, 8, 12, .94);
}

body.bb-theme .bb-event-poster-image {
    display: block;
    width: 100%;
    max-height: 590px;
    height: auto;
    object-fit: contain;
    background: rgba(3, 8, 12, .94);
}

body.bb-theme .bb-event-poster-placeholder {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-soft);
    background:
        radial-gradient(circle at 50% 10%, rgba(249, 115, 22, .18), transparent 38%),
        linear-gradient(145deg, rgba(15, 23, 42, .95), rgba(3, 8, 12, .98));
}

body.bb-theme .bb-event-poster-placeholder span {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 900;
}

body.bb-theme .bb-event-poster-placeholder strong {
    color: #fed7aa;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1;
}

body.bb-theme .bb-event-description-card {
    line-height: 1.75;
}

body.bb-theme .bb-event-description-card p:last-child {
    white-space: normal;
}

@media (max-width: 1024px) {
    body.bb-theme .bb-event-detail-hero-layout {
        width: min(100% - 3rem, 1120px);
        grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    }
}

@media (max-width: 768px) {
    body.bb-theme .bb-event-detail-hero-layout {
        width: min(100% - 2rem, 100%);
        grid-template-columns: 1fr;
    }

    body.bb-theme .bb-event-poster-card {
        justify-self: stretch;
        max-width: none;
    }

    body.bb-theme .bb-event-poster-placeholder {
        min-height: 280px;
    }
}

/* Event detail content remodeling: poster below hero + main/sidebar body */
body.bb-theme .bb-event-body {
    padding-top: clamp(2rem, 5vw, 4rem);
}

body.bb-theme .bb-event-body-layout {
    width: min(100% - 4rem, 1320px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(280px, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
    align-items: start;
}

body.bb-theme .bb-event-main-column,
body.bb-theme .bb-event-sidebar {
    min-width: 0;
}

body.bb-theme .bb-event-main-column {
    display: grid;
    gap: 1.25rem;
}

body.bb-theme .bb-event-intro-grid {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
    gap: 1.25rem;
    align-items: stretch;
}

body.bb-theme .bb-event-body .bb-event-poster-card {
    max-width: none;
    justify-self: stretch;
    height: 100%;
}

body.bb-theme .bb-event-poster-link {
    position: relative;
    display: grid;
    min-height: 100%;
    color: var(--text);
    text-decoration: none;
}

body.bb-theme .bb-event-poster-link span {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(249, 115, 22, .35);
    border-radius: 999px;
    background: rgba(3, 8, 12, .78);
    color: #fed7aa;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.bb-theme .bb-event-body .bb-event-poster-image {
    height: 100%;
    min-height: 420px;
    max-height: 640px;
    object-fit: contain;
}

body.bb-theme .bb-event-mobile-poster {
    display: none;
    width: min(100% - 4rem, 1320px);
    margin: 0 auto 1.25rem;
}

body.bb-theme .bb-event-sidebar-poster {
    display: block;
    padding: 0.85rem;
    overflow: hidden;
}

body.bb-theme .bb-event-sidebar-poster .bb-event-poster-frame {
    border-radius: 18px;
}

body.bb-theme .bb-event-sidebar-poster .bb-event-poster-image {
    height: auto;
    min-height: 0;
    max-height: 520px;
    object-fit: contain;
}

body.bb-theme .bb-event-sidebar-poster .bb-event-poster-placeholder {
    min-height: 260px;
}

body.bb-theme .bb-event-description-card,
body.bb-theme .bb-event-section-card,
body.bb-theme .bb-event-sidebar-card,
body.bb-theme .bb-event-sidebar .bb-sidebar-card {
    border: 1px solid rgba(148, 163, 184, .18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 42%),
        rgba(9, 14, 22, .86);
}

body.bb-theme .bb-event-section-title {
    margin-bottom: .75rem;
}

body.bb-theme .bb-event-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

body.bb-theme .bb-event-detail-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

body.bb-theme .bb-event-detail-meta-list span {
    padding: .45rem .7rem;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(15, 23, 42, .72);
    font-size: .88rem;
}

body.bb-theme .bb-event-sidebar {
    display: grid;
    gap: 1rem;
}

@media (max-width: 1024px) {
    body.bb-theme .bb-event-body-layout {
        width: min(100% - 3rem, 1120px);
        grid-template-columns: 1fr;
    }

    body.bb-theme .bb-event-mobile-poster {
        display: block;
        width: min(100% - 3rem, 1120px);
    }

    body.bb-theme .bb-event-sidebar-poster {
        display: none;
    }
}

@media (max-width: 768px) {
    body.bb-theme .bb-event-body-layout {
        width: min(100% - 2rem, 100%);
    }

    body.bb-theme .bb-event-mobile-poster {
        width: min(100% - 2rem, 100%);
    }

    body.bb-theme .bb-event-intro-grid {
        grid-template-columns: 1fr;
    }

    body.bb-theme .bb-event-body .bb-event-poster-image {
        min-height: 280px;
        max-height: 560px;
    }
}

/* Selective UX Fix Pass 5: motorcycle photos deprecated from Garage UI */
body.bb-theme .bb-motorcycle-card,
body.bb-theme .bb-public-motorcycle-card {
    align-content: start;
}

body.bb-theme .bb-motorcycle-detail-header {
    grid-template-columns: minmax(0, 1fr);
}

body.bb-theme .bb-motorcycle-image,
body.bb-theme .bb-motorcycle-placeholder,
body.bb-theme .bb-motorcycle-detail-media,
body.bb-theme .bb-garage-gallery,
body.bb-theme .bb-garage-gallery-item,
body.bb-theme .bb-public-motorcycle-image,
body.bb-theme .bb-public-motorcycle-placeholder,
body.bb-theme .bb-public-motorcycle-gallery {
    display: none;
}

/* Selective UX Fix Pass 6: structured moto susret schedule */
body.bb-theme .bb-event-schedule-management {
    display: grid;
    gap: 1.25rem;
}

body.bb-theme .bb-event-schedule-form,
body.bb-theme .bb-event-program-card {
    background: rgba(10, 15, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem;
}

body.bb-theme .bb-event-program-list {
    display: grid;
    gap: 0.9rem;
}

body.bb-theme .bb-event-program-item {
    position: relative;
    overflow: hidden;
}

body.bb-theme .bb-event-program-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #ff7a18, #ffb347);
    opacity: 0.95;
}

body.bb-theme .bb-event-program-date,
body.bb-theme .bb-event-program-time,
body.bb-theme .bb-event-program-location {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    margin: 0 0 0.4rem;
}

body.bb-theme .bb-event-program-title {
    color: #fff;
    font-size: 1.12rem;
    margin: 0 0 0.35rem;
}

body.bb-theme .bb-event-program-description {
    color: rgba(255, 255, 255, 0.78);
    margin: 0.25rem 0;
}

body.bb-theme .bb-event-program-empty {
    margin-top: 0.5rem;
}

body.bb-theme .bb-event-schedule-management details {
    margin-top: 0.9rem;
}

body.bb-theme .bb-event-schedule-management summary {
    cursor: pointer;
    color: #ffb347;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

body.bb-theme .bb-event-schedule-manager {
    display: grid;
    gap: 1rem;
}

body.bb-theme .bb-event-schedule-list {
    display: grid;
    gap: 1rem;
}

body.bb-theme .bb-event-schedule-block,
body.bb-theme .bb-event-schedule-item-form {
    background: rgba(5, 10, 14, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem;
}

body.bb-theme .bb-event-schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.bb-theme .bb-schedule-remove-button[hidden] {
    display: none;
}

/* Selective UX Fix Pass 7: profile reminders and club shortcut cards */
body.bb-theme .bb-club-dashboard-grid,
body.bb-theme .bb-profile-reminders {
    min-width: 0;
}

body.bb-theme .bb-reminder-list {
    display: grid;
    gap: 1rem;
}

body.bb-theme .bb-reminder-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    background: rgba(10, 15, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1rem;
}

body.bb-theme .bb-reminder-card h3 {
    color: #fff;
    margin: 0.15rem 0 0.35rem;
}

body.bb-theme .bb-reminder-card p {
    margin: 0.25rem 0;
}

body.bb-theme .bb-reminder-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.72);
}

/* Ride detail info-card refinement */
body.bb-theme .bb-ride-join-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
}

body.bb-theme .bb-ride-join-card form {
    display: flex;
    justify-content: center;
    width: 100%;
}

body.bb-theme .bb-ride-info-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

body.bb-theme .bb-ride-info-card {
    min-height: 112px;
}

body.bb-theme .bb-ride-location-card {
    grid-column: 1 / -1;
    min-height: 0;
}

body.bb-theme .bb-ride-location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-top: 0.85rem;
}

body.bb-theme .bb-ride-location-part {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
    min-width: 0;
}

body.bb-theme .bb-ride-location-label {
    display: inline;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

body.bb-theme .bb-ride-location-value {
    display: inline;
    margin: 0;
    color: var(--text);
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    body.bb-theme .bb-event-program-card,
    body.bb-theme .bb-event-schedule-form {
        padding: 0.9rem;
    }

    body.bb-theme .bb-ride-info-grid {
        grid-template-columns: 1fr;
    }

    body.bb-theme .bb-reminder-card {
        grid-template-columns: 1fr;
    }

    body.bb-theme .bb-reminder-card__meta {
        justify-content: flex-start;
    }
}

body.bb-theme .bb-event-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 1.25rem;
    max-width: 920px;
}

body.bb-theme .bb-event-detail-hero .bb-event-hero-actions {
    flex-wrap: wrap;
    max-width: 100%;
}

body.bb-theme .bb-event-hero-actions .bb-btn,
body.bb-theme .bb-event-hero-actions .btn,
body.bb-theme .bb-event-hero-actions button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 0.82rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

body.bb-theme .bb-event-hero-actions form,
body.bb-theme .bb-event-hero-actions .actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    margin: 0;
}

body.bb-theme .bb-event-hero-actions .bb-event-action-primary {
    min-width: 150px;
    font-weight: 800;
}

body.bb-theme .bb-event-hero-actions .bb-event-action-secondary,
body.bb-theme .bb-event-hero-actions .btn {
    min-width: 0;
}

body.bb-theme .bb-event-hero-actions .bb-event-action-club {
    border-color: rgba(249, 115, 22, 0.65);
    color: #fff;
}

body.bb-theme .bb-event-hero-actions .bb-event-action-danger {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.12);
    color: #fecaca;
}

body.bb-theme .bb-event-hero-actions .bb-event-action-danger:hover,
body.bb-theme .bb-event-hero-actions .bb-event-action-danger:focus {
    border-color: rgba(248, 113, 113, 0.85);
    background: rgba(220, 38, 38, 0.22);
    color: #fff;
}

body.bb-theme .bb-event-auth-helper {
    margin: 0.25rem 0 -0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

@media (max-width: 1100px) {
    body.bb-theme .bb-event-detail-hero .bb-event-hero-actions {
        overflow-x: visible;
        padding-bottom: 0.25rem;
    }
}

@media (max-width: 640px) {
    body.bb-theme .bb-event-hero-actions,
    body.bb-theme .bb-event-detail-hero .bb-event-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        max-width: none;
        overflow-x: visible;
        padding-bottom: 0;
    }

    body.bb-theme .bb-event-hero-actions .bb-btn,
    body.bb-theme .bb-event-hero-actions .btn,
    body.bb-theme .bb-event-hero-actions button,
    body.bb-theme .bb-event-hero-actions form,
    body.bb-theme .bb-event-hero-actions .actions {
        width: 100%;
    }

    body.bb-theme .bb-event-hero-actions .bb-btn,
    body.bb-theme .bb-event-hero-actions .btn,
    body.bb-theme .bb-event-hero-actions button {
        white-space: normal;
    }
}

body.bb-theme .bb-club-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    max-width: 100%;
}

body.bb-theme .bb-club-hero-actions .bb-btn,
body.bb-theme .bb-club-hero-actions .btn,
body.bb-theme .bb-club-hero-actions button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.62rem 0.82rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

body.bb-theme .bb-club-hero-actions form,
body.bb-theme .bb-club-hero-actions .actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    margin: 0;
}

body.bb-theme .bb-club-hero-actions .bb-club-action-primary {
    min-width: 132px;
    font-weight: 800;
}

body.bb-theme .bb-club-hero-actions .bb-club-action-secondary,
body.bb-theme .bb-club-hero-actions .btn {
    min-width: 0;
}

body.bb-theme .bb-club-hero-actions .bb-club-action-events {
    border-color: rgba(249, 115, 22, 0.65);
    color: #fff;
}

body.bb-theme .bb-club-hero-actions .bb-club-action-danger {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.12);
    color: #fecaca;
}

body.bb-theme .bb-club-hero-actions .bb-club-action-danger:hover,
body.bb-theme .bb-club-hero-actions .bb-club-action-danger:focus {
    border-color: rgba(248, 113, 113, 0.85);
    background: rgba(220, 38, 38, 0.22);
    color: #fff;
}

@media (max-width: 1024px) {
    body.bb-theme .bb-club-hero-actions {
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scrollbar-width: thin;
    }
}

@media (max-width: 640px) {
    body.bb-theme .bb-club-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
        max-width: none;
        overflow-x: visible;
        padding-bottom: 0;
    }

    body.bb-theme .bb-club-hero-actions .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    body.bb-theme .bb-club-hero-actions .bb-btn,
    body.bb-theme .bb-club-hero-actions .btn,
    body.bb-theme .bb-club-hero-actions button,
    body.bb-theme .bb-club-hero-actions form,
    body.bb-theme .bb-club-hero-actions .actions {
        width: 100%;
    }

    body.bb-theme .bb-club-hero-actions .bb-btn,
    body.bb-theme .bb-club-hero-actions .btn,
    body.bb-theme .bb-club-hero-actions button {
        white-space: normal;
    }
}

body.bb-theme .bb-club-sidebar {
    min-width: 0;
}

body.bb-theme .bb-club-sidebar-card {
    gap: 0.85rem;
    padding: 1rem;
}

body.bb-theme .bb-club-detail-stats .bb-info-card {
    align-items: start;
    min-height: 0;
}

body.bb-theme .bb-club-info-card-value,
body.bb-theme .bb-club-detail-stats .bb-info-card strong {
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.22;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

body.bb-theme .bb-club-sidebar-card-title {
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
    hyphens: none;
}

body.bb-theme .bb-club-sidebar .bb-info-list {
    gap: 0.85rem;
}

body.bb-theme .bb-club-sidebar .bb-info-list > div {
    gap: 0.25rem;
}

body.bb-theme .bb-club-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.15rem 0 0.1rem;
}

body.bb-theme .bb-club-status-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

body.bb-theme .bb-club-quick-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.2rem;
}

body.bb-theme .bb-club-quick-actions a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    padding: 0.75rem 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    body.bb-theme .bb-club-sidebar-card-title {
        font-size: clamp(1.25rem, 6vw, 1.6rem);
    }
}
