body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f8fb;
    color: #1f2937;
}

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

body:not(.auth-page) .app-navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.toast-stack {
    position: fixed;
    top: 92px;
    right: 22px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.toast-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 42px 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    backdrop-filter: blur(18px);
    pointer-events: auto;
    animation: toastSlideIn 0.28s ease forwards;
}

.toast-card--success {
    border-color: rgba(22, 163, 74, 0.18);
    background: rgba(240, 253, 244, 0.96);
}

.toast-card--danger {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(254, 242, 242, 0.96);
}

.toast-card--warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(255, 251, 235, 0.96);
}

.toast-card--info {
    border-color: rgba(14, 165, 233, 0.16);
    background: rgba(240, 249, 255, 0.96);
}

.toast-card__body {
    font-size: 0.94rem;
    line-height: 1.55;
}

.toast-card__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 4px;
}

.toast-card__close:hover {
    color: #0f172a;
}

.toast-card--closing {
    animation: toastFadeOut 0.3s ease forwards;
}

.toast-stack--standalone {
    top: 18px;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1350;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner__card {
    width: min(100%, 1040px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(18px);
}

.cookie-banner__title {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.cookie-banner__text {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.7;
}

.cookie-banner__text a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

.cookie-banner__text a:hover {
    text-decoration: underline;
}

.cookie-banner__accept {
    min-height: 48px;
    padding-inline: 20px;
    border-radius: 16px;
    white-space: nowrap;
}

.auth-page {
    --auth-nav-height: 93px;
    background: #ffffff;
    overflow-x: hidden;
}

body.auth-modal-open {
    overflow: hidden;
}

.auth-page .navbar {
    background: rgba(255, 255, 255, 0.78) !important;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.auth-page .page-main > .container.pb-5 {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex: 1 0 auto;
    min-width: 0;
    overflow: hidden;
}

.auth-page .page-main > .container.pb-5 > .auth-screen {
    flex: 1 0 auto;
    min-width: 0;
}

.auth-page .page-main > .container.pb-5 > .alert {
    width: min(calc(100% - 40px), 1560px);
    margin: 18px auto 0;
    border-radius: 18px;
}

.navbar-brand {
    font-weight: 700;
    padding-top: 0;
    padding-bottom: 0;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.brand-logo--nav {
    width: auto;
    height: 72px;
    max-width: min(42vw, 320px);
    object-fit: contain;
}

.brand-logo--public {
    width: 100%;
    max-width: 420px;
    max-height: 240px;
    object-fit: contain;
}

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

.navbar-actions--admin {
    gap: 12px 16px;
}

.nav-admin-links,
.nav-admin-account {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-admin-account {
    justify-content: flex-end;
}

.app-navbar .container {
    position: relative;
    display: flex;
    align-items: center;
}

.app-navbar__menu {
    display: contents;
}

.app-navbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-navbar__toggle:hover,
.app-navbar__toggle:focus {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.app-navbar__toggle-box {
    display: grid;
    gap: 5px;
}

.app-navbar__toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-navbar.is-open .app-navbar__toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.app-navbar.is-open .app-navbar__toggle-line:nth-child(2) {
    opacity: 0;
}

.app-navbar.is-open .app-navbar__toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.public-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto;
}

.auth-nav-login-btn {
    display: inline-flex;
}

.public-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    color: #667085;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.public-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f172a 0%, #c89f5d 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.18s ease;
}

.public-nav-link:hover,
.public-nav-link:focus {
    color: #111827;
}

.public-nav-link:hover::after,
.public-nav-link:focus::after,
.public-nav-link--active::after {
    transform: scaleX(1);
}

.public-nav-link--active {
    color: #111827;
}

.public-auth-cta {
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 20px;
    border: 1px solid #0f172a;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 58%, #c89f5d 100%);
    color: #f8fafc;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.public-auth-cta:hover,
.public-auth-cta:focus {
    color: #ffffff;
    border-color: #0f172a;
    background: linear-gradient(135deg, #111827 0%, #1f2937 56%, #d5ae72 100%);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
    transform: translateY(-1px);
}

.nav-user-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
}

.nav-user-chip__meta {
    line-height: 1.15;
}

.nav-user-chip__name {
    font-size: 0.88rem;
    font-weight: 700;
}

.nav-user-chip__role {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.page-main > .container.pb-5 {
    padding-left: 24px;
    padding-right: 24px;
}

.app-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.app-page-heading__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.app-page-heading__actions form {
    margin: 0;
}

.app-page-heading__actions .btn,
.app-page-heading__actions form .btn {
    white-space: normal;
}

.event-form-layout {
    display: grid;
    gap: 18px;
}

@media (min-width: 1200px) {
    .event-form-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.event-form-section {
    min-width: 0;
    padding: 20px;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #ffffff;
}

.event-form-section--wide,
.event-form-actions {
    grid-column: 1 / -1;
}

.event-form-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.event-form-section__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.event-form-section__head p,
.event-form-section__head span {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

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

@media (min-width: 992px) {
    .event-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-form-field--span-2 {
        grid-column: 1 / -1;
    }
}

.event-form-field {
    min-width: 0;
}

.event-form-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.event-form-fieldset:disabled {
    opacity: 0.64;
}

.event-form-fieldset:disabled input,
.event-form-fieldset:disabled select,
.event-form-fieldset:disabled textarea,
.event-form-toggle input:disabled {
    cursor: not-allowed;
}

.event-form-toggle-grid {
    display: grid;
    gap: 12px;
}

.event-form-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 62px;
    margin: 0;
    padding: 14px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
    cursor: pointer;
}

.event-form-toggle .form-check-input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.event-form-toggle span {
    display: grid;
    gap: 3px;
}

.event-form-toggle strong {
    color: #0f172a;
    line-height: 1.25;
}

.event-form-toggle small {
    color: #64748b;
    line-height: 1.35;
}

.event-form-currency-input {
    max-width: 88px;
    text-transform: uppercase;
}

.event-form-actions {
    display: flex;
    justify-content: flex-end;
}

.event-upload-header-preview {
    position: relative;
    display: grid;
    min-height: 180px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background: #f8fafc;
}

.event-upload-header-preview img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.event-upload-header-preview__overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: #ffffff;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 3px 18px rgba(15, 23, 42, 0.72);
}

.event-upload-header-preview__overlay span {
    display: block;
    overflow-wrap: anywhere;
}

.event-upload-header-preview__placeholder {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: #64748b;
    font-weight: 700;
}

.event-upload-header-preview--empty .event-upload-header-preview__overlay {
    display: none;
}

.event-upload-font-preview {
    margin-top: 10px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
}

.event-upload-font-preview span {
    display: block;
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
}

.event-upload-title-size-control {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbe4ef;
}

.event-upload-title-size-control__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}

.event-upload-title-size-control output {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.event-seo-image-field {
    display: grid;
    gap: 12px;
}

.event-seo-image-field__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.event-seo-image-field__file {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.event-seo-image-field__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.event-seo-image-field__meta {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.event-seo-image-field__preview {
    display: grid;
    place-items: center;
    width: 132px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08)),
        #f8fafc;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.event-seo-image-field__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.responsive-stack-table {
    --stack-table-label-width: 120px;
}

.card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
}

.auth-screen {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    min-height: calc(100dvh - var(--auth-nav-height));
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.auth-form-screen {
    justify-content: center;
    align-items: center;
    padding: clamp(28px, 6vw, 72px) 0;
    overflow: visible;
}

.auth-form-shell {
    width: min(100%, 520px);
}

.auth-login-card--standalone {
    border-radius: 18px;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(420px, 32vw, 540px);
    gap: 0;
    align-items: stretch;
    flex: 1 0 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(340px, 1fr);
    gap: clamp(24px, 3vw, 44px);
    min-height: 100%;
    padding: clamp(36px, 4vw, 68px);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)),
        #0f172a;
    color: #f8fafc;
    box-shadow: inset -1px 0 0 rgba(125, 211, 252, 0.12);
}

.auth-support-band {
    position: relative;
    z-index: 2;
    margin-top: -56px;
    padding: 0 24px 34px;
}

.auth-support-band__inner {
    width: min(100%, 1680px);
    margin: 0 auto;
}

.auth-showcase__copy,
.auth-showcase__visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.auth-showcase__copy {
    display: grid;
    align-content: center;
    gap: 16px;
    max-width: 560px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4.8rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    max-width: 8ch;
}

.auth-description {
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 44ch;
}

.auth-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2px;
}

.auth-hero-pills span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.18);
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.auth-feature {
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(12px);
}

.auth-feature__eyebrow {
    margin-bottom: 8px;
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-feature__title {
    margin: 0 0 8px;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.35;
}

.auth-feature__text {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.94rem;
}

.auth-feature--light {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.auth-feature--light .auth-feature__title {
    color: #0f172a;
}

.auth-feature--light .auth-feature__text {
    color: #475569;
}

.auth-showcase__visual {
    display: grid;
    align-content: center;
    gap: 18px;
    min-height: 100%;
}

.auth-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
}

.auth-glow--one {
    top: -40px;
    right: 18px;
    width: 190px;
    height: 190px;
    background: rgba(56, 189, 248, 0.28);
}

.auth-glow--two {
    bottom: 22px;
    left: -18px;
    width: 220px;
    height: 220px;
    background: rgba(96, 165, 250, 0.24);
}

.auth-gallery {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 0;
}

.auth-gallery__row {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

.auth-gallery__row--1,
.auth-gallery__row--3 {
    grid-template-columns: minmax(0, 1.16fr) minmax(220px, 0.84fr);
}

.auth-gallery__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-gallery-card {
    margin: 0;
    position: relative;
    min-height: 220px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 38px rgba(2, 6, 23, 0.22);
    transform: translate3d(0, 0, 0) rotate(var(--auth-rotate, 0deg));
    animation: authFloat 9s ease-in-out infinite;
}

.auth-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.04) 35%, rgba(15, 23, 42, 0.7) 100%);
}

.auth-gallery-card figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-gallery-card:hover {
    transform: translateY(-4px) rotate(var(--auth-rotate, 0deg));
}

.auth-gallery-card--wide {
    --auth-rotate: -3deg;
    min-height: 268px;
}

.auth-gallery-card--tall {
    --auth-rotate: 2.2deg;
    min-height: 268px;
}

.auth-gallery-card--medium {
    --auth-rotate: 1.8deg;
    min-height: 210px;
}

.auth-showcase__note {
    margin-top: 0;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.16);
}

.auth-showcase__note-label {
    margin-bottom: 6px;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-showcase__note-text {
    color: #e2e8f0;
    line-height: 1.65;
}

.auth-floating-note {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    border: 1px solid rgba(186, 230, 253, 0.24);
    color: #e0f2fe;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
    animation: authDrift 11s ease-in-out infinite;
}

.auth-floating-note--one {
    top: 34px;
    left: -8px;
}

.auth-floating-note--two {
    right: 18px;
    top: 292px;
    animation-delay: -4s;
}

.auth-login-panel {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    min-width: 0;
    padding: clamp(32px, 4vw, 56px) clamp(24px, 2.8vw, 40px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.94)),
        linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.08));
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.auth-login-column {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
    min-height: 100%;
}

