:root {
    --bg-1: #08131f;
    --bg-2: #12283b;
    --bg-3: #1f4d66;
    --card: rgba(7, 19, 29, 0.78);
    --card-soft: rgba(14, 36, 51, 0.65);
    --text: #eaf7ff;
    --muted: #a9c6d8;
    --accent: #ff8f3f;
    --accent-2: #16d8c4;
    --danger: #f75959;
    --line: rgba(169, 198, 216, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(22, 216, 196, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 12%, rgba(255, 143, 63, 0.20) 0%, transparent 42%),
        linear-gradient(rgba(8, 19, 31, 0.78), rgba(18, 40, 59, 0.88)),
        url('img/cbbay.jpg') center center / cover no-repeat fixed;
    min-height: 100vh;
}

.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(transparent 95%, rgba(255, 255, 255, 0.04) 95%), linear-gradient(90deg, transparent 95%, rgba(255, 255, 255, 0.03) 95%);
    background-size: 26px 26px;
    opacity: 0.25;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(4, 10, 16, 0.75);
    border-bottom: 1px solid var(--line);
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
}

.brand-block h1 {
    margin: 0;
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.04em;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.brand-block p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.kicker {
    color: var(--accent-2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(17, 39, 56, 0.5);
    padding: 0.52rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.main-nav a.active,
.main-nav a:hover {
    background: linear-gradient(90deg, var(--accent), #f95f48);
    border-color: transparent;
    color: #fff;
}

a {
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.layout {
    max-width: 1220px;
    margin: 1.4rem auto;
    padding: 0 1rem 3rem;
    display: grid;
    gap: 1rem;
}

.panel {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.hero h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 3vw, 2.15rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 143, 63, 0.18), transparent 28%),
        radial-gradient(circle at left center, rgba(22, 216, 196, 0.15), transparent 26%),
        var(--card);
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -35% auto;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(22, 216, 196, 0.12), transparent 70%);
    pointer-events: none;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.panel-head h2 {
    margin: 0;
}

.panel-subline {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.year-picker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    background: var(--card-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.year-picker label {
    font-size: 0.84rem;
    color: var(--muted);
}

.year-picker select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
    font-family: inherit;
    background: rgba(6, 20, 31, 0.72);
    color: var(--text);
}

.stats-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.75rem;
}

.stats-grid article {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
        var(--card-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 0.8rem;
    min-height: 94px;
}

.stats-grid article::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.stats-grid h3 {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
}

.stats-grid p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.rank-list li {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0.45rem;
    min-height: 210px;
    align-items: end;
    padding: 1rem 0.75rem 0.35rem;
    border-radius: 16px;
    background:
        linear-gradient(transparent 94%, rgba(255, 255, 255, 0.05) 94%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
    background-size: 100% 25%, 100% 100%;
    border: 1px solid rgba(169, 198, 216, 0.12);
}

.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.9rem;
}

.stats-mini-grid article {
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.stats-mini-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.stats-mini-grid strong {
    font-size: 1.3rem;
    color: var(--text);
}

.bar-item {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.35rem;
    justify-items: stretch;
    align-items: end;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.bar-item em {
    font-style: normal;
    font-size: 0.74rem;
    color: var(--muted);
    min-height: 1em;
    text-align: center;
}

.bar {
    display: block;
    width: 100%;
    align-self: end;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease;
    min-height: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.bar-item:hover .bar {
    transform: translateY(-4px);
}

.bar-item.is-peak .bar {
    background: linear-gradient(180deg, #ffd166, var(--accent));
    border-color: rgba(255, 209, 102, 0.7);
}

.bar-item.is-selected .bar {
    box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.3), 0 10px 24px rgba(0, 0, 0, 0.24);
    transform: translateY(-4px);
}

.bar-item small {
    text-align: center;
}

.chart-hint {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.month-leaderboard {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.month-leaderboard__head h3 {
    margin: 0;
}

.month-leaderboard__head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.month-leaderboard__list {
    list-style: none;
    margin: 0.95rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.month-leaderboard__list li {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 0.8rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.month-leaderboard__list li strong {
    display: block;
    font-size: 1rem;
}

.month-leaderboard__list li small {
    display: block;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.month-leaderboard__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(110, 231, 183, 0.12);
    color: var(--accent-2);
    font-weight: 700;
}

.month-leaderboard__list li.is-empty {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.month-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 120;
}

.month-modal.is-open {
    display: block;
}

.month-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 14, 0.74);
    backdrop-filter: blur(8px);
}

.month-modal__dialog {
    position: relative;
    width: min(980px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    padding: 1.35rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(255, 143, 63, 0.15), transparent 24%),
        radial-gradient(circle at left center, rgba(22, 216, 196, 0.12), transparent 30%),
        rgba(8, 19, 31, 0.95);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.month-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.8rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.4rem;
}

.month-modal__eyebrow {
    margin: 0;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.month-modal__header h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.month-modal__subtitle {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.month-modal__trend {
    margin: 0.55rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
}

.month-modal__trend.is-up { color: var(--accent-2); }
.month-modal__trend.is-down { color: #ffb36b; }
.month-modal__trend.is-same { color: var(--muted); }

.month-modal__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.75rem;
    margin: 1.2rem 0;
}

.month-modal__stats article,
.month-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.month-modal__stats span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    margin-bottom: 0.35rem;
}

.month-modal__stats strong {
    font-size: 1.5rem;
}

.month-modal__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.month-modal__grid--triple {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 1rem;
}

.month-card h3 {
    margin-top: 0;
}

.month-highlight-list,
.month-sample-list,
.month-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.month-highlight-list li,
.month-sample-list li,
.month-ranking-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(169, 198, 216, 0.12);
}

.month-highlight-list li:last-child,
.month-sample-list li:last-child,
.month-ranking-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.month-highlight-list span,
.month-sample-list span,
.month-ranking-list span {
    color: var(--muted);
}

body.modal-open {
    overflow: hidden;
}

.chart-empty {
    border: 1px dashed rgba(169, 198, 216, 0.32);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.chart-empty h3 {
    margin: 0 0 0.35rem;
    color: var(--text);
}

.chart-empty p {
    margin: 0;
    color: var(--muted);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.filter-grid input,
.year-picker select,
.filter-grid button,
.editor-grid input,
.editor-grid select,
.editor-grid textarea,
.auth input,
.auth button,
button {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    background: rgba(6, 20, 31, 0.72);
    color: var(--text);
}

button {
    cursor: pointer;
}

button:hover {
    background: rgba(22, 216, 196, 0.25);
}

.auth-note {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.live-event-meta {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 0.7rem;
}
.live-event-meta article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}
.live-event-meta span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.live-online {
    color: #cbfff9;
}
.live-offline {
    color: #ffd2ac;
}

.live-ended {
    color: #ffb3b3;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
    margin-top: 1rem;
}

.auth-links a {
    color: #8fe9ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(143, 233, 255, 0.45);
    padding-bottom: 0.05rem;
    font-size: 0.92rem;
}

.auth-links a:hover {
    color: #ffd2ac;
    border-color: rgba(255, 210, 172, 0.75);
}

.content-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #d8f8ff;
    text-decoration: none;
    border: 1px solid rgba(143, 233, 255, 0.45);
    border-radius: 999px;
    padding: 0.15rem 0.58rem;
    background: rgba(143, 233, 255, 0.08);
    font-weight: 600;
}

.content-link-pill:hover {
    color: #ffd2ac;
    border-color: rgba(255, 210, 172, 0.75);
    background: rgba(255, 210, 172, 0.12);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.checkbox-inline input {
    width: auto;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap a,
.rank-list a {
    color: #8fe9ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(143, 233, 255, 0.45);
    padding-bottom: 0.02rem;
    font-weight: 600;
}

.table-wrap a:visited,
.rank-list a:visited {
    color: #8fe9ff;
}

.table-wrap a:hover,
.rank-list a:hover {
    color: #ffd2ac;
    border-color: rgba(255, 210, 172, 0.75);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.58rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

th {
    color: var(--accent-2);
}

.pagination {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pagination a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.pagination a.active {
    background: var(--accent);
    border-color: transparent;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 0.6rem;
}

.editor-grid label,
.auth label {
    display: grid;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.editor-grid .full {
    grid-column: 1 / -1;
}

.dx-station-base-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.03);
}

.dx-station-base-row label {
    font-size: 0.78rem;
}

.organizer-start-grid select[multiple] {
    min-height: 9rem;
}

.organizer-session-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.organizer-session-meta article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
}

.organizer-session-meta span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.organizer-inline-check {
    align-self: end;
    min-height: 44px;
}

.field-hint {
    font-size: 0.74rem;
    color: var(--muted);
    font-weight: 500;
}

.skip-suggestion-box {
    display: none;
    position: fixed;
    z-index: 2147483647;
    width: min(420px, calc(100vw - 1rem));
    max-height: 240px;
    overflow-y: auto;
    margin-top: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.skip-suggestion-box.is-open {
    display: grid;
}

.editor-grid label {
    position: relative;
}

.skip-suggestion-item {
    appearance: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    display: grid;
    gap: 0.1rem;
}

.skip-suggestion-item:last-child {
    border-bottom: 0;
}

.skip-suggestion-item strong {
    font-size: 0.92rem;
}

.skip-suggestion-item span {
    font-size: 0.78rem;
    color: var(--muted);
}

.skip-suggestion-item:hover,
.skip-suggestion-item.is-active {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.freq-prefix-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.45rem;
}

.freq-prefix {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.44rem 0.58rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.dx-hunting-mode-toggle {
    grid-column: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.28rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 0.74rem;
    align-self: end;
    max-width: max-content;
}

.modulation-select {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.52rem 2rem 0.52rem 0.7rem;
    min-width: 7.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    background:
        linear-gradient(45deg, transparent 50%, var(--accent) 50%) calc(100% - 15px) calc(50% - 2px) / 6px 6px no-repeat,
        linear-gradient(135deg, var(--accent) 50%, transparent 50%) calc(100% - 10px) calc(50% - 2px) / 6px 6px no-repeat,
        rgba(255, 255, 255, 0.04);
}

.modulation-select:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line) 45%);
}

.modulation-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 143, 63, 0.2);
}

.organizer-participant-grid {
    margin-top: 0.8rem;
}

.organizer-helper-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.organizer-inline-flash {
    margin: 0 0 0.35rem 0;
}

.is-hidden {
    display: none !important;
}

.organizer-register-hint {
    display: block;
    margin: 0 0 0.3rem 0;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.9rem;
}

.organizer-comment-wrap {
    display: grid;
    gap: 0.55rem;
}

.live-notify-updated {
    border-left: 3px solid #f9c76f;
    padding-left: 0.5rem;
    animation: liveNotifyPulse 1.2s ease-in-out 2;
}

.live-notify-badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1b1408;
    background: #f9c76f;
    border: 1px solid rgba(249, 199, 111, 0.55);
}

@keyframes liveNotifyPulse {
    0% { background: rgba(249, 199, 111, 0); }
    35% { background: rgba(249, 199, 111, 0.2); }
    100% { background: rgba(249, 199, 111, 0); }
}

.status-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-uncommitted {
    background: rgba(255, 143, 63, 0.2);
    color: #ffd2ac;
    border: 1px solid rgba(255, 143, 63, 0.45);
}

.status-committed {
    background: rgba(22, 216, 196, 0.18);
    color: #cbfff9;
    border: 1px solid rgba(22, 216, 196, 0.45);
}

.delete-form {
    margin-top: 0.9rem;
    max-width: 240px;
}

.danger {
    background: rgba(247, 89, 89, 0.2);
    border-color: rgba(247, 89, 89, 0.5);
}

.auth {
    max-width: 520px;
}

.flash {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.flash.success {
    background: rgba(22, 216, 196, 0.22);
}

.flash.error {
    background: rgba(247, 89, 89, 0.2);
}

.flash.warning {
    background: rgba(255, 143, 63, 0.22);
    border-color: rgba(255, 143, 63, 0.45);
    color: #ffe2cb;
}

.lock-note {
    color: #ffbf8d;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-history-table {
    margin-top: 1rem;
}

.inline-form {
    display: inline-block;
    margin-right: 0.45rem;
}

.site-footer {
    text-align: center;
    padding: 1.6rem 1.4rem 2rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(4, 10, 16, 0.72);
    backdrop-filter: blur(8px);
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #8fe9ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(143, 233, 255, 0.45);
    padding-bottom: 0.04rem;
}

.footer-links a:hover {
    color: #ffd2ac;
    border-color: rgba(255, 210, 172, 0.75);
}

.footer-links .sep {
    color: var(--line);
    user-select: none;
}

.footer-mail {
    font-size: 0.80rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.footer-mail span {
    display: inline;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

@media (max-width: 980px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
.live-event-meta {
    grid-template-columns: 1fr;
    }

    .stats-mini-grid {
        grid-template-columns: 1fr;
    }

    .month-leaderboard__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .editor-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .organizer-session-meta {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .dx-station-base-row {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }

    .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .month-modal__stats,
    .month-modal__grid {
        grid-template-columns: 1fr;
    }

    .month-modal__grid--triple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-block p {
        font-size: 0.82rem;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        flex: 1 1 calc(50% - 0.55rem);
        text-align: center;
    }

    .filter-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .organizer-session-meta {
        grid-template-columns: 1fr;
    }

    .dx-station-base-row {
        grid-template-columns: 1fr;
    }

    .organizer-helper-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .month-leaderboard__list {
        grid-template-columns: 1fr;
    }
}

    /* ── Badge (nav pending count) ─────────────────────────────────────────────── */
    .badge {
        display: inline-block;
        background: var(--danger);
        color: #fff;
        font-size: 0.68rem;
        font-weight: 700;
        line-height: 1;
        padding: 0.18em 0.4em;
        border-radius: 10px;
        vertical-align: middle;
    }

    /* ── Status badges ──────────────────────────────────────────────────────────── */
    .badge-status {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.2em 0.6em;
        border-radius: 4px;
    }
    .badge-status.pending  { background: rgba(255, 193, 7, 0.18); color: #ffd54f; }
    .badge-status.accepted { background: rgba(22, 216, 196, 0.18); color: var(--accent-2); }
    .badge-status.rejected { background: rgba(247, 89, 89, 0.15); color: var(--danger); }

    /* ── Role badges ────────────────────────────────────────────────────────────── */
    .role-badge {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.2em 0.6em;
        border-radius: 4px;
    }
    .role-badge.role-dev              { background: rgba(139, 92, 246, 0.2); color: #8B5CF6; }
    .role-badge.role-admin            { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
    .role-badge.role-funkveranstalter { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
    .role-badge.role-user             { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }

    /* ── Tab nav ────────────────────────────────────────────────────────────────── */
    .tab-nav {
        display: flex;
        gap: 0.4rem;
        flex-wrap: wrap;
        margin: 1.2rem 0 0.8rem;
        border-bottom: 1px solid var(--line);
        padding-bottom: 0.5rem;
    }
    .tab-nav a {
        text-decoration: none;
        padding: 0.35em 0.85em;
        border-radius: 6px 6px 0 0;
        font-size: 0.9rem;
        color: var(--muted);
        transition: background 0.2s, color 0.2s;
    }
    .tab-nav a:hover { background: var(--card-soft); color: var(--text); }
    .tab-nav a.active { background: var(--bg-3); color: var(--text); font-weight: 600; }

    .mylogs-main-title {
        display: inline-block;
        margin-bottom: 0.15rem;
        padding: 0.2rem 0.7rem;
        border-radius: 10px;
        border: 1px solid rgba(255, 143, 63, 0.45);
        background: linear-gradient(180deg, rgba(255, 143, 63, 0.2), rgba(255, 143, 63, 0.08));
        color: #ffd2ac;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .mylogs-tab-nav {
        border-bottom-color: rgba(255, 143, 63, 0.3);
    }

    .mylogs-tab-nav .tab-link-strong {
        border: 1px solid rgba(255, 143, 63, 0.35);
        border-radius: 999px;
        padding: 0.38rem 0.92rem;
        font-size: 0.92rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: #ffd2ac;
        background: rgba(255, 143, 63, 0.1);
    }

    .mylogs-tab-nav .tab-link-strong:hover {
        background: rgba(255, 143, 63, 0.2);
        border-color: rgba(255, 143, 63, 0.6);
        color: #ffe6ce;
    }

    .mylogs-tab-nav .tab-link-strong.active {
        background: linear-gradient(90deg, var(--accent), #f95f48);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 8px 20px rgba(249, 95, 72, 0.3);
    }

    /* ── Sub-panel (correction suggestion form) ─────────────────────────────────── */
    .sub-panel {
        background: var(--card-soft);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 1.2rem 1.4rem;
        margin-bottom: 1.4rem;
    }
    .sub-panel h3 { margin-top: 0; font-size: 1rem; color: var(--accent-2); }

    .correction-edit-grid td {
        vertical-align: top;
    }

    .correction-edit-grid input,
    .correction-edit-grid textarea {
        width: 100%;
    }

    .correction-edit-grid input[readonly],
    .correction-edit-grid textarea[readonly] {
        background: rgba(169, 198, 216, 0.08);
        color: var(--muted);
        border-style: dashed;
    }

    /* ── Upload / mapping form ──────────────────────────────────────────────────── */
    .upload-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 520px;
        margin-top: 1.2rem;
    }
    .upload-form input[type="file"] {
        margin-top: 0.4em;
        width: 100%;
        padding: 0.5rem 0.7rem;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--text);
        cursor: pointer;
    }

    .template-hint {
        margin: 0.8rem 0 0.4rem;
        font-size: 0.9rem;
        color: var(--muted);
    }
    .template-hint a {
        color: var(--accent-2);
        text-decoration: none;
        border-bottom: 1px dashed rgba(22, 216, 196, 0.4);
    }
    .template-hint a:hover {
        color: var(--accent);
        border-bottom-color: rgba(255, 143, 63, 0.5);
    }

    .mapping-form h3 { margin-top: 1.4rem; font-size: 1rem; }

    .mapping-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.8rem 1rem;
        margin: 1rem 0;
    }
    .mapping-grid label {
        display: flex;
        flex-direction: column;
        font-size: 0.85rem;
        color: var(--muted);
        gap: 0.3rem;
    }
    .mapping-grid select {
        padding: 0.45rem 0.6rem;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 6px;
        color: var(--text);
        font-family: inherit;
        font-size: 0.9rem;
    }
    .duplicate-summary {
        margin: 0.5rem 0 0.9rem;
        padding: 0.7rem 0.9rem;
        border: 1px solid rgba(255, 143, 63, 0.35);
        border-radius: 10px;
        background: rgba(255, 143, 63, 0.08);
        color: #ffd9ba;
        font-size: 0.9rem;
    }
    .duplicate-row-kept {
        background: rgba(22, 216, 196, 0.08);
    }
    .duplicate-row-duplicate {
        background: rgba(247, 89, 89, 0.08);
    }
    .duplicate-note {
        min-width: 260px;
        color: var(--muted);
        font-size: 0.84rem;
    }
    .duplicate-row-kept .duplicate-note {
        color: #9ef3ea;
    }
    .duplicate-row-duplicate .duplicate-note {
        color: #ffd0d0;
    }

    /* ── Admin round-link inline editor ───────────────────────────────────────── */
    .admin-round-link-cell {
        min-width: 180px;
    }
    .round-link-edit {
        display: block;
        margin-top: 0.35rem;
    }
    .round-link-edit summary {
        font-size: 0.78rem;
        color: var(--accent-2);
        cursor: pointer;
        user-select: none;
        display: inline-block;
    }
    .round-link-edit summary:hover {
        text-decoration: underline;
    }
    .round-link-edit-form {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        margin-top: 0.4rem;
        padding: 0.5rem 0.6rem;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 6px;
    }
    .round-link-edit-form label {
        display: flex;
        flex-direction: column;
        font-size: 0.78rem;
        color: var(--muted);
        gap: 0.2rem;
    }
    .round-link-edit-form input[type="url"] {
        width: 100%;
        min-width: 260px;
        font-size: 0.82rem;
        padding: 0.25em 0.5em;
    }
    .round-link-edit-form button {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 0.25em 0.75em;
        margin-top: 0.1rem;
    }
    .muted-label {
        color: var(--muted);
        font-size: 0.9rem;
    }

    .form-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    /* ── Misc button variants ───────────────────────────────────────────────────── */
    .btn-sm {
        display: inline-block;
        font-size: 0.75rem;
        padding: 0.2em 0.55em;
        border-radius: 4px;
        background: var(--card);
        color: var(--accent-2);
        text-decoration: none;
        border: 1px solid var(--line);
        transition: background 0.2s;
    }
    .btn-sm:hover { background: var(--bg-3); }

    .trust-badge {
        display: inline-block;
        margin-left: 0.35rem;
        padding: 0.1rem 0.45rem;
        border-radius: 999px;
        border: 1px solid rgba(22, 216, 196, 0.45);
        background: rgba(22, 216, 196, 0.14);
        color: #cbfff9;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .skip-validation-badge {
        display: inline-block;
        margin-left: 0.35rem;
        padding: 0.1rem 0.45rem;
        border-radius: 999px;
        border: 1px solid rgba(255, 196, 84, 0.55);
        background: rgba(255, 196, 84, 0.18);
        color: #fff5d6;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .trust-panel {
        margin-top: 1rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--line);
    }

    .trust-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 0.65rem;
    }

    .trust-form {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        align-items: center;
    }

    .trust-form input {
        min-width: 170px;
    }

    .admin-inline-form {
        display: flex;
        gap: 0.4rem;
        align-items: center;
    }

    .admin-inline-form input {
        min-width: 150px;
    }

    .admin-inline-form button {
        width: auto;
    }

    .btn-secondary {
        display: inline-block;
        padding: 0.55em 1.2em;
        border-radius: 7px;
        background: transparent;
        color: var(--muted);
        text-decoration: none;
        border: 1px solid var(--line);
        font-size: 0.9rem;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .btn-secondary:hover { background: var(--card); color: var(--text); }

    .btn-accept {
        background: rgba(22, 216, 196, 0.15);
        color: var(--accent-2);
        border: 1px solid rgba(22, 216, 196, 0.3);
        border-radius: 5px;
        padding: 0.25em 0.6em;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 700;
        transition: background 0.2s;
    }
    .btn-accept:hover { background: rgba(22, 216, 196, 0.28); }

    .btn-reject {
        background: rgba(247, 89, 89, 0.12);
        color: var(--danger);
        border: 1px solid rgba(247, 89, 89, 0.3);
        border-radius: 5px;
        padding: 0.25em 0.6em;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 700;
        transition: background 0.2s;
    }
    .btn-reject:hover { background: rgba(247, 89, 89, 0.22); }

    /* ── Corrections table helpers ──────────────────────────────────────────────── */
    .val-old { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; }
    .val-new { color: var(--accent-2); }
    .action-col { white-space: nowrap; }

    /* ── Empty state ────────────────────────────────────────────────────────────── */
    .empty-hint {
        color: var(--muted);
        font-style: italic;
        padding: 1.2rem 0;
        text-align: center;
    }

    /* ── Audit / corrections admin select in inline-form ──────────────────────── */
    .inline-form select {
        padding: 0.3em 0.5em;
        background: var(--bg-2);
        border: 1px solid var(--line);
        border-radius: 5px;
        color: var(--text);
        font-family: inherit;
        font-size: 0.85rem;
    }

/* ── Participant link confirmation status pills ────────────────────────────── */
.status-auto {
    background: rgba(180, 160, 80, 0.18);
    color: #fde68a;
    border: 1px solid rgba(180, 160, 80, 0.4);
}
.status-confirmed {
    background: rgba(22, 216, 196, 0.18);
    color: #cbfff9;
    border: 1px solid rgba(22, 216, 196, 0.45);
}
.status-rejected {
    background: rgba(247, 89, 89, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(247, 89, 89, 0.4);
}

/* ── Inline bare form (no margin/block reset) ─────────────────────────────── */
.inline-form-bare {
    display: inline;
    margin: 0;
    padding: 0;
}

/* ── Link actions cell ────────────────────────────────────────────────────── */
.link-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
}

.danger-sm {
    border-color: rgba(247, 89, 89, 0.6) !important;
    color: #fca5a5 !important;
}
.danger-sm:hover { background: rgba(247, 89, 89, 0.15) !important; color: #fca5a5 !important; }
