
:root {
    --bem-red: #e20f19;
    --bem-blue: #02519c;
    --bem-yellow: #fedd04;
    --bem-green: #0f9861;
    --bem-blue-alt: #ffdd00;
    --bem-dark: #0b2240;
    --bem-cream: #fffdf2;
    --bem-surface: #dbe4f0;
    --bem-surface-2: #cdd9e8;
    --bem-ink: #08172d;
    --bem-ink-soft: #123053;

    --bs-primary: var(--bem-blue);
    --bs-primary-rgb: 2, 81, 156;
    --bs-warning: var(--bem-yellow);
    --bs-warning-rgb: 254, 221, 4;
    --bs-danger: var(--bem-red);
    --bs-danger-rgb: 226, 15, 25;
    --bs-success: var(--bem-green);
    --bs-success-rgb: 15, 152, 97;
    --bs-link-color: var(--bem-blue);
    --bs-link-hover-color: #013d74;
    --bem-footer-col-nav: 1fr;
    --bem-footer-col-events: 1.7fr;
    --bem-footer-col-legal: 1fr;
    --bem-footer-col-org: 1.7fr;
    --bem-logo-height-desktop: 120px;
    --bem-logo-height-compact: 44px;
    --bem-logo-height-mobile: 28px;
    --bem-brand-stripe: linear-gradient(
        90deg,
        var(--bem-red) 0%,
        var(--bem-red) 25%,
        var(--bem-green) 25%,
        var(--bem-green) 50%,
        var(--bem-yellow) 50%,
        var(--bem-yellow) 75%,
        var(--bem-blue) 75%,
        var(--bem-blue) 100%
    );
}

