@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300;400;500;600;700&display=swap");

:root {
    --brand: #1a84ce;
    --brand-dark: #0d5e94;
    --ink: #0d1b2a;
    --ink-soft: #3f4a5a;
    --surface: #ffffff;
    --surface-soft: #f4f7fb;
    --accent: #ffe3a3;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 24px 60px rgba(13, 27, 42, 0.15);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, rgba(26, 132, 206, 0.15), transparent 55%),
        linear-gradient(180deg, #f3f8fd 0%, #ffffff 45%, #f7fafc 100%);
}

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

.page {
    min-height: 100vh;
    padding: 20px 20px 40px;
    position: relative;
    overflow: hidden;
}

.page__glow {
    position: absolute;
    width: 260px;
    height: 260px;
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(26, 132, 206, 0.35), transparent 70%);
    filter: blur(4px);
    z-index: 0;
}

.site-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header__logo {
    font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--brand);
}

.site-header__text {
    font-size: 13px;
    color: var(--ink-soft);
}

.site-header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-header__user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
    color: var(--ink-soft);
}

.site-header__user-name {
    font-weight: 600;
    color: var(--ink);
}

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
}

.hero__intro h1 {
    font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 30px;
    line-height: 1.15;
    margin: 16px 0 12px;
}

.hero__intro p {
    color: var(--ink-soft);
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(26, 132, 206, 0.12);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 600;
}

.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.btn--primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 12px 24px rgba(26, 132, 206, 0.35);
}

.btn--ghost {
    background: white;
    color: var(--brand-dark);
    border: 1px solid rgba(26, 132, 206, 0.35);
}

.btn--block {
    width: 100%;
    display: inline-flex;
    justify-content: center;
}

.auth {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 10px auto 0;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.auth--wide {
    max-width: 1180px;
}

.auth h1 {
    font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 0;
}

.auth p {
    color: var(--ink-soft);
    margin: 8px 0 18px;
    font-size: 14px;
}

.auth__form {
    display: grid;
    gap: 16px;
}

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

.login-register-cta {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.error-page {
    text-align: center;
    display: grid;
    gap: 10px;
}

.error-page__badge {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(26, 132, 206, 0.12);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 700;
}

.error-page__actions {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
}

.form-field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    font-size: 14px;
    font-family: inherit;
}

.form-field textarea,
.form-field select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    font-size: 14px;
    font-family: inherit;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus {
    outline: 2px solid rgba(26, 132, 206, 0.3);
    border-color: rgba(26, 132, 206, 0.55);
}

.form-field textarea:focus,
.form-field select:focus {
    outline: 2px solid rgba(26, 132, 206, 0.3);
    border-color: rgba(26, 132, 206, 0.55);
}

.form-note {
    background: var(--surface-soft);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ink-soft);
}

.form-note ul {
    margin: 8px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
}

.form-error {
    background: rgba(255, 120, 120, 0.1);
    border: 1px solid rgba(255, 120, 120, 0.4);
    color: #b13434;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
}

.form-success {
    background: rgba(47, 162, 96, 0.12);
    border: 1px solid rgba(47, 162, 96, 0.4);
    color: #2c6b46;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
}

.events-list {
    display: grid;
    gap: 16px;
}

.event-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.08);
    padding: 16px;
    background: var(--surface);
}

.event-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.event-card__meta {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--ink-soft);
}

.event-card__desc {
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink);
}

.events-first__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 10px;
    margin: 12px 0 16px;
}

.events-first__notices h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.notice-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-left: 6px solid rgba(13, 27, 42, 0.2);
    padding: 14px 16px;
    background: var(--surface);
}

.notice-card h3 {
    margin: 10px 0 6px;
    font-size: 16px;
}

.notice-card__topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.notice-card__body {
    font-size: 13px;
    color: var(--ink);
}

.cafe-order {
    margin-top: 24px;
}

.cafe-order h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.cafe-order__form {
    display: grid;
    gap: 16px;
}

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

.cafe-menu-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    aspect-ratio: 5 / 3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cafe-menu-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cafe-menu-card.is-selected {
    border-color: var(--brand);
    background: rgba(26, 132, 206, 0.08);
    box-shadow: 0 12px 24px rgba(26, 132, 206, 0.2);
    transform: translateY(-2px);
}

