/* ============================================================
   Euro Rapid Surf App – Mobile-First Stylesheet
   Colors: Primary Green #A3D550, Dark BG #1A1A2E, Card BG #16213E
   ============================================================ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --c-primary: #A3D550;
    --c-primary-dark: #8BC34A;
    --c-bg: #0F0F23;
    --c-bg-card: #16213E;
    --c-bg-card-hover: #1A2744;
    --c-surface: #1A1A2E;
    --c-text: #EAEAEA;
    --c-text-muted: #8892A4;
    --c-text-dark: #1a1a1a;
    --c-border: #2A2A4A;
    --c-danger: #FF5252;
    --c-white: #FFFFFF;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 50px;
    --shadow: 0 2px 12px rgba(0,0,0,.3);
    --nav-height: 70px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--c-primary);
    text-decoration: none;
}

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

/* ── Main Content (padding for bottom nav) ─────────────────── */
.main-content {
    padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
    background: rgba(15, 15, 35, 0.85);
    backdrop-filter: blur(2px);
}

/* ── Section ───────────────────────────────────────────────── */
.section {
    padding: 1rem 1rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    margin-top: 1.5rem;
}

.section__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-white);
}

.section__link {
    font-size: .85rem;
    color: var(--c-primary);
    font-weight: 600;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--c-white);
}

/* ── Hero Banner ───────────────────────────────────────────── */
.hero {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,15,35,.2) 0%, rgba(15,15,35,.85) 70%, rgba(15,15,35,.98) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.hero__badge {
    display: inline-block;
    background: var(--c-primary);
    color: #111;
    font-size: .65rem;
    font-weight: 800;
    padding: .3rem .85rem;
    border-radius: var(--radius-full);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.hero__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--c-white);
    margin-bottom: .5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.hero__subtitle {
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
    max-width: 400px;
}

.hero__actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
}

.btn--hero {
    padding: .65rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: transform .15s, box-shadow .15s;
}

.btn--hero:active { transform: scale(.96); }

.btn--ghost {
    background: transparent;
    border: 2px solid rgba(255,255,255,.35);
    color: #fff;
}

.btn--ghost:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* ── Page Hero (Sub-Pages) ─────────────────────────────────── */
.page-hero {
    position: relative;
    height: 220px;
    background: var(--c-surface);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem 1rem;
    overflow: hidden;
}

.page-hero--compact { height: 180px; }

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,15,35,.3) 0%, rgba(15,15,35,.88) 100%);
}

.page-hero__title {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--c-white);
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    margin: 0;
}

.page-hero__sub {
    position: relative;
    z-index: 1;
    font-size: .85rem;
    color: rgba(255,255,255,.65);
    margin-top: .25rem;
}

/* ── Gallery Grid ──────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-item {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item--large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ── Bottom Navigation ─────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding-bottom: var(--safe-bottom);
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--c-text-muted);
    font-size: .65rem;
    font-weight: 500;
    padding: .5rem .25rem;
    transition: color .2s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav__item.active {
    color: var(--c-primary);
}

.bottom-nav__icon {
    width: 22px;
    height: 22px;
}

/* ── Cards (horizontal scroll) ─────────────────────────────── */
.card-scroll {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
    scrollbar-width: none;
}

.card-scroll::-webkit-scrollbar { display: none; }

.card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--c-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:active {
    transform: scale(.98);
}

.card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card__body {
    padding: .75rem 1rem 1rem;
}

.card__date {
    font-size: .75rem;
    color: var(--c-text-muted);
    display: block;
    margin-bottom: .3rem;
}

.card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.3;
}

.card__excerpt {
    font-size: .85rem;
    color: var(--c-text-muted);
    margin-top: .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__sponsor-badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .25rem;
}

.card__image-wrap {
    position: relative;
}

.card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform .2s, background .2s;
}

.card__play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.card--sponsor:hover .card__play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(163,213,80,0.85);
}

/* ── Video Modal ───────────────────────────────────────────── */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

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

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.video-modal__content {
    position: relative;
    width: 90vw;
    max-width: 800px;
    aspect-ratio: 16 / 9;
}

.video-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1;
}

.video-modal__player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* ── Event Cards (vertical list) ───────────────────────────── */
.event-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.event-card {
    display: block;
    background: var(--c-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--c-text);
    transition: transform .15s, box-shadow .15s;
    position: relative;
}

.event-card:active {
    transform: scale(.985);
}

