:root {
    color-scheme: light;
    --club-accent: #7657ff;
    --admin-bg: #f4f5f9;
    --admin-panel: #ffffff;
    --admin-ink: #171922;
    --admin-muted: #737787;
    --admin-line: #e5e7ee;
    --admin-sidebar: #0b0d14;
    --admin-success: #1da875;
    --admin-warning: #d68a12;
    --admin-danger: #dc4c61;
    --admin-radius: 20px;
    --admin-shadow: 0 18px 55px rgba(29, 32, 46, 0.08);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; }
body { color: var(--admin-ink); background: var(--admin-bg); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.copy-helper { position: fixed; width: 1px; height: 1px; left: -9999px; opacity: 0; }

.admin-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.admin-sidebar {
    position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: 248px;
    flex-direction: column; padding: 25px 18px 18px; color: #f8f9ff;
    background:
        radial-gradient(circle at 20% 0, color-mix(in srgb, var(--club-accent) 24%, transparent), transparent 17rem),
        var(--admin-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-logo { display: flex; align-items: center; gap: 11px; padding: 0 8px 27px; text-decoration: none; }
.admin-logo img { width: 39px; height: 39px; filter: drop-shadow(0 9px 22px rgba(89, 91, 255, 0.25)); }
.admin-logo span { display: grid; gap: 1px; }
.admin-logo strong { font-size: 16px; letter-spacing: -0.035em; }
.admin-logo small { color: rgba(255, 255, 255, 0.42); font-size: 8px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav a {
    position: relative; display: flex; min-height: 47px; align-items: center; gap: 13px;
    padding: 0 13px; border: 1px solid transparent; border-radius: 13px;
    color: rgba(255, 255, 255, 0.58); font-size: 13px; font-weight: 700; text-decoration: none;
    transition: 160ms ease;
}
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.055); }
.admin-nav a.is-active {
    color: #fff; border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(105deg, color-mix(in srgb, var(--club-accent) 30%, transparent), rgba(255, 255, 255, 0.055));
    box-shadow: inset 3px 0 color-mix(in srgb, var(--club-accent) 80%, white);
}
.admin-nav svg, .logout-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-sidebar__foot { display: grid; gap: 10px; margin-top: auto; }
.club-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: rgba(255, 255, 255, 0.045); }
.club-chip > span, .user-avatar {
    display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center;
    border-radius: 11px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--club-accent) 80%, white), var(--club-accent));
    font-size: 11px; font-weight: 850; text-decoration: none;
}
.club-chip div { min-width: 0; display: grid; gap: 2px; }
.club-chip strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.club-chip small { color: rgba(255, 255, 255, 0.42); font-size: 9px; }
.logout-button { display: flex; width: 100%; min-height: 42px; align-items: center; gap: 11px; padding: 0 13px; border: 0; border-radius: 12px; color: rgba(255, 255, 255, 0.5); background: transparent; font-size: 12px; font-weight: 700; }
.logout-button:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }

.admin-main { min-width: 0; grid-column: 2; }
.admin-topbar {
    position: sticky; z-index: 35; top: 0; display: flex; height: 75px; align-items: center; justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 52px); border-bottom: 1px solid rgba(224, 226, 235, 0.9);
    background: rgba(250, 250, 252, 0.86); backdrop-filter: blur(20px) saturate(160%);
}
.topbar-title { display: grid; gap: 2px; }
.topbar-title small { color: var(--admin-muted); font-size: 9px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.topbar-title strong { font-size: 15px; letter-spacing: -0.025em; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.admin-language { display: flex; padding: 3px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.admin-language a { padding: 5px 7px; border-radius: 7px; color: var(--admin-muted); font-size: 9px; font-weight: 850; text-decoration: none; }
.admin-language a.is-active { color: #fff; background: var(--admin-ink); }
.topbar-create { display: flex; height: 38px; align-items: center; gap: 7px; padding: 0 14px; border-radius: 11px; color: #fff; background: var(--admin-ink); font-size: 11px; font-weight: 800; text-decoration: none; }
.topbar-create > span:first-child { font-size: 18px; font-weight: 400; }
.user-avatar { width: 38px; height: 38px; border-radius: 12px; }
.sidebar-toggle { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--admin-line); border-radius: 11px; background: #fff; }
.sidebar-toggle svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.admin-content { width: min(100%, 1480px); margin: 0 auto; padding: clamp(25px, 4vw, 50px); }

.admin-flash { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; padding: 13px 15px; border: 1px solid #bfe8d8; border-radius: 13px; color: #127653; background: #effbf7; font-size: 12px; font-weight: 700; box-shadow: 0 10px 30px rgba(18, 118, 83, 0.06); }
.admin-flash > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; color: #fff; background: var(--admin-success); }
.admin-flash p { margin: 0; }
.admin-flash button { margin-left: auto; border: 0; color: currentColor; background: transparent; font-size: 18px; }
.admin-flash--error { border-color: #f0c3ca; color: #a72f42; background: #fff3f5; }
.admin-flash--error > span { background: var(--admin-danger); }
.admin-flash--warning { border-color: #f1d6a7; color: #8f5b08; background: #fff9ed; }
.admin-flash--warning > span { background: var(--admin-warning); }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 28px; }
.page-heading--form { align-items: flex-start; }
.page-eyebrow { display: block; margin-bottom: 8px; color: var(--club-accent); font-size: 9px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-size: clamp(29px, 4vw, 43px); line-height: 1; letter-spacing: -0.052em; }
.page-heading p { margin: 10px 0 0; color: var(--admin-muted); font-size: 13px; }
.back-link { display: inline-flex; margin: 0 0 15px; color: var(--admin-muted); font-size: 11px; font-weight: 750; text-decoration: none; }
.back-link:hover { color: var(--admin-ink); }
.back-link--light { color: rgba(255, 255, 255, 0.58); }
.back-link--light:hover { color: #fff; }

.primary-button, .secondary-button, .ghost-button, .danger-button {
    display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px;
    padding: 0 16px; border: 1px solid transparent; border-radius: 12px;
    font-size: 11px; font-weight: 850; text-decoration: none; transition: 160ms ease;
}
.primary-button { color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--club-accent) 82%, white), var(--club-accent)); box-shadow: 0 10px 27px color-mix(in srgb, var(--club-accent) 20%, transparent); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px color-mix(in srgb, var(--club-accent) 28%, transparent); }
.secondary-button { border-color: var(--admin-line); color: #454957; background: #fff; }
.secondary-button:hover { border-color: #cfd2dc; color: var(--admin-ink); }
.primary-button--wide, .secondary-button--wide { width: 100%; }
.danger-button { color: #fff; background: var(--admin-danger); }
.ghost-button { border-color: var(--admin-line); background: transparent; }
.ghost-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ghost-button--light { border-color: rgba(255, 255, 255, 0.18); color: #fff; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); }
.ghost-button--light:hover { background: rgba(255, 255, 255, 0.15); }
.text-link { align-self: center; color: var(--admin-muted); font-size: 11px; font-weight: 750; text-decoration: none; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { position: relative; display: flex; min-width: 0; min-height: 125px; align-items: center; gap: 14px; overflow: hidden; padding: 19px; border: 1px solid var(--admin-line); border-radius: var(--admin-radius); background: var(--admin-panel); box-shadow: var(--admin-shadow); }
.metric-card__icon { display: grid; flex: 0 0 auto; width: 39px; height: 39px; place-items: center; border-radius: 12px; color: var(--club-accent); background: color-mix(in srgb, var(--club-accent) 10%, white); }
.metric-card__icon--success { color: var(--admin-success); background: #eaf8f3; }
.metric-card__icon--warning { color: var(--admin-warning); background: #fff6e7; }
.metric-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.metric-card > div { display: grid; min-width: 0; gap: 3px; }
.metric-card strong { overflow: hidden; font-size: clamp(20px, 2.2vw, 29px); letter-spacing: -0.055em; text-overflow: ellipsis; }
.metric-card div span { color: var(--admin-muted); font-size: 10px; font-weight: 700; }
.metric-card--accent { border-color: transparent; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--club-accent) 90%, #3730a3), var(--club-accent)); }
.metric-card--accent .metric-card__icon { color: #fff; background: rgba(255, 255, 255, 0.16); }
.metric-card--accent div span { color: rgba(255, 255, 255, 0.72); }
.metric-card--accent > i { position: absolute; width: 95px; height: 95px; right: -34px; bottom: -44px; border: 18px solid rgba(255, 255, 255, 0.1); border-radius: 50%; }

.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 20px; align-items: start; }
.panel { border: 1px solid var(--admin-line); border-radius: var(--admin-radius); background: var(--admin-panel); box-shadow: var(--admin-shadow); }
.panel__header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; border-bottom: 1px solid var(--admin-line); }
.panel__header .page-eyebrow { margin-bottom: 4px; }
.panel__header h2 { margin: 0; font-size: 17px; letter-spacing: -0.035em; }
.panel__header > a { color: var(--club-accent); font-size: 10px; font-weight: 850; text-decoration: none; }
.event-list { padding: 5px 0; }
.event-row { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto 56px 18px; align-items: center; gap: 13px; padding: 13px 20px; text-decoration: none; transition: background 150ms ease; }
.event-row:hover { background: #f8f8fb; }
.event-row__date { display: grid; height: 45px; place-items: center; align-content: center; border: 1px solid var(--admin-line); border-radius: 12px; background: #fafafd; }
.event-row__date b { font-size: 15px; line-height: 1; }
.event-row__date small { margin-top: 3px; color: var(--admin-muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.event-row__main { display: grid; min-width: 0; gap: 4px; }
.event-row__main strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-row__main small { overflow: hidden; color: var(--admin-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.event-row__photos { display: grid; justify-items: end; gap: 2px; }
.event-row__photos b { font-size: 12px; }
.event-row__photos small { color: var(--admin-muted); font-size: 8px; }
.event-row__arrow { color: #b2b5c0; }
.status-pill { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 999px; color: #147755; background: #e9f8f2; font-size: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status-pill--paused { color: #97600b; background: #fff4df; }
.status-pill--closed, .status-pill--archived { color: #737787; background: #eff0f4; }
.activity-list { list-style: none; display: grid; gap: 0; margin: 0; padding: 8px 20px 16px; }
.activity-list li { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--admin-line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list li > span { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--club-accent); background: color-mix(in srgb, var(--club-accent) 10%, white); font-size: 9px; font-weight: 900; }
.activity-list div { min-width: 0; }
.activity-list strong { font-size: 10px; }
.activity-list p { margin: 3px 0; color: #555968; font-size: 9px; line-height: 1.35; }
.activity-list p a { color: var(--club-accent); font-weight: 750; text-decoration: none; }
.activity-list small { color: #a1a4af; font-size: 8px; }
.empty-activity { display: grid; min-height: 220px; place-items: center; color: var(--admin-muted); }
.empty-panel { display: grid; min-height: 330px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.empty-panel > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: var(--club-accent); background: color-mix(in srgb, var(--club-accent) 10%, white); }
.empty-panel svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-panel h2, .empty-panel h3 { margin: 16px 0 5px; font-size: 18px; }
.empty-panel p { max-width: 360px; margin: 0 0 18px; color: var(--admin-muted); font-size: 11px; line-height: 1.55; }

.event-filters { display: flex; align-items: stretch; gap: 9px; margin-bottom: 16px; }
.event-filters label { position: relative; flex: 1; max-width: 420px; }
.event-filters label svg { position: absolute; top: 50%; left: 14px; width: 18px; transform: translateY(-50%); fill: none; stroke: #9295a2; stroke-width: 1.8; stroke-linecap: round; }
.event-filters input, .event-filters select { height: 43px; border: 1px solid var(--admin-line); border-radius: 12px; outline: 0; background: #fff; font-size: 11px; }
.event-filters input { width: 100%; padding: 0 14px 0 42px; }
.event-filters select { min-width: 155px; padding: 0 35px 0 13px; }
.event-filters input:focus, .event-filters select:focus { border-color: color-mix(in srgb, var(--club-accent) 55%, #d9dbe3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--club-accent) 9%, transparent); }
.events-panel { overflow: hidden; }
.events-table__head, .events-table__row { display: grid; grid-template-columns: minmax(240px, 1.5fr) minmax(180px, .8fr) 105px 90px 125px; align-items: center; gap: 14px; }
.events-table__head { min-height: 45px; padding: 0 21px; border-bottom: 1px solid var(--admin-line); color: #989ba6; background: #fafafd; font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.events-table__row { min-height: 76px; padding: 12px 21px; border-bottom: 1px solid var(--admin-line); }
.events-table__row:last-child { border-bottom: 0; }
.events-table__row:hover { background: #fcfcfe; }
.event-identity { display: flex; min-width: 0; align-items: center; gap: 11px; }
.event-identity > span { display: block; flex: 0 0 auto; width: 9px; height: 38px; border-radius: 6px; background: var(--club-accent); }
.event-identity div, .event-date-cell, .photo-count-cell { display: grid; min-width: 0; gap: 4px; }
.event-identity a { overflow: hidden; font-size: 12px; font-weight: 850; letter-spacing: -.02em; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.event-identity small, .event-date-cell small, .photo-count-cell small { color: var(--admin-muted); font-size: 9px; }
.event-date-cell strong, .photo-count-cell strong { font-size: 10px; }
.row-actions { display: flex; gap: 7px; }
.row-actions a { padding: 7px 9px; border: 1px solid var(--admin-line); border-radius: 8px; color: #555966; font-size: 8px; font-weight: 850; text-decoration: none; }

.admin-form { width: 100%; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .62fr); gap: 20px; align-items: start; }
.form-stack { display: grid; gap: 18px; }
.form-card { padding: 23px; border: 1px solid var(--admin-line); border-radius: var(--admin-radius); background: #fff; box-shadow: var(--admin-shadow); }
.form-card--sticky { position: sticky; top: 96px; }
.form-card > header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.form-card > header > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: var(--club-accent); background: color-mix(in srgb, var(--club-accent) 10%, white); font-size: 9px; font-weight: 900; }
.form-card > header div { display: grid; gap: 3px; }
.form-card > header h2 { margin: 0; font-size: 16px; letter-spacing: -.035em; }
.form-card > header p { margin: 0; color: var(--admin-muted); font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span:first-child, .field > label:first-child { color: #4d515e; font-size: 9px; font-weight: 850; letter-spacing: .015em; }
.field span em { margin-left: 4px; color: #a1a4ae; font-size: 8px; font-style: normal; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid #dfe1e8; border-radius: 11px;
    outline: none; color: #252833; background: #fcfcfd; font-size: 11px; transition: 150ms ease;
}
.field textarea { min-height: 76px; padding-top: 11px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: color-mix(in srgb, var(--club-accent) 58%, #dfe1e8); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--club-accent) 9%, transparent); }
.field input[readonly], .field input:disabled { color: #858894; background: #f3f4f7; }
.field > small { color: var(--admin-muted); font-size: 8px; line-height: 1.45; }
.field .field-error, .has-error .field-error { color: var(--admin-danger); font-weight: 750; }
.has-error input, .has-error select, .has-error textarea { border-color: #eab3bc; }
.color-field__control { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 8px; }
.color-field__control input[type="color"] { height: 43px; padding: 4px; cursor: pointer; }
.toggle-list { display: grid; gap: 2px; margin: -6px 0 19px; }
.toggle-row { position: relative; display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--admin-line); cursor: pointer; color: #4e5260; font-size: 10px; font-weight: 700; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { position: relative; display: block; width: 35px; height: 20px; border-radius: 999px; background: #d9dbe2; transition: 150ms ease; }
.toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: 150ms ease; }
.toggle-row input:checked + i { background: var(--club-accent); }
.toggle-row input:checked + i::after { transform: translateX(15px); }
.check-row { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #606472; font-size: 9px; font-weight: 700; cursor: pointer; }
.check-row input { position: absolute; opacity: 0; }
.check-row > span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid #d9dbe3; border-radius: 6px; color: transparent; background: #fff; font-size: 10px; }
.check-row input:checked + span { border-color: var(--club-accent); color: #fff; background: var(--club-accent); }
.check-row--danger input:checked + span { border-color: var(--admin-danger); background: var(--admin-danger); }
.form-submit { display: grid; gap: 9px; margin-top: 24px; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid #efbdc5; border-radius: 11px; color: #a83144; background: #fff4f6; font-size: 10px; font-weight: 750; line-height: 1.5; }
.form-alert--warning { border-color: #efd29e; color: #875708; background: #fff9ed; }
.admin-form--narrow { display: grid; max-width: 630px; gap: 18px; }

.event-spotlight { position: relative; display: flex; min-height: 255px; align-items: flex-end; justify-content: space-between; gap: 25px; overflow: hidden; margin: calc(clamp(25px, 4vw, 50px) * -1) calc(clamp(25px, 4vw, 50px) * -1) 0; padding: clamp(35px, 6vw, 68px) clamp(25px, 4vw, 50px) 35px; color: #fff; background: linear-gradient(125deg, #11131d 0%, color-mix(in srgb, var(--event-page-accent) 48%, #151629) 100%); }
.event-spotlight__glow { position: absolute; width: 430px; height: 430px; right: 7%; top: -290px; border: 80px solid rgba(255,255,255,.06); border-radius: 50%; }
.event-spotlight__main, .event-spotlight__actions { position: relative; z-index: 1; }
.event-live-label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 11px; color: rgba(255,255,255,.7); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.event-live-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--event-page-accent); box-shadow: 0 0 13px var(--event-page-accent); }
.event-spotlight h1 { max-width: 800px; margin: 0; font-size: clamp(34px, 6vw, 67px); line-height: .95; letter-spacing: -.065em; }
.event-spotlight__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 19px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 650; }
.event-spotlight__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-spotlight__meta svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-spotlight__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.event-spotlight__actions form { margin: 0; }
.event-metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--admin-line); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; box-shadow: var(--admin-shadow); }
.event-metrics article { display: grid; gap: 6px; padding: 19px 22px; border-right: 1px solid var(--admin-line); }
.event-metrics article:last-child { border-right: 0; }
.event-metrics span { color: var(--admin-muted); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.event-metrics strong { font-size: 18px; letter-spacing: -.04em; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 36px 0 15px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.045em; }
.link-card-grid { display: grid; gap: 14px; }
.link-card { overflow: hidden; border: 1px solid var(--admin-line); border-radius: var(--admin-radius); background: #fff; box-shadow: var(--admin-shadow); }
.link-card > header { display: flex; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--admin-line); }
.link-card__number { display: grid; flex: 0 0 auto; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: var(--club-accent); background: color-mix(in srgb, var(--club-accent) 10%, white); font-size: 9px; font-weight: 900; }
.link-card--manager .link-card__number { color: var(--admin-danger); background: #fff0f2; }
.link-card header h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: -.025em; }
.link-card header p { max-width: 700px; margin: 0; color: var(--admin-muted); font-size: 9px; line-height: 1.5; }
.link-card__body { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; }
.qr-box { display: grid; width: 132px; height: 132px; place-items: center; padding: 8px; border: 1px solid var(--admin-line); border-radius: 15px; background: #fff; }
.qr-box svg { width: 100%; height: 100%; }
.link-tools { display: grid; gap: 13px; }
.link-tools label { display: grid; gap: 6px; }
.link-tools label span { color: var(--admin-muted); font-size: 8px; font-weight: 850; }
.link-tools input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--admin-line); border-radius: 10px; color: #5e6270; background: #f8f8fa; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.link-tools > div { display: flex; flex-wrap: wrap; gap: 7px; }
.link-tools .secondary-button { min-height: 36px; padding: 0 11px; font-size: 8px; }
.link-missing { display: flex; align-items: center; gap: 10px; padding: 22px; color: #8d5b0c; background: #fffaf0; }
.link-missing span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; color: #fff; background: var(--admin-warning); font-weight: 900; }
.link-missing p { margin: 0; font-size: 10px; font-weight: 700; }
.legacy-panel { margin-top: 17px; padding: 22px; }
.legacy-panel__intro { display: flex; gap: 13px; margin-bottom: 18px; }
.legacy-panel__intro > span { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #fff; background: #282b36; font-size: 9px; font-weight: 900; }
.legacy-panel h2 { margin: 0 0 5px; font-size: 16px; }
.legacy-panel p { margin: 0; color: var(--admin-muted); font-size: 10px; line-height: 1.55; }
.legacy-form { display: grid; gap: 12px; }
.legacy-form .primary-button { justify-self: start; margin-top: 5px; }
.event-bottom-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 24px; align-items: start; }
.poster-panel, .danger-panel { padding-bottom: 22px; overflow: hidden; }
.poster-panel > p, .danger-panel > p { margin: 19px 21px; color: var(--admin-muted); font-size: 10px; line-height: 1.6; }
.poster-preview-card { position: relative; display: flex; height: 145px; align-items: flex-end; gap: 11px; overflow: hidden; margin: 0 21px; padding: 18px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #10121b, color-mix(in srgb, var(--club-accent) 48%, #18192a)); }
.poster-preview-card--light { color: #171922; background: #f1f0ff; }
.poster-preview-card img { width: 31px; height: 31px; }
.poster-preview-card span { position: relative; z-index: 1; max-width: 250px; font-size: 18px; font-weight: 900; letter-spacing: -.045em; }
.poster-preview-card i { position: absolute; width: 155px; height: 155px; right: -53px; top: -68px; border: 25px solid rgba(255,255,255,.12); border-radius: 50%; }
.poster-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 21px 0; }
.danger-panel form { display: grid; gap: 14px; padding: 0 21px; }
.danger-panel .danger-button { justify-self: start; }

.settings-panel { padding: 25px; }
.club-profile-mark { display: flex; align-items: center; gap: 13px; margin-bottom: 7px; padding-bottom: 19px; border-bottom: 1px solid var(--admin-line); }
.club-profile-mark > span { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--club-accent) 82%, white), var(--club-accent)); font-size: 14px; font-weight: 900; }
.club-profile-mark div { display: grid; gap: 3px; }
.club-profile-mark strong { font-size: 14px; }
.club-profile-mark small { color: var(--admin-muted); font-size: 9px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.account-card { padding-bottom: 25px; }
.account-card form { padding: 23px; }
.state-panel { display: grid; min-height: 60vh; place-items: center; align-content: center; text-align: center; }
.state-panel > span { display: grid; width: 70px; height: 70px; place-items: center; border-radius: 22px; color: #fff; background: linear-gradient(135deg, var(--club-accent), #4c8dff); font-size: 18px; font-weight: 900; }
.state-panel h1 { margin: 20px 0 7px; font-size: 30px; letter-spacing: -.05em; }
.state-panel p { margin: 0 0 20px; color: var(--admin-muted); font-size: 11px; }

/* Authentication */
.admin-auth-page { min-height: 100vh; color: #f7f8ff; background: #0a0c13; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .72fr); }
.auth-brand-panel { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(30px, 5vw, 70px); background: radial-gradient(circle at 80% 15%, rgba(111, 87, 255, .3), transparent 24rem), linear-gradient(145deg, #11131d, #080a10); }
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 46px; height: 46px; filter: drop-shadow(0 13px 26px rgba(77, 110, 255, .35)); }
.auth-brand > span { display: grid; gap: 2px; }
.auth-brand strong { font-size: 19px; letter-spacing: -.04em; }
.auth-brand small { color: rgba(255,255,255,.43); font-size: 8px; font-weight: 900; letter-spacing: .19em; }
.auth-statement { position: relative; z-index: 2; max-width: 760px; padding: 80px 0; }
.auth-eyebrow, .auth-form__eyebrow { color: #a99aff; font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.auth-statement h1 { margin: 18px 0; font-size: clamp(48px, 7.5vw, 94px); line-height: .88; letter-spacing: -.075em; }
.auth-statement h1 em { color: #8f78ff; font-style: normal; }
.auth-statement p { max-width: 540px; margin: 0; color: rgba(255,255,255,.54); font-size: 14px; line-height: 1.65; }
.auth-orbits { position: absolute; inset: 0; pointer-events: none; }
.auth-orbits i { position: absolute; border: 1px solid rgba(255,255,255,.065); border-radius: 50%; }
.auth-orbits i:nth-child(1) { width: 580px; height: 580px; right: -220px; bottom: -245px; }
.auth-orbits i:nth-child(2) { width: 390px; height: 390px; right: -125px; bottom: -150px; }
.auth-orbits i:nth-child(3) { width: 190px; height: 190px; right: -25px; bottom: -50px; background: rgba(118,87,255,.08); }
.auth-form-panel { position: relative; display: grid; min-height: 100vh; place-items: center; padding: 50px clamp(30px, 6vw, 90px); background: #f7f7fa; color: var(--admin-ink); }
.auth-language { position: absolute; top: 25px; right: 28px; display: flex; padding: 3px; border: 1px solid var(--admin-line); border-radius: 10px; background: #fff; }
.auth-language a { padding: 5px 8px; border-radius: 7px; color: var(--admin-muted); font-size: 9px; font-weight: 900; text-decoration: none; }
.auth-language a.is-active { color: #fff; background: #171922; }
.auth-form { display: grid; width: min(100%, 420px); gap: 17px; }
.auth-form__eyebrow { margin-bottom: -5px; color: var(--club-accent); }
.auth-form h2 { margin: 0; font-size: clamp(31px, 4vw, 43px); line-height: 1; letter-spacing: -.055em; }
.auth-form > p { margin: -6px 0 7px; color: var(--admin-muted); font-size: 11px; line-height: 1.55; }
.field__control { position: relative; display: block; }
.field__control svg { position: absolute; z-index: 1; top: 50%; left: 13px; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #8b8e9b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.field__control input { padding-left: 42px; }
.auth-form .field input { min-height: 49px; background: #fff; }
.auth-form .primary-button { min-height: 50px; margin-top: 5px; }
.auth-form .primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-backdrop { display: none; }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .events-table__head, .events-table__row { grid-template-columns: minmax(210px, 1.4fr) minmax(150px, .8fr) 92px 75px 100px; }
}

@media (max-width: 920px) {
    .admin-shell { display: block; }
    .admin-sidebar { transform: translateX(-102%); box-shadow: 24px 0 70px rgba(0,0,0,.3); transition: transform 220ms ease; }
    .admin-shell.is-sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-main { min-width: 0; }
    .sidebar-toggle { display: grid; }
    .topbar-title { margin-right: auto; margin-left: 10px; }
    .sidebar-backdrop { position: fixed; z-index: 45; inset: 0; display: block; border: 0; background: rgba(5,7,12,.48); backdrop-filter: blur(2px); }
    .dashboard-columns, .form-layout, .event-bottom-grid { grid-template-columns: 1fr; }
    .form-card--sticky { position: static; }
    .events-table__head { display: none; }
    .events-table { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 12px; }
    .events-table__row { display: grid; min-height: 0; grid-template-columns: 1fr auto; gap: 13px; padding: 17px; border: 1px solid var(--admin-line); border-radius: 14px; }
    .event-identity { grid-column: 1 / -1; }
    .event-date-cell { grid-column: 1 / -1; }
    .row-actions { justify-content: flex-end; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
}

@media (max-width: 650px) {
    .admin-topbar { height: 66px; padding: 0 14px; }
    .topbar-title small { display: none; }
    .topbar-create span:last-child { display: none; }
    .topbar-create { width: 38px; padding: 0; justify-content: center; }
    .admin-language { display: none; }
    .admin-content { padding: 22px 15px 40px; }
    .page-heading { align-items: flex-start; }
    .page-heading > .primary-button { min-width: 42px; padding: 0 12px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-card { min-height: 105px; padding: 15px; }
    .metric-card:last-child { grid-column: 1 / -1; }
    .dashboard-columns { gap: 14px; }
    .event-row { grid-template-columns: 41px minmax(0,1fr) auto; padding: 12px 14px; }
    .event-row .status-pill, .event-row__photos { display: none; }
    .event-filters { flex-wrap: wrap; }
    .event-filters label { flex-basis: 100%; max-width: none; }
    .event-filters select { flex: 1; }
    .events-table { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .field--wide { grid-column: auto; }
    .form-card { padding: 18px; }
    .event-spotlight { display: grid; min-height: 300px; align-content: end; margin: -22px -15px 0; padding: 42px 18px 28px; }
    .event-spotlight__actions { justify-content: flex-start; }
    .event-metrics { grid-template-columns: repeat(2, 1fr); }
    .event-metrics article:nth-child(2) { border-right: 0; }
    .event-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--admin-line); }
    .link-card__body { grid-template-columns: 1fr; }
    .qr-box { width: 150px; height: 150px; }
    .account-grid { grid-template-columns: 1fr; }
    .auth-form-panel { padding: 70px 22px 35px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