.btn-primary {
    background: linear-gradient(135deg, #0d63bf 0%, #02519c 70%, #01427f 100%);
    border-color: #02519c;
    border-radius: 2px;
    box-shadow: 0 10px 22px rgba(2, 81, 156, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0b57a6 0%, #02498f 70%, #013d74 100%);
    border-color: #013d74;
}

.btn-success {
    background: linear-gradient(135deg, #13a56a 0%, #0f9861 70%, #0a7b4f 100%);
    border-color: #0f9861;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(10, 123, 79, 0.25);
}

.btn-success:hover,
.btn-success:focus {
    background: linear-gradient(135deg, #108f5d 0%, #0c8252 70%, #086945 100%);
    border-color: #086945;
}

.btn-warning {
    color: #2e2300;
    background: linear-gradient(135deg, #ffe347 0%, #fedd04 100%);
    border-color: #e0c502;
    border-radius: 2px;
}

.btn-warning:hover,
.btn-warning:focus {
    color: #2e2300;
    background: linear-gradient(135deg, #f7d92f 0%, #ebcf03 100%);
    border-color: #cdb402;
}

.btn-danger {
    background: linear-gradient(135deg, #f12530 0%, #e20f19 70%, #c60d15 100%);
    border-color: #c60d15;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(226, 15, 25, 0.25);
}

.btn-danger:hover,
.btn-danger:focus {
    background: linear-gradient(135deg, #db1822 0%, #cb1019 70%, #b10d15 100%);
    border-color: #b10d15;
}

.btn-outline-primary {
    color: var(--bem-blue);
    border-color: rgba(2, 81, 156, 0.5);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #06243f;
    background: rgba(254, 221, 4, 0.85);
    border-color: rgba(254, 221, 4, 0.95);
}

.btn-outline-dark {
    color: var(--bem-ink);
    border-color: rgba(8, 23, 45, 0.48);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: #f2f6fd;
    background: var(--bem-ink);
    border-color: var(--bem-ink);
}

.badge.text-bg-warning {
    background-color: var(--bem-yellow) !important;
    color: #332500 !important;
}

.badge.text-bg-success {
    background-color: var(--bem-green) !important;
    color: #f2fff8 !important;
}

.badge.text-bg-secondary {
    background-color: #2e4f76 !important;
    color: #f0f5fb !important;
}

.badge.text-bg-danger {
    background-color: var(--bem-red) !important;
    color: #fff5f6 !important;
}

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background:
        radial-gradient(circle at 100% -10%, rgba(2, 81, 156, 0.2), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(11, 34, 64, 0.14), transparent 40%),
        linear-gradient(180deg, #edf2f9 0%, var(--bem-surface) 100%);
    color: var(--bem-dark);
}

h1, .h1 {
    font-family: 'Staatliches', Impact, sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.05;
}

.nav-link {
    color: #173556;
}

.nav-link:hover {
    color: var(--bem-red);
}

.bem-logo {
    width: auto;
    height: 42px;
    object-fit: contain;
    background: transparent;
}

.bem-hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(2, 81, 156, 0.2), transparent 44%),
        radial-gradient(circle at 88% 6%, rgba(11, 34, 64, 0.18), transparent 38%),
        linear-gradient(135deg, #e9f0f9 0%, var(--bem-surface-2) 100%);
}

.bem-hero.has-hero-images {
    background: #19385f;
}

.bem-hero.has-hero-images,
.bem-hero.has-hero-images h1,
.bem-hero.has-hero-images h2,
.bem-hero.has-hero-images p,
.bem-hero.has-hero-images .lead,
.bem-hero.has-hero-images .bem-hero-subtitle,
.bem-hero.has-hero-images .bem-hero-subtitle p,
.bem-hero.has-hero-images .bem-hero-subtitle li {
    color: #f2f6fd;
}

.bem-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.55;
}

.bem-hero-subtitle > :first-child {
    margin-top: 0;
}

.bem-hero-subtitle > :last-child {
    margin-bottom: 0;
}

.bem-hero-subtitle p {
    margin-bottom: 0.65rem;
}

.bem-hero-subtitle h2,
.bem-hero-subtitle h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

.bem-hero-subtitle ul,
.bem-hero-subtitle ol {
    margin-bottom: 0.65rem;
    padding-left: 1.25rem;
}

.bem-hero-subtitle a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.bem-hero.has-hero-images .bem-hero-subtitle a {
    color: #e8f1ff;
}

.bem-hero:not(.has-hero-images) .bem-hero-subtitle a {
    color: var(--bem-blue, #02519c);
}

.bem-navbar {
    backdrop-filter: saturate(1.2) blur(3px);
    background: rgba(245, 250, 255, 0.88) !important;
    border-bottom-color: rgba(8, 23, 45, 0.14) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.bem-navbar .navbar-brand span {
    font-family: 'Staatliches', Impact, sans-serif;
    letter-spacing: 0.04em;
    color: var(--bem-blue);
}

.bem-navbar-inner {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    align-items: center;
}

.bem-navbar-toggler {
    border-color: rgba(8, 23, 45, 0.2);
}

.bem-navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 8px;
    background: var(--bem-brand-stripe);
}

@media (min-width: 992px) {
    .bem-logo {
        height: var(--bem-logo-height-desktop);
    }

    .bem-navbar--compact {
        background: rgba(245, 250, 255, 0.96) !important;
        box-shadow: 0 6px 16px rgba(8, 23, 45, 0.1);
    }

    .bem-navbar--compact .bem-navbar-inner {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .bem-navbar--compact .navbar-brand {
        gap: 0.35rem !important;
    }

    .bem-navbar--compact .bem-logo {
        height: var(--bem-logo-height-compact);
    }

    .bem-navbar--compact .navbar-brand span {
        font-size: 0.84rem;
        line-height: 1;
    }

    .bem-navbar--compact .navbar-nav {
        gap: 0.15rem !important;
    }

    .bem-navbar--compact .nav-link {
        font-size: 0.86rem;
        line-height: 1.1;
        padding-left: 0.38rem;
        padding-right: 0.38rem;
        padding-top: 0.28rem;
        padding-bottom: 0.28rem;
    }

    .bem-navbar--compact .btn.btn-outline-primary.btn-sm {
        font-size: 0.76rem;
        line-height: 1.15;
        padding-left: 0.48rem;
        padding-right: 0.48rem;
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }
}

@media (max-width: 767px) {
    .bem-navbar-inner {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .bem-navbar .navbar-brand {
        gap: 0.4rem !important;
    }

    .bem-navbar .navbar-brand span {
        font-size: 0.9rem;
        line-height: 1;
    }

    .bem-logo {
        height: var(--bem-logo-height-mobile);
    }

    .bem-navbar-toggler {
        padding: 0.2rem 0.4rem;
        font-size: 0.85rem;
    }

    .bem-navbar-toggler .navbar-toggler-icon {
        width: 1.1rem;
        height: 1.1rem;
    }

    .bem-navbar .navbar-collapse {
        margin-top: 0.35rem;
        padding: 0.45rem 0.6rem;
        border-radius: 0.65rem;
        border: 1px solid rgba(8, 23, 45, 0.12);
        background: rgba(255, 255, 255, 0.96);
    }

    .bem-navbar .nav-link {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .bem-navbar .btn.btn-outline-primary.btn-sm {
        width: 100%;
        margin-top: 0.25rem;
    }

    .bem-navbar::after {
        height: 5px;
    }
}

.bem-hero-media-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bem-hero-media {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 1s ease;
}

.bem-hero-media.is-active {
    opacity: 1;
}

.bem-hero > .container {
    position: relative;
    z-index: 2;
}

.bem-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(232, 240, 250, 0.72) 0%, rgba(220, 231, 245, 0.86) 100%);
    z-index: 1;
}

.bem-hero.has-hero-images::after {
    background: linear-gradient(180deg, rgba(8, 23, 45, 0.35) 0%, rgba(8, 23, 45, 0.65) 100%);
}

.bem-hero.has-hero-images h1,
.bem-hero.has-hero-images .h1 {
    color: var(--bem-yellow);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.bem-pill {
    border: 1px solid rgba(8, 23, 45, 0.18);
    background: rgba(246, 250, 255, 0.8);
    backdrop-filter: blur(4px);
}

.timeline-node {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--bem-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(2, 81, 156, 0.2);
}

.bem-inline-countdown {
    margin-left: auto;
    padding: 0.3rem;
    border-radius: 0.8rem;
    background:
        linear-gradient(90deg, rgba(226, 15, 25, 0.12), rgba(15, 152, 97, 0.12), rgba(254, 221, 4, 0.16), rgba(2, 81, 156, 0.14));
    border: 1px solid rgba(8, 23, 45, 0.12);
}

.bem-inline-countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(52px, auto));
    gap: 0.4rem;
}

.bem-inline-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(8, 23, 45, 0.14);
    background: rgba(255, 255, 255, 0.92);
    min-height: 52px;
    box-shadow: 0 3px 8px rgba(8, 23, 45, 0.08);
}

.bem-inline-countdown-item:nth-child(1) {
    border-color: rgba(226, 15, 25, 0.35);
}

.bem-inline-countdown-item:nth-child(2) {
    border-color: rgba(15, 152, 97, 0.38);
}

.bem-inline-countdown-item:nth-child(3) {
    border-color: rgba(224, 197, 2, 0.5);
}

.bem-inline-countdown-item:nth-child(4) {
    border-color: rgba(2, 81, 156, 0.38);
}

.bem-inline-countdown-value {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    color: var(--bem-ink);
    font-variant-numeric: tabular-nums;
}

.bem-inline-countdown-label {
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b6481;
    margin-top: 0.1rem;
}

@media (max-width: 767px) {
    .bem-inline-countdown {
        width: 100%;
        margin-left: 0;
    }

    .bem-inline-countdown-grid {
        grid-template-columns: repeat(4, minmax(44px, 1fr));
    }
}

.bem-coming-soon-page {
    background:
        radial-gradient(circle at 15% 15%, rgba(2, 81, 156, 0.22), transparent 42%),
        radial-gradient(circle at 85% 85%, rgba(11, 34, 64, 0.2), transparent 44%),
        linear-gradient(150deg, #e7edf6 0%, #d3deeb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bem-coming-soon-page main {
    flex: 1 0 auto;
}

.bem-coming-soon-card {
    background: linear-gradient(170deg, #f9fcff 0%, #edf3fb 100%);
    border: 1px solid rgba(8, 23, 45, 0.16);
}

.bem-sponsor-box {
    background: rgba(8, 23, 45, 0.06);
    border: 1px solid rgba(8, 23, 45, 0.22);
}

.bem-unesco-badge {
    color: #fff;
    background: linear-gradient(90deg, var(--bem-red) 0%, var(--bem-blue) 100%);
}

.bem-countdown-wrap {
    background: linear-gradient(145deg, rgba(8, 23, 45, 0.18) 0%, rgba(2, 81, 156, 0.18) 100%);
    border: 1px solid rgba(8, 23, 45, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 24px rgba(8, 23, 45, 0.12);
}

.bem-countdown-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.94) 100%);
    border: 1px solid rgba(2, 81, 156, 0.22);
    box-shadow: 0 8px 16px rgba(2, 81, 156, 0.14);
    position: relative;
    overflow: hidden;
    perspective: 420px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.bem-countdown-item::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 1px;
    background: rgba(8, 23, 45, 0.15);
    pointer-events: none;
}

.bem-flap-digit {
    position: relative;
    --flap-digit-height: 3.2rem;
    width: 100%;
    height: var(--flap-digit-height);
    margin-bottom: 0;
    transform-style: preserve-3d;
}

.bem-flap-half {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    font-size: clamp(2rem, 4.6vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #0f2f50;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(8, 23, 45, 0.02) 100%);
}

.bem-flap-half span {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--flap-digit-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bem-flap-half-top {
    top: 0;
    border-top-left-radius: 0.35rem;
    border-top-right-radius: 0.35rem;
    transform-origin: center bottom;
}

.bem-flap-half-top span {
    top: 0;
}

.bem-flap-half-bottom {
    bottom: 0;
    border-bottom-left-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
    transform-origin: center top;
}

.bem-flap-half-bottom span {
    top: calc(var(--flap-digit-height) * -0.5);
}

.bem-flap-flip {
    z-index: 3;
    pointer-events: none;
    visibility: hidden;
    backface-visibility: hidden;
}

.bem-flap-flip-top {
    top: 0;
    transform-origin: center bottom;
}

.bem-flap-flip-bottom {
    bottom: 0;
    transform-origin: center top;
}

.bem-flap-flip-bottom span {
    top: calc(var(--flap-digit-height) * -0.5);
}

.bem-flap-digit.is-animating .bem-flap-flip {
    visibility: visible;
}

.bem-flap-digit.is-animating .bem-flap-flip-top {
    animation: bemFlipTop 270ms ease-in forwards;
}

.bem-flap-digit.is-animating .bem-flap-flip-bottom {
    animation: bemFlipBottom 290ms 255ms ease-out forwards;
}

.bem-countdown-label {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    line-height: 1.1;
    color: #385b81;
    position: relative;
    z-index: 2;
    text-align: center;
}

@keyframes bemFlipTop {
    0% {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
    100% {
        transform: rotateX(-90deg);
        filter: brightness(0.92);
    }
}

@keyframes bemFlipBottom {
    0% {
        transform: rotateX(90deg);
        filter: brightness(1.12);
    }
    100% {
        transform: rotateX(0deg);
        filter: brightness(1);
    }
}

.admin-body {
    background:
        radial-gradient(circle at 0% 0%, rgba(2, 81, 156, 0.14), transparent 42%),
        radial-gradient(circle at 100% 100%, rgba(11, 34, 64, 0.15), transparent 40%),
        linear-gradient(180deg, #eef3fa 0%, #dde7f3 100%);
    min-height: 100vh;
}

.admin-topbar {
    background: rgba(249, 252, 255, 0.92);
    backdrop-filter: blur(6px);
    position: relative;
}

.admin-topbar::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: var(--bem-brand-stripe);
}

.admin-sidebar {
    position: sticky;
    top: 88px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
    border: 1px solid rgba(8, 23, 45, 0.1);
}

.admin-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    color: #173556;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.admin-nav-link:hover {
    background: rgba(254, 221, 4, 0.24);
    border-color: rgba(2, 81, 156, 0.15);
    color: #0a477f;
}

.admin-nav-link.is-active {
    background: linear-gradient(135deg, rgba(2, 81, 156, 0.18) 0%, rgba(254, 221, 4, 0.24) 100%);
    border-color: rgba(2, 81, 156, 0.28);
    color: #042949;
    font-weight: 600;
}

.bem-sponsor-strip {
    background: #f4f7fb;
    border-top: 1px solid rgba(8, 23, 45, 0.12);
    border-bottom: 1px solid rgba(8, 23, 45, 0.12);
    position: relative;
}

.bem-sponsor-strip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--bem-brand-stripe);
    opacity: 0.9;
}

.bem-sponsor-strip-label {
    letter-spacing: 0.06em;
    white-space: nowrap;
    color: #0e2c4a;
}

.bem-sponsor-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.bem-sponsor-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: bemSponsorScroll 28s linear infinite;
}

.bem-sponsor-marquee:hover .bem-sponsor-marquee-track {
    animation-play-state: paused;
}

.bem-sponsor-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.bem-sponsor-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 168px;
    height: 72px;
    padding: 0.5rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(8, 23, 45, 0.16);
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

.bem-sponsor-item:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 15, 25, 0.35);
    box-shadow: 0 10px 18px rgba(8, 23, 45, 0.12);
}

.bem-sponsor-item img {
    max-width: 100% !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
}

@keyframes bemSponsorScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.bem-site-footer {
    background: #0f243d;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.bem-site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    background: var(--bem-brand-stripe);
    z-index: 2;
    pointer-events: none;
}

.bem-footer-title {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: #a8c1db;
}

.bem-footer-section {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    padding: 1rem;
    min-height: 100%;
}

.bem-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.bem-footer-col {
    min-width: 0;
}

@media (min-width: 768px) {
    .bem-footer-grid {
        gap: 1.1rem;
        grid-template-columns:
            var(--bem-footer-col-nav)
            var(--bem-footer-col-events)
            var(--bem-footer-col-legal)
            var(--bem-footer-col-org);
    }
}

.bem-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bem-footer-links a {
    color: #f2f7fd;
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.35;
}

.bem-footer-links a:hover {
    color: var(--bem-yellow);
}

.bem-footer-muted {
    color: #b6cce1;
    font-size: 0.88rem;
}

.bem-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.bem-footer-bottom .text-secondary {
    color: #c8d8e8 !important;
}

.bem-company-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: stretch;
}

.bem-company-chip {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(8, 23, 45, 0.14);
    background: #fff;
    box-shadow: 0 8px 18px rgba(8, 23, 45, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bem-company-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 15, 25, 0.28);
    box-shadow: 0 14px 24px rgba(8, 23, 45, 0.14);
}

.bem-company-chip.is-md {
    flex: 1 1 170px;
    max-width: 230px;
}

.bem-company-chip.is-lg {
    flex: 1 1 220px;
    max-width: 290px;
}

.bem-company-chip.is-xl {
    flex: 1 1 300px;
    max-width: 370px;
    border-color: rgba(248, 192, 58, 0.58);
    box-shadow: 0 14px 28px rgba(8, 23, 45, 0.16);
}

.bem-company-chip-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    border-radius: 0.65rem;
    border: 1px solid rgba(8, 23, 45, 0.1);
    background: rgba(255, 255, 255, 0.96);
    text-decoration: none;
}

.bem-company-chip.is-md .bem-company-chip-link {
    min-height: 62px;
}

.bem-company-chip.is-lg .bem-company-chip-link {
    min-height: 78px;
}

.bem-company-chip.is-xl .bem-company-chip-link {
    min-height: 96px;
}

.bem-company-chip-link img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 48px;
    object-fit: contain;
}