.event-card__type {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: var(--radius-full);
    font-size: .7rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: rgba(255,255,255,.08);
    border: 1px solid var(--c-border);
    margin: .75rem .75rem 0;
}

.event-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-top: .5rem;
}

.event-card__body {
    padding: .75rem 1rem 1rem;
}

.event-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: .4rem;
}

.event-card__meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .8rem;
    color: var(--c-text-muted);
}

.event-card__price {
    display: inline-block;
    margin-top: .5rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-primary);
}

.event-card__price--free {
    color: var(--c-primary);
}

/* ── Favorite Star Icons ───────────────────────────────────── */
.star-icon {
    font-size: 1.6rem;
    color: rgba(163, 213, 80, .3);
    transition: color .25s, transform .25s, text-shadow .25s, filter .25s;
    vertical-align: middle;
    filter: drop-shadow(0 0 2px rgba(163, 213, 80, .1));
    cursor: pointer;
}
.star-icon:hover {
    color: var(--c-primary);
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px rgba(163, 213, 80, .5));
}
.star-icon--filled {
    color: var(--c-primary);
    filter: drop-shadow(0 0 6px rgba(163, 213, 80, .4));
    animation: starPop .35s ease-out;
}
.star-icon--filled:hover {
    color: var(--c-primary-dark);
    filter: drop-shadow(0 0 12px rgba(163, 213, 80, .65));
}
@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: rgba(163, 213, 80, .08);
    border: 1px solid rgba(163, 213, 80, .15);
    border-radius: 20px;
    padding: .15rem .5rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    vertical-align: middle;
}
.favorite-btn:hover {
    background: rgba(163, 213, 80, .18);
    border-color: rgba(163, 213, 80, .35);
}
.favorite-btn--active {
    background: rgba(163, 213, 80, .15);
    border-color: rgba(163, 213, 80, .3);
}
.favorite-btn--lg {
    padding: .35rem .75rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-text);
}

/* Event card fav position */
.event-card__fav {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
}

/* Detail page fav */
.detail-fav-wrap {
    margin-bottom: 1rem;
}

/* ── Notification Settings Card ──────────────────────────── */
.notify-card {
    background: linear-gradient(135deg, rgba(22, 33, 62, .95), rgba(26, 26, 46, .9));
    border: 1px solid rgba(163, 213, 80, .12);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04);
}
.notify-card__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
}
.notify-card__header-text {
    flex: 1;
    min-width: 0;
}
.notify-card__chevron {
    color: var(--c-text-muted);
    flex-shrink: 0;
    transition: transform .3s ease;
}
.notify-card--open .notify-card__chevron {
    transform: rotate(180deg);
}
.notify-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .25s ease;
    opacity: 0;
}
.notify-card--open .notify-card__body {
    max-height: 3000px;
    opacity: 1;
    margin-top: 1rem;
}

/* Rider profile image previews */
.rider-img-preview {
    width: 100px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border: 1px dashed rgba(255,255,255,.12);
    margin-bottom: .5rem;
}
.rider-img-preview--landscape {
    width: 200px;
    height: 120px;
}
.rider-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Notification channel toggle rows */
.notify-card__section-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-muted);
    margin-bottom: .5rem;
}
.notify-channel {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.notify-channel + .notify-channel {
    border-top: 1px solid rgba(255,255,255,.04);
}
.notify-channel__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.notify-channel__slider {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: rgba(255,255,255,.1);
    position: relative;
    flex-shrink: 0;
    transition: background .25s;
    border: 1px solid rgba(255,255,255,.08);
}
.notify-channel__slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    transition: transform .25s, background .25s, box-shadow .25s;
}
.notify-channel__input:checked + .notify-channel__slider {
    background: rgba(163, 213, 80, .25);
    border-color: rgba(163, 213, 80, .3);
}
.notify-channel__input:checked + .notify-channel__slider::after {
    transform: translateX(18px);
    background: var(--c-primary);
    box-shadow: 0 0 6px rgba(163, 213, 80, .45);
}
.notify-channel__text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    flex: 1;
}
.notify-channel__name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--c-text);
}
.notify-channel__desc {
    font-size: .72rem;
    color: var(--c-text-muted);
}
.notify-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(163, 213, 80, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    flex-shrink: 0;
}
.notify-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-white);
    margin: 0;
}
.notify-card__subtitle {
    font-size: .78rem;
    color: var(--c-text-muted);
    margin: .15rem 0 0;
}
.notify-card__toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
}
.notify-card__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--c-text);
}
.notify-card__divider {
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: .75rem 0;
}
.notify-card__interval {
    padding-top: .25rem;
}
.notify-card__select-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}
.notify-card__hint {
    font-size: .72rem;
    color: var(--c-text-muted);
    margin-left: .5rem;
}