.auth-login-cta {
    padding: 24px 24px 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.auth-login-cta__title {
    margin: 0 0 10px;
    font-size: 1.75rem;
    line-height: 1.08;
    font-weight: 800;
    color: #0f172a;
}

.auth-login-cta__text {
    margin: 0 0 18px;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.75;
}

.auth-login-cta__button {
    min-height: 50px;
    border-radius: 16px;
    padding-inline: 18px;
    font-weight: 700;
}

.auth-login-card {
    width: 100%;
    margin: 0;
    align-self: start;
    padding: 32px 30px 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(16px);
}

.auth-login-card__brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.brand-logo--auth-modal {
    max-width: 240px;
    max-height: 145px;
}

.auth-login-card__tag {
    display: inline-block;
    margin-bottom: 8px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-login-card__title {
    margin-bottom: 10px;
    font-size: 1.95rem;
    font-weight: 800;
}

.auth-login-card__subtitle {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
}

.auth-login-alert {
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.96);
    color: #991b1b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-login-alert--danger {
    border-color: rgba(239, 68, 68, 0.22);
    background: rgba(254, 242, 242, 0.98);
}

.auth-login-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(226, 232, 240, 0.55);
}

.auth-login-switch__btn {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    background: transparent;
    color: #475569;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-login-switch__btn.is-active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
}

.auth-login-switch__btn:hover {
    color: #0f172a;
}

.auth-login-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-login-roles span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
}

.auth-login-form .form-control {
    min-height: 54px;
    border-radius: 14px;
    border-color: #dbe2ea;
    padding-left: 14px;
    padding-right: 14px;
}

.auth-register-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    color: #0f172a;
}

.auth-register-choice .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.auth-password-field {
    position: relative;
}

.auth-password-field .form-control {
    padding-right: 92px;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 44px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
    transition: background 0.18s ease, color 0.18s ease;
}

.auth-password-toggle:hover {
    background: rgba(56, 189, 248, 0.14);
    color: #0f172a;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.42);
    outline-offset: 2px;
}

.auth-password-toggle__icon {
    width: 18px;
    height: 18px;
}

.auth-password-toggle__icon--hide {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--show {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-toggle__icon--hide {
    display: block;
}

.auth-login-form .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.15);
}

.auth-login-submit {
    min-height: 54px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.auth-page-return {
    margin-bottom: 16px;
}

.auth-page-return__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.auth-page-return__link:hover {
    color: #0284c7;
    border-color: rgba(2, 132, 199, 0.28);
}

.auth-embed-page {
    background: transparent;
}

.auth-embed-page .page-main .container {
    max-width: none;
    padding: 0 !important;
}

.auth-embed-screen {
    min-height: auto;
    padding: 0;
    background: transparent;
}

.auth-embed-shell {
    width: 100%;
    max-width: 640px;
    padding: 0;
}

.auth-embed-card {
    border: 1px solid #dbe2ea;
    box-shadow: none;
}

.auth-popup-page {
    background: #f7f8fb;
}

.auth-popup-page .page-main .container {
    max-width: none;
    padding: 0 !important;
}

.auth-popup-screen {
    min-height: 100vh;
    padding: 24px;
}

.auth-popup-shell {
    width: 100%;
    max-width: 640px;
    padding: 0;
}

.auth-popup-card {
    border: 1px solid #dbe2ea;
}

.auth-login-note {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-login-footnote {
    margin-top: 14px;
    text-align: center;
    color: #64748b;
    font-size: 0.92rem;
}

.auth-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-link-button:hover {
    color: #0284c7;
}

.auth-login-support {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-login-support--band {
    align-items: stretch;
}

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

.auth-mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 32px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-mobile-modal.is-open {
    opacity: 1;
}

.auth-mobile-modal__backdrop {
    position: absolute;
    inset: 0;
}

.auth-mobile-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    margin: 0 auto;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.24s ease;
}

.auth-mobile-modal.is-open .auth-mobile-modal__dialog {
    transform: translateY(0) scale(1);
}

.auth-mobile-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-mobile-modal__close:hover {
    background: rgba(15, 23, 42, 0.14);
}

.auth-login-card--modal {
    overflow: visible;
}

.auth-login-card--mobile {
    margin: 0;
}

.auth-stat-row--compact {
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column: 1 / -1;
}

.auth-stat-pill--light {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
}

.auth-stat-pill--light strong {
    color: #0f172a;
}

.auth-stat-pill--light span {
    color: #475569;
}

.auth-showcase__note--light {
    margin-top: 2px;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.88));
    border-color: rgba(125, 211, 252, 0.12);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.auth-footer {
    padding: 18px 24px 24px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 -1px 0 rgba(148, 163, 184, 0.08);
}

.auth-footer__inner {
    width: min(100%, 1680px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.auth-footer__copy {
    display: grid;
    gap: 4px;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    justify-items: center;
}

.auth-footer__copy span {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}

.auth-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-footer__link {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer__link:hover {
    color: #0284c7;
}

.auth-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-stat-pill {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-stat-pill strong {
    font-size: 0.92rem;
}

.auth-stat-pill span {
    color: #cbd5e1;
    font-size: 0.83rem;
}

@keyframes authFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(var(--auth-rotate, 0deg));
    }
    50% {
        transform: translate3d(0, -10px, 0) rotate(calc(var(--auth-rotate, 0deg) + 0.6deg));
    }
}

@keyframes authDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.97);
    }
}

.table td,
.table th {
    vertical-align: middle;
}

.public-upload-box {
    max-width: 760px;
    margin: 40px auto;
}

.public-upload-hero {
    position: relative;
    display: grid;
    min-height: 320px;
    overflow: hidden;
    border-radius: 18px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    isolation: isolate;
}

.public-upload-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.45) 100%),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.24));
}

.public-upload-hero__logo {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 132px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(6px);
}

.public-upload-hero__logo img {
    display: block;
    max-width: 112px;
    max-height: 46px;
    object-fit: contain;
}

.public-upload-hero__content {
    align-self: end;
    padding: 86px 28px 30px;
    color: #ffffff;
    text-align: center;
}

.public-upload-hero__title {
    margin: 0;
    font-size: clamp(2rem, 7vw, 4.4rem);
    font-weight: 900;
    line-height: 1.04;
    text-shadow: 0 4px 22px rgba(15, 23, 42, 0.72);
}

.public-upload-hero__title--custom-font {
    font-family: "EventUploadHeaderFont", var(--app-font-family), system-ui, sans-serif;
}

.public-upload-hero__content p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.02rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(15, 23, 42, 0.62);
}

.public-upload-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.public-upload-brand__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.brand-logo--upload {
    max-width: min(100%, 360px);
    max-height: 220px;
}

.upload-live-feedback {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.upload-live-feedback--success {
    background: #ecfdf3;
    border: 1px solid #a7f3d0;
    color: #166534;
}

.upload-live-feedback--danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.upload-live-feedback--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.upload-live-feedback--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.upload-progress-card {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #0f172a;
}

.upload-progress-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}

.upload-progress-card__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}

.upload-progress-card__cancel {
    appearance: none;
    border: 1px solid #93c5fd;
    border-radius: 8px;
    background: #ffffff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 10px;
}

.upload-progress-card__cancel:hover,
.upload-progress-card__cancel:focus-visible {
    border-color: #2563eb;
    color: #1e40af;
}

.upload-progress-card__cancel:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.upload-progress-card__track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
}

.upload-progress-card__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    transition: width 120ms linear;
}

.upload-progress-card__meta {
    font-size: 0.9rem;
    color: #475569;
}

