:root {
    --background: #121214;
    --surface: rgba(27, 27, 31, 0.9);
    --surface-strong: rgba(32, 32, 36, 0.94);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(214, 166, 83, 0.34);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-soft: #c6c7cb;
    --brand: #d6a653;
    --brand-strong: #e3b96d;
    --brand-soft: rgba(214, 166, 83, 0.14);
    --danger: #ff746a;
    --success: #78d790;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
    --radius-xl: 2rem;
    --radius-lg: 1.35rem;
    --radius-md: 1rem;
    --font-sans: "Manrope", sans-serif;
    --font-display: "Barlow Condensed", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at 20% 12%, rgba(214, 166, 83, 0.08), transparent 18%),
        radial-gradient(circle at 80% 24%, rgba(214, 166, 83, 0.05), transparent 16%),
        linear-gradient(180deg, rgba(16, 16, 18, 0.95), rgba(16, 16, 18, 1));
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.admin-shell {
    background:
        radial-gradient(circle at top left, rgba(205, 158, 66, 0.16), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(205, 158, 66, 0.11), transparent 18%),
        #121214;
}

.admin-app-shell {
    min-height: 100vh;
    padding: 20px;
}

.admin-topbar,
.section-card,
.auth-card,
.sharing-card {
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-topbar {
    max-width: 1480px;
    margin: 0 auto 18px;
    padding: 18px 22px;
    border-radius: 1.6rem;
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup,
.sharing-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-lockup img,
.sharing-brand img,
.auth-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.brand-lockup strong,
.sharing-brand span {
    display: block;
    font-weight: 800;
}

.brand-lockup span {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-chip:hover,
.nav-chip.active {
    color: var(--text);
    border-color: rgba(214, 166, 83, 0.32);
    background: rgba(214, 166, 83, 0.12);
    transform: translateY(-1px);
}

.topbar-user,
.muted-text {
    color: var(--text-muted);
}

.admin-main {
    max-width: 1480px;
    margin: 0 auto;
}

.section-card {
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(214, 166, 83, 0.1), transparent 24%);
}

.dashboard-hero,
.form-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-hero h1,
.form-hero h1,
.auth-brand h1,
.sharing-card h1,
.empty-state h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 0.94;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.section-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 3.15rem);
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.dashboard-hero p:not(.eyebrow),
.form-hero p:not(.eyebrow),
.auth-brand p:not(.eyebrow),
.empty-state p,
.sharing-intro,
.sharing-subtitle {
    color: var(--text-soft);
    line-height: 1.7;
}

.section-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brand);
    font-weight: 700;
}