.bem-company-chip.is-lg .bem-company-chip-link img {
    max-height: 60px;
}

.bem-company-chip.is-xl .bem-company-chip-link img {
    max-height: 74px;
}

.bem-company-chip-caption {
    font-size: 0.9rem;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .bem-company-cloud .bem-cloud-variant-1 {
        transform: translateY(-4px) rotate(-0.8deg);
    }

    .bem-company-cloud .bem-cloud-variant-2 {
        transform: translateY(3px) rotate(0.7deg);
    }

    .bem-company-cloud .bem-cloud-variant-3 {
        transform: translateY(-2px) rotate(0.45deg) scale(1.015);
    }

    .bem-company-cloud .bem-cloud-variant-4 {
        transform: translateY(5px) rotate(-0.55deg);
    }

    .bem-company-cloud .bem-cloud-variant-5 {
        transform: translateY(-3px) rotate(0.95deg) scale(1.01);
    }

    .bem-company-cloud .bem-cloud-variant-6 {
        transform: translateY(2px) rotate(-0.35deg);
    }
}

@media (max-width: 767px) {
    .bem-company-chip,
    .bem-company-chip.is-md,
    .bem-company-chip.is-lg,
    .bem-company-chip.is-xl {
        flex: 1 1 100%;
        max-width: none;
    }
}