.public-upload-notice {
    background: #f8fbff;
    border: 1px solid #cfe7ff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.public-upload-notice__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.public-upload-notice__list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.public-upload-notice__list li + li {
    margin-top: 6px;
}

.storage-meter {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(191, 219, 254, 0.72);
}

.storage-meter--compact {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
}

.storage-meter__top,
.storage-meter__stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.storage-meter__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.storage-meter__percent {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 700;
}

.storage-meter__track {
    position: relative;
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: #e5eef9;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.storage-meter__fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    transition: width 0.28s ease;
}

.storage-meter__stats {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.storage-meter__stats strong {
    color: #0f172a;
}

.storage-meter__alert {
    color: #b91c1c;
    font-size: 0.86rem;
    font-weight: 700;
}

.storage-meter--warning {
    border-color: rgba(251, 191, 36, 0.42);
    background: linear-gradient(180deg, #fffdf5, #fffbeb);
}

.storage-meter--warning .storage-meter__fill {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.storage-meter--danger {
    border-color: rgba(248, 113, 113, 0.46);
    background: linear-gradient(180deg, #fff8f8, #fef2f2);
}

.storage-meter--danger .storage-meter__fill {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.public-upload-name-panel {
    padding: 18px;
    border: 2px solid #c4b5fd;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f3ff 0%, #fbfaff 100%);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.1);
}

.public-upload-name-panel__label {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
}

.public-upload-name-panel__input {
    min-height: 56px;
    border: 2px solid #a78bfa;
    border-radius: 14px;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 1.02rem;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}

.public-upload-name-panel__input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.18);
}

.public-upload-message-panel {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 2px solid #c4b5fd;
    border-radius: 20px;
    background: linear-gradient(180deg, #f5f3ff 0%, #fbfaff 100%);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.12);
}

.public-upload-message-panel__label {
    margin-bottom: 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
}

.public-upload-message-panel__textarea {
    min-height: 118px;
    resize: vertical;
    border: 2px solid #a78bfa;
    border-radius: 14px;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.55;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}

.public-upload-message-panel__textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.18);
}

.public-upload-emoji-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-upload-emoji-bar__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 10px;
    background: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.08);
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.public-upload-emoji-bar__button:hover,
.public-upload-emoji-bar__button:focus-visible {
    border-color: rgba(124, 58, 237, 0.42);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.12);
}

.public-upload-message-panel__hint {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}

.public-upload-message-panel__hint[data-variant="success"] {
    color: #15803d;
}

.public-upload-message-panel__hint[data-variant="warning"] {
    color: #a16207;
}

.public-upload-message-panel__hint[data-variant="danger"] {
    color: #b91c1c;
}

.public-upload-message-panel__hint[data-variant="recording"] {
    color: #dc2626;
}

.public-upload-audio {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.public-upload-audio__record,
.public-upload-audio__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.public-upload-audio__record {
    padding: 0 16px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    background: #ffffff;
    color: #6d28d9;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.1);
}

.public-upload-audio__record:hover,
.public-upload-audio__record:focus-visible {
    border-color: rgba(124, 58, 237, 0.42);
    color: #4c1d95;
    transform: translateY(-1px);
}

.public-upload-audio__record--recording {
    border-color: rgba(220, 38, 38, 0.44);
    background: #fef2f2;
    color: #b91c1c;
}

.public-upload-audio__record:disabled,
.public-upload-audio__clear:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
}

.public-upload-audio__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.1);
}

.public-upload-audio__record--recording .public-upload-audio__icon {
    background: rgba(220, 38, 38, 0.12);
}

.public-upload-audio__preview {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 100%;
    min-width: min(100%, 320px);
}

.public-upload-audio__preview audio {
    display: block;
    flex: 1 1 320px;
    min-width: min(100%, 260px);
    max-width: 420px;
}

.public-upload-audio__clear {
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #ffffff;
    color: #475569;
}

.public-upload-action-card {
    display: grid;
    gap: 18px;
    padding: 20px;
    border: 2px solid #93c5fd;
    border-radius: 20px;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.public-upload-file-panel {
    padding: 0;
}

.public-upload-dropzone {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 174px;
    padding: 24px 18px;
    border: 2px dashed #eab308;
    border-radius: 16px;
    background: #fffdf2;
    color: #0f172a;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.public-upload-dropzone:hover,
.public-upload-dropzone:focus-visible {
    border-color: #ca8a04;
    background: #fffbea;
    box-shadow: 0 16px 34px rgba(202, 138, 4, 0.14);
    transform: translateY(-1px);
}

.public-upload-dropzone:focus-visible {
    outline: 3px solid rgba(234, 179, 8, 0.28);
    outline-offset: 4px;
}

.public-upload-dropzone__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 8px;
    color: #eab308;
}

.public-upload-dropzone__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
}

.public-upload-dropzone__main {
    display: block;
    margin-top: 2px;
    font-size: 1.08rem;
    font-weight: 900;
}