.flash-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.flash {
    border-radius: 1rem;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.flash-success {
    border-color: rgba(120, 215, 144, 0.4);
    background: rgba(120, 215, 144, 0.12);
}

.flash-error {
    border-color: rgba(255, 116, 106, 0.4);
    background: rgba(255, 116, 106, 0.1);
}

.primary-button,
.secondary-button,
.ghost-button,
.sharing-button {
    border-radius: 999px;
    padding: 14px 20px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.primary-button,
.sharing-button.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #1a1a1a;
    box-shadow: 0 18px 40px rgba(212, 166, 82, 0.26);
    font-weight: 800;
}

.secondary-button,
.sharing-button.secondary {
    border-color: var(--border-strong);
    background: rgba(214, 166, 83, 0.1);
    color: var(--text);
    font-weight: 700;
}

.ghost-button {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.sharing-button:hover {
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.count-pill,
.status-pill,
.sharing-chips span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.status-pill.status-published {
    border-color: rgba(120, 215, 144, 0.4);
    color: #bff0c8;
}

.status-pill.status-draft {
    border-color: rgba(214, 166, 83, 0.35);
    color: #ffdca2;
}

.status-pill.status-archived {
    border-color: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
}

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

.event-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.filter-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 0.88rem;
}

.filter-chip:hover,
.filter-chip.active {
    transform: translateY(-1px);
    border-color: rgba(214, 166, 83, 0.34);
    background: rgba(214, 166, 83, 0.09);
    color: var(--text);
}

.event-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.user-admin-layout {
    align-items: start;
}

.user-list,
.user-create-form {
    display: grid;
    gap: 16px;
}

.user-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    display: grid;
    gap: 12px;
}

.user-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.user-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calendar-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.calendar-toolbar-actions,
.booking-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.calendar-board {
    display: grid;
    gap: 8px;
    overflow-x: auto;
}

.calendar-grid {
    min-width: 920px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-grid-head {
    margin-bottom: 4px;
}

.calendar-weekday {
    padding: 10px 12px;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
}

.calendar-day {
    min-height: 170px;
    padding: 12px;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    align-content: start;
    gap: 12px;
}

.calendar-day.is-muted {
    opacity: 0.55;
}

.calendar-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 800;
}

.calendar-day-number.is-today {
    border-color: rgba(214, 166, 83, 0.34);
    background: rgba(214, 166, 83, 0.12);
}

.calendar-day-count {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.calendar-booking-list,
.booking-list {
    display: grid;
    gap: 10px;
}

.calendar-booking-chip {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 0.95rem;
    border: 1px solid rgba(214, 166, 83, 0.18);
    background: rgba(214, 166, 83, 0.08);
}

.calendar-booking-chip strong {
    font-size: 0.94rem;
}

.calendar-booking-chip span,
.calendar-booking-more {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.booking-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    display: grid;
    gap: 14px;
}

.booking-card h3 {
    margin: 0;
    font-size: 1.28rem;
}

.booking-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.84rem;
    font-weight: 700;
}

.booking-status-pill.status-requested {
    color: #ffe3b5;
    border-color: rgba(214, 166, 83, 0.35);
}

.booking-status-pill.status-confirmed,
.booking-status-pill.status-completed {
    color: #bff0c8;
    border-color: rgba(120, 215, 144, 0.35);
}

.booking-status-pill.status-preparing {
    color: #cde4ff;
    border-color: rgba(122, 171, 255, 0.32);
}

.booking-status-pill.status-cancelled {
    color: #ffc0bb;
    border-color: rgba(255, 116, 106, 0.3);
}

.event-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.event-card-top,
.event-actions,
.hero-actions,
.link-row-actions,
.sharing-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.save-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(214, 166, 83, 0.34);
    background: rgba(214, 166, 83, 0.1);
    color: #ffe3b5;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

.save-status-chip.is-saving {
    border-color: rgba(120, 215, 144, 0.34);
    background: rgba(120, 215, 144, 0.1);
    color: #c6f5d0;
}

.event-slug {
    margin-top: -6px;
}

.event-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.empty-state {
    padding: 32px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}

.editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
}

.editor-main,
.editor-internal,
.editor-links {
    min-width: 0;
    align-self: start;
}

.editor-main {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    align-content: start;
}

.editor-form {
    padding-bottom: 120px;
}

.editor-sidebar {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    display: grid;
    gap: 18px;
    align-content: start;
}

.editor-internal {
    grid-column: 1;
    grid-row: 2;
}

.editor-links {
    grid-column: 1 / -1;
    grid-row: 3;
}

.editor-main,
.editor-internal,
.editor-links,
.editor-sidebar .section-card {
    padding: 22px;
}

.editor-main .section-header,
.editor-internal .section-header,
.editor-links .section-header {
    margin-bottom: 18px;
}

.editor-main .field-grid,
.editor-internal .field-grid,
.editor-links .link-row-grid {
    gap: 14px;
}

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

.field-span-2 {
    grid-column: span 2;
}

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

.field span {
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.96);
    color: #14202b;
}

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

.editor-main textarea[name="intro_text"] {
    min-height: 74px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid rgba(214, 166, 83, 0.18);
    border-color: rgba(214, 166, 83, 0.6);
}