/* Toggle switch */
.notify-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--c-text-muted);
    font-size: .82rem;
    font-weight: 600;
}
.notify-toggle__track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    position: relative;
    transition: background .3s;
    border: 1px solid rgba(255,255,255,.08);
}
.notify-toggle__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #666;
    transition: transform .3s, background .3s, box-shadow .3s;
}
.notify-toggle--active .notify-toggle__track {
    background: rgba(163, 213, 80, .25);
    border-color: rgba(163, 213, 80, .3);
}
.notify-toggle--active .notify-toggle__thumb {
    transform: translateX(20px);
    background: var(--c-primary);
    box-shadow: 0 0 8px rgba(163, 213, 80, .5);
}
.notify-toggle--active .notify-toggle__text {
    color: var(--c-primary);
}

/* Select dropdown (notification interval) */
.notify-select {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .55rem .75rem;
    color: var(--c-text);
    font-size: .85rem;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238892A4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2rem;
}
.notify-select:focus {
    border-color: rgba(163, 213, 80, .4);
    box-shadow: 0 0 0 3px rgba(163, 213, 80, .1);
}
.notify-select option {
    background: #1a1a2e;
    color: var(--c-text);
}

/* Save button (checkmark) */
.notify-save-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: var(--c-primary);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .15s, box-shadow .2s;
}
.notify-save-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(163, 213, 80, .4);
}
.notify-save-btn:active {
    transform: scale(.95);
}

/* Custom minutes input */
.custom-minutes-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}
.notify-input {
    width: 100px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: .5rem .75rem;
    color: var(--c-text);
    font-size: .85rem;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s;
}
.notify-input:focus {
    border-color: rgba(163, 213, 80, .4);
}

/* Per-event reminder row */
.event-remind-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .6rem;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.04);
}
.event-remind-row__icon {
    color: var(--c-text-muted);
    flex-shrink: 0;
}
.event-remind-form {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 1;
}
.event-remind-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: .3rem .5rem;
    padding-right: 1.6rem;
    color: var(--c-text-muted);
    font-size: .75rem;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    transition: border-color .2s, color .2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238892A4' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .4rem center;
}
.event-remind-select:focus {
    border-color: rgba(163, 213, 80, .3);
    color: var(--c-text);
}
.event-remind-select option {
    background: #1a1a2e;
    color: var(--c-text);
}

/* Unfavorite button */
.unfav-form {
    display: flex;
}
.unfav-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255,82,82,.15);
    background: rgba(255,82,82,.06);
    color: var(--c-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.unfav-btn:hover {
    background: rgba(255,82,82,.15);
    border-color: rgba(255,82,82,.3);
}

/* Empty state icon */
.empty-state__icon {
    margin-bottom: .75rem;
    color: var(--c-text-muted);
}

/* ── Filter Toggle ─────────────────────────────────────────── */
.filter-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

.filter-toggle-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.filter-toggle-btn:hover,
.filter-toggle-btn--active {
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.filter-toggle-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-primary);
}

/* ── Filter Chips ──────────────────────────────────────────── */
.filter-chips {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
    transition: max-height .3s ease, opacity .2s ease;
    max-height: 200px;
    opacity: 1;
}

.filter-chips--hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    padding: .4rem .85rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}

.chip--active {
    background: var(--c-primary);
    color: #111;
    border-color: var(--c-primary);
}

/* ── Contest Tabs & Panels ─────────────────────────────────── */
.contest-tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: .5rem;
    margin-bottom: 1rem;
}

.contest-tabs::-webkit-scrollbar { display: none; }

.contest-tab {
    flex: 0 0 auto;
    padding: .5rem 1rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}

.contest-tab--active {
    background: var(--c-primary);
    color: #111;
    border-color: var(--c-primary);
}

.contest-panel {
    display: none;
}

.contest-panel--active {
    display: block;
}

.contest-iframe {
    width: 100%;
    min-height: 80vh;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: #fff;
}

/* ── Date Selector (Calendar) ──────────────────────────────── */
.date-selector {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: .25rem 0;
}

.date-selector::-webkit-scrollbar { display: none; }

.date-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem .75rem;
    border-radius: var(--radius);
    background: var(--c-bg-card);
    border: 2px solid transparent;
    text-decoration: none;
    color: var(--c-text-muted);
    min-width: 55px;
    transition: all .2s;
}