.cafe-menu-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.cafe-menu-card__title {
    font-weight: 600;
    font-size: 15px;
}

.cafe-menu-card__meta {
    font-size: 12px;
    color: var(--ink-soft);
}

.cafe-menu-card__badge {
    margin-top: 6px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(13, 27, 42, 0.1);
    color: var(--ink);
}

.cafe-order__affiliations {
    display: grid;
    gap: 12px;
}

.cafe-order__submit {
    width: 100%;
}

.cafe-order-page {
    max-width: 1100px;
}

.cafe-order__success {
    margin: 18px auto 24px;
    display: grid;
    gap: 8px;
    text-align: center;
}

.cafe-order__success-title {
    font-size: 14px;
    font-weight: 600;
}

.cafe-order__success-label {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cafe-order__success-number {
    font-size: 46px;
    font-weight: 800;
    color: #1a84ce;
}

.cafe-order__success-line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.cafe-order__success-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.cafe-order__layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
}

.cafe-order__menu-panel h2,
.cafe-order__summary h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.cafe-order__summary {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: rgba(26, 132, 206, 0.12);
    box-shadow: 0 18px 36px rgba(13, 27, 42, 0.08);
}

.cafe-order__summary-card {
    display: grid;
    gap: 12px;
}

.cafe-order__summary-item {
    display: grid;
    gap: 6px;
}

.cafe-order__summary-label {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 600;
}

.cafe-order__summary-value {
    font-size: 15px;
    font-weight: 600;
}

.cafe-order__quantity {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cafe-qty {
    min-width: 44px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: var(--surface);
    cursor: pointer;
    font-weight: 600;
}

.cafe-qty.is-selected {
    border-color: var(--brand);
    background: rgba(26, 132, 206, 0.12);
}

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

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

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.4);
}