.field-hint,
.field-error {
    font-size: 0.88rem;
}

.field-hint {
    color: var(--text-muted);
}

.section-hint {
    margin: 0 0 18px;
}

.field-error,
.field-error-block {
    color: #ffb0a8;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-card {
    margin-bottom: 16px;
}

.compact-checkbox {
    align-self: end;
    min-height: 52px;
}

.status-choice-list {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.status-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
}

.editor-sidebar .section-header h2 {
    font-size: clamp(1.45rem, 2vw, 2.4rem);
}

.editor-sidebar .field-grid {
    gap: 14px;
}

.editor-sidebar .field input,
.editor-sidebar .field select,
.editor-sidebar .field textarea {
    padding: 10px 12px;
}

.editor-sidebar .field textarea {
    min-height: 88px;
}

.image-preview {
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
}

.image-preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.qr-card {
    display: grid;
    gap: 16px;
}

.qr-preview {
    display: grid;
    place-items: center;
    min-height: 150px;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: 14px;
}

.qr-preview img,
.qr-preview canvas {
    max-width: 100%;
    height: auto;
}

.qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sharing-waiting-card,
.sharing-qr-card {
    margin-top: 30px;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: 22px;
}

.sharing-waiting-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 0.98;
    text-transform: uppercase;
}

.sharing-waiting-card p {
    margin: 14px auto 0;
    max-width: 42rem;
    color: var(--text-soft);
    line-height: 1.7;
}

.sharing-qr-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr);
    align-items: center;
    gap: 18px;
    text-align: left;
}