.date-chip--active {
    border-color: var(--c-primary);
    background: rgba(163, 213, 80, .1);
    color: var(--c-primary);
}

.date-chip__day {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.date-chip__num {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.date-chip__month {
    font-size: .65rem;
    font-weight: 500;
}

/* ── View Toggle ───────────────────────────────────────────── */
.view-toggle {
    display: flex;
    gap: .4rem;
    margin-bottom: 1rem;
}
.view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .9rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--c-text-muted);
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    transition: all .15s;
}
.view-toggle__btn:hover {
    color: var(--c-text);
    border-color: rgba(163,213,80,.35);
}
.view-toggle__btn--active {
    background: var(--c-primary);
    color: #111;
    border-color: var(--c-primary);
}
.view-toggle__btn--active:hover {
    color: #111;
}

/* ── Week Grid ─────────────────────────────────────────────── */
.filter-chips--week {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .75rem;
}
.week-col {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.week-col__header {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    padding: .65rem .75rem;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid var(--c-border);
}
.week-col__weekday {
    font-size: .85rem;
    font-weight: 700;
    color: var(--c-white);
}
.week-col__date {
    font-size: .75rem;
    color: var(--c-text-muted);
}
.week-col__events {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.week-event {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--c-border);
    text-decoration: none;
    color: var(--c-text);
    transition: background .15s;
}
.week-event:last-child {
    border-bottom: none;
}
.week-event:hover {
    background: rgba(255,255,255,.04);
}
.week-event__time {
    font-size: .7rem;
    color: var(--c-text-muted);
    font-weight: 500;
}
.week-event__title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.3;
}
.week-event__type {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}

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

/* ── Timeline ──────────────────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline__item {
    display: flex;
    gap: .75rem;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border);
    transition: background .15s;
}

.timeline__item:last-child {
    border-bottom: none;
}

.timeline__time {
    flex: 0 0 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: .1rem;
}

.timeline__hour {
    font-size: .9rem;
    font-weight: 700;
    color: var(--c-white);
}

.timeline__end {
    font-size: .7rem;
    color: var(--c-text-muted);
}

.timeline__dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: .35rem;
}

.timeline__content {
    flex: 1;
    min-width: 0;
}

.timeline__type {
    font-size: .7rem;
    font-weight: 700;
    margin-bottom: .15rem;
}

.timeline__title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-white);
    line-height: 1.3;
}

.timeline__location {
    font-size: .75rem;
    color: var(--c-text-muted);
}

/* ── Quick Links ───────────────────────────────────────────── */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .6rem;
    margin-bottom: 1.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1rem;
    background: rgba(255,255,255,.92);
    border: none;
    border-radius: var(--radius-sm);
    color: #1a1a2e;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.quick-link:hover {
    background: #fff;
    color: #0f0f23;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
    transform: translateY(-1px);
}
.quick-link:active { transform: scale(.97); }

.quick-link__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #1a1a2e;
    opacity: .85;
}
.quick-link:hover .quick-link__icon {
    opacity: 1;
    color: var(--c-primary);
}

@media (max-width: 640px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── News Grid ─────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.news-grid .card--vertical {
    flex-direction: column;
    min-width: 0;
    width: 100%;
}
.news-grid .card--vertical .card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* ── Detail Pages ──────────────────────────────────────────── */
.back-link {
    display: inline-block;
    font-size: .85rem;
    color: var(--c-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.detail-hero {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: var(--c-bg-card);
    border-radius: var(--radius);
}

.detail-meta__item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.detail-meta__item strong {
    font-size: .8rem;
    color: var(--c-text-muted);
}

.detail-body {
    line-height: 1.7;
    color: var(--c-text);
}

.detail-body p { margin-bottom: 1rem; }

.detail-map {
    width: 100%;
    height: 250px;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    overflow: hidden;
}

.text-green { color: var(--c-primary); }

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-group { margin-bottom: 2rem; }

.faq-item {
    background: var(--c-bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    overflow: hidden;
}

.faq-item__question {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .9rem;
    color: var(--c-white);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item__question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--c-primary);
    transition: transform .2s;
}

.faq-item[open] .faq-item__question::after {
    content: '−';
}

.faq-item__answer {
    padding: 0 1rem 1rem;
    font-size: .85rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ── Partner Grid ──────────────────────────────────────────── */
.partner-group { margin-bottom: 2rem; }

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-top: .75rem;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.25rem .75rem;
    background: var(--c-bg-card);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--c-text);
    transition: transform .15s;
}

.partner-card:active { transform: scale(.96); }

.partner-card__logo {
    width: 80px;
    height: 60px;
    object-fit: contain;
}

.partner-card__placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-primary);
    color: #111;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
}