.bem-legal-content {
    max-width: 76ch;
    margin: 0 auto;
    color: #102a49;
    line-height: 1.7;
}

.bem-legal-content h2 {
    margin-top: 1.8rem;
    margin-bottom: 0.65rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f2d4d;
}

.bem-legal-content h3 {
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a3d62;
}

.bem-legal-content p {
    margin-bottom: 0.9rem;
}

.bem-legal-content ul,
.bem-legal-content ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.bem-legal-content li {
    margin-bottom: 0.35rem;
}

.bem-legal-content strong {
    color: #0e2d4f;
}

/* ─── PUBLIC DARK THEME ─────────────────────────────────────────────────── */

.bem-public {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #07152a;
    color: #ddeaf8;
    --bs-body-color: #ddeaf8;
    --bs-body-bg: #07152a;
    --bs-secondary-color: #7faacb;
    --bs-link-color: #5ba8e8;
    --bs-link-hover-color: var(--bem-yellow);
    --bs-border-color: rgba(255, 255, 255, 0.1);
    --bs-card-bg: #0d2040;
    --bs-card-border-color: rgba(255, 255, 255, 0.09);
}

.bem-public h1, .bem-public .h1 {
    font-family: 'Staatliches', Impact, sans-serif;
}

.bem-public h2, .bem-public h3, .bem-public h4,
.bem-public h5, .bem-public h6,
.bem-public .h2, .bem-public .h3, .bem-public .h4,
.bem-public .h5, .bem-public .h6 {
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #e8f3ff;
}