.sharing-qr-text {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.sharing-qr-visual {
    display: flex;
    justify-content: center;
}

.qr-preview-light {
    min-height: 180px;
    background: rgba(255, 255, 255, 0.94);
}

.qr-preview-compact {
    min-height: 132px;
    max-width: 148px;
    margin: 0 auto;
    padding: 10px;
}

.sharing-tools-card {
    margin-top: 30px;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    padding: 22px;
}

.sharing-tools-header {
    margin-bottom: 16px;
}

.sharing-tool-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.share-chip {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.share-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(214, 166, 83, 0.34);
    background: rgba(214, 166, 83, 0.09);
    color: var(--text);
}

.share-chip svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.share-chip span {
    font-size: 0.94rem;
    font-weight: 700;
}

.sharing-qr-drawer {
    margin-top: 18px;
}

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

.editor-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-save-bar {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: min(340px, calc(100vw - 28px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 1.2rem;
    border: 1px solid rgba(214, 166, 83, 0.22);
    background: rgba(18, 18, 20, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    z-index: 30;
    transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.editor-save-bar[data-save-visibility="saved"] {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.editor-save-bar[data-save-visibility="dirty"],
.editor-save-bar[data-save-visibility="submitting"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.editor-save-bar[data-save-visibility="dirty"] {
    border-color: rgba(214, 166, 83, 0.34);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(214, 166, 83, 0.12);
}

.editor-save-bar[data-save-visibility="submitting"] {
    border-color: rgba(120, 215, 144, 0.28);
    background: rgba(18, 18, 20, 0.95);
}

.editor-save-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.editor-save-meta span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.editor-save-state {
    font-size: 0.9rem;
}

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

.primary-button.is-dirty {
    box-shadow: 0 0 0 3px rgba(214, 166, 83, 0.14), 0 18px 40px rgba(212, 166, 82, 0.26);
}

.link-row {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
}

.danger-button {
    border-color: rgba(255, 116, 106, 0.3);
    color: #ffc0bb;
}

.auth-shell {
    min-height: calc(100vh - 40px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(960px, 100%);
    border-radius: 2.25rem;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 24px;
}

.auth-brand,
.auth-form {
    border-radius: 1.6rem;
    padding: 22px;
}

.auth-brand {
    background:
        linear-gradient(155deg, rgba(214, 166, 83, 0.18), rgba(255, 255, 255, 0.03)),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(214, 166, 83, 0.18);
}

.auth-form {
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.auth-helper {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.auth-helper p {
    margin: 0;
    color: var(--text-muted);
}

.sharing-body {
    overflow-x: hidden;
}

.sharing-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.sharing-background,
.sharing-overlay {
    position: absolute;
    inset: 0;
}

.sharing-background {
    z-index: -3;
    background:
        radial-gradient(circle at 18% 14%, rgba(214, 166, 83, 0.2), transparent 22%),
        radial-gradient(circle at 84% 20%, rgba(214, 166, 83, 0.12), transparent 18%),
        linear-gradient(180deg, #121214, #0e0e10);
    background-size: cover;
    background-position: center;
    filter: saturate(1.02);
}

.sharing-overlay {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(10, 10, 12, 0.46), rgba(10, 10, 12, 0.86)),
        linear-gradient(130deg, rgba(255, 255, 255, 0.016), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, transparent 0, transparent 220px);
}

.sharing-stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sharing-header {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto 18px;
}

.sharing-brand {
    width: fit-content;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
}

.sharing-card {
    width: min(980px, 100%);
    margin: auto;
    border-radius: 2.4rem;
    padding: clamp(28px, 5vw, 52px);
    text-align: center;
    position: relative;
}

.sharing-card h1 {
    max-width: min(18ch, 100%);
    margin-inline: auto;
    text-wrap: balance;
}

.sharing-subtitle {
    font-size: clamp(1.05rem, 2.3vw, 1.5rem);
    margin: 16px auto 0;
    max-width: 34rem;
}

.sharing-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 0;
}

.sharing-intro {
    margin: 20px auto 0;
    max-width: 42rem;
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.sharing-schedule-note {
    margin: 24px auto 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.sharing-actions {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.sharing-button {
    justify-content: space-between;
    width: 100%;
    min-height: 68px;
    padding: 18px 22px;
    font-weight: 800;
    font-size: 1rem;
    backdrop-filter: blur(12px);
}

.sharing-button svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.sharing-button-copy {
    display: grid;
    justify-items: start;
    gap: 3px;
    text-align: left;
}

.sharing-button-copy strong {
    font-size: 1rem;
}

.sharing-button-copy small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 600;
}

.sharing-footer {
    width: 100%;
    max-width: 1240px;
    margin: 22px auto 0;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.preview-banner {
    display: inline-flex;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(214, 166, 83, 0.14);
    border: 1px solid rgba(214, 166, 83, 0.3);
    color: #ffe3b5;
    font-weight: 700;
}

.error-card h1 {
    max-width: 14ch;
}

.protected-card {
    max-width: 640px;
}

.protected-form {
    display: grid;
    gap: 16px;
    max-width: 420px;
    margin: 24px auto 0;
    text-align: left;
}

.protected-field {
    color: var(--text);
}

@media (max-width: 980px) {
    .editor-layout,
    .auth-card {
        grid-template-columns: 1fr;
    }

    .editor-main,
    .editor-sidebar,
    .editor-internal,
    .editor-links {
        grid-column: auto;
        grid-row: auto;
    }

    .editor-sidebar {
        display: grid;
    }

}

@media (max-width: 720px) {
    .admin-app-shell,
    .sharing-stage {
        padding: 14px;
    }

    .admin-topbar,
    .dashboard-hero,
    .form-hero,
    .calendar-toolbar,
    .section-header,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-card,
    .sharing-card,
    .auth-card {
        border-radius: 1.6rem;
        padding: 22px;
    }

    .field-grid,
    .link-row-grid {
        grid-template-columns: 1fr;
    }

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

    .topbar-actions,
    .event-actions,
    .link-row-actions {
        width: 100%;
        justify-content: stretch;
    }

    .topbar-actions > *,
    .event-actions > *,
    .link-row-actions > *,
    .hero-actions > *,
    .dashboard-hero > *,
    .form-hero > * {
        width: 100%;
    }

    .topbar-nav {
        width: 100%;
        justify-content: stretch;
    }

    .topbar-nav > * {
        flex: 1 1 0;
    }

    .sharing-button {
        min-height: 62px;
    }

    .sharing-footer {
        font-size: 0.96rem;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 8vw, 2.4rem);
    }

    .qr-actions > * {
        width: 100%;
    }

    .sharing-tool-actions > * {
        width: auto;
        min-width: calc(50% - 5px);
    }

    .editor-bottom-actions,
    .editor-save-bar,
    .editor-save-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-bottom-actions > *,
    .editor-save-actions > * {
        width: 100%;
    }

    .editor-save-bar {
        left: 10px;
        right: 10px;
        width: auto;
        bottom: 10px;
    }
}

/* Modern public sharing surface */
.sharing-body {
    background: #111114;
}

.sharing-shell {
    min-height: 100vh;
    min-height: 100svh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
        #111114;
}

.sharing-background,
.sharing-overlay {
    position: fixed;
    inset: 0;
}

.sharing-background {
    opacity: 0.5;
    transform: scale(1.06);
    filter: blur(18px) saturate(1.16) brightness(0.82);
    background:
        linear-gradient(145deg, rgba(255, 202, 57, 0.2), transparent 32%),
        linear-gradient(320deg, rgba(0, 160, 170, 0.08), transparent 26%),
        #121214;
    background-position: center;
    background-size: cover;
}

.sharing-shell.no-hero-image .sharing-background {
    opacity: 1;
    filter: none;
    transform: none;
}

.sharing-overlay {
    background:
        linear-gradient(90deg, rgba(17, 17, 20, 0.76), rgba(17, 17, 20, 0.54) 44%, rgba(17, 17, 20, 0.84)),
        linear-gradient(180deg, rgba(17, 17, 20, 0.28), rgba(17, 17, 20, 0.94));
}

.sharing-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    gap: 24px;
    padding: 24px;
}

.sharing-header {
    max-width: 1220px;
    margin: 0 auto;
}

.sharing-brand {
    min-height: 58px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    border-color: rgba(255, 213, 79, 0.28);
    background: rgba(18, 18, 20, 0.68);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.sharing-brand img {
    width: 46px;
    height: 46px;
}

.sharing-brand span {
    font-size: 0.96rem;
    letter-spacing: 0;
}

.sharing-hero-grid {
    width: min(1220px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: 24px;
}

.sharing-hero-grid-single {
    grid-template-columns: minmax(0, 740px);
    justify-content: center;
}

.sharing-visual {
    position: relative;
    min-width: 0;
    height: min(72svh, 720px);
    min-height: 430px;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 213, 79, 0.24);
    background-color: #17171a;
    background-position: center;
    background-size: cover;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sharing-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-position: center;
    background-size: cover;
    opacity: 0.54;
    transform: scale(1.08);
    filter: blur(20px) saturate(1.08);
}

.sharing-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24)),
        linear-gradient(135deg, rgba(255, 211, 74, 0.12), transparent 42%);
}

.sharing-visual img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.sharing-visual-caption {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 18, 20, 0.72);
    backdrop-filter: blur(16px);
}

.sharing-visual-caption span,
.sharing-visual-caption strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sharing-visual-caption span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sharing-visual-caption strong {
    color: #ffffff;
    font-size: 0.96rem;
}

.sharing-card {
    width: 100%;
    margin: 0;
    border-radius: 28px;
    padding: 38px;
    text-align: left;
    border-color: rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(30, 30, 34, 0.92), rgba(20, 20, 23, 0.94)),
        rgba(20, 20, 23, 0.92);
    box-shadow: 0 26px 78px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sharing-card h1,
.sharing-waiting-panel h2 {
    max-width: 100%;
    margin: 0;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.sharing-card h1 {
    font-size: 4rem;
    line-height: 0.94;
}

.sharing-title-block {
    display: grid;
    gap: 14px;
}

.sharing-title-block .eyebrow,
.sharing-tools-header .eyebrow {
    margin-bottom: 0;
}

.sharing-subtitle,
.sharing-intro,
.sharing-waiting-panel p,
.sharing-qr-text {
    max-width: none;
    color: rgba(255, 255, 255, 0.78);
}

.sharing-subtitle {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.55;
}

.sharing-intro {
    margin: 22px 0 0;
    font-size: 1.03rem;
    line-height: 1.72;
}

.sharing-chips {
    justify-content: flex-start;
    margin-top: 22px;
}

.sharing-chips span {
    min-height: 38px;
    border-color: rgba(255, 213, 79, 0.22);
    background: rgba(255, 213, 79, 0.1);
    color: #ffe7a8;
}

.sharing-schedule-note {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.sharing-actions {
    gap: 12px;
    margin-top: 30px;
}

.sharing-button {
    min-height: 72px;
    border-radius: 18px;
    padding: 18px 20px;
}

.sharing-button.primary,
.primary-button {
    background: linear-gradient(135deg, #ffdc4e, #ffa31f);
    color: #1b1302;
    box-shadow: 0 18px 42px rgba(255, 178, 36, 0.24);
}

.sharing-button.secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

.sharing-button-copy strong {
    font-size: 1.04rem;
    overflow-wrap: anywhere;
}

.sharing-button-copy small {
    color: rgba(255, 255, 255, 0.74);
}

.sharing-waiting-panel,
.sharing-share-panel {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sharing-waiting-panel h2 {
    font-family: var(--font-display);
    font-size: 2.7rem;
    line-height: 0.98;
    text-transform: uppercase;
}

.sharing-waiting-panel p {
    margin: 14px 0 0;
    line-height: 1.7;
}

.sharing-tools-header {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.sharing-tool-actions {
    justify-content: flex-start;
}

.share-chip {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
}

.share-chip:hover {
    border-color: rgba(255, 213, 79, 0.36);
    background: rgba(255, 213, 79, 0.12);
}

.sharing-qr-drawer {
    margin-top: 18px;
}

.qr-preview-compact {
    margin: 0;
}

.sharing-footer {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.76);
}

.protected-card,
.error-card {
    max-width: none;
}

.protected-form {
    max-width: none;
}

.protected-card .field input {
    min-height: 54px;
}

@media (max-width: 1040px) {
    .sharing-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .sharing-visual {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .sharing-card {
        width: min(860px, 100%);
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .sharing-stage {
        gap: 16px;
        padding: 14px;
    }

    .sharing-brand {
        min-height: 52px;
        padding: 7px 12px 7px 8px;
    }

    .sharing-brand img {
        width: 40px;
        height: 40px;
    }

    .sharing-visual {
        border-radius: 20px;
        aspect-ratio: 4 / 5;
    }

    .sharing-visual-caption {
        right: 12px;
        bottom: 12px;
        left: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .sharing-card {
        border-radius: 20px;
        padding: 24px;
    }

    .sharing-card h1 {
        font-size: 3rem;
    }

    .sharing-subtitle {
        font-size: 1.08rem;
    }

    .sharing-waiting-panel h2 {
        font-size: 2.2rem;
    }

    .sharing-button {
        min-height: 66px;
        border-radius: 16px;
        padding: 16px;
    }

    .sharing-tool-actions > * {
        flex: 1 1 calc(50% - 5px);
        min-width: calc(50% - 5px);
    }
}

@media (max-width: 430px) {
    .sharing-card h1 {
        font-size: 2.5rem;
    }

    .sharing-tool-actions > * {
        flex-basis: 100%;
        min-width: 100%;
    }
}

/* Classic event-photo background treatment */
.sharing-shell.has-hero-image .sharing-background {
    opacity: 0.76;
    transform: scale(1.035);
    filter: blur(8px) saturate(1.12) brightness(0.95);
    background-position: center;
}

.sharing-shell.has-hero-image .sharing-overlay {
    background:
        linear-gradient(90deg, rgba(9, 9, 11, 0.44), rgba(9, 9, 11, 0.22) 48%, rgba(9, 9, 11, 0.48)),
        linear-gradient(180deg, rgba(9, 9, 11, 0.18), rgba(9, 9, 11, 0.74));
}

.sharing-shell.has-hero-image .sharing-hero-grid {
    width: min(980px, 100%);
    grid-template-columns: minmax(0, 1fr);
    justify-content: center;
}

.sharing-shell.has-hero-image .sharing-visual {
    display: none;
}

.sharing-shell.has-hero-image .sharing-card {
    width: min(900px, 100%);
    margin: 0 auto;
    background:
        linear-gradient(180deg, rgba(30, 30, 34, 0.88), rgba(20, 20, 23, 0.9)),
        rgba(20, 20, 23, 0.88);
}

.sharing-button.primary,
.primary-button {
    background: linear-gradient(135deg, #f1c76a, #d99a24);
    color: #15110a;
}

.sharing-button.primary .sharing-button-copy small {
    color: rgba(21, 17, 10, 0.76);
    font-weight: 800;
}

@media (max-width: 720px) {
    .sharing-shell.has-hero-image .sharing-background {
        opacity: 0.86;
        transform: scale(1.025);
        filter: blur(5px) saturate(1.1) brightness(0.98);
        background-position: center top;
    }

    .sharing-shell.has-hero-image .sharing-overlay {
        background:
            linear-gradient(180deg, rgba(9, 9, 11, 0.12), rgba(9, 9, 11, 0.36) 36%, rgba(9, 9, 11, 0.76)),
            linear-gradient(90deg, rgba(9, 9, 11, 0.22), rgba(9, 9, 11, 0.1), rgba(9, 9, 11, 0.24));
    }

    .sharing-shell.has-hero-image .sharing-card {
        background:
            linear-gradient(180deg, rgba(30, 30, 34, 0.9), rgba(20, 20, 23, 0.92)),
            rgba(20, 20, 23, 0.9);
    }
}

/* Background-first public event layout */
.sharing-shell.has-hero-image .sharing-background {
    opacity: 0.96;
    transform: scale(1.012);
    filter: blur(2px) saturate(1.08) brightness(0.78);
}

.sharing-shell.has-hero-image .sharing-overlay {
    background:
        linear-gradient(90deg, rgba(5, 5, 7, 0.58), rgba(5, 5, 7, 0.18) 24%, rgba(5, 5, 7, 0.18) 76%, rgba(5, 5, 7, 0.58)),
        linear-gradient(180deg, rgba(5, 5, 7, 0.5), rgba(5, 5, 7, 0.16) 32%, rgba(5, 5, 7, 0.64));
}

.sharing-shell.has-hero-image .sharing-stage {
    padding: 28px;
}

.sharing-shell.has-hero-image .sharing-header,
.sharing-shell.has-hero-image .sharing-footer {
    width: min(1380px, 100%);
}

.sharing-shell.has-hero-image .sharing-brand {
    background: rgba(10, 10, 12, 0.34);
    border-color: rgba(241, 199, 106, 0.42);
    backdrop-filter: blur(14px);
}

.sharing-shell.has-hero-image .sharing-hero-grid {
    width: min(1120px, 100%);
}

.sharing-shell.has-hero-image .sharing-card {
    width: min(980px, 100%);
    padding: clamp(28px, 4vw, 56px);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        radial-gradient(circle at 50% 0%, rgba(241, 199, 106, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(18, 18, 22, 0.58), rgba(13, 13, 16, 0.4));
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.sharing-shell.has-hero-image .sharing-title-block {
    justify-items: center;
}

.sharing-shell.has-hero-image .sharing-card h1 {
    max-width: 1000px;
    font-size: clamp(3.2rem, 5.2vw, 6.2rem);
    line-height: 0.9;
    text-align: center;
    text-shadow: 0 8px 34px rgba(0, 0, 0, 0.62);
}

.sharing-shell.has-hero-image .sharing-chips {
    justify-content: center;
}

.sharing-shell.has-hero-image .sharing-intro,
.sharing-shell.has-hero-image .sharing-schedule-note,
.sharing-shell.has-hero-image .sharing-qr-text {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
}

.sharing-shell.has-hero-image .sharing-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.sharing-shell.has-hero-image .sharing-button {
    flex: 0 1 280px;
    min-height: 64px;
    border-radius: 8px;
    padding: 14px 18px;
    justify-content: center;
    text-align: center;
}

.sharing-shell.has-hero-image .sharing-button.primary,
.sharing-shell.has-hero-image .primary-button {
    background: rgba(255, 255, 255, 0.92);
    color: #171717;
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
}

.sharing-shell.has-hero-image .sharing-button.primary:hover,
.sharing-shell.has-hero-image .primary-button:hover {
    background: #f1c76a;
}

.sharing-shell.has-hero-image .sharing-button.primary .sharing-button-copy small {
    color: rgba(23, 23, 23, 0.72);
}

.sharing-shell.has-hero-image .sharing-button svg {
    margin-left: 4px;
}

.sharing-shell.has-hero-image .sharing-share-panel {
    width: min(780px, 100%);
    margin: 32px auto 0;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(9, 9, 11, 0.28);
    backdrop-filter: blur(12px);
}

.sharing-shell.has-hero-image .sharing-tools-header {
    justify-items: center;
}

.sharing-shell.has-hero-image .sharing-tool-actions {
    justify-content: center;
}

.sharing-shell.has-hero-image .share-chip {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.sharing-shell.has-hero-image .share-chip:hover {
    color: #171717;
    background: rgba(255, 255, 255, 0.9);
}

.sharing-shell.has-hero-image .sharing-footer {
    justify-content: flex-end;
    font-weight: 800;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.72);
}

@media (max-width: 720px) {
    .sharing-shell.has-hero-image .sharing-background {
        opacity: 0.95;
        transform: scale(1.018);
        filter: blur(1px) saturate(1.04) brightness(0.76);
    }

    .sharing-shell.has-hero-image .sharing-overlay {
        background:
            linear-gradient(180deg, rgba(5, 5, 7, 0.48), rgba(5, 5, 7, 0.22) 24%, rgba(5, 5, 7, 0.72)),
            linear-gradient(90deg, rgba(5, 5, 7, 0.38), rgba(5, 5, 7, 0.16), rgba(5, 5, 7, 0.38));
    }

    .sharing-shell.has-hero-image .sharing-stage {
        padding: 14px;
    }

    .sharing-shell.has-hero-image .sharing-card {
        padding: 24px 20px;
        border-radius: 18px;
        background:
            radial-gradient(circle at 50% 0%, rgba(241, 199, 106, 0.12), transparent 42%),
            linear-gradient(180deg, rgba(18, 18, 22, 0.74), rgba(13, 13, 16, 0.68));
    }

    .sharing-shell.has-hero-image .sharing-card h1 {
        font-size: clamp(2.55rem, 13vw, 4rem);
    }

    .sharing-shell.has-hero-image .sharing-button {
        flex-basis: 100%;
        min-height: 62px;
    }

    .sharing-shell.has-hero-image .sharing-share-panel {
        padding: 20px;
    }

    .sharing-shell.has-hero-image .sharing-footer {
        justify-content: center;
    }
}