.partner-card__name {
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
}

/* ── Info / Travel Page ────────────────────────────────────── */
.info-block {
    margin-bottom: 2.5rem;
}
.info-block__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--c-border);
}
.info-block__content {
    font-size: .9rem;
    color: var(--c-text);
    line-height: 1.7;
}
.info-block__content p { margin-bottom: .75rem; }
.info-block__intro {
    font-size: .9rem;
    color: var(--c-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}
.info-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .info-grid,
    .info-grid--2 { grid-template-columns: 1fr; }
}
.info-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.info-card__icon {
    width: 28px;
    height: 28px;
    color: var(--c-primary);
    margin-bottom: .25rem;
}
.info-card__icon svg {
    width: 100%;
    height: 100%;
}
.info-card__title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--c-white);
}
.info-card__text {
    font-size: .8rem;
    color: var(--c-text-muted);
    line-height: 1.55;
}
.info-card__link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-primary);
    text-decoration: none;
    margin-top: auto;
}
.info-card__link:hover {
    text-decoration: underline;
}
.info-hint {
    font-size: .8rem;
    color: var(--c-text-muted);
    margin-top: .75rem;
}
.info-hint a {
    color: var(--c-primary);
    font-weight: 600;
}
.info-card--link {
    text-decoration: none;
    transition: border-color .15s, transform .15s;
    cursor: pointer;
}
.info-card--link:hover {
    border-color: rgba(163,213,80,.4);
    transform: translateY(-2px);
}
.info-card__logo {
    width: 100%;
    max-height: 60px;
    object-fit: contain;
    object-position: left;
    margin-bottom: .35rem;
}
.info-card__image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    margin: -1rem -1rem .5rem -1rem;
    width: calc(100% + 2rem);
}
.info-card__meta {
    font-size: .72rem;
    color: var(--c-text-muted);
}