.bem-public .text-secondary {
    color: #7faacb !important;
}

.bem-public .text-muted {
    color: #5e88aa !important;
}

/* Cards */
.bem-public .card {
    background: #0d2040;
    border-color: rgba(255, 255, 255, 0.09);
    color: #ddeaf8;
}

.bem-public .card-body {
    color: #ddeaf8;
}

/* Navbar */
.bem-public .bem-navbar {
    backdrop-filter: saturate(1.3) blur(6px);
    background: rgba(7, 21, 42, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.bem-public .nav-link {
    color: #b8d4ee;
}

.bem-public .nav-link:hover {
    color: var(--bem-yellow);
}

.bem-public .bem-navbar--compact {
    background: rgba(7, 21, 42, 0.97) !important;
}

.bem-public .bem-navbar .navbar-collapse {
    background: rgba(7, 21, 42, 0.97);
    border-color: rgba(255, 255, 255, 0.1);
}

.bem-public .bem-navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.bem-public .bem-navbar-toggler .navbar-toggler-icon {
    filter: invert(1);
}

.bem-public .bem-navbar .navbar-brand span {
    color: var(--bem-yellow);
}

/* Body background */
.bem-public:not(.bem-coming-soon-page) {
    background:
        radial-gradient(circle at 80% 0%, rgba(2, 81, 156, 0.18), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(226, 15, 25, 0.08), transparent 40%),
        #07152a;
}

/* Hero */
.bem-public .bem-hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(2, 81, 156, 0.3), transparent 44%),
        radial-gradient(circle at 88% 6%, rgba(226, 15, 25, 0.15), transparent 38%),
        linear-gradient(135deg, #0a1e3a 0%, #061628 100%);
}

.bem-public .bem-hero:not(.has-hero-images) h1,
.bem-public .bem-hero:not(.has-hero-images) h2,
.bem-public .bem-hero:not(.has-hero-images) p,
.bem-public .bem-hero:not(.has-hero-images) .lead {
    color: #ddeaf8;
}

.bem-public .bem-hero:not(.has-hero-images) h1 {
    color: var(--bem-yellow);
}

.bem-public .bem-hero:not(.has-hero-images)::after {
    background: none;
}

.bem-public .bem-hero.has-hero-images::after {
    background: linear-gradient(180deg, rgba(5, 14, 28, 0.35) 0%, rgba(5, 14, 28, 0.7) 100%);
}

.bem-public .bem-hero-subtitle a {
    color: var(--bem-yellow) !important;
}

/* Pill */
.bem-public .bem-pill {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #b8d4ee;
}

/* Timeline */
.bem-public .border-start {
    border-color: rgba(254, 221, 4, 0.3) !important;
}

.bem-public .timeline-node {
    background: var(--bem-yellow);
    box-shadow: 0 0 0 3px rgba(254, 221, 4, 0.25);
    border-color: #07152a;
}

/* Inline countdown */
.bem-public .bem-inline-countdown {
    background:
        linear-gradient(90deg, rgba(226, 15, 25, 0.15), rgba(15, 152, 97, 0.15), rgba(254, 221, 4, 0.2), rgba(2, 81, 156, 0.18));
    border-color: rgba(255, 255, 255, 0.1);
}

.bem-public .bem-inline-countdown-item {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none;
}

.bem-public .bem-inline-countdown-value {
    color: #e8f3ff;
}

.bem-public .bem-inline-countdown-label {
    color: #7faacb;
}

/* Alerts */
.bem-public .alert-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #b8d4ee;
}