.public-upload-dropzone__meta {
    display: block;
    max-width: 640px;
    margin-top: 12px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.public-upload-camera-option {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.public-upload-picker__button--camera {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
}

.public-upload-file-panel__label {
    margin-bottom: 10px;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
}

.public-upload-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

.public-upload-picker__content {
    display: grid;
    align-content: center;
    min-width: 0;
}

.public-upload-picker__text {
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.5;
}

.public-upload-picker__actions {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.public-upload-picker__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    width: 100%;
    padding: 0 16px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 12px;
    background: #f8fbff;
    color: var(--app-color-accent, #2563eb);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.public-upload-picker__button:hover,
.public-upload-picker__button:focus-visible {
    border-color: rgba(37, 99, 235, 0.34);
    background: #ffffff;
    color: var(--app-color-primary, #0f172a);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.public-upload-picker__button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.28);
    outline-offset: 3px;
}

.public-upload-picker__button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.public-upload-picker__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
}

.public-upload-file-panel__input {
    min-height: 58px;
    border: 2px solid #60a5fa;
    border-radius: 14px;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.public-upload-file-panel__input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.public-upload-file-panel__input::file-selector-button {
    min-height: 54px;
    margin: -0.375rem 16px -0.375rem -0.75rem;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid #1e40af;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
}

.public-upload-file-panel__input:hover::file-selector-button {
    background: #1d4ed8;
}

.public-upload-file-panel__input--native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.public-upload-file-panel__hint {
    margin-top: 16px;
    color: #334155;
    font-weight: 600;
}

@media (max-width: 720px) {
    .public-upload-hero {
        min-height: 260px;
        border-radius: 16px;
    }

    .public-upload-hero__logo {
        top: 12px;
        left: 12px;
        max-width: 110px;
        padding: 7px 8px;
    }

    .public-upload-hero__logo img {
        max-width: 92px;
        max-height: 38px;
    }

    .public-upload-hero__content {
        padding: 74px 18px 24px;
    }

    .public-upload-hero__content p {
        font-size: 0.94rem;
    }

    .public-upload-message-panel {
        padding: 16px;
    }

    .public-upload-audio,
    .public-upload-audio__preview {
        align-items: stretch;
        width: 100%;
    }

    .public-upload-audio__record,
    .public-upload-audio__clear {
        width: 100%;
    }

    .public-upload-audio__preview audio {
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .public-upload-action-card {
        gap: 16px;
        padding: 16px;
    }

    .public-upload-picker {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .public-upload-picker__actions {
        grid-template-columns: 1fr;
        max-width: none;
        justify-self: stretch;
    }

    .public-upload-picker__button {
        justify-content: center;
        min-height: 58px;
        padding-inline: 16px;
        text-align: center;
    }
}

.public-upload-consent {
    padding: 18px;
    border: 1px solid rgba(34, 197, 94, 0.36);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.92) 0%, rgba(248, 255, 251, 0.94) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.public-upload-consent__check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding-left: 0;
}

.public-upload-consent__check .form-check-input {
    flex: 0 0 auto;
    float: none;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 0;
    margin-top: 0.18rem;
    border: 2px solid #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.public-upload-consent__check .form-check-input:checked {
    background-color: #16a34a;
    border-color: #16a34a;
}

.public-upload-consent__check .form-check-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.public-upload-consent__check .form-check-label {
    color: #0f172a;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.55;
}

.public-upload-consent__check a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

.public-upload-consent__check a:hover {
    text-decoration: underline;
}

.public-upload-consent__hint {
    margin-top: 10px;
    padding-left: 40px;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.public-upload-submit {
    min-height: 56px;
    border-radius: 14px;
    font-size: 1.06rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.public-upload-submit:disabled {
    opacity: 0.58;
    box-shadow: none;
}

.public-upload-submit.btn-success:not(:disabled) {
    border-color: #16a34a;
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(22, 163, 74, 0.28);
}

.public-upload-submit.btn-success:not(:disabled):hover,
.public-upload-submit.btn-success:not(:disabled):focus-visible {
    border-color: #15803d;
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(22, 163, 74, 0.34);
}

.event-message-grid {
    display: grid;
    gap: 14px;
}

.event-message-card {
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #ffffff;
}

.event-message-card__select {
    margin-bottom: 12px;
}

.event-message-card__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-size: 0.92rem;
}

.event-message-card__meta strong {
    color: #0f172a;
}

.event-message-card__text {
    margin: 12px 0 0;
    color: #0f172a;
    line-height: 1.6;
}

.event-message-card__audio {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.event-message-card__audio audio {
    width: min(320px, 100%);
}

@media (max-width: 576px) {
    .event-message-card__meta {
        display: grid;
        gap: 2px;
    }

    .event-message-card__audio,
    .event-message-card__audio audio,
    .event-message-card__audio .btn {
        width: 100%;
    }
}

.public-upload-gallery {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.public-upload-gallery[hidden] {
    display: none !important;
}

.public-upload-gallery__title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
}

.public-upload-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.public-upload-gallery__item-wrap {
    position: relative;
    min-width: 0;
}

.public-upload-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #e5e7eb;
    cursor: zoom-in;
}

.public-upload-gallery__item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.38);
    outline-offset: 3px;
}

.public-upload-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.public-upload-gallery__item:hover .public-upload-gallery__image,
.public-upload-gallery__item:focus-visible .public-upload-gallery__image {
    filter: brightness(0.9);
    transform: scale(1.035);
}

.public-upload-gallery__like {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #fff;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.public-upload-gallery__like:hover,
.public-upload-gallery__like:focus-visible {
    background: rgba(225, 29, 72, 0.92);
    transform: translateY(-1px);
}

.public-upload-gallery__like:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.58);
    outline-offset: 2px;
}

.public-upload-gallery__like--active {
    background: rgba(225, 29, 72, 0.95);
}

.public-upload-gallery__like--active svg {
    fill: currentColor;
}

.public-upload-gallery__like:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.public-upload-gallery__like-count {
    font-size: 0.76rem;
}

.thumb-img,
.video-thumb-placeholder {
    width: 100%;
    height: 96px;
    border-radius: 12px;
}

.thumb-img {
    object-fit: cover;
}

.video-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(14, 116, 144, 0.82)),
        #0f172a;
}

.video-thumb-placeholder__icon {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.video-thumb-placeholder__icon::before {
    position: absolute;
    top: 50%;
    left: 52%;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #ffffff;
    content: "";
    transform: translate(-50%, -50%);
}

.video-thumb-placeholder__label {
    font-size: 0.82rem;
    font-weight: 800;
}

.small-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.qr-box img {
    max-width: 220px;
    border-radius: 12px;
    background: white;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.qr-design-preview {
    position: relative;
    display: block;
    aspect-ratio: 900 / 1312;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(239, 246, 255, 0.96)),
        #f8fafc;
    background-position: center;
    background-size: cover;
}

.qr-design-preview::before {
    position: absolute;
    inset: 9.15% 7.78%;
    border: 1px solid rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.34);
    content: "";
}

.qr-design-preview--empty::before {
    background: rgba(255, 255, 255, 0.68);
}

.qr-design-preview__qr,
.qr-design-preview__title,
.qr-design-preview__text {
    position: relative;
    z-index: 1;
}

.qr-design-preview__title {
    position: absolute;
    top: 12.35%;
    left: 13.89%;
    display: grid;
    place-items: center;
    width: 72.22%;
    height: 9.45%;
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.qr-design-preview__qr {
    position: absolute;
    top: 25.15%;
    left: 25%;
    display: grid;
    place-items: center;
    width: 50%;
    aspect-ratio: 1;
    padding: 3.78%;
    border: 1px solid #e6ecf5;
    background: #ffffff;
}

.qr-design-preview__qr img {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.qr-design-preview__text {
    position: absolute;
    top: 67.99%;
    left: 13.33%;
    display: grid;
    place-items: center;
    width: 73.33%;
    height: 12.65%;
    margin: 0;
    padding: 0;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
}

.qr-design-form {
    text-align: left;
}

.photo-card-trigger {
    display: inline-block;
    cursor: zoom-in;
    width: 100%;
}

.photo-card-trigger .thumb-img {
    display: block;
}

.photo-card-trigger .video-thumb-placeholder {
    display: flex;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.photo-grid__item {
    min-width: 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 260px;
}

.photo-select-card {
    position: relative;
    padding: 12px !important;
}

.photo-select-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #475569;
    cursor: pointer;
}

.photo-select-checkbox {
    margin-top: 0;
}

.photo-card-title {
    font-size: 0.95rem;
    line-height: 1.25;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.photo-card-meta {
    font-size: 0.8rem;
    line-height: 1.25;
}

.photo-card-view-btn {
    width: 100%;
    justify-content: center;
}

.table-actions form {
    margin: 0;
}

.event-select-column,
.event-select-cell {
    width: 52px;
    text-align: center;
}

.event-select-checkbox {
    margin-top: 0;
    cursor: pointer;
}

.responsive-stack-table tbody tr.is-selected > td {
    background: rgba(15, 23, 42, 0.04);
}

.admin-server-storage {
    display: grid;
    gap: 8px;
}

.admin-server-storage .storage-meter {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.admin-server-storage__trend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-server-storage__trend a {
    color: var(--app-color-accent, #2563eb);
    font-weight: 700;
    text-decoration: none;
}

.admin-server-storage__trend a:hover {
    text-decoration: underline;
}

.admin-event-groups {
    display: grid;
    gap: 12px;
}

.admin-event-group {
    overflow: hidden;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.07);
}

.admin-event-group__header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 74px;
    padding: 14px 18px;
    border: 0;
    background: #ffffff;
    color: #0f172a;
    text-align: left;
    cursor: pointer;
}

.admin-event-group__header:hover,
.admin-event-group__header:focus-visible {
    background: #f8fafc;
}

.admin-event-group__header:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.24);
    outline-offset: -3px;
}

.admin-event-group__chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #dbe2ea;
    border-radius: 999px;
    color: #334155;
    font-size: 0;
    transform: rotate(0deg);
    transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.admin-event-group__chevron::before {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateX(-1px) rotate(-45deg);
}

.admin-event-group.is-open .admin-event-group__chevron {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.08);
    transform: rotate(90deg);
}

.admin-event-group__identity {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-event-group__name {
    overflow: hidden;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-event-group__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.admin-event-group__stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
}

.admin-event-group__panel {
    border-top: 1px solid #eef2f7;
    background: #ffffff;
}

.admin-event-group__table {
    border-radius: 0;
}

.admin-event-group__table thead th {
    font-size: 0.86rem;
}

.viewer-event-picker {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    background: #fbfdff;
}

.viewer-event-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
}

.viewer-event-option input {
    margin-top: 3px;
}

.viewer-event-option span {
    display: grid;
    gap: 2px;
    line-height: 1.3;
}

.viewer-event-option small {
    color: #64748b;
}

.legal-page {
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

.legal-page .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px);
}

.legal-shell {
    max-width: 980px;
    margin: 0 auto;
}

.legal-card {
    padding: clamp(28px, 4vw, 44px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.legal-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-card__title {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.7rem);
    font-weight: 800;
}

.legal-card__intro {
    margin-bottom: 26px;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.75;
}

.legal-section + .legal-section {
    margin-top: 24px;
}

.legal-section h2 {
    margin-bottom: 10px;
    font-size: 1.16rem;
    font-weight: 800;
}

.legal-section p,
.legal-section li {
    color: #475569;
    line-height: 1.75;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 0;
}

body.photo-viewer-open {
    overflow: hidden;
}

.photo-viewer[hidden] {
    display: none !important;
}

.photo-viewer {
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.photo-viewer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}

.photo-viewer__content {
    position: relative;
    z-index: 1;
    width: min(96vw, 1280px);
    margin: 16px auto;
    padding: 18px 72px 24px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.photo-viewer__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.photo-viewer__counter {
    font-size: 0.95rem;
    color: #cbd5e1;
}

.photo-viewer__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-viewer__original-link,
.photo-viewer__download-link {
    color: #f8fafc;
    text-decoration: none;
    border: 1px solid rgba(248, 250, 252, 0.25);
    border-radius: 999px;
    padding: 8px 14px;
}

.photo-viewer__download-link {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(125, 211, 252, 0.32);
}

.photo-viewer__original-link:hover,
.photo-viewer__download-link:hover {
    background: rgba(248, 250, 252, 0.12);
}

.photo-viewer__stage {
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer__image,
.photo-viewer__video {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 260px);
    border-radius: 18px;
    background: #020617;
}

.photo-viewer__image {
    object-fit: contain;
}

.photo-viewer__video {
    width: min(100%, 980px);
}

.photo-viewer__caption {
    margin-top: 18px;
}

.photo-viewer__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.photo-viewer__details {
    color: #cbd5e1;
    margin-top: 6px;
}

.photo-viewer__close,
.photo-viewer__like-button,
.photo-viewer__zoom-button,
.photo-viewer__nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-viewer__close:hover,
.photo-viewer__like-button:hover,
.photo-viewer__like-button:focus-visible,
.photo-viewer__zoom-button:hover,
.photo-viewer__zoom-button:focus-visible,
.photo-viewer__nav:hover {
    background: rgba(248, 250, 252, 0.24);
    transform: translateY(-1px);
}

.photo-viewer__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.photo-viewer__zoom-button {
    top: 16px;
    right: 72px;
    z-index: 2;
    width: 44px;
    height: 44px;
}

.photo-viewer__like-button {
    top: 16px;
    right: 184px;
    z-index: 2;
    min-width: 44px;
    height: 44px;
    gap: 5px;
    padding: 0 12px;
    font-weight: 800;
}

.photo-viewer__like-button[hidden] {
    display: none;
}

.photo-viewer__like-button svg {
    flex: 0 0 auto;
    transition: fill 0.2s ease;
}

.photo-viewer__like-button--active {
    background: rgba(225, 29, 72, 0.95);
    color: #fff;
}

.photo-viewer__like-button--active svg {
    fill: currentColor;
}

.photo-viewer__like-button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.photo-viewer__like-count {
    min-width: 1ch;
    font-size: 0.82rem;
    line-height: 1;
}

.photo-viewer__zoom-button[aria-pressed="true"] {
    background: rgba(56, 189, 248, 0.28);
    color: #e0f2fe;
}

.photo-viewer__zoom-button[aria-pressed="true"] .photo-viewer__zoom-plus {
    display: none;
}

.photo-viewer__nav {
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    font-size: 1.8rem;
}

.photo-viewer__nav--prev {
    left: 14px;
}

.photo-viewer__nav--next {
    right: 14px;
}

.photo-viewer__nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.photo-viewer--public .photo-viewer__content {
    min-height: calc(100vh - 32px);
    padding-top: 74px;
}

.photo-viewer--public .photo-viewer__stage {
    min-height: calc(100vh - 130px);
}

.photo-viewer--public .photo-viewer__image {
    max-height: calc(100vh - 130px);
}

.photo-viewer--public.is-zoomed .photo-viewer__stage {
    height: calc(100vh - 130px);
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
    cursor: grab;
    border-radius: 18px;
}

.photo-viewer--public.is-zoomed .photo-viewer__stage:active {
    cursor: grabbing;
}

.photo-viewer--public.is-zoomed .photo-viewer__image {
    width: clamp(820px, 135vw, 1800px);
    max-width: none;
    max-height: none;
    height: auto;
}

@media (min-width: 769px) {
    .photo-viewer--public .photo-viewer__content {
        width: min(96vw, 1680px);
        height: calc(100vh - 32px);
        min-height: 0;
        padding: 0;
        overflow: hidden;
    }

    .photo-viewer--public .photo-viewer__stage {
        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .photo-viewer--public .photo-viewer__image {
        max-width: 100%;
        max-height: 100%;
    }

    .photo-viewer--public.is-landscape:not(.is-zoomed) .photo-viewer__image {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
    }

    .photo-viewer--public.is-portrait:not(.is-zoomed) .photo-viewer__image {
        width: auto;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .photo-viewer--public.is-zoomed .photo-viewer__stage {
        height: 100%;
    }
}

.photo-viewer__download-icon {
    position: absolute;
    top: 16px;
    right: 128px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.14);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-viewer__download-icon:hover,
.photo-viewer__download-icon:focus-visible {
    background: rgba(248, 250, 252, 0.24);
    color: #f8fafc;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .toast-stack {
        top: 82px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .auth-page {
        --auth-nav-height: 82px;
    }

    .auth-page .page-main > .container.pb-5 > .alert {
        width: calc(100% - 24px);
        margin: 12px auto 0;
        border-radius: 14px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        padding: 22px;
        min-height: auto;
        border-radius: 0;
    }

    .auth-login-panel {
        order: -1;
        min-height: auto;
        padding: 18px 14px 22px;
    }

    .auth-login-column {
        gap: 14px;
        min-height: auto;
    }

    .auth-login-support,
    .auth-stat-row--compact {
        grid-template-columns: 1fr;
    }

    .auth-login-card {
        padding: 22px;
        border-radius: 22px;
    }

    .auth-title {
        max-width: none;
        font-size: 2rem;
    }

    .auth-description {
        font-size: 0.96rem;
    }

    .auth-showcase__visual {
        min-height: auto;
    }

    .auth-gallery {
        gap: 14px;
    }

    .auth-gallery__row,
    .auth-gallery__row--1,
    .auth-gallery__row--2,
    .auth-gallery__row--3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .auth-gallery-card,
    .auth-gallery-card--wide,
    .auth-gallery-card--tall,
    .auth-gallery-card--medium {
        min-height: 180px;
        --auth-rotate: 0deg;
    }

    .brand-logo--nav {
        height: 58px;
        max-width: min(56vw, 280px);
    }

    .brand-logo--public {
        max-width: 340px;
        max-height: 196px;
    }

    .navbar-actions {
        gap: 8px;
    }

    .app-navbar .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .public-nav-center {
        position: static;
        order: 3;
        width: 100%;
        transform: none;
        justify-content: center;
        pointer-events: auto;
    }

    .public-nav-links {
        width: 100%;
        justify-content: center;
        gap: 18px;
    }

    .public-auth-cta {
        margin-left: auto;
    }

    .nav-user-chip {
        width: 100%;
        justify-content: center;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .auth-footer {
        padding: 18px 14px 22px;
    }

    .auth-footer__inner {
        align-items: flex-start;
    }

    .auth-footer__links {
        gap: 12px;
    }

    .photo-viewer__content {
        width: calc(100vw - 16px);
        margin: 8px auto;
        padding: 16px 20px 20px;
        border-radius: 18px;
    }

    .photo-viewer__meta {
        flex-direction: column;
        align-items: flex-start;
        margin-right: 42px;
    }

    .photo-viewer__actions {
        width: 100%;
    }

    .photo-viewer__stage {
        min-height: calc(100vh - 240px);
    }

    .photo-viewer__image,
    .photo-viewer__video {
        max-height: calc(100vh - 240px);
    }

    .photo-viewer__nav {
        position: absolute;
        z-index: 2;
        width: 46px;
        height: 46px;
        margin-top: -23px;
        font-size: 1.65rem;
    }

    .photo-viewer__close {
        top: 10px;
        right: 10px;
    }

    .photo-viewer__zoom-button {
        top: 10px;
        right: 64px;
    }

    .photo-viewer__download-icon {
        top: 10px;
        right: 118px;
    }

    .photo-viewer__like-button {
        top: 10px;
        right: 172px;
    }

    .photo-viewer--public .photo-viewer__content {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .photo-viewer--public .photo-viewer__stage {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .photo-viewer--public .photo-viewer__image {
        width: 100%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        object-fit: contain;
    }

    .photo-viewer--public.is-zoomed .photo-viewer__stage {
        height: 100vh;
        height: 100dvh;
    }

    .photo-viewer--public.is-zoomed .photo-viewer__image {
        width: clamp(460px, 145vw, 980px);
    }

    .photo-viewer__caption {
        padding-bottom: 20px;
    }

    .photo-viewer__nav--prev,
    .photo-viewer__nav--next {
        top: clamp(260px, 50vh, 390px);
        bottom: auto;
    }

    .photo-viewer__nav--prev {
        left: 12px;
    }

    .photo-viewer__nav--next {
        right: 12px;
    }
}

@media (max-width: 1280px) {
    .auth-shell {
        grid-template-columns: minmax(0, 1fr) 460px;
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        align-content: start;
    }

    .auth-showcase__copy {
        max-width: 680px;
    }

    .auth-login-column {
        align-content: start;
    }
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-login-panel {
        order: -1;
        min-height: auto;
        padding: 24px 20px 14px;
        border-left: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    }

    .auth-login-column {
        max-width: 760px;
        min-height: auto;
        align-content: start;
    }

    .auth-login-support {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-stat-row--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-showcase {
        grid-template-columns: 1fr;
        gap: 24px;
        min-height: auto;
        padding: 28px 20px 32px;
    }

    .auth-showcase__copy {
        max-width: none;
    }

    .auth-title {
        max-width: 12ch;
        font-size: clamp(2.25rem, 6vw, 3.6rem);
    }

    .auth-showcase__visual {
        min-height: auto;
    }

    .auth-support-band {
        margin-top: -36px;
        padding-inline: 20px;
    }
}

@media (max-width: 992px) {
    .auth-login-panel {
        order: 1;
        padding-top: 12px;
        border-bottom: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }
}

@media (max-width: 860px) {
    .auth-page {
        --auth-nav-height: 82px;
    }

    .auth-page .page-main > .container.pb-5 > .alert {
        width: calc(100% - 24px);
        margin: 12px auto 0;
        border-radius: 14px;
    }

    .auth-login-panel {
        order: 1;
        padding: 18px 14px 10px;
    }

    .auth-login-card {
        padding: 22px 20px 20px;
        border-radius: 24px;
    }

    .auth-password-field .form-control {
        padding-right: 86px;
    }

    .auth-password-toggle {
        right: 38px;
    }

    .auth-login-cta {
        padding: 20px 18px 18px;
        border-radius: 22px;
    }

    .auth-login-cta__title {
        font-size: 1.5rem;
    }

    .auth-login-support {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        padding: 22px 14px 26px;
    }

    .auth-kicker {
        font-size: 0.74rem;
    }

    .auth-title {
        max-width: none;
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .auth-description {
        max-width: none;
        font-size: 0.96rem;
    }

    .auth-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .auth-gallery__row {
        display: contents;
    }

    .auth-gallery-card,
    .auth-gallery-card--wide,
    .auth-gallery-card--tall,
    .auth-gallery-card--medium {
        min-height: 180px;
        --auth-rotate: 0deg;
    }

    .auth-gallery-card--wide {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .auth-gallery-card figcaption {
        left: 12px;
        bottom: 12px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .auth-footer {
        padding: 18px 14px 22px;
    }

    .auth-support-band {
        margin-top: -20px;
        padding: 0 14px 24px;
    }
}

@media (max-width: 560px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-banner__card {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 18px;
    }

    .cookie-banner__accept {
        width: 100%;
    }

    .auth-mobile-modal {
        padding: 16px 10px 24px;
    }

    .auth-mobile-modal__dialog {
        width: 100%;
    }

    .auth-login-column {
        max-width: none;
    }

    .auth-login-card {
        padding: 20px 18px 18px;
    }

    .brand-logo--auth-modal {
        max-width: 190px;
        max-height: 116px;
    }

    .auth-password-field .form-control {
        padding-right: 80px;
    }

    .auth-password-toggle {
        right: 34px;
    }

    .auth-login-cta {
        padding: 18px 16px 16px;
    }

    .auth-login-card__title {
        font-size: 1.75rem;
    }

    .auth-login-card__subtitle {
        margin-bottom: 18px;
        font-size: 0.94rem;
    }

    .auth-stat-row--compact {
        grid-template-columns: 1fr;
    }

    .auth-gallery {
        grid-template-columns: 1fr;
    }

    .auth-gallery-card,
    .auth-gallery-card--wide,
    .auth-gallery-card--tall,
    .auth-gallery-card--medium {
        min-height: 200px;
        grid-column: auto;
    }

    .brand-logo--public {
        max-width: 280px;
        max-height: 160px;
    }

    .brand-logo--upload {
        max-width: min(100%, 300px);
        max-height: 180px;
    }

    .auth-footer__links {
        gap: 10px 14px;
    }
}

/* Login page redesign */
.auth-page .page-main > .container.pb-5 {
    overflow: visible;
}

.auth-screen {
    overflow: visible;
}

.auth-landing {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: clamp(28px, 3vw, 46px) 24px 36px;
    display: grid;
    gap: 22px;
}

.auth-landing__hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
    gap: clamp(28px, 3vw, 40px);
    padding: clamp(28px, 4vw, 52px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.12), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(59, 130, 246, 0.16), transparent 24%),
        linear-gradient(135deg, #0f172a 0%, #101b35 48%, #132038 100%);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.auth-landing__copy {
    display: grid;
    align-content: center;
    gap: 18px;
    min-width: 0;
}

.auth-landing__title {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    font-weight: 800;
    color: #f8fafc;
    max-width: 8ch;
}

.auth-landing__description {
    margin: 0;
    max-width: 44ch;
    color: #cbd5e1;
    font-size: 1.03rem;
    line-height: 1.8;
}

.auth-landing__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-landing__pills span {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(186, 230, 253, 0.18);
    color: #e0f2fe;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-landing__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.auth-landing__button {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 700;
}

.auth-landing__secondary {
    color: #bae6fd;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-landing__secondary:hover {
    color: #ffffff;
}

.auth-landing__visual {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(240px, 0.84fr);
    gap: 18px;
    min-width: 0;
    align-items: stretch;
}

.auth-landing__visual-side {
    display: grid;
    grid-template-rows: minmax(280px, 1fr) auto;
    gap: 18px;
    min-width: 0;
}

.auth-landing__mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.auth-landing-card {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 44px rgba(2, 6, 23, 0.22);
}

.auth-landing-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-landing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 35%, rgba(15, 23, 42, 0.72) 100%);
}

.auth-landing-card figcaption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.auth-landing-card--primary {
    min-height: 560px;
}

.auth-landing-card--portrait {
    min-height: 350px;
}

.auth-landing-card--small {
    min-height: 190px;
}

.auth-support-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.auth-support-card {
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.auth-support-card__eyebrow {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-support-card__title {
    margin: 0 0 10px;
    font-size: 1.16rem;
    line-height: 1.35;
    font-weight: 800;
    color: #0f172a;
}

.auth-support-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.auth-support-card--accent {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92));
    border-color: rgba(125, 211, 252, 0.12);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.auth-support-card--accent .auth-support-card__title,
.auth-support-card--accent .auth-support-card__text {
    color: #f8fafc;
}

@media (max-width: 1280px) {
    .auth-landing__hero {
        grid-template-columns: 1fr;
    }

    .auth-landing__title {
        max-width: 10ch;
        font-size: clamp(2.5rem, 6vw, 4.4rem);
    }

    .auth-landing__description {
        max-width: 58ch;
    }

    .auth-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-support-card--accent {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    .auth-landing {
        padding: 18px 14px 22px;
    }

    .auth-landing__hero {
        padding: 22px 18px;
        border-radius: 26px;
        gap: 22px;
    }

    .auth-landing__title {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .auth-landing__description {
        font-size: 0.97rem;
    }

    .auth-landing__visual {
        grid-template-columns: 1fr;
    }

    .auth-landing__visual-side {
        grid-template-rows: auto;
    }

    .auth-landing-card--primary {
        min-height: 360px;
    }

    .auth-landing-card--portrait {
        min-height: 260px;
    }

    .auth-landing-card--small {
        min-height: 180px;
    }

    .auth-support-grid {
        grid-template-columns: 1fr;
    }

    .auth-support-card--accent {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .auth-landing__hero {
        padding: 18px 14px;
    }

    .auth-landing__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-landing__button {
        width: 100%;
    }

    .auth-landing__mini-grid {
        grid-template-columns: 1fr;
    }

    .auth-landing-card figcaption {
        left: 12px;
        bottom: 12px;
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .auth-support-card {
        padding: 18px 16px;
        border-radius: 20px;
    }
}

/* Final login layout */
.auth-page .page-main > .container.pb-5 {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
    overflow: visible;
}

.auth-page {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 26%),
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.auth-screen {
    min-height: calc(100dvh - var(--auth-nav-height));
    display: flex;
    flex-direction: column;
}

.login-home {
    width: 100%;
    margin: 0;
    padding: 0 0 36px;
    display: grid;
    gap: 28px;
    flex: 1 0 auto;
}

.login-home__hero {
    position: relative;
    min-height: calc(100dvh - var(--auth-nav-height));
    padding: clamp(28px, 4vw, 56px);
    background: #0a1222;
    overflow: clip;
}

.login-home__hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.login-home__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.login-home__hero-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1560px);
    min-height: calc(100dvh - var(--auth-nav-height) - 112px);
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: clamp(28px, 3vw, 42px);
}

.login-home__hero-heading {
    display: grid;
    gap: 12px;
    max-width: none;
}

.login-home__kicker {
    justify-self: start;
}

.login-home__copy {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
    max-width: 62ch;
}

.login-home__hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px 28px;
    align-items: end;
}

.login-home__title {
    margin: 0;
    width: 100%;
    color: #f8fafc;
    font-size: clamp(3rem, 4.8vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 800;
    text-wrap: pretty;
}

.login-home__description {
    margin: 0;
    color: #dbe7f5;
    font-size: 1.04rem;
    line-height: 1.82;
}

.login-home__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.login-home__primary {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 700;
    color: #0f172a;
}

.login-home__secondary {
    color: #cde8ff;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 700;
}

.login-home__secondary:hover {
    color: #ffffff;
}

.login-home__gallery {
    --card-shift-factor: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 20px 22px;
    min-width: 0;
    padding: 6px 0 0;
}

.login-home__gallery-card {
    position: relative;
    flex: 1 1 clamp(190px, 18vw, 260px);
    min-width: 190px;
    max-width: 340px;
    margin: 0;
    overflow: hidden;
    margin-top: calc(var(--card-offset, 0px) * var(--card-shift-factor));
    aspect-ratio: var(--card-aspect, 0.82);
    transform: rotate(var(--card-rotation, 0deg));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.32);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.login-home__gallery-card picture,
.login-home__gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
}

.login-home__gallery-card img {
    object-fit: cover;
}

.login-home__gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 34%, rgba(15, 23, 42, 0.74) 100%);
}

.login-home__gallery-card:nth-child(8n + 1) {
    flex-basis: clamp(220px, 22vw, 320px);
    --card-aspect: 0.82;
    --card-offset: 24px;
    --card-rotation: -6deg;
}

.login-home__gallery-card:nth-child(8n + 2) {
    flex-basis: clamp(180px, 16vw, 230px);
    --card-aspect: 0.68;
    --card-offset: 84px;
    --card-rotation: 5deg;
}

.login-home__gallery-card:nth-child(8n + 3) {
    flex-basis: clamp(260px, 24vw, 360px);
    --card-aspect: 1.08;
    --card-offset: 6px;
    --card-rotation: -3deg;
}

.login-home__gallery-card:nth-child(8n + 4) {
    flex-basis: clamp(170px, 15vw, 210px);
    --card-aspect: 1.24;
    --card-offset: 96px;
    --card-rotation: 7deg;
}

.login-home__gallery-card:nth-child(8n + 5) {
    flex-basis: clamp(210px, 19vw, 280px);
    --card-aspect: 0.8;
    --card-offset: 10px;
    --card-rotation: 4deg;
}

.login-home__gallery-card:nth-child(8n + 6) {
    flex-basis: clamp(180px, 16vw, 230px);
    --card-aspect: 0.72;
    --card-offset: 62px;
    --card-rotation: -5deg;
}

.login-home__gallery-card:nth-child(8n + 7) {
    flex-basis: clamp(250px, 23vw, 340px);
    --card-aspect: 1.14;
    --card-offset: 28px;
    --card-rotation: 2deg;
}

.login-home__gallery-card:nth-child(8n + 8) {
    flex-basis: clamp(180px, 17vw, 240px);
    --card-aspect: 0.84;
    --card-offset: 78px;
    --card-rotation: -7deg;
}

.login-home__info-grid {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
    position: relative;
    z-index: 2;
}

.login-home__info-card {
    padding: 22px 22px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.login-home__info-card--accent {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9));
    border-color: rgba(125, 211, 252, 0.12);
}

.login-home__info-eyebrow {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-home__info-title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.14rem;
    line-height: 1.35;
    font-weight: 800;
}

.login-home__info-text {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.login-home__info-card--accent .login-home__info-title,
.login-home__info-card--accent .login-home__info-text {
    color: #f8fafc;
}

.login-home__story-grid,
.login-home__flow,
.login-home__event-types {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 0 24px;
}

.login-home__story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 18px;
}

.login-home__story-card {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.login-home__story-card--dark {
    background: linear-gradient(135deg, #0f172a, #13233f);
    border-color: rgba(125, 211, 252, 0.16);
}

.login-home__story-eyebrow,
.login-home__section-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-home__story-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: 1.08;
    font-weight: 800;
}

.login-home__story-card--dark .login-home__story-title,
.login-home__story-card--dark .login-home__story-text,
.login-home__story-card--dark .login-home__story-eyebrow {
    color: #f8fafc;
}

.login-home__story-card--dark .login-home__story-eyebrow {
    color: #7dd3fc;
}

.login-home__story-text {
    margin: 0;
    color: #475569;
    line-height: 1.78;
}

.login-home__story-text + .login-home__story-text {
    margin-top: 12px;
}

.login-home__flow {
    display: grid;
    gap: 18px;
}

.login-home__section-head {
    max-width: 760px;
}

.login-home__section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.6rem, 2.2vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
}

.login-home__flow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.login-home__flow-card {
    padding: 20px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.05);
}

.login-home__flow-number {
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.login-home__flow-text {
    margin: 0;
    color: #334155;
    line-height: 1.62;
    font-weight: 600;
}

.login-home__event-types {
    display: grid;
    gap: 18px;
    padding-bottom: 18px;
}

.login-home__event-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.login-home__event-pills span {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.about-page .page-main > .container.pb-5 {
    width: 100%;
    max-width: none;
    padding: 0;
    display: flex;
    flex: 1 0 auto;
    min-width: 0;
    overflow: hidden;
}

.about-page .page-main > .container.pb-5 > .auth-screen {
    flex: 1 0 auto;
    min-width: 0;
}

.about-page-shell {
    display: grid;
    gap: 24px;
    padding-bottom: 36px;
}

.about-hero {
    position: relative;
    padding: clamp(30px, 4vw, 56px);
    min-height: calc(100dvh - var(--auth-nav-height));
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 26%),
        radial-gradient(circle at right center, rgba(251, 191, 36, 0.12), transparent 24%),
        linear-gradient(135deg, #0a1222 0%, #0f1b33 48%, #10203a 100%);
    overflow: clip;
}

.about-hero__inner {
    width: min(100%, 1520px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: clamp(26px, 3vw, 52px);
    align-items: center;
    min-height: 0;
}

.about-hero__copy {
    max-width: 760px;
}

.about-hero__title {
    margin: 0 0 16px;
    color: #f8fafc;
    font-size: clamp(3rem, 5.4vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.about-hero__lead,
.about-hero__text {
    margin: 0;
    color: #dbe7f5;
    line-height: 1.84;
}

.about-hero__lead {
    font-size: 1.04rem;
    margin-bottom: 14px;
}

.about-hero__actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.about-hero__primary {
    min-height: 52px;
    padding-inline: 22px;
    border-radius: 18px;
    font-weight: 700;
    color: #0f172a;
}

.about-hero__secondary {
    color: #d8ecff;
    text-decoration: none;
    font-weight: 700;
}

.about-hero__secondary:hover {
    color: #ffffff;
}

.about-hero__visual {
    display: grid;
    gap: 16px;
}

.about-hero-card {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(12px);
}

.about-hero-card--large {
    transform: rotate(-2deg);
}

.about-hero-card--compact {
    width: min(100%, 320px);
    justify-self: end;
    transform: rotate(3deg);
}

.about-hero-card--accent {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.18));
    transform: rotate(-3deg);
}

.about-hero-card__eyebrow {
    margin-bottom: 10px;
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-hero-card h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    line-height: 1.08;
    font-weight: 800;
}

.about-hero-card p {
    margin: 0;
    color: #dbe7f5;
    line-height: 1.72;
}

.about-section {
    width: min(100%, 1520px);
    margin: 0 auto;
    padding: 0 24px;
}

.about-section--floating {
    margin-top: -86px;
    position: relative;
    z-index: 2;
}

.about-section__inner {
    display: grid;
    gap: 20px;
}

.about-section__header {
    max-width: 760px;
}

.about-section__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-section__title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.7rem, 2.3vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
}

.about-section__text {
    margin: 0;
    color: #475569;
    line-height: 1.84;
}

.about-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-feature-card {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.about-feature-card__eyebrow {
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-feature-card__title {
    margin: 0 0 10px;
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
}

.about-feature-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.72;
}

.about-step-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.about-step-card {
    padding: 22px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.about-step-card__number {
    margin-bottom: 10px;
    color: #0284c7;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.about-step-card__title {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 1.05rem;
    line-height: 1.28;
    font-weight: 800;
}

.about-step-card__text {
    margin: 0;
    color: #475569;
    line-height: 1.68;
}

.about-section--soft .about-section__inner {
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.about-split-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
}

.about-benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-benefit-pill,
.about-type-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.about-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.about-cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a, #153055);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.about-cta-band .about-section__title,
.about-cta-band .about-section__eyebrow {
    color: #f8fafc;
}

.about-cta-band__button {
    min-height: 54px;
    padding-inline: 22px;
    border-radius: 18px;
    white-space: nowrap;
}

@media (max-width: 1260px) {
    .login-home__hero {
        min-height: auto;
    }

    .login-home__title {
        font-size: clamp(2.7rem, 6.4vw, 4.9rem);
    }

    .login-home__gallery {
        --card-shift-factor: 0.58;
        justify-content: flex-start;
    }

    .login-home__hero-meta {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .login-home__flow-grid,
    .about-step-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-hero__inner,
    .about-feature-grid,
    .about-split-grid {
        grid-template-columns: 1fr;
    }

    .about-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .login-home__hero {
        padding-inline: 22px;
    }

    .login-home__title {
        font-size: clamp(2.5rem, 8vw, 4.2rem);
    }

    .login-home__info-grid {
        grid-template-columns: 1fr;
        padding-inline: 22px;
    }

    .login-home__story-grid,
    .login-home__flow,
    .login-home__event-types,
    .about-section {
        padding-inline: 22px;
    }

    .login-home__story-grid,
    .login-home__flow-grid,
    .about-feature-grid,
    .about-step-grid,
    .about-type-grid,
    .about-cta-band {
        grid-template-columns: 1fr;
    }

    .about-section--floating {
        margin-top: 0;
    }

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

    .about-hero__inner {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .login-home {
        padding-bottom: 22px;
    }

    .login-home__hero {
        padding: 22px 14px 28px;
    }

    .login-home__title {
        font-size: clamp(2.2rem, 10vw, 3.8rem);
    }

    .login-home__description {
        font-size: 0.96rem;
    }

    .login-home__gallery {
        --card-shift-factor: 0;
        gap: 12px;
    }

    .login-home__gallery-card:nth-child(8n + 1),
    .login-home__gallery-card:nth-child(8n + 2),
    .login-home__gallery-card:nth-child(8n + 3),
    .login-home__gallery-card:nth-child(8n + 4),
    .login-home__gallery-card:nth-child(8n + 5),
    .login-home__gallery-card:nth-child(8n + 6),
    .login-home__gallery-card:nth-child(8n + 7),
    .login-home__gallery-card:nth-child(8n + 8) {
        flex-basis: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: none;
        aspect-ratio: 0.86;
        margin-top: 0;
        transform: none;
    }

    .login-home__info-grid {
        padding-inline: 14px;
    }

    .login-home__story-grid,
    .login-home__flow,
    .login-home__event-types,
    .about-section {
        padding-inline: 14px;
    }

    .login-home__story-card,
    .about-feature-card,
    .about-step-card,
    .about-cta-band,
    .about-section--soft .about-section__inner {
        padding: 20px 18px;
        border-radius: 22px;
    }

    .about-hero {
        padding: 22px 14px 28px;
    }

    .about-hero__title {
        font-size: clamp(2.3rem, 10vw, 4rem);
    }

    .about-hero__visual {
        gap: 12px;
    }

    .about-hero-card--compact,
    .about-hero-card--large,
    .about-hero-card--accent {
        width: 100%;
        justify-self: stretch;
        transform: none;
    }
}

@media (max-width: 560px) {
    .login-home__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-home__primary {
        width: 100%;
    }

    .login-home__gallery-card:nth-child(8n + 1),
    .login-home__gallery-card:nth-child(8n + 2),
    .login-home__gallery-card:nth-child(8n + 3),
    .login-home__gallery-card:nth-child(8n + 4),
    .login-home__gallery-card:nth-child(8n + 5),
    .login-home__gallery-card:nth-child(8n + 6),
    .login-home__gallery-card:nth-child(8n + 7),
    .login-home__gallery-card:nth-child(8n + 8) {
        flex-basis: 100%;
        min-width: 100%;
    }

    .login-home__info-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .about-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .about-cta-band {
        grid-template-columns: 1fr;
    }

    .about-hero__primary,
    .about-cta-band__button {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .app-navbar .container {
        flex-wrap: wrap;
        gap: 10px 12px;
    }

    .app-navbar__toggle {
        display: inline-flex;
    }

    .app-navbar__menu {
        display: none;
        width: 100%;
        order: 3;
    }

    .app-navbar.is-open .app-navbar__menu {
        display: grid;
        gap: 10px;
        padding-top: 4px;
    }

    .app-navbar__menu .public-nav-center,
    .app-navbar__menu .navbar-actions {
        position: static;
        width: 100%;
        margin-left: 0 !important;
        transform: none;
        pointer-events: auto;
        justify-content: stretch;
        border: 1px solid rgba(148, 163, 184, 0.2);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    }

    .app-navbar__menu .public-nav-center {
        padding: 8px;
    }

    .app-navbar__menu .navbar-actions {
        padding: 10px;
    }

    .navbar-actions--admin {
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }

    .nav-admin-links,
    .nav-admin-account {
        width: 100%;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav-admin-account {
        padding-top: 10px;
        border-top: 1px solid #eef2f7;
    }

    .nav-admin-links .btn,
    .nav-admin-account .btn,
    .nav-admin-account .nav-user-chip {
        width: 100%;
        justify-content: center;
    }

    .nav-admin-account .nav-user-chip {
        border-radius: 16px;
        padding: 12px 14px;
    }

    .nav-admin-account .nav-user-chip__meta {
        text-align: center;
    }

    .public-nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }

    .public-nav-link {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .public-nav-link::after {
        left: 14px;
        right: 14px;
        bottom: 6px;
        transform-origin: left center;
    }

    .app-navbar__menu .public-auth-cta {
        width: 100%;
    }

    .page-main > .container.pb-5 {
        padding-left: 18px;
        padding-right: 18px;
    }

    .app-page-heading__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-main > .container.pb-5 {
        padding-left: 14px;
        padding-right: 14px;
    }

    .card {
        border-radius: 20px;
    }

    .card-body.p-4,
    .card-body.p-4.p-lg-5,
    .card-body.p-lg-5,
    .card-body.p-5 {
        padding: 1.1rem !important;
    }

    .app-page-heading {
        gap: 12px;
    }

    .event-seo-image-field__controls {
        grid-template-columns: 1fr;
    }

    .event-seo-image-field__button {
        width: 100%;
    }

    .event-seo-image-field__meta {
        grid-template-columns: 1fr;
    }

    .event-seo-image-field__preview {
        width: min(100%, 220px);
    }

    .app-page-heading__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .app-page-heading__actions > .btn,
    .app-page-heading__actions > form {
        flex: 1 1 calc(50% - 5px);
    }

    .app-page-heading__actions > form .btn {
        width: 100%;
    }

    .table-responsive > .table:not(.responsive-stack-table) {
        min-width: 640px;
    }

    .admin-event-group__header {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        align-items: flex-start;
        padding: 14px;
    }

    .admin-event-group__stats {
        grid-column: 2;
        justify-content: flex-start;
        gap: 6px;
    }

    .admin-event-group__stats span {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 0.82rem;
    }

    .table > :not(caption) > * > * {
        padding: 0.75rem 0.7rem;
        font-size: 0.92rem;
        vertical-align: top;
    }

    .table-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: 100%;
    }

    .table-actions .btn,
    .table-actions form,
    .table-actions form .btn {
        width: 100%;
    }

    .responsive-stack-table {
        min-width: 0 !important;
    }

    .responsive-stack-table thead {
        display: none;
    }

    .responsive-stack-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .responsive-stack-table tbody tr {
        display: block;
        border: 1px solid #e5e7eb;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .responsive-stack-table tbody tr.table-empty-row {
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .responsive-stack-table tbody tr.table-empty-row td {
        display: block;
        padding: 12px 6px;
        border: 0;
        text-align: center !important;
    }

    .responsive-stack-table tbody td {
        display: grid;
        grid-template-columns: minmax(94px, var(--stack-table-label-width)) minmax(0, 1fr);
        gap: 10px 14px;
        width: 100%;
        padding: 12px 14px;
        border: 0;
        border-bottom: 1px solid #eef2f7;
        text-align: left;
    }

    .responsive-stack-table tbody td:last-child {
        border-bottom: 0;
    }

    .responsive-stack-table tbody td::before {
        content: attr(data-label);
        color: #475569;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.4;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    .responsive-stack-table tbody td[data-label="Actiuni"] {
        display: block;
    }

    .responsive-stack-table tbody td[data-label="Actiuni"]::before {
        display: block;
        margin-bottom: 10px;
    }

    .responsive-stack-table tbody td.event-select-cell {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .responsive-stack-table tbody td.event-select-cell::before {
        flex: 0 0 auto;
    }

    .viewer-event-picker {
        max-height: none;
        padding: 10px;
    }

    .viewer-event-option {
        padding: 10px;
    }

    .public-upload-notice,
    .storage-meter,
    .legal-card {
        padding: 16px;
    }

    .qr-box img {
        max-width: min(100%, 190px);
    }

    .qr-box .mt-3 {
        display: grid;
        gap: 10px;
    }

    .qr-box .mt-3 .btn {
        width: 100%;
    }

    .thumb-img,
    .video-thumb-placeholder {
        height: 112px;
    }

    .form-control,
    .form-select,
    textarea.form-control {
        font-size: 16px;
    }

    .pagination {
        gap: 6px;
    }

    .pagination .page-link {
        border-radius: 12px;
    }

    .auth-login-switch__btn {
        padding: 10px 8px;
        font-size: 0.94rem;
    }
}

@media (max-width: 560px) {
    .page-main > .container.pb-5 {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-logo--nav {
        height: 50px;
        max-width: min(64vw, 230px);
    }

    .public-nav-links {
        gap: 16px 18px;
    }

    .public-nav-link {
        font-size: 0.98rem;
    }

    .public-auth-cta {
        padding: 9px 16px;
        border-radius: 14px;
    }

    .app-page-heading__actions > .btn,
    .app-page-heading__actions > form {
        flex-basis: 100%;
    }

    .table-responsive > .table:not(.responsive-stack-table) {
        min-width: 560px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .photo-select-card {
        padding: 10px !important;
    }

    .auth-mobile-modal__close {
        width: 36px;
        height: 36px;
    }

    .auth-login-card__title {
        font-size: 1.6rem;
    }
}

.btn-live-mode {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #38bdf8 100%);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.24);
}

.btn-live-mode:hover,
.btn-live-mode:focus {
    color: #fff;
    background: linear-gradient(135deg, #111827 0%, #1d4ed8 58%, #0ea5e9 100%);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.24);
}

.event-live-page {
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.1), transparent 28%),
        #f8fafc;
}

.event-live-page .page-main > .container.pb-5 {
    max-width: 1440px;
}

.live-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.live-shell__main {
    min-width: 0;
}

.live-stage-card,
.live-settings-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
}

.live-stage-card {
    padding: 20px;
}

.live-stage-card__topbar,
.live-stage-card__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-stage-card__topbar {
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.live-stage-card__controls {
    margin-top: 14px;
    flex-wrap: wrap;
}

.live-stage-card__controls .btn {
    min-width: 134px;
}

.live-stage-card__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #0f172a;
    font-weight: 600;
}

.live-stage-card__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.18);
}

.live-stage-card__status[data-tone="ok"] {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.live-stage-card__status[data-tone="ok"] .live-stage-card__status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.live-stage-card__status[data-tone="syncing"] {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.live-stage-card__status[data-tone="syncing"] .live-stage-card__status-dot {
    background: #2563eb;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
}

.live-stage-card__status[data-tone="error"] {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.live-stage-card__status[data-tone="error"] .live-stage-card__status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.18);
}

.live-stage-card__stats {
    color: #475569;
    font-size: 0.95rem;
}

.live-stage {
    position: relative;
    min-height: 66vh;
    overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 35%),
        linear-gradient(145deg, #0f172a, #111827 58%, #1e293b);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.live-stage__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    z-index: 1;
}

.live-stage__empty strong {
    font-size: 1.35rem;
    font-weight: 700;
}

.live-stage__media {
    position: absolute;
    inset: 0;
}

.live-stage__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 420ms ease;
}

.live-stage[data-fit="contain"] .live-stage__image {
    object-fit: contain;
}

.live-stage[data-fit="cover"] .live-stage__image {
    object-fit: cover;
}

.live-stage__image.is-visible {
    opacity: 1;
}

.live-stage__meta {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.78));
    color: #fff;
    backdrop-filter: blur(10px);
}

.live-stage__title {
    font-size: 1.2rem;
    font-weight: 700;
}

.live-stage__details {
    margin-top: 6px;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.82);
}

.live-settings-card {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.live-settings-card__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-settings-card__group + .live-settings-card__group {
    margin-top: 14px;
}

.live-settings-card__check {
    margin-top: 14px;
}

.live-settings-card__note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .live-shell {
        grid-template-columns: 1fr;
    }

    .live-settings-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .live-stage {
        min-height: 56vh;
    }

    .live-stage-card__controls .btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .live-stage-card,
    .live-settings-card {
        border-radius: 22px;
    }

    .live-stage {
        min-height: 48vh;
        border-radius: 20px;
    }

    .live-stage__meta {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .live-stage__title {
        font-size: 1.02rem;
    }

    .live-stage__details {
        font-size: 0.88rem;
    }

    .live-stage-card__controls .btn {
        flex-basis: 100%;
    }
}