/* ── Donate / Spenden ──────────────────────────────────────── */
.donate-intro {
    font-size: .95rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 600px) {
    .donate-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.donate-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.donate-card__icon {
    color: var(--c-text-muted);
    margin-bottom: 1rem;
}

.donate-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.donate-card__desc {
    font-size: .85rem;
    color: var(--c-text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.donate-card__btn {
    display: inline-block;
    padding: .6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.donate-card__btn--twint {
    background: #000;
    color: #fff;
    border: 1px solid #333;
}

.donate-card__btn--twint:hover {
    background: #222;
}

.donate-card__btn--paypal {
    background: #0070ba;
    color: #fff;
    border: 1px solid #005ea6;
}

.donate-card__btn--paypal:hover {
    background: #005ea6;
}

.donate-card__hint {
    font-size: .75rem;
    color: var(--c-text-muted);
    margin-top: .5rem;
    font-style: italic;
}

.donate-card__bank {
    text-align: left;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: .75rem 1rem;
}

.donate-card__bank-row {
    display: flex;
    justify-content: space-between;
    padding: .3rem 0;
    font-size: .8rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.donate-card__bank-row:last-child {
    border-bottom: none;
}

.donate-card__bank-label {
    color: var(--c-text-muted);
    font-weight: 500;
}

.donate-card__bank-value {
    font-family: monospace;
    color: var(--c-text);
}

.donate-thanks {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ── Partner Detail ────────────────────────────────────────── */
.partner-detail {
    text-align: center;
}

.partner-detail__logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.partner-detail__logo {
    max-width: 220px;
    max-height: 120px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
}

.partner-detail__type {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--c-text-muted);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    padding: .3rem .8rem;
    margin-top: .5rem;
}

.partner-detail .detail-body {
    text-align: left;
}

.partner-detail__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    margin-right: 1.5rem;
    color: var(--c-primary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    transition: opacity .2s;
}

.partner-detail__link:hover {
    opacity: .8;
}

/* ── Streams ───────────────────────────────────────────────── */
.live-banner {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--c-danger);
    color: #fff;
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.stream-card {
    display: block;
    background: var(--c-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: .75rem;
    text-decoration: none;
    color: var(--c-text);
}

.stream-card__embed {
    position: relative;
    padding-top: 56.25%;
}

.stream-card__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.stream-card__thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.stream-card__body {
    padding: .75rem 1rem 1rem;
}

.stream-card__body h3 {
    font-size: 1rem;
    color: var(--c-white);
    margin-bottom: .3rem;
}

.stream-card__platform {
    font-size: .65rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: .05em;
}

.stream-card__time {
    font-size: .8rem;
    color: var(--c-text-muted);
}

.stream-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

/* ── Map ───────────────────────────────────────────────────── */
.map-section { padding-bottom: 1rem; }
.page-subtitle {
    color: var(--c-text-muted);
    font-size: .9rem;
    margin: -.25rem 0 1.25rem;
}

.map-embed {
    width: 100%;
    height: calc(100vh - var(--nav-height) - 160px);
    min-height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--c-border);
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .map-embed {
        height: 70vh;
        min-height: 300px;
    }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: .85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, opacity .15s;
}

.btn:active {
    transform: scale(.97);
}

.btn--primary {
    background: var(--c-primary);
    color: #111;
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--c-text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (min-width: 768px) {
    .section {
        max-width: 720px;
        padding: 1.5rem 2rem 2rem;
    }

    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero { height: 420px; }
    .hero__title { font-size: 2.5rem; }
    .page-hero { height: 260px; }
    .page-hero--compact { height: 220px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item--large { grid-column: span 2; }
}

@media (min-width: 1024px) {
    .section {
        max-width: 900px;
    }

    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--radius) var(--radius) 0 0;
    }

    .partner-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero { height: 480px; }
    .hero__title { font-size: 3rem; }
    .hero__subtitle { font-size: 1rem; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ===================================================================
   TOP BAR (User Menu)
   =================================================================== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar__logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--green);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar__link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.top-bar__link:hover { color: var(--text-primary); }

.top-bar__link--admin {
    color: var(--green);
    font-weight: 600;
}

.top-bar__icon {
    width: 18px;
    height: 18px;
}

/* Language Selector (minimal dropdown) */
.lang-select {
    position: relative;
}
.lang-select__trigger {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.lang-select__trigger:hover {
    color: var(--text-primary);
}
.lang-select__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 130px;
    padding: 0.3rem;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.lang-select__dropdown.open { display: block; }
.lang-select__dropdown form { margin: 0; }
.lang-select__option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}
.lang-select__option:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}
.lang-select__option--active {
    color: var(--green);
    font-weight: 600;
}

/* ===================================================================
   AUTH FORMS (Login, Register, Profile)
   =================================================================== */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 70vh;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.auth-card__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card__logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green);
    display: block;
    margin-bottom: 0.5rem;
}

.auth-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.auth-card__subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select {
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(163, 213, 80, 0.15);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
}

.password-strength {
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-top: 0.25rem;
}

.password-strength__bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
    width: 0;
}

.btn--full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert--success {
    background: rgba(163, 213, 80, 0.1);
    border-color: rgba(163, 213, 80, 0.3);
    color: var(--green);
}

.alert--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert--warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.alert--info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.encryption-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(163, 213, 80, 0.06);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid rgba(163, 213, 80, 0.15);
    margin-top: 0.5rem;
}

/* ===================================================================
   PROFILE
   =================================================================== */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.profile-avatar__placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #78b832);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg);
}

.profile-info h2 {
    margin: 0;
    font-size: 1.1rem;
}

.profile-role {
    display: inline-block;
    background: rgba(163, 213, 80, 0.15);
    color: var(--green);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.profile-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
}

.form-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.btn--outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn--outline:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ===================================================================
   INVITE SUCCESS
   =================================================================== */
.invite-success {
    text-align: center;
    padding: 2rem 1rem;
}
.invite-success__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.invite-success__email {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.invite-link-box {
    background: var(--bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem auto;
    max-width: 600px;
    text-align: left;
}
.invite-link-box label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.invite-link-row {
    display: flex;
    gap: 0.5rem;
}
.invite-link-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: var(--green);
    font-size: 0.85rem;
    font-family: monospace;
}
.invite-hint {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===================================================================
   SHIFT CARDS (Helfer view)
   =================================================================== */
.helfer-section {
    margin-bottom: 2.5rem;
}
.helfer-section__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.helfer-day {
    margin-bottom: 1.5rem;
}
.helfer-day__date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(163, 213, 80, 0.2);
}
.helfer-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

.shift-cards {
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .shift-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.shift-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}
.shift-card--mine {
    border-left: 3px solid var(--green);
}
.shift-card--needs-help {
    border-left: 3px solid #fbbf24;
}
.shift-card--full {
    border-left: 3px solid rgba(163, 213, 80, 0.4);
    opacity: 0.7;
}

.shift-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.shift-card__title {
    font-weight: 600;
    font-size: 1rem;
}
.shift-card__badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.shift-card__badge--warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
.shift-card__badge--ok {
    background: rgba(163, 213, 80, 0.15);
    color: var(--green);
}
.shift-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.shift-card__desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}
.shift-card__note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.shift-card__coverage {
    margin-top: 0.5rem;
}