.modal__content {
    position: relative;
    z-index: 1;
    width: min(920px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.modal__header,
.modal__footer {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.modal__footer {
    border-top: 1px solid rgba(13, 27, 42, 0.08);
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
}

.modal__footer--actions {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.btn--sm {
    padding: 10px 16px;
    font-size: 14px;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(13, 27, 42, 0.9);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 12px 24px rgba(13, 27, 42, 0.2);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 60;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[hidden] {
    display: none !important;
}

.modal__body {
    padding: 16px 20px;
    display: grid;
    gap: 16px;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal__back {
    border: none;
    background: transparent;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.modal__header h3 {
    margin: 0;
    font-size: 18px;
}

.modal__close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.cafe-select h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.cafe-select__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.cafe-select__card {
    border-radius: 14px;
    border: 3px solid rgba(13, 27, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(13, 27, 42, 0.08);
    color: var(--ink);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cafe-select__card::before {
    content: "";
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--accent, #1a84ce);
    margin-bottom: 8px;
}

.cafe-select__card.is-selected {
    border-color: var(--accent, #1a84ce);
    transform: translateY(-2px);
}

.cafe-select__list {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
}

.cafe-select__list-item {
    border-radius: 12px;
    border: 1px solid rgba(13, 27, 42, 0.1);
    padding: 8px 10px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

.cafe-select__list-item.is-selected {
    border-color: var(--brand);
    background: rgba(26, 132, 206, 0.08);
}

.affiliation-card-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.affiliation-card {
    border-radius: 14px;
    border: 3px solid var(--accent, rgba(13, 27, 42, 0.12));
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 20px rgba(13, 27, 42, 0.08);
    color: var(--ink);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.affiliation-card::before {
    content: "";
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--accent, #1a84ce);
    margin-bottom: 8px;
}

.affiliation-card.is-selected {
    border-color: var(--accent, #1a84ce);
    background: color-mix(in srgb, var(--accent, #1a84ce) 18%, #ffffff);
    box-shadow: 0 16px 28px rgba(26, 132, 206, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .cafe-order__layout {
        grid-template-columns: 1fr;
    }

    .cafe-order__summary {
        position: static;
    }
}

.cafe-menu__create h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.cafe-menu__list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.cafe-menu__card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.12);
    padding: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    display: grid;
    gap: 12px;
    box-shadow: 0 14px 28px rgba(13, 27, 42, 0.08);
}

.cafe-menu__row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.cafe-menu__row--actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cafe-menu__orderable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.settings-url {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed rgba(13, 27, 42, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

.settings-url__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}

.settings-url__link {
    font-size: 13px;
    color: var(--brand);
    word-break: break-all;
}

.settings-url__button {
    width: fit-content;
}

.cafe-orders__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0 24px;
}

.cafe-orders__toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 6px;
    gap: 8px;
}

.cafe-orders__stats-link {
    white-space: nowrap;
}

.cafe-orders__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(13, 27, 42, 0.16);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.cafe-orders__toggle-label {
    white-space: nowrap;
}

.cafe-orders__toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(13, 27, 42, 0.2);
    transition: background 0.2s ease;
}

.cafe-orders__toggle-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(13, 27, 42, 0.2);
    transition: transform 0.2s ease;
}

.cafe-orders__toggle.is-active {
    border-color: #1a84ce;
    color: #1a84ce;
    background: rgba(26, 132, 206, 0.12);
}

.cafe-orders__toggle.is-active .cafe-orders__toggle-switch {
    background: rgba(26, 132, 206, 0.6);
}

.cafe-orders__toggle.is-active .cafe-orders__toggle-switch::before {
    transform: translateX(20px);
}

.cafe-orders__stat {
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: var(--surface);
    padding: 16px;
    box-shadow: 0 12px 24px rgba(13, 27, 42, 0.08);
}

.cafe-orders__stat-label {
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 600;
}

.cafe-orders__stat-value {
    font-size: 26px;
    font-weight: 700;
    margin-top: 6px;
}

.cafe-orders__menu-stats h2,
.cafe-orders__list h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

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

.cafe-orders__menu-card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: var(--surface);
    padding: 14px;
}

.cafe-orders__menu-name {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cafe-orders__menu-temp {
    font-size: 12px;
    color: var(--ink-soft);
}

.cafe-orders__menu-qty {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink);
}

.cafe-orders__table {
    display: grid;
    gap: 6px;
}

.cafe-orders__row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(140px, 1.1fr) minmax(140px, 1.2fr) minmax(80px, 0.6fr)
        minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(140px, 0.9fr);
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 13px;
}

.cafe-orders__row--date {
    grid-template-columns: minmax(140px, 1.2fr) minmax(120px, 1fr) minmax(120px, 1fr);
    align-items: center;
}

.cafe-orders__row--list {
    grid-template-columns: minmax(80px, 0.6fr) minmax(140px, 1.1fr) minmax(140px, 1.2fr)
        minmax(80px, 0.6fr) minmax(120px, 1fr) minmax(160px, 1fr) minmax(140px, 1fr)
        minmax(140px, 0.9fr);
    align-items: center;
}

.cafe-orders__order-number {
    font-size: 20px;
    font-weight: 800;
    color: #1a84ce;
}

.cafe-orders__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cafe-orders__repeat {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: rgba(13, 27, 42, 0.08);
    padding: 2px 6px;
    border-radius: 999px;
}

.cafe-orders__order-number::after {
    content: "";
}

.cafe-orders__row--list.is-new .cafe-orders__order-number::after {
    content: "NEW";
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #1a84ce;
    background: rgba(26, 132, 206, 0.12);
    border: 1px solid rgba(26, 132, 206, 0.35);
}

.cafe-orders__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.cafe-orders__nickname {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-left: 6px;
}

.cafe-orders__head {
    background: var(--surface);
    font-weight: 600;
}

.cafe-orders__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cafe-orders__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cafe-orders__status--cancelled {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.cafe-orders__status--completed {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.cafe-orders__row--list.is-new {
    animation: cafeOrderPulse 1.6s ease-in-out;
    border: 1px solid rgba(26, 132, 206, 0.5);
    box-shadow: 0 12px 24px rgba(26, 132, 206, 0.18);
}

@keyframes cafeOrderPulse {
    0% {
        transform: translateY(0);
        background: rgba(26, 132, 206, 0.18);
    }
    50% {
        transform: translateY(-4px);
        background: rgba(26, 132, 206, 0.1);
    }
    100% {
        transform: translateY(0);
        background: var(--surface-soft);
    }
}

@media (max-width: 900px) {
    .cafe-orders__row,
    .cafe-orders__row--list {
        grid-template-columns: 1fr 1fr;
    }

    .cafe-orders__row--date {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 980px) {
    .cafe-orders__row--list {
        grid-template-columns: minmax(80px, 0.6fr) minmax(140px, 1.1fr) minmax(140px, 1.2fr)
            minmax(80px, 0.6fr) minmax(120px, 1fr) minmax(160px, 1fr);
    }
    .cafe-orders__row--list > :nth-child(8) {
        grid-column: 1 / -1;
    }
    .cafe-orders__row {
        grid-template-columns: minmax(140px, 1.1fr) minmax(140px, 1.2fr) minmax(80px, 0.6fr)
            minmax(120px, 1fr) minmax(120px, 1fr);
    }
    .cafe-orders__row > :nth-child(7) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .cafe-orders__row,
    .cafe-orders__row--list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cafe-orders__row--list > :nth-child(8),
    .cafe-orders__row > :nth-child(7) {
        grid-column: auto;
    }
}

.form-divider {
    border: none;
    border-top: 1px dashed rgba(13, 27, 42, 0.12);
    margin: 18px 0;
}

.photobooth {
    max-width: 1100px;
}

.private-questions {
    max-width: 1200px;
}

.private-questions__list h2 {
    margin: 16px 0 12px;
    font-size: 18px;
}

.private-questions__table {
    display: grid;
    gap: 8px;
}

.private-questions__row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(120px, 0.9fr) minmax(100px, 0.9fr) minmax(100px, 0.9fr)
        minmax(120px, 1fr) minmax(160px, 1.1fr) minmax(220px, 2fr) minmax(90px, 0.6fr)
        minmax(150px, 1.1fr);
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 13px;
    align-items: start;
}

.private-questions__head {
    background: var(--surface);
    font-weight: 600;
}

.private-questions__body {
    white-space: pre-wrap;
    word-break: break-word;
}

.private-questions__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.private-questions__status--hidden {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.private-questions__status--visible {
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
}

.private-questions__status--picked {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.private-questions__status--blocked {
    background: #0b0b0b;
    color: #ffffff;
}

.private-questions__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.private-question-draw {
    max-width: 760px;
}

.private-question-draw__timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 16px;
    font-weight: 700;
}

.private-question-draw__timer-value {
    font-size: 18px;
    color: #1a84ce;
}

.private-question-draw__actions {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.private-question-draw__card {
    border-radius: 16px;
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: #fff;
    padding: 18px;
    display: grid;
    gap: 12px;
}

.private-question-draw__card h2 {
    margin: 0;
    font-size: 20px;
}

.private-question-draw__body {
    font-size: 14px;
    color: var(--ink);
    line-height: 1.6;
    white-space: pre-wrap;
}

@media (max-width: 980px) {
    .private-questions__row {
        grid-template-columns: 1fr 1fr;
    }
}

.photobooth__start {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 0 0 10px;
}

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

.photobooth__start-btn {
    font-size: 20px;
    padding: 16px 28px;
}

.photobooth__start-btn.is-active {
    background: #f39c12;
    border-color: #f39c12;
}

.photobooth__start-btn.is-hidden {
    display: none;
}

.photobooth__frame-btn {
    display: none;
}

.photobooth__frame-btn.is-visible {
    display: inline-flex;
}

.photobooth__cancel-btn {
    display: none;
    color: #a11a1f;
    border-color: #f1b7b9;
    background: #fff1f1;
}

.photobooth__cancel-btn.is-visible {
    display: inline-flex;
}

.photobooth__frame-btn.is-disabled,
.photobooth__frame-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.photobooth__status {
    font-size: 14px;
    color: var(--ink-soft);
    min-height: 20px;
}

.photobooth__status.has-message {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #c7e0ff;
    color: #14508f;
}

.photobooth__layout {
    display: grid;
    gap: 20px;
    margin-top: 0;
}

.photobooth__layout.is-hidden {
    display: none;
}

.photobooth__column h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.photobooth__count {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 0;
}

.photobooth__count.is-hidden {
    display: none;
}

.photobooth__count--inline {
    margin: 0;
    align-self: center;
}

.photobooth__hint.is-hidden {
    display: none;
}

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

.photobooth__thumb {
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 12px;
    padding: 6px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.photobooth__thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.photobooth__thumb.is-selected {
    border-color: #1a84ce;
    box-shadow: 0 0 0 2px rgba(26, 132, 206, 0.2);
}

.photobooth__thumb.is-selected::before {
    content: 'v';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #1a84ce;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    z-index: 1;
}

.photobooth__sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
}

.photobooth__card {
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 14px;
    padding: 12px;
    background: var(--surface);
}

.photobooth__card h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.photobooth__frames,
.photobooth__quantity {
    display: grid;
    gap: 8px;
}

.photobooth__frame,
.photobooth__qty {
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    display: grid;
    gap: 6px;
}

.photobooth__frame-preview {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 8px;
    background: #f5f7fb;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0 auto;
}

.photobooth__frame-preview-photo {
    position: absolute;
    object-fit: cover;
}

.photobooth__frame-preview-qr {
    position: absolute;
    top: -26px;
    right: 2px;
    width: 20%;
    height: 20%;
    max-width: 64px;
    max-height: 64px;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    transform: translate(-30%, 10%);
}

.photobooth__frame.is-selected,
.photobooth__qty.is-selected {
    border-color: #1a84ce;
    color: #1a84ce;
    font-weight: 600;
}

.photobooth__frame-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    background: #f5f7fb;
}

.photobooth__print {
    width: 100%;
}

.photobooth__modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 50;
}

.photobooth__modal.is-hidden {
    display: none;
}

.photobooth__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 20, 0.5);
}

.photobooth__modal-body {
    position: relative;
    z-index: 1;
    width: min(1040px, 94vw);
    max-height: 96vh;
    overflow: auto;
    background: var(--surface);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.photobooth__modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.photobooth__modal-header h3 {
    margin: 0;
}

.photobooth__modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.photobooth__modal-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: start;
}

.photobooth__frames {
    grid-template-columns: 1fr;
}

.photobooth__modal-side {
    display: grid;
    gap: 12px;
}

.photobooth__quantity-box {
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.photobooth__quantity-label {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--ink-soft);
}

.photobooth__quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.photobooth__qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(13, 27, 42, 0.12);
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

.photobooth__qty-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.photobooth__qty-value {
    font-size: 20px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.photobooth__modal-status {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ink-soft);
    min-height: 18px;
}

.photobooth__qr {
    margin-top: 16px;
    text-align: center;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.photobooth__qr--inline {
    width: 100%;
}

.photobooth__qr #photobooth-qr-code {
    width: 100%;
    max-width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 1px solid rgba(13, 27, 42, 0.1);
    background: #fff;
    padding: 8px;
    display: grid;
    place-items: center;
}

.photobooth__qr a {
    font-size: 13px;
    color: var(--brand);
    word-break: break-all;
}

.photobooth-templates {
    max-width: 1100px;
}

.photobooth-url-cell {
    display: grid;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
}

.photobooth-url-cell__line a {
    color: var(--brand);
    text-decoration: none;
}

.photobooth-template__upload {
    margin: 16px 0 24px;
}

.photobooth-template__list {
    display: grid;
    gap: 16px;
}

.photobooth-template__card {
    border: 1px solid rgba(13, 27, 42, 0.12);
    border-radius: 16px;
    background: var(--surface);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.photobooth-template__header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.photobooth-template__header .form-field {
    margin: 0;
    flex: 1 1 220px;
}

.photobooth-template__canvas {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.photobooth-template__image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}

.photobooth-template__overlay {
    position: absolute;
    inset: 0;
}

.photobooth-template__slot {
    position: absolute;
    border: 2px dashed #1a84ce;
    background: rgba(26, 132, 206, 0.12);
    border-radius: 8px;
    cursor: move;
    box-sizing: border-box;
}

.photobooth-template__slot-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    right: -6px;
    bottom: -6px;
    border-radius: 4px;
    background: #1a84ce;
    cursor: se-resize;
}

.photobooth-template__help {
    font-size: 12px;
    color: var(--ink-soft);
}

.photobooth__print-sheet {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}


.photobooth__strip {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    padding: 0;
    width: 2in;
    height: 6in;
    background: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.photobooth__strip-photo {
    position: absolute;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.photobooth__strip-qr {
    position: absolute;
    top: 0;
    right: 0;
    width: 20%;
    height: 20%;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    z-index: 5;
    transform: translate(-30%, -30%);
}

.photobooth__strip-event {
    font-size: 10pt;
    text-align: center;
    font-weight: 600;
    color: #111;
    line-height: 1.1;
}

@media print {
    @page {
        size: 4in 6in;
        margin: 0;
    }

    body {
        margin: 0;
    }

    .page > * {
        display: none !important;
    }

    .page > .photobooth__print-sheet {
        display: flex !important;
        width: 4in;
        height: 6in;
        gap: 0;
        position: fixed;
        inset: 0;
        left: 0;
        top: 0;
        opacity: 1 !important;
        pointer-events: auto;
        z-index: 9999;
        background: #fff;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .photobooth__print-sheet * {
        display: block !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .photobooth__strip {
        display: block !important;
    }
}

@media (max-width: 900px) {
    .photobooth__layout {
        grid-template-columns: 1fr;
    }

    .photobooth__modal-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 901px) {
    .admin-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
    }
}

.divider {
    border: none;
    border-top: 1px solid rgba(13, 27, 42, 0.12);
    margin: 24px 0;
}

.color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.color-palette {
    display: grid;
    gap: 8px;
}

.color-palette__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.color-palette__item input {
    margin: 0;
}

.color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(13, 27, 42, 0.2);
}

.affiliations-shell {
    display: grid;
    gap: 18px;
    margin-top: 10px;
}

.affiliations-panel {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow);
}

.affiliations-panel h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.affiliations-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.affiliations-row {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.affiliations-row.is-active {
    border: 1px solid rgba(26, 132, 206, 0.4);
    background: rgba(26, 132, 206, 0.08);
}

.affiliations-select {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--brand-dark);
}

.affiliations-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--ink);
}

.affiliations-actions {
    display: grid;
    gap: 8px;
}

.affiliations-edit {
    display: grid;
    gap: 8px;
}

.affiliations-edit input {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    font-size: 13px;
    font-family: inherit;
}

.affiliations-modal {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: min(520px, 92vw);
    box-shadow: var(--shadow);
}

.affiliations-modal::backdrop {
    background: rgba(13, 27, 42, 0.45);
}

.affiliations-modal__form {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.affiliations-modal__form h3 {
    margin: 0;
    font-size: 18px;
}

.affiliations-modal__form select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    font-size: 14px;
    font-family: inherit;
}

.affiliations-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mono {
    font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 4px;
    word-break: break-all;
}

.hero__slug {
    margin-top: 22px;
    padding: 14px 16px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.hero__slug strong {
    font-size: 18px;
    color: var(--brand-dark);
}

.hero__card .card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h2 {
    margin-top: 0;
    font-size: 20px;
}

.card p {
    margin: 8px 0 16px;
    color: var(--ink-soft);
}

.card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.card__list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(26, 132, 206, 0.08);
    font-size: 14px;
}

.features {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 22px;
    margin: 0 0 8px;
}

.section-header p {
    margin: 0 0 20px;
    color: var(--ink-soft);
}

.feature-grid {
    display: grid;
    gap: 16px;
}

.feature {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid rgba(13, 27, 42, 0.08);
}

.feature h3 {
    margin-top: 0;
    font-size: 16px;
}

.feature p {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.next {
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.next__panel {
    background: linear-gradient(135deg, rgba(26, 132, 206, 0.18), rgba(255, 227, 163, 0.5));
    border-radius: var(--radius-lg);
    padding: 22px;
}

.next__panel h2 {
    margin-top: 0;
    font-size: 20px;
}

.next__panel p {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.next__stats {
    display: grid;
    gap: 12px;
}

.next__stats div {
    background: var(--surface);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.next__stats strong {
    color: var(--brand-dark);
    font-size: 14px;
}

.site-footer {
    margin-top: 40px;
    font-size: 12px;
    color: var(--ink-soft);
    position: relative;
    z-index: 1;
}

.hero__intro,
.hero__card,
.feature,
.next__panel,
.next__stats div {
    animation: rise 0.8s ease both;
}

.hero__intro {
    animation-delay: 0.05s;
}

.hero__card {
    animation-delay: 0.12s;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }

.next__panel { animation-delay: 0.2s; }
.next__stats div:nth-child(1) { animation-delay: 0.3s; }
.next__stats div:nth-child(2) { animation-delay: 0.4s; }
.next__stats div:nth-child(3) { animation-delay: 0.5s; }

.admin-page .page__glow {
    width: 320px;
    height: 320px;
    top: -140px;
}

.admin-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.admin-sidebar {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow);
}

.admin-sidebar__title {
    margin: 0 0 12px;
    font-size: 16px;
}

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

.admin-nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(26, 132, 206, 0.08);
    font-weight: 600;
    color: var(--brand-dark);
}

.admin-nav__link.is-active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 20px rgba(26, 132, 206, 0.25);
}

.admin-content .auth {
    margin: 0;
}

.admin-dashboard {
    max-width: none;
}

.admin-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.admin-filters label {
    font-size: 13px;
    font-weight: 600;
}

.admin-filters select,
.admin-filters input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    font-size: 14px;
    font-family: inherit;
    min-width: 0;
}

.admin-filters .filter-field {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.admin-filters .filter-actions {
    align-items: center;
    justify-content: flex-start;
}

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

.admin-table__row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) repeat(4, minmax(90px, 1fr));
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 13px;
}

.registrations-table {
    display: grid;
    gap: 8px;
    overflow-x: auto;
}

.registrations-table__row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(120px, 1.2fr) minmax(140px, 1fr)
        minmax(90px, 0.7fr) minmax(100px, 1fr) minmax(220px, 2fr);
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--surface-soft);
    font-size: 13px;
    min-width: 760px;
}

.registrations-table__row--head {
    font-weight: 700;
    background: #eef6ff;
    border: 1px solid #c7e0ff;
}

.admin-table__head {
    background: var(--surface);
    font-weight: 600;
}

.admin-table--users .admin-table__row {
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.3fr) minmax(120px, 1fr)
        minmax(90px, 0.8fr) minmax(110px, 0.8fr) minmax(220px, 1.4fr);
    align-items: start;
}

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

.admin-role-form {
    display: grid;
    gap: 6px;
    align-items: center;
}

.admin-role-form select {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(13, 27, 42, 0.15);
    font-size: 13px;
    font-family: inherit;
}

.billboard-manage__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.billboard-manage__upload {
    margin-top: 24px;
}

.billboard-manage__list {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.billboard-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.billboard-card__preview {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

.billboard-card__preview img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.billboard-card__fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.billboard-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.billboard-card__delete {
    display: flex;
    justify-content: flex-end;
}

.billboard-body {
    margin: 0;
    background: #0b0f1c;
    color: #f8fafc;
}

.billboard-stage {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(60, 80, 150, 0.45), transparent 60%),
        radial-gradient(circle at bottom, rgba(20, 30, 60, 0.7), transparent 55%),
        #0b0f1c;
}

.billboard-frame {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.billboard-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.billboard-image.is-visible {
    opacity: 1;
}

.billboard-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 22px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.billboard-empty.is-visible {
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

@media (min-width: 720px) {
    .page {
        padding: 30px 40px 60px;
    }

    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

    .site-header__actions {
        gap: 12px;
    }

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

    .next {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .next__stats {
        gap: 16px;
    }

    .admin-shell {
        grid-template-columns: 240px 1fr;
        align-items: start;
    }

    .admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        align-items: end;
    }

    .affiliations-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .affiliations-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .affiliations-edit {
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .page {
        max-width: 1080px;
        margin: 0 auto;
    }

    .hero__intro h1 {
        font-size: 40px;
    }

    .section-header h2 {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    .affiliations-shell {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
    }
}