/* Flap countdown */
.bem-public .bem-countdown-wrap {
    background: linear-gradient(145deg, rgba(2, 81, 156, 0.25) 0%, rgba(226, 15, 25, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.14);
}

.bem-public .bem-countdown-item {
    background: linear-gradient(160deg, #0d2040 0%, #0a1830 100%);
    border-color: rgba(2, 81, 156, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.bem-public .bem-countdown-item::after {
    background: rgba(255, 255, 255, 0.1);
}

.bem-public .bem-flap-half {
    color: var(--bem-yellow);
    background: none;
    text-shadow: 0 0 20px rgba(254, 221, 4, 0.3);
}

.bem-public .bem-countdown-label {
    color: #7faacb;
}

[x-cloak] {
    display: none !important;
}

/* Nixie tube countdown */
.bem-nixie-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bem-countdown-wrap .bem-nixie-countdown {
    width: 100%;
}

.bem-nixie-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    user-select: none;
}

.bem-nixie-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem 0.25rem;
    padding: 0.25rem 0;
}

.bem-nixie-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.bem-nixie-tubes {
    display: flex;
    gap: 0.2rem;
}

.bem-nixie-group--wide .bem-nixie-tube {
    width: clamp(26px, 6.2vw, 40px);
}

.bem-nixie-group--wide .bem-nixie-digit {
    font-size: clamp(1.4rem, 5vw, 2rem);
}

.bem-nixie-tube {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(30px, 7.5vw, 44px);
    height: clamp(54px, 13vw, 76px);
    padding-bottom: 6px;
}

.bem-nixie-glass {
    position: absolute;
    inset: 0 0 6px;
    border-radius: 10px 10px 6px 6px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%),
        radial-gradient(ellipse at 50% 72%, rgba(255, 120, 40, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #1a1410 0%, #0a0806 55%, #050403 100%);
    border: 1px solid rgba(255, 180, 100, 0.22);
    box-shadow:
        inset 0 -8px 18px rgba(255, 100, 30, 0.08),
        inset 0 4px 10px rgba(255, 255, 255, 0.05),
        0 0 14px rgba(255, 100, 30, 0.15),
        0 4px 10px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.bem-nixie-glass::before {
    content: '';
    position: absolute;
    top: 6%;
    left: 12%;
    width: 28%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(1px);
    pointer-events: none;
}

.bem-nixie-mesh {
    position: absolute;
    inset: 12% 18% 22%;
    border-radius: 4px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 140, 50, 0.04) 3px,
            rgba(255, 140, 50, 0.04) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(255, 140, 50, 0.04) 3px,
            rgba(255, 140, 50, 0.04) 4px
        );
    opacity: 0.7;
    pointer-events: none;
}

.bem-nixie-digit {
    position: relative;
    z-index: 2;
    font-family: 'Nixie One', 'Share Tech Mono', serif;
    font-size: clamp(1.55rem, 5.5vw, 2.15rem);
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #ff9030;
    text-shadow:
        0 0 2px #ff6a10,
        0 0 8px rgba(255, 120, 30, 0.95),
        0 0 18px rgba(255, 80, 20, 0.65),
        0 0 32px rgba(255, 50, 10, 0.35);
    animation: bemNixieGlow 3.5s ease-in-out infinite alternate;
}

.bem-nixie-tube--seconds .bem-nixie-digit {
    animation-delay: 0.5s;
}

.bem-nixie-base {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 88%;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 0 0 4px 4px;
    background: linear-gradient(180deg, #6a655c 0%, #3a3834 45%, #22201e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.bem-nixie-base::after {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.bem-nixie-label {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 180, 100, 0.5);
    line-height: 1;
}

.bem-nixie-sep {
    align-self: center;
    margin: 0 0.1rem 1.6rem;
    font-family: 'Nixie One', serif;
    font-size: clamp(1.1rem, 3.5vw, 1.45rem);
    line-height: 1;
    color: #ff9030;
    text-shadow: 0 0 10px rgba(255, 120, 40, 0.8);
    transition: opacity 0.15s ease;
}

.bem-nixie-sep.is-dim {
    opacity: 0.2;
}

.bem-nixie-caption {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7faacb;
    font-weight: 600;
}

.bem-nixie-row.is-tick .bem-nixie-tube--seconds .bem-nixie-digit {
    animation: bemNixieTick 0.4s ease-out;
}

@keyframes bemNixieGlow {
    from {
        opacity: 0.88;
        color: #e87828;
        text-shadow:
            0 0 2px #e06010,
            0 0 6px rgba(255, 100, 30, 0.7),
            0 0 14px rgba(255, 70, 15, 0.45);
    }
    to {
        opacity: 1;
        color: #ffb050;
        text-shadow:
            0 0 3px #ff7018,
            0 0 10px rgba(255, 130, 40, 1),
            0 0 22px rgba(255, 90, 20, 0.75),
            0 0 36px rgba(255, 60, 10, 0.4);
    }
}

@keyframes bemNixieTick {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }
    40% {
        filter: brightness(1.4);
        transform: scale(1.05);
    }
    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bem-nixie-digit,
    .bem-nixie-sep {
        animation: none !important;
    }

    .bem-nixie-sep.is-dim {
        opacity: 0.55;
    }
}

@media (max-width: 575px) {
    .bem-nixie-row {
        gap: 0.25rem 0.15rem;
    }

    .bem-nixie-sep {
        margin-bottom: 1.45rem;
    }

    .bem-nixie-tubes {
        gap: 0.12rem;
    }
}

/* Sponsor strip */
.bem-public .bem-sponsor-strip {
    background: #0a1c35;
    border-color: rgba(255, 255, 255, 0.08);
}

.bem-public .bem-sponsor-strip-label {
    color: #7faacb;
}

.bem-public .bem-sponsor-item {
    background: #0d2040;
    border-color: rgba(255, 255, 255, 0.1);
}

.bem-public .bem-sponsor-item:hover {
    border-color: rgba(254, 221, 4, 0.5);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

.bem-public .bem-sponsor-item img {
    filter: brightness(0.95) contrast(1.05);
}

/* Company chips */
.bem-public .bem-company-chip {
    background: #0d2040;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.bem-public .bem-company-chip:hover {
    border-color: rgba(254, 221, 4, 0.4);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.bem-public .bem-company-chip.is-xl {
    border-color: rgba(254, 221, 4, 0.35);
}

.bem-public .bem-company-chip-link {
    background: #0a1c35;
    border-color: rgba(255, 255, 255, 0.07);
}

/* Footer */
.bem-public .bem-site-footer {
    background: #040e1c;
}

.bem-public .bem-footer-section {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Coming soon / 503 */
.bem-public.bem-coming-soon-page {
    background:
        radial-gradient(circle at 15% 15%, rgba(2, 81, 156, 0.25), transparent 42%),
        radial-gradient(circle at 85% 85%, rgba(226, 15, 25, 0.12), transparent 44%),
        #07152a;
}

.bem-public .bem-coming-soon-card {
    background: linear-gradient(170deg, #0d2040 0%, #0a1830 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ddeaf8;
}

/* Legal content */
.bem-public .bem-legal-content {
    color: #c8ddf0;
}

.bem-public .bem-legal-content h2 {
    color: #e8f3ff;
}

.bem-public .bem-legal-content h3 {
    color: #d0e5f8;
}

.bem-public .bem-legal-content strong {
    color: #e8f3ff;
}

/* Outline button adjustments for dark bg */
.bem-public .btn-outline-dark {
    color: #b8d4ee;
    border-color: rgba(184, 212, 238, 0.35);
}

.bem-public .btn-outline-dark:hover {
    color: #07152a;
    background: #b8d4ee;
    border-color: #b8d4ee;
}

.bem-public .btn-outline-primary {
    color: #5ba8e8;
    border-color: rgba(91, 168, 232, 0.45);
}

.bem-public .btn-outline-primary:hover {
    color: #07152a;
    background: var(--bem-yellow);
    border-color: var(--bem-yellow);
}

/* Form inputs */
.bem-public .form-control,
.bem-public .form-select {
    background: #0d2040;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ddeaf8;
}

.bem-public .form-control:focus,
.bem-public .form-select:focus {
    background: #0f2448;
    border-color: var(--bem-blue);
    color: #ddeaf8;
    box-shadow: 0 0 0 0.2rem rgba(2, 81, 156, 0.35);
}

.bem-public .form-control::placeholder {
    color: #5e88aa;
}

.bem-public .form-label {
    color: #b8d4ee;
}

/* Input group */
.bem-public .input-group-text {
    background: #0a1c35;
    border-color: rgba(255, 255, 255, 0.15);
    color: #7faacb;
}

/* ─── NAVBAR: TRANSPARENT AT TOP ────────────────────────────────────────── */

.bem-public .bem-navbar--transparent {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.bem-public .bem-navbar--transparent::after {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bem-public .bem-navbar--transparent .nav-link {
    color: #e8f3ff;
}

.bem-public .bem-navbar--transparent .navbar-brand span {
    color: var(--bem-yellow);
}

.bem-public .bem-navbar--transparent .bem-navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.bem-public .bem-navbar--transparent .bem-navbar-toggler .navbar-toggler-icon {
    filter: invert(1);
}

/* ─── HERO: SEAMLESS OVERLAP + DIAGONAL BOTTOM ──────────────────────────── */

.bem-public .bem-hero {
    padding-top: 4.5rem;
    padding-bottom: 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
    margin-bottom: -3rem;
}

/* Section immediately after hero rises up to fill the diagonal gap */
.bem-public .bem-hero + section,
.bem-public .bem-hero + div.container,
.bem-public main > section:nth-child(2) {
    position: relative;
    z-index: 2;
    padding-top: 3.5rem !important;
}

/* ─── HERO: FADE-UP ENTRANCE ANIMATIONS ─────────────────────────────────── */

@keyframes bemFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bem-public .bem-hero h1 {
    animation: bemFadeUp 0.65s ease both;
}

.bem-public .bem-hero .bem-hero-subtitle {
    animation: bemFadeUp 0.65s 0.15s ease both;
}

.bem-public .bem-hero .btn {
    animation: bemFadeUp 0.65s 0.28s ease both;
}

/* ─── HERO H1: BRAND STRIPE LEFT ACCENT ─────────────────────────────────── */

.bem-public .bem-hero h1 {
    position: relative;
    padding-left: 1.1rem;
}

.bem-public .bem-hero h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8%;
    height: 84%;
    width: 5px;
    border-radius: 3px;
    background: var(--bem-brand-stripe);
    background-size: 100% 100%;
    background-image: linear-gradient(
        180deg,
        var(--bem-red) 0%,
        var(--bem-green) 33%,
        var(--bem-yellow) 66%,
        var(--bem-blue) 100%
    );
}

/* ─── EVENT CARD: ACCENT LEFT BORDER ────────────────────────────────────── */

.bem-public main .card {
    border-left: 3px solid var(--bem-blue) !important;
    border-radius: 2px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bem-public main .card:hover {
    border-left-color: var(--bem-red) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45) !important;
}

/* ─── TIMELINE: GRADIENT LINE + PULSING NODES ───────────────────────────── */

.bem-public .ps-4.border-start {
    border-left-color: transparent !important;
    position: relative;
}

.bem-public .ps-4.border-start::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--bem-yellow) 0%,
        var(--bem-green) 40%,
        var(--bem-blue) 100%
    );
    border-radius: 2px;
}

@keyframes bemNodePulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(254, 221, 4, 0.25), 0 0 0 6px rgba(254, 221, 4, 0.08);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(254, 221, 4, 0.15), 0 0 0 10px rgba(254, 221, 4, 0.04);
    }
}

.bem-public .timeline-node {
    background: var(--bem-yellow);
    border-color: #07152a;
    animation: bemNodePulse 2.4s ease-in-out infinite;
}