/* ===================================================================
   COVERAGE BARS (Admin + Helfer)
   =================================================================== */
.coverage-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}
.coverage-bar--lg {
    height: 10px;
    border-radius: 5px;
    margin-top: 1rem;
}
.coverage-bar__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}
.coverage-bar__fill--ok {
    background: var(--green);
}
.coverage-bar__fill--understaffed {
    background: #fbbf24;
}
.coverage-bar__fill--overstaffed {
    background: #3b82f6;
}

.coverage-text {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
    display: inline-block;
}
.coverage-text--sm {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.35rem;
}
.coverage-text--ok { color: var(--green); }
.coverage-text--understaffed { color: #fbbf24; }
.coverage-text--overstaffed { color: #3b82f6; }

.coverage-pct {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===================================================================
   SHIFT INFO PANEL (Admin assignments)
   =================================================================== */
.shift-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.shift-info-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.shift-info-value {
    font-weight: 600;
    font-size: 0.95rem;
}
.shift-info-desc {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.coverage-panel {
    padding: 1rem;
}
.coverage-panel h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
}
.coverage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.coverage-stat__label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.coverage-stat__value {
    font-weight: 600;
    font-size: 0.95rem;
}
.coverage-stat__value--ok { color: var(--green); }
.coverage-stat__value--understaffed { color: #fbbf24; }
.coverage-stat__value--overstaffed { color: #3b82f6; }

/* Auth card (invite) */
.auth-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.06);
    max-width: 480px;
    margin: 2rem auto;
}
.auth-card__title {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}
.auth-card__subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.container--narrow {
    max-width: 560px;
}

/* ===================================================================
   SHIFTS / SCHICHTEN
   =================================================================== */

/* Coverage bar (used in admin + helfer view) */
.coverage-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.coverage-bar--lg {
    height: 10px;
    border-radius: 5px;
    margin-top: 0.75rem;
}
.coverage-bar__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.coverage-bar__fill--ok        { background: var(--green); }
.coverage-bar__fill--understaffed { background: #fbbf24; }
.coverage-bar__fill--overstaffed  { background: #3b82f6; }

.coverage-text {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.2rem;
    display: inline-block;
}
.coverage-text--sm { font-size: 0.7rem; margin-top: 0.3rem; }
.coverage-text--ok        { color: var(--green); }
.coverage-text--understaffed { color: #fbbf24; }
.coverage-text--overstaffed  { color: #3b82f6; }

.coverage-pct {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* Shift Info Panel (admin assignment view) */
.shift-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding: 1rem;
}
.shift-info-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.15rem;
}
.shift-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.shift-info-desc {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Coverage summary stats */
.coverage-summary {
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.coverage-stat__label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.coverage-stat__value {
    font-size: 0.95rem;
    font-weight: 600;
}
.coverage-stat__value--ok        { color: var(--green); }
.coverage-stat__value--understaffed { color: #fbbf24; }
.coverage-stat__value--overstaffed  { color: #3b82f6; }

.coverage-panel h3 {
    padding: 1rem 1rem 0;
    margin: 0;
    font-size: 1rem;
}

/* ===================================================================
   HELFER VIEW (public)
   =================================================================== */
.helfer-section {
    margin-bottom: 2rem;
}
.helfer-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(163, 213, 80, 0.2);
}
.helfer-day {
    margin-bottom: 1.5rem;
}
.helfer-day__date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}
.helfer-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

/* Shift cards */
.shift-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}
.shift-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}
.shift-card--mine {
    border-left: 3px solid var(--green);
}
.shift-card--needs-help {
    border-left: 3px solid #fbbf24;
}
.shift-card--full {
    border-left: 3px solid rgba(163, 213, 80, 0.3);
    opacity: 0.7;
}
.shift-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.shift-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.shift-card__badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.shift-card__badge--warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
.shift-card__badge--ok {
    background: rgba(163, 213, 80, 0.15);
    color: var(--green);
}
.shift-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.shift-card__time { font-weight: 600; }
.shift-card__coverage {
    margin-top: 0.5rem;
}
.shift-card__desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.shift-card__note {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.35rem;
}

/* ===================================================================
   SHIFT FILTER BAR & STATUS (Admin)
   =================================================================== */
.admin-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.admin-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.admin-filter-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
.admin-filter-group select {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    min-width: 160px;
}

.shift-count {
    font-weight: 700;
    font-size: 0.85rem;
}
.shift-count--ok      { color: var(--green); }
.shift-count--partial { color: #fbbf24; }
.shift-count--empty   { color: #ef4444; }

.shift-hint {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}
.shift-hint--warning {
    background: rgba(251,191,36,0.08);
    color: #fbbf24;
}
.shift-hint--ok {
    background: rgba(163,213,80,0.08);
    color: var(--green);
}

.badge--danger {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
.badge--muted {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}
/* Grouped shifts: Location → Day */
.shift-location-group {
    margin-bottom: 1rem;
}
.shift-location-header {
    padding: 0.75rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shift-location-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}
.shift-day-group {
    /* visual sub-group per date */
}
.shift-day-header {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: 0.6rem 1rem 0.25rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.04);
}
.admin-table--compact th,
.admin-table--compact td {
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
}

/* ===================================================================
   BUTTON VARIANTS (sm, danger, success)
   =================================================================== */
.btn--sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 4px;
}
.btn--danger {
    background: var(--danger, #e74c3c);
    color: #fff;
    border: none;
}
.btn--danger:hover {
    background: #c0392b;
}
.btn--success {
    background: var(--success, #27ae60);
    color: #fff;
    border: none;
}
.btn--success:hover {
    background: #219a52;
}

/* ===================================================================
   SHIFT OFFER (Helfer page)
   =================================================================== */
.shift-card__offer-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.shift-card__offer-form .form-control--sm {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
}
.shift-card__offer-status {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
}
.shift-card__offer-status--pending {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}
.shift-card__offer-status--assigned {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

/* ===================================================================
   OFFER PANEL (Admin shift-assignments)
   =================================================================== */
.offer-panel {
    border-left: 3px solid #f1c40f;
}
.offer-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.inline-form {
    display: inline;
}

/* ===================================================================
   RIDER PROFILE PAGE
   =================================================================== */
.rider-profile { max-width: 720px; margin: 0 auto; }

.rider-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.rider-header__photo {
    width: 110px;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    border: 2px solid rgba(163,213,80,.25);
}
.rider-header__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rider-header__name {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.rider-header__flag {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.rider-header__pronunciation {
    font-size: .85rem;
    color: var(--c-text-muted);
    margin: .25rem 0 0;
    font-style: italic;
}
.rider-header__meta {
    font-size: .85rem;
    color: var(--c-text-muted);
    margin: .2rem 0 0;
}
.rider-header__sponsors {
    font-size: .8rem;
    color: var(--c-primary);
    margin: .4rem 0 0;
    font-weight: 600;
}

.rider-landscape {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.rider-landscape img {
    width: 100%;
    display: block;
}

.rider-section {
    background: linear-gradient(135deg, rgba(22,33,62,.95), rgba(26,26,46,.9));
    border: 1px solid rgba(163,213,80,.10);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.rider-section__title {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-primary);
    margin: 0 0 .75rem;
}

.rider-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.rider-info-item__label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-text-muted);
    margin-bottom: .15rem;
}
.rider-info-item__value {
    font-size: .95rem;
}

.rider-achievements {
    white-space: pre-line;
    font-size: .92rem;
    line-height: 1.6;
}

.rider-quote {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.rider-quote__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}
.rider-quote__text {
    margin: 0;
    font-style: italic;
    font-size: .95rem;
    line-height: 1.5;
    color: rgba(255,255,255,.85);
    border-left: 3px solid var(--c-primary);
    padding-left: .75rem;
}

.rider-funfact {
    background: rgba(163,213,80,.08);
    border-radius: 10px;
    padding: .75rem 1rem;
}
.rider-funfact__label {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-primary);
}
.rider-funfact__text {
    margin: .25rem 0 0;
    font-size: .9rem;
}

.rider-social {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.rider-social__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .85rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    font-size: .85rem;
    transition: border-color .2s, background .2s;
}
.rider-social__link:hover {
    border-color: var(--c-primary);
    background: rgba(163,213,80,.08);
}
.rider-social__link--empty {
    color: var(--text-secondary, rgba(255,255,255,.45));
    cursor: default;
}

@media (max-width: 500px) {
    .rider-header { flex-direction: column; align-items: center; text-align: center; }
    .rider-info-grid { grid-template-columns: 1fr; }
}