﻿/* Design 6c + Phase 2/3: shared page components and page layouts. Loaded last (after lafeef-theme.css and site-chrome.css). */

/* ---------- G5: containers ---------- */
.container-wide { width: 100%; max-width: 1328px; margin-inline: auto; padding-inline: 16px; }
.container-lf { width: 100%; max-width: 1104px; margin-inline: auto; padding-inline: 16px; }
.container-narrow { width: 100%; max-width: 880px; margin-inline: auto; padding-inline: 16px; }

.lf-page { padding-block: 32px 48px; }
.lf-page-title { margin: 0 0 8px; color: var(--lf-text); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 600; line-height: 1.3; }
.lf-page-sub { margin: 0 0 24px; color: var(--lf-text-2); font-size: 16px; }
.lf-section-title { margin: 32px 0 16px; color: var(--lf-text); font-size: var(--lf-fs-xl); font-weight: 600; }

.lf-card { background: #fff; border: 1px solid var(--lf-border); border-radius: 20px; padding: 24px; }
.lf-back { display: inline-flex; align-items: center; gap: 4px; color: var(--lf-text-2); font-size: 14px; text-decoration: none; }
.lf-back:hover { color: var(--lf-deep-red); }

/* ---------- Pills and chips ---------- */
.lf-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--lf-border);
    color: var(--lf-text);
}
.lf-pill-success { background: #E6EFE5; color: var(--lf-success); }
.lf-pill-danger { background: #ECD4D5; color: var(--lf-pomegranate); }
.lf-pill-muted { background: var(--lf-border); color: var(--lf-text-3); }
.lf-pill-sun { background: var(--lf-sun); color: var(--lf-deep-red); }
.lf-pill-dark { background: var(--lf-deep-red); color: #fff; }

.lf-pill-online {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--lf-text);
    border-radius: 40px;
    color: var(--lf-text);
    font-size: 12px;
    font-weight: 600;
}
.lf-pill-team {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    border-radius: 40px;
    background: var(--lf-pomegranate);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--lf-border);
    border-radius: 40px;
    background: #FFFDEF;
    color: var(--lf-text-2);
    font: inherit;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.lf-chip:hover { color: var(--lf-text); border-color: var(--lf-border-2); }
.lf-chip.is-active, .lf-chip[aria-current="page"] { background: var(--lf-text); border-color: var(--lf-text); color: #fff; }
@media (max-width: 767px) {
    .lf-chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .lf-chips-scroll::-webkit-scrollbar { display: none; }
}

/* ---------- G9: event card ---------- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1104px;
    margin-inline: auto;
}
@media (max-width: 1023px) { .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .event-grid { grid-template-columns: 1fr; } }

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lf-border-2);
    border-radius: 20px;
    background: #fff;
    box-shadow: none;
    transform: none;
    transition: border-color 0.2s;
}
.event-card:hover { border-color: var(--lf-text-2); box-shadow: none; transform: none; }
.event-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.event-card-image { position: relative; height: auto; aspect-ratio: 356 / 183; overflow: hidden; background: var(--lf-border); }
.event-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none; transition: none; }
.event-card:hover .event-card-image img { transform: none; }
.event-card-image::after {
    /* photo overlay so the category pill stays readable */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.45));
    pointer-events: none;
}

.event-card-price {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    padding: 2px 10px;
    border-radius: 40px;
    background: #FFFEF7;
    color: var(--lf-deep-red);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}
.event-card-tags { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 2; display: flex; gap: 6px; }
.event-card-category-tag {
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(17, 17, 17, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: none;
}
.event-card-actions { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; display: flex; gap: 8px; }
.event-card-action {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.6);
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
    cursor: pointer;
    transition: background 0.15s;
}
.event-card-action:hover { background: rgba(17, 17, 17, 0.8); transform: none; }
.event-card-action .ic-on { display: none; }
.event-card-action.favorited { color: #fff; transform: none; background: rgba(17, 17, 17, 0.6); box-shadow: none; }
.event-card-action.favorited .ic-on { display: inline; }
.event-card-action.favorited .ic-off { display: none; }
.event-card-action span { display: inline-flex; }

.event-card-content { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 12px; background: #fff; }
.event-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.event-card-title {
    margin: 0 0 6px;
    color: var(--lf-text);
    font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card-details { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; margin: 0 0 10px; color: var(--lf-text-2); font-size: 15px; }
.event-card-detail { display: inline-flex; align-items: center; gap: 4px; }
.event-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.event-card-organizer { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.event-card-organizer-img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--lf-border); flex: none; }
.event-card-organizer-name { overflow: hidden; color: var(--lf-text-2); font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.event-card-divider { height: 1px; margin: 12px 0 10px; background: var(--lf-border); }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.event-card-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--lf-text-2); font-size: 14px; }
.event-card-stat.is-strong { color: var(--lf-text); font-weight: 700; }
@media (max-width: 767px) {
    /* MB3: never below 14px */
    .event-card-details, .event-card-stat, .event-card-organizer-name { font-size: 14px; }
}

/* ---------- G14: empty state ---------- */
.lf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 48px 16px;
    text-align: center;
    grid-column: 1 / -1;
}
.lf-empty-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--lf-border); color: var(--lf-text-2); }
.lf-empty-title { margin: 0; color: var(--lf-text); font-size: 24px; font-weight: 700; }
.lf-empty-text { max-width: 420px; margin: 0; color: var(--lf-text-2); font-size: 16px; }
.lf-empty .lf-btn { margin-top: 12px; }

/* ---------- Modals (BK1-BK5) ---------- */
.lf-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(17, 17, 17, 0.5);
}
.lf-modal-backdrop[hidden] { display: none; }
.lf-modal {
    width: min(480px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
}
.lf-modal-center { text-align: center; }
.lf-modal-title { margin: 0 0 12px; color: var(--lf-text); font-size: 26px; font-weight: 700; }
.lf-modal-text { margin: 0 0 20px; color: var(--lf-text); font-size: 16px; line-height: 1.7; }
.lf-modal-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: #E6EFE5; color: var(--lf-success); }
.lf-modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.lf-modal-actions .lf-btn { flex: 1; height: 52px; font-size: 17px; }
.lf-modal-center .lf-modal-actions { justify-content: center; }

.lf-summary { display: grid; gap: 12px; margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--lf-border); }
.lf-summary > div { display: flex; justify-content: space-between; gap: 16px; }
.lf-summary dt { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--lf-pomegranate); font-weight: 400; }
.lf-summary dd { margin: 0; color: var(--lf-text); font-weight: 700; text-align: end; }
.lf-summary-plain { padding: 0; background: none; }

.lf-ticket { overflow: hidden; border-radius: 20px; background: var(--lf-border); }
.lf-ticket-top { padding: 20px; border-bottom: 2px dashed #fff; }
.lf-ticket-top h4 { margin: 0 0 14px; color: var(--lf-text); font-size: 20px; font-weight: 700; text-align: center; }
.lf-ticket-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px; padding: 16px; border-radius: 16px; background: #fff; color: var(--lf-text-2); font-size: 14px; letter-spacing: 0.04em; }
.lf-ticket-qr img { width: 160px; height: 160px; object-fit: contain; }

/* ---------- Event page (EV1-EV11, BK4, BK7) ---------- */
.ev-page { padding-block: 24px 48px; }
.ev-back { margin-bottom: 16px; }
.ev-layout { display: grid; grid-template-columns: 544px minmax(0, 1fr); gap: 24px 32px; align-items: start; }
.ev-col-media, .ev-col-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-o-quickbook { display: none; }

.ev-image { position: relative; overflow: hidden; aspect-ratio: 544 / 531; border-radius: 20px; background: var(--lf-border); }
.ev-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-image-tag { position: absolute; bottom: 12px; inset-inline-start: 12px; font-size: 14px; }

.ev-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ev-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    border: 0;
    border-radius: 16px;
    background: var(--lf-border);
    color: var(--lf-deep-red);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.ev-action:hover { background: #E5E3D0; }
.ev-action > span { display: inline-flex; }
.ev-action .ic-on, .ev-action.is-on .ic-off { display: none; }
.ev-action.is-on .ic-on { display: inline-flex; }
.ev-action.is-on { color: var(--lf-pomegranate); }

.ev-info { padding: 16px 20px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; }
.ev-info-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--lf-pomegranate); font-size: 15px; }
.ev-info-title { color: var(--lf-text); font-size: 20px; font-weight: 700; }
.ev-info-sub { margin-top: 4px; color: var(--lf-text-2); font-size: 16px; }

.ev-title { margin: 0; color: var(--lf-text); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.625rem); font-weight: 700; line-height: 1.3; }

.ev-organiser { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; background: var(--lf-border); }
.ev-organiser-photo img { display: block; width: 131px; height: 131px; border-radius: 14px; object-fit: cover; background: #fff; }
.ev-organiser-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-organiser-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-organiser-name a { color: var(--lf-text); font-size: 20px; font-weight: 700; text-decoration: none; }
.ev-organiser-meta { display: flex; align-items: center; gap: 4px; color: var(--lf-text-2); font-size: 15px; }
.ev-follow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    align-self: flex-end;
    min-width: 180px;
    height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    background: #FFFEF7;
    color: var(--lf-deep-red);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.ev-follow:hover { background: #fff; }
.ev-follow.is-on { background: var(--lf-border-2); }
.ev-follow.is-on .ic-off { display: none; }

.ev-attend { padding: 20px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; }
.ev-attend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ev-attend-count { display: inline-flex; align-items: center; gap: 6px; color: var(--lf-text); font-size: 18px; font-weight: 700; }
.ev-attend-left { color: var(--lf-text); font-size: 16px; }
.ev-progress { height: 10px; overflow: hidden; border-radius: 10px; background: var(--lf-border); }
.ev-progress span { display: block; height: 100%; border-radius: 10px; background: var(--lf-deep-red); }
.ev-faces { display: flex; align-items: center; margin-top: 16px; padding-inline-start: 6px; }
.ev-faces img, .ev-faces-more { width: 40px; height: 40px; margin-inline-start: -6px; border: 3px solid #FFFEF7; border-radius: 50%; object-fit: cover; background: var(--lf-border); }
.ev-faces-more { display: grid; place-items: center; background: var(--lf-deep-red); color: #fff; font-size: 12px; font-weight: 700; }

.ev-desc h2 { margin: 8px 0; color: var(--lf-text); font-size: 26px; font-weight: 600; }
.ev-desc-text { color: var(--lf-text); font-size: 16px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }

.ev-map { display: grid; place-items: center; height: 320px; overflow: hidden; border: 16px solid var(--lf-border); border-radius: 20px; background: var(--lf-bg-3); }
.ev-map-load { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: var(--lf-text); font: inherit; font-weight: 700; cursor: pointer; }

.ev-book { margin-top: 32px; padding: 20px 16px 16px; border: 1px solid #CCC28D; border-radius: 16px; background: #FFFDEF; }
.ev-book-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.ev-book-price { color: var(--lf-text); font-size: 26px; font-weight: 600; }
.ev-book .lf-btn-block { height: 56px; font-size: 18px; }
.ev-book-sent { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border-radius: 40px; background: var(--lf-success); color: #fff; font-size: 18px; font-weight: 700; }
.ev-book-state { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; color: var(--lf-success); font-size: 20px; font-weight: 700; }
.ev-book-note { margin: 10px 0 0; color: var(--lf-text-2); text-align: center; }
.ev-ticket-link { display: block; margin-top: 14px; color: var(--lf-pomegranate); text-align: center; }

.ev-sticky { display: none; }

@media (max-width: 991px) {
    .ev-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; } /* stretch: the map has no content width once loaded */
    .ev-col-media, .ev-col-info { display: contents; }
    .ev-o-title { order: 1; }
    .ev-o-image { order: 2; }
    .ev-o-actions { order: 3; }
    .ev-o-quickbook { order: 4; display: inline-flex; height: 52px; }
    .ev-o-place { order: 5; }
    .ev-o-date { order: 6; }
    .ev-o-organiser { order: 7; }
    .ev-o-attend { order: 8; }
    .ev-o-desc { order: 9; }
    .ev-o-map { order: 10; }
    .ev-image { aspect-ratio: 4 / 3; }
}
@media (max-width: 719px) {
    .ev-page { padding-bottom: 96px; }
    .ev-organiser { flex-wrap: wrap; }
    .ev-organiser-photo img { width: 96px; height: 96px; }
    .ev-follow { width: 100%; align-self: stretch; }
    .ev-sticky {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--lf-border);
        background: #fff;
    }
    .ev-sticky .ev-book-price { font-size: 20px; }
    .ev-sticky .lf-btn { height: 48px; padding: 0 32px; }
}

/* ---------- Ticket page (TV1-TV4) ---------- */
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 20px; }
.tv-head .lf-page-title { margin: 0; }
.tv-ticket .lf-ticket-qr img { width: 200px; height: 200px; }
.tv-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px; padding: 16px; border-radius: 16px; background: #fff; color: var(--lf-pomegranate); font-weight: 700; }
.tv-number { margin-inline-start: auto; color: var(--lf-text-3); font-weight: 400; }
.tv-online { display: grid; gap: 6px; margin-top: 16px; overflow-wrap: anywhere; }
.tv-organiser { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--lf-text-2); }
.tv-organiser img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tv-organiser a { color: var(--lf-text); font-weight: 700; }
.tv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tv-actions .lf-btn { height: 48px; }

/* ---------- Forms on the main layout (no Bootstrap there): the few utilities they use ---------- */
.lf-form .row { display: flex; flex-wrap: wrap; gap: 0 20px; }
.lf-form .row > [class*="col-"] { flex: 1 1 100%; min-width: 0; }
@media (min-width: 768px) { .lf-form .row > .col-md-6 { flex: 1 1 calc(50% - 10px); } }
.lf-form .mb-3 { margin-bottom: 1rem; }
.lf-form .mb-4 { margin-bottom: 1.5rem; }
.lf-form .d-flex { display: flex; }
.lf-form .gap-2 { gap: 0.5rem; }
.lf-form .text-danger { color: var(--lf-pomegranate); font-size: 14px; }
.lf-form .text-muted, .lf-form small { color: var(--lf-text-2); font-size: 14px; }
.lf-form .form-label { display: block; margin-bottom: 6px; }
.lf-form .form-control, .lf-form .form-select { display: block; width: 100%; font: inherit; }
.lf-form select.form-select { appearance: auto; }
.lf-form .form-control.is-invalid { border-color: var(--lf-pomegranate); }
.lf-form .form-card { padding: 0; border: 0; background: none; box-shadow: none; }
.lf-form .form-section { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--lf-border); }
.lf-form .quick-set-btn { margin-top: 8px; }
.lf-form .form-actions { flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lf-form .form-actions .lf-btn { height: 52px; padding: 0 28px; }
@media (max-width: 575px) { .lf-form .form-actions .lf-btn { flex: 1 1 100%; } }

/* ---------- Notifications (NT1, NT3, NT6) ---------- */
.lf-notif { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; cursor: pointer; }
.lf-notif:hover { border-color: var(--lf-border-2); }
.lf-notif.is-unread { background: #FFFADF; }
.lf-notif-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--lf-border); color: var(--lf-deep-red); }
.lf-notif-icon.is-negative { background: #ECD4D5; color: var(--lf-pomegranate); }
.lf-notif-body { flex: 1; min-width: 0; }
.lf-notif-title { display: flex; align-items: center; gap: 8px; color: var(--lf-text); font-weight: 700; }
.lf-notif-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lf-pomegranate); }
.lf-notif-text { margin: 4px 0 8px; color: var(--lf-text-2); font-size: 15px; }
.lf-notif-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.lf-notif-foot time { color: var(--lf-text-3); white-space: nowrap; }
.lf-notif-actions { display: inline-flex; flex-wrap: wrap; gap: 14px; }
.lf-notif-actions button, .lf-notif-actions a { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--lf-pomegranate); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.lf-notif-actions .delete-notification { color: var(--lf-text-2); }
.nt-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.nt-head .lf-page-sub { margin: 0; }
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nt-list { display: flex; flex-direction: column; gap: 10px; }
.nt-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; color: var(--lf-text-2); }

/* ---------- OR1 / AD1: organiser + admin shell (site header on top, light sidebar, content in 1104) ---------- */
.lf-menu.show { display: block; }
.organiser-wrapper { display: flex; align-items: flex-start; max-width: 1440px; margin: 0 auto; }
.organiser-sidebar {
    position: sticky !important;
    top: 88px;
    right: auto !important;
    flex: none;
    width: 240px !important;
    height: calc(100vh - 88px);
    border-left: 1px solid var(--lf-border) !important;
    background: #fff !important;
    box-shadow: none !important;
    z-index: 1 !important;
}
.organiser-main { flex: 1; min-width: 0; width: auto !important; margin-right: 0 !important; min-height: calc(100vh - 88px); background: var(--lf-bg) !important; }
.organiser-content { width: 100%; max-width: 1104px; margin: 0 auto; padding: 32px 24px !important; }
.organiser-sidebar .sidebar-menu { padding: 24px 12px; }
.organiser-sidebar .sidebar-menu .nav { gap: 4px; }
.organiser-sidebar .sidebar-menu .nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: none !important;
    color: var(--lf-text-2) !important;
    font-size: 16px;
    font-weight: 400;
}
.organiser-sidebar .sidebar-menu .nav .nav-link i { width: 20px; color: inherit !important; text-align: center; }
.organiser-sidebar .sidebar-menu .nav .nav-link:hover { background: var(--lf-bg-3) !important; color: var(--lf-text) !important; }
.organiser-sidebar .sidebar-menu .nav .nav-link.active { background: var(--lf-border) !important; color: var(--lf-text) !important; font-weight: 700; }
.organiser-sidebar .sidebar-menu .nav .nav-link.active::before {
    content: "";
    position: absolute;
    inset-block: 8px;
    inset-inline-start: -12px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--lf-text);
}
.organiser-content .page-header h1, .organiser-content .page-header h2, .organiser-content > h1, .organiser-content > h2, .organiser-content h1.page-title {
    margin: 0 0 6px;
    color: var(--lf-text);
    font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
    font-weight: 600;
}
.sidebar-toggle { display: none !important; }
@media (max-width: 991px) {
    .organiser-wrapper { flex-direction: column; }
    .organiser-sidebar { position: static !important; width: 100% !important; height: auto; border-left: 0 !important; border-bottom: 1px solid var(--lf-border) !important; }
    .organiser-sidebar .sidebar-menu { padding: 10px 16px; overflow-x: auto; scrollbar-width: none; }
    .organiser-sidebar .sidebar-menu .nav { flex-direction: row !important; flex-wrap: nowrap; gap: 8px; }
    .organiser-sidebar .sidebar-menu .nav .nav-link { padding: 8px 14px !important; border: 1px solid var(--lf-border); border-radius: 40px !important; white-space: nowrap; }
    .organiser-sidebar .sidebar-menu .nav .nav-link.active { background: var(--lf-text) !important; border-color: var(--lf-text); color: #fff !important; }
    .organiser-sidebar .sidebar-menu .nav .nav-link.active::before { display: none; }
    .sidebar-backdrop { display: none !important; }
    .organiser-main { min-height: 0; }
    .organiser-content { padding: 20px 16px !important; }
}
/* OR3 / MB6: brand stat tiles */
.organiser-content .stat-card, .admin-content .stat-card { border: 1px solid var(--lf-border) !important; border-radius: 16px !important; box-shadow: none !important; background: #fff !important; }
.organiser-content .stat-icon, .admin-content .stat-icon { background: var(--lf-border) !important; color: var(--lf-deep-red) !important; }
.organiser-content .stat-icon i, .admin-content .stat-icon i { color: var(--lf-deep-red) !important; }
.organiser-content .stat-value, .admin-content .stat-value { color: var(--lf-text); font-weight: 700; }
.or-card-status { position: absolute; top: 10px; inset-inline-end: 10px; }
.organiser-content .action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.organiser-content .action-buttons .btn { display: inline-flex; align-items: center; gap: 4px; border-radius: 40px; }
/* admin shares the shell; undo the old dark sidebar's forced white text and mobile slide-in */
.organiser-sidebar .sidebar-menu .nav .nav-link * { color: inherit !important; }
.organiser-sidebar .sidebar-menu .nav .nav-link p { margin: 0; }
@media (max-width: 991.98px) { .admin-sidebar.organiser-sidebar { transform: none !important; box-shadow: none !important; } }

/* ---------- Home (HM1-HM5) ---------- */
.hero-section { max-width: 1328px; padding-inline: 16px; }
.hero-image-wrapper { max-width: 632px; }
.hero-image { aspect-ratio: 632 / 441; height: auto; object-fit: cover; border-radius: 16px; }
.hero-login-btn { box-shadow: none !important; }
.featured-section, .communities-section { max-width: 1136px; padding-inline: 16px; }
.featured-section .section-title { margin-bottom: 20px; }
.featured-card { height: auto; aspect-ratio: 1104 / 443; border-radius: 20px; }
.featured-card:hover, .featured-card:hover .featured-image { transform: none; box-shadow: none; }
.featured-title { font-size: 32px !important; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-dots { position: absolute; bottom: 14px; left: 50%; z-index: 6; display: flex; gap: 6px; padding: 5px 8px; border-radius: 40px; background: rgba(17, 17, 17, 0.5); transform: translateX(-50%); }
.featured-dots:empty { display: none; }
.featured-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.featured-dots span.is-active { width: 8px; height: 8px; background: #fff; margin-top: -1px; }
@media (max-width: 767px) {
    .featured-card { aspect-ratio: auto; height: 380px; }
    .featured-title { font-size: 24px !important; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
/* HM4: one 380px search pill (search + city) */
.communities-search-group { width: 380px; max-width: 100%; grid-template-columns: minmax(0, 1fr) 130px; border: 1px solid var(--lf-border); border-radius: 40px; background: #fff; overflow: hidden; }
.communities-search-group .search-input, .communities-search-group .city-select { border: 0 !important; border-radius: 0 !important; background: transparent; }
.communities-search-group .city-select-wrap { margin: 0; border-inline-start: 1px solid var(--lf-border); }
@media (max-width: 991px) { .communities-search-group { width: 100%; } }
/* HM5: label + chips */
.categories-label { color: var(--lf-text); font-size: 16px; font-weight: 700; }
.category-btn { padding: 6px 14px; border: 1px solid var(--lf-border) !important; font-size: 16px; background: #FFFDEF; color: var(--lf-text-2); }
.category-btn-active, .category-btn.active { background: var(--lf-text) !important; border-color: var(--lf-text) !important; color: #fff !important; }

/* ---------- My tickets (TK1-TK3) ---------- */
.tk-filters { margin-bottom: 24px; }
.tk-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--lf-border-2); border-radius: 20px; background: #fff; }
.tk-cover { display: block; aspect-ratio: 356 / 183; background: var(--lf-border); }
.tk-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tk-body { padding: 12px 14px 0; }
.tk-body h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.tk-body h3 a { color: var(--lf-text); text-decoration: none; }
.tk-foot { margin-top: auto; padding: 12px 14px 14px; border-top: 1px solid var(--lf-border); }
.tk-foot .lf-btn-block { height: 48px; }
.tk-state { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 40px; background: var(--lf-border); color: var(--lf-text-3); font-weight: 700; }
.tk-state.is-sent { background: var(--lf-success); color: #fff; }
.tk-state.is-cancelled { background: #ECD4D5; color: var(--lf-pomegranate); }
.tk-note { margin: 8px 0 0; color: var(--lf-text-2); font-size: 14px; text-align: center; }
.tk-note a { color: var(--lf-pomegranate); }

/* ---------- Profiles (UP1-UP4, OP1-OP3) ---------- */
.up-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 16px; padding: 24px 16px 28px; border-radius: 20px; background: var(--lf-border); text-align: center; }
.up-avatar { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; background: #fff; }
.up-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--lf-text); font-size: 24px; font-weight: 700; }
.up-logout { position: absolute; top: 16px; inset-inline-end: 16px; margin: 0; }
.up-logout button { border: 0; background: none; color: var(--lf-pomegranate); font: inherit; font-size: 14px; cursor: pointer; }
.up-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 20px; }
.up-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 1px solid var(--lf-border); border-radius: 20px; background: #fff; color: var(--lf-text-2); }
.up-stat .lf-i { color: var(--lf-text-2); }
.up-stat strong { color: var(--lf-text); font-size: 26px; }
.up-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.up-links .ev-action { text-decoration: none; }
.up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.up-card { padding: 18px; border: 1px solid var(--lf-border); border-radius: 20px; background: #fff; }
.up-info { background: var(--lf-border); }
.up-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.up-card-head h2 { margin: 0; color: var(--lf-text); font-size: 20px; font-weight: 700; }
.up-card-head h2 a { color: inherit; text-decoration: none; }
.up-edit { display: inline-flex; align-items: center; gap: 4px; color: var(--lf-text); font-size: 15px; text-decoration: none; }
.up-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.up-field span { display: inline-flex; align-items: center; gap: 4px; color: var(--lf-text-2); font-size: 14px; }
.up-field strong { color: var(--lf-deep-red); overflow-wrap: anywhere; }
.up-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.up-tags span { padding: 4px 12px; border: 1px solid var(--lf-pomegranate); border-radius: 40px; background: #fff; color: var(--lf-text); font-size: 14px; }
.up-event-stats { margin: 10px 0; color: var(--lf-text-2); font-size: 15px; }
.up-event-stats span { display: inline-flex; align-items: center; gap: 4px; }
.up-requests { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.up-requests li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-radius: 40px; background: var(--lf-border); color: var(--lf-text-2); font-size: 14px; }
.up-req-name { display: inline-flex; align-items: center; gap: 6px; }
.up-req-name img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.up-req-actions { display: inline-flex; gap: 10px; }
.up-req-actions button { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; font: inherit; font-size: 14px; cursor: pointer; }
.up-req-actions .is-ok { color: var(--lf-success); }
.up-req-actions .is-no { color: var(--lf-pomegranate); }
.up-more { display: inline-block; margin-top: 12px; color: var(--lf-pomegranate); font-size: 14px; }
.op-photo { width: 420px; max-width: 100%; height: auto; aspect-ratio: 420 / 232; border-radius: 14px; object-fit: cover; background: #fff; }
.op-follow { align-self: center; }
.op-about { display: grid; grid-template-columns: 1fr 210px; gap: 24px; margin-top: 28px; }
.op-about h2 { margin: 0 0 8px; color: var(--lf-text); font-size: 26px; font-weight: 600; }
.op-about p { margin: 0; color: var(--lf-text); line-height: 1.8; white-space: pre-line; }
.op-tiles { display: grid; gap: 12px; align-content: start; }
.op-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; border-radius: 16px; background: var(--lf-border); color: var(--lf-text-2); text-align: center; }
.op-title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); margin-top: 40px; }
@media (max-width: 719px) {
    .up-grid, .op-about { grid-template-columns: 1fr; }
}

/* ---------- Legal pages (LG1, LG2) ---------- */
.lf-legal { color: var(--lf-text); font-size: 16px; line-height: 27px; }
.lf-legal[data-lang="ar"] .lang-section[dir="ltr"], .lf-legal[data-lang="en"] .lang-section[dir="rtl"] { display: none; }
.lf-legal-lang { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--lf-text-3); }
.lf-legal-lang a { color: var(--lf-text-2); text-decoration: none; }
.lf-legal-lang a[aria-current] { color: var(--lf-deep-red); font-weight: 700; }
.lf-legal-head h1 { margin: 0; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 600; }
.lf-legal-date { margin: 4px 0 20px; color: var(--lf-text-2); font-size: 14px; }
.lf-legal-toc { margin-bottom: 24px; padding: 16px 20px; border-radius: 16px; background: var(--lf-border); }
.lf-legal-toc ol { margin: 0; padding-inline-start: 20px; columns: 2; column-gap: 24px; }
.lf-legal-toc a { color: var(--lf-text); font-size: 15px; text-decoration: none; }
.lf-legal-toc a:hover { color: var(--lf-pomegranate); }
.lf-legal h3 { margin: 28px 0 8px; padding-inline-start: 12px; border-inline-start: 4px solid var(--lf-pomegranate); color: var(--lf-text); font-size: 22px; font-weight: 600; line-height: 1.4; scroll-margin-top: 100px; }
.lf-legal p, .lf-legal li { margin: 0 0 10px; }
.lf-legal ul { padding-inline-start: 20px; }
.lf-legal a { color: var(--lf-pomegranate); }
@media (max-width: 575px) { .lf-legal-toc ol { columns: 1; } }

/* ---------- Notification settings (NS1, NS2) ---------- */
.ns-page form { display: flex; flex-direction: column; gap: 16px; }
.ns-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--lf-text); font-size: 18px; font-weight: 600; }
.ns-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-bottom: 1px solid var(--lf-border); }
.ns-row:last-child { border-bottom: 0; }
.ns-row > label:first-child { color: var(--lf-text); font-size: 16px; }
.ns-page .switch { position: relative; display: inline-block; flex: none; width: 44px; height: 24px; }
.ns-page .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ns-page .slider { position: absolute; inset: 0; border-radius: 24px; background: var(--lf-border-2); cursor: pointer; transition: background 0.2s; }
.ns-page .slider::before { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.ns-page input:checked + .slider { background: var(--lf-deep-red); }
.ns-page input:checked + .slider::before { transform: translateX(-20px); }
.ns-page input:focus-visible + .slider { outline: 2px solid var(--lf-deep-red); outline-offset: 2px; }
.ns-page .lf-btn { height: 48px; padding: 0 28px; }
.ns-actions { display: flex; justify-content: flex-start; gap: 12px; }

/* ---------- OR6 / AD4: tables become cards under 720px ---------- */
.lf-stack-table .st-title a { color: var(--lf-text); font-weight: 700; text-decoration: none; }
@media (max-width: 719px) {
    .lf-stack-table, .lf-stack-table tbody, .lf-stack-table tr, .lf-stack-table td { display: block; width: 100%; }
    .lf-stack-table thead { display: none; }
    .lf-stack-table tr { margin-bottom: 12px; padding: 12px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; }
    .lf-stack-table td { padding: 6px 0 !important; border: 0 !important; text-align: start !important; }
    .lf-stack-table td[data-label]::before { content: attr(data-label) " : "; color: var(--lf-text-2); font-size: 14px; }
    .lf-stack-table .st-cover img { width: 100%; height: auto; aspect-ratio: 356 / 183; border-radius: 12px; object-fit: cover; }
}
/* «روابط التحويل»: cards on phones (the long link and the target field used to push the page sideways) */
.lf-redirects .rd-target { min-width: 280px; }
@media (max-width: 719px) {
    .lf-redirects .rd-link { white-space: normal !important; overflow-wrap: anywhere; }
    .lf-redirects .rd-target { min-width: 0; }
    .lf-redirects .input-group { flex-wrap: wrap; }
    .lf-redirects .input-group > .input-group-text { width: 100%; border-radius: 8px 8px 0 0; overflow-wrap: anywhere; white-space: normal; }
    .lf-redirects .input-group > .form-control { border-radius: 0 0 8px 8px !important; margin: 0 !important; }
}
.lf-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 320px; }

/* ---------- Sign-up stepper (AU4, AU6) ---------- */
.su-stepper { display: flex; justify-content: center; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.su-stepper li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 40px; background: var(--lf-border); color: var(--lf-text-3); font-size: 14px; }
.su-stepper li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-weight: 700; }
.su-stepper li.is-active { background: var(--lf-deep-red); color: #fff; }
.su-stepper li.is-active span { color: var(--lf-deep-red); }
.su-stepper li.is-done { color: var(--lf-success); }
.su-title { margin: 0 0 4px; color: var(--lf-deep-red); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 700; }
.su-sub { margin: 0; color: var(--lf-text); }
.su-step { display: none; }
.su-step.is-active { display: block; }
.su-next, #registerBtn { height: 56px; font-size: 18px; margin-top: 8px; }
.su-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; border: 0; background: none; color: var(--lf-text-2); font: inherit; cursor: pointer; }
.su-note { margin: 10px 0 0; color: var(--lf-text-2); font-size: 14px; text-align: center; }
/* AU6: interests as brand chips */
#registerForm .interests-grid { display: flex !important; flex-wrap: wrap; gap: 8px; }
#registerForm .interest-item { flex: none; }
#registerForm .interest-label { display: inline-flex !important; align-items: center; width: auto !important; height: 36px !important; padding: 0 14px !important; border: 1px solid var(--lf-border) !important; border-radius: 40px !important; background: #FFFDEF !important; color: var(--lf-text-2) !important; font-size: 15px !important; box-shadow: none !important; cursor: pointer; }
#registerForm .interest-checkbox:checked + .interest-label { background: var(--lf-text) !important; border-color: var(--lf-text) !important; color: #fff !important; }

/* ---------- Code page (AU5) ---------- */
.vf-page { max-width: 560px; }
.vf-brand { border: 1px solid #CCC28D; border-radius: 20px; padding: 24px 16px; }
.vf-brand p { max-width: 320px; }
.vf-body { margin-top: 28px; text-align: center; }
.vf-email { margin: 12px 0 4px; color: var(--lf-deep-red); font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.vf-resend { border: 0; background: none; color: var(--lf-pomegranate); font: inherit; font-size: 15px; cursor: pointer; }
.vf-resend:disabled { color: var(--lf-text-3); cursor: default; }
.vf-label { display: block; margin: 32px 0 12px; color: var(--lf-deep-red); font-weight: 700; text-align: start; }
.vf-boxes { display: flex; justify-content: center; gap: 10px; }
.vf-box { width: 48px; height: 48px; border: 1px solid #CCC28D; border-radius: 50%; background: #fff; color: var(--lf-deep-red); font: inherit; font-size: 22px; font-weight: 700; text-align: center; }
.vf-box:focus { outline: none; border-color: var(--lf-deep-red); box-shadow: 0 0 0 3px rgba(46, 6, 17, 0.12); }
.vf-error { display: block; margin-top: 10px; color: var(--lf-pomegranate); font-size: 14px; }
.vf-submit { height: 56px; margin-top: 32px; font-size: 18px; }
@media (max-width: 380px) { .vf-box { width: 42px; height: 42px; } }

/* ---------- Event form (CE6-CE8) ---------- */
.ef-head { text-align: center; }
.ef-section { margin-bottom: 28px; }
.ef-title { margin: 0 0 14px; color: var(--lf-text); font-size: 20px; font-weight: 600; }
.ef-field { margin-bottom: 18px; }
.ef-check { margin-bottom: 14px; }
.ef-cats { margin-top: 4px; }
.ef-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ef-cat span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--lf-border); border-radius: 40px; background: #FFFDEF; color: var(--lf-text-2); font-size: 15px; cursor: pointer; }
.ef-cat input:checked + span { background: var(--lf-text); border-color: var(--lf-text); color: #fff; }
.ef-cat input:focus-visible + span { outline: 2px solid var(--lf-deep-red); outline-offset: 2px; }
.ef-upload { position: relative; display: grid; place-items: center; min-height: 72px; overflow: hidden; border: 1px dashed var(--lf-border-2); border-radius: 20px; background: #fff; color: var(--lf-text-2); cursor: pointer; }
.ef-upload img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.ef-upload img:not([hidden]) + .ef-upload-text { position: absolute; bottom: 10px; inset-inline-start: 10px; padding: 4px 12px; border-radius: 40px; background: rgba(17, 17, 17, 0.6); color: #fff; }
.ef-upload-text { display: inline-flex; align-items: center; gap: 6px; padding: 16px; }
.ef-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ef-map { display: grid; place-items: center; gap: 8px; min-height: 120px; padding: 8px; border-radius: 20px; background: var(--lf-border); }
.ef-map #locationPickerMap { width: 100%; height: 320px; border-radius: 14px; }
.ef-geocoder { width: 100%; }
.ef-map [hidden] { display: none !important; } /* .form-control sets display */
.ef-terms a { color: var(--lf-pomegranate); }
.ef-note { display: flex; gap: 6px; margin-top: 16px; color: var(--lf-text); font-size: 15px; }
.ef-toast { position: fixed; bottom: 20px; left: 50%; z-index: 3000; padding: 10px 18px; border-radius: 40px; background: var(--lf-text); color: #fff; font-size: 14px; transform: translateX(-50%); }
.ef-toast.is-bad { background: var(--lf-pomegranate); }

/* ---------- Archive (past events) ---------- */
.lf-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 8px; color: var(--lf-text-2); }
.lf-archive-link { margin: 24px 0 0; text-align: center; }

/* ---------- Waitlist (BK6) + report (EV6) ---------- */
.ev-book-sent.is-wait { color: #99988C; }
.ev-report-reasons { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.ev-form-error { margin: 10px 0 0; color: var(--lf-pomegranate); font-size: 14px; }

/* ---------- Similar events (FV3) ---------- */
.lf-similar { margin-top: 40px; }
.lf-similar .lf-section-title { margin: 0 0 16px; color: var(--lf-deep-red); font-size: 22px; font-weight: 700; }

/* ---------- Team (FT1) ---------- */
.lf-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.lf-team-card { padding: 20px; border: 1px solid var(--lf-border); border-radius: 20px; background: #fff; text-align: center; }
.lf-team-card h2 { margin: 12px 0 4px; font-size: 18px; color: var(--lf-deep-red); }
.lf-team-card p { margin: 0; color: var(--lf-text-2); }

/* ---------- Dashboards on phones (organiser + admin) ---------- */
/* flex children default to min-width:auto, so one wide table or card stretched the whole page past the screen */
.organiser-main, .organiser-content, .admin-content { min-width: 0; max-width: 100%; }
.organiser-content .table-responsive { max-width: 100%; }
@media (max-width: 767.98px) {
    .organiser-content .table { font-size: 14px; }
    .organiser-content .table td, .organiser-content .table th { white-space: nowrap; }
}
.organiser-content .action-buttons { display: flex; flex-wrap: nowrap; gap: 4px; }

/* Stat cards: organiser pages don't load admin.css, so these had no styles there */
.stat-card-sm, .stat-card-lg, .revenue-card {
    display: flex; align-items: center; gap: 12px; height: 100%;
    padding: 16px; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px;
}
.stat-card-sm .stat-icon, .stat-card-lg .stat-icon, .revenue-card .revenue-icon {
    flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; font-size: 18px; background: var(--lf-bg-2); color: var(--lf-deep-red);
}
.stat-card-sm .stat-icon i, .stat-card-lg .stat-icon i { color: inherit !important; }
.stat-card-sm .stat-content, .stat-card-lg .stat-content, .revenue-card .revenue-content { display: flex; flex-direction: column; min-width: 0; }
.stat-card-sm .stat-value, .stat-card-lg .stat-value, .revenue-card .revenue-value { order: 2; font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--lf-deep-red); }
.stat-card-sm .stat-label, .stat-card-lg .stat-label, .revenue-card .revenue-label { order: 1; font-size: 13px; color: var(--lf-text-2); }
@media (max-width: 575.98px) {
    .stat-card-sm, .stat-card-lg { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
}

/* Page header with action buttons (attendance) */
.lf-dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lf-dash-head h2 { margin: 0 0 4px; overflow-wrap: anywhere; }
.lf-dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575.98px) { .lf-dash-actions { width: 100%; } .lf-dash-actions > * { flex: 1 1 auto; } }

/* Booking requests (organiser) */
.requests-list { display: grid; gap: 16px; }
.request-card { padding: 16px; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; }
.request-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.request-card .user-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.request-card .user-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
.request-card .user-name { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: var(--lf-deep-red); }
.request-card .user-contact, .request-card .request-time { font-size: 13px; color: var(--lf-text-2); overflow-wrap: break-word; }
.request-card .user-info > div { min-width: 0; }
.request-body { margin: 12px 0; }
.request-card .meetup-info .badge { white-space: normal; text-align: start; line-height: 1.4; }
.request-notes { margin-top: 8px; padding: 8px 12px; background: var(--lf-bg-3); border-radius: 12px; font-size: 14px; }
.request-footer { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 575.98px) { .request-footer .btn { flex: 1 1 40%; } .request-footer .view-profile { flex-basis: 100%; } }
@media (max-width: 575.98px) { .request-header { flex-direction: column; } }

/* ---------- Long pagers (admin users 25+ pages) ---------- */
/* one unwrapped row of page numbers made the page ~2x the phone width */
.pagination { flex-wrap: wrap; gap: 4px; }
.organiser-main { overflow-x: clip; }

/* ---------- Booking: photo/video consent (BK7) ---------- */
.lf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; padding: 12px; background: var(--lf-bg-3); border: 1px solid var(--lf-border); border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--lf-text); cursor: pointer; }
.lf-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lf-deep-red); }

/* ---------- Repeat requests on organiser past events (RP1) ---------- */
.lf-repeat-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--lf-sun); color: var(--lf-deep-red); font-size: 13px; font-weight: 700; }

/* ---------- Profile edit (PR1): fixed fields + photo cropper ---------- */
.lf-locked { display: grid; gap: 10px; margin: 0 0 24px; padding: 16px; background: var(--lf-bg-3); border: 1px solid var(--lf-border); border-radius: 16px; }
.lf-locked > div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lf-locked dt { font-weight: 400; color: var(--lf-text-2); }
.lf-locked dd { margin: 0; font-weight: 700; color: var(--lf-deep-red); overflow-wrap: anywhere; }
.lf-crop { width: min(320px, 100%); aspect-ratio: 1; margin: 12px auto; border-radius: 50%; overflow: hidden; border: 3px solid var(--lf-sun); touch-action: none; background: #fff; }
.lf-crop canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.lf-crop-zoom { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; color: var(--lf-text-2); }
.lf-crop-zoom input { flex: 1; max-width: 220px; accent-color: var(--lf-deep-red); }

/* ---------- Admin › محتوى الموقع (CM1) ---------- */
.lf-cms-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; background: var(--lf-bg); }
.lf-cms-nav a { flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--lf-border-2); border-radius: 999px; color: var(--lf-text); text-decoration: none; font-size: 14px; background: #fff; }
.lf-cms-nav a:hover { background: var(--lf-sun); }
.lf-cms-card { margin: 0 0 24px; padding: 20px; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; scroll-margin-top: 64px; }
.lf-cms-card h3 { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin: 0 0 16px; font-size: 20px; color: var(--lf-deep-red); }
.lf-cms-form { display: grid; gap: 12px; }
.lf-cms-field { display: grid; gap: 6px; margin: 0; }
.lf-cms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.lf-cms-logo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lf-cms-logo img { height: 48px; max-width: 200px; object-fit: contain; padding: 6px; border: 1px dashed var(--lf-border-2); border-radius: 8px; background: #fff; }
.lf-cms-hero { display: block; max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: cover; }
.lf-cms-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 10px; border: 1px solid var(--lf-border); border-radius: 12px; background: var(--lf-bg-3); }
.lf-cms-row-fields { flex: 1; display: grid; gap: 8px; min-width: 0; }
.lf-cms-row-actions { display: flex; flex-direction: column; gap: 6px; }
.lf-cms-photo { display: grid; gap: 6px; justify-items: center; }
.lf-cms-photo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
@media (max-width: 575.98px) { .lf-cms-row { flex-direction: column; } .lf-cms-row-actions { flex-direction: row; } }
.lf-rich-editor { border: 1px solid var(--lf-border-2); border-radius: 12px; overflow: hidden; background: #fff; }
.lf-rich-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--lf-bg-3); border-bottom: 1px solid var(--lf-border); }
.lf-rich-tools button { padding: 4px 10px; border: 1px solid var(--lf-border-2); border-radius: 8px; background: #fff; font-size: 13px; }
.lf-rich-area { min-height: 140px; max-height: 480px; overflow: auto; padding: 12px 14px; line-height: 1.8; outline: none; }
.lf-rich h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.lf-about-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.lf-team-bio { font-size: 14px; color: var(--lf-text-2); }
.lf-logo-img { width: auto; max-width: 160px; object-fit: contain; }

/* ---------- Feature A: «متابعيني» and the invitation page ---------- */
.lf-followers-search { display: flex; gap: 8px; max-width: 480px; }
.lf-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lf-person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; min-width: 0; }
.lf-person-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 44px; }
.lf-person-main { flex: 1 1 auto; min-width: 0; }
.lf-person-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lf-person-name { font-weight: 700; color: var(--lf-deep-red); text-decoration: none; overflow-wrap: anywhere; }
.lf-person-meta { font-size: 13px; color: var(--lf-text-2); overflow-wrap: anywhere; }
.lf-person-actions { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
@media (max-width: 575.98px) {
    .lf-person { flex-wrap: wrap; }
    .lf-person-actions { width: 100%; }
    .lf-person-actions > * { flex: 1 1 auto; }
}
.lf-steps { padding-inline-start: 20px; margin-bottom: 16px; color: var(--lf-text-2); }
.lf-import-summary { padding: 12px 16px; background: #FFFDEF; border: 1px solid var(--lf-border); border-radius: 12px; }

.lf-invite { max-width: 560px; padding-top: 32px; padding-bottom: 48px; }
.lf-invite-card { padding: 28px 20px; background: #fff; border: 1px solid var(--lf-border); border-radius: 20px; text-align: center; }
.lf-invite-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--lf-border); }
.lf-invite-kicker { margin: 12px 0 0; font-size: 13px; color: var(--lf-text-2); }
.lf-invite-name { margin: 4px 0; font-size: 26px; font-weight: 700; color: var(--lf-deep-red); overflow-wrap: anywhere; }
.lf-invite-meta { margin: 0 0 12px; font-size: 14px; color: var(--lf-text-2); }
.lf-invite-bio { margin: 0 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
.lf-invite-text { margin: 0 0 20px; color: var(--lf-text-2); }
.lf-invite-actions { display: flex; flex-direction: column; gap: 10px; }
.lf-invite-h2 { margin: 28px 0 12px; font-size: 18px; font-weight: 700; }
.lf-invite-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lf-invite-events a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: #fff; border: 1px solid var(--lf-border); border-radius: 14px; color: var(--lf-deep-red); text-decoration: none; }
.lf-invite-events span { font-size: 13px; color: var(--lf-text-2); }
.lf-invite-foot { margin: 24px 0 0; text-align: center; font-size: 13px; }
.lf-invite-foot a { color: var(--lf-text-2); }

/* ---------- Phase B: teams ---------- */
.lf-org-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 40px; background: #ECD4D5; color: var(--lf-deep-red); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.lf-org-pill img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
a.lf-org-pill:hover { color: var(--lf-deep-red); background: #E3C3C5; }
.lf-team-tag { color: var(--lf-pomegranate); }
.lf-team-create-row { display: flex; gap: 8px; max-width: 520px; }
.lf-team-logo { border-radius: 12px; }
.lf-team-logo-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--lf-border); }
.lf-team-cover-preview { display: block; width: 100%; max-width: 360px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 12px; border: 1px solid var(--lf-border); }
.lf-team-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lf-team-photo { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--lf-text-2); }
.lf-team-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--lf-border); }

.lf-team-hero { margin-top: 12px; background: #fff; border: 1px solid var(--lf-border); border-radius: 20px; overflow: hidden; }
.lf-team-cover { aspect-ratio: 16 / 5; background: var(--lf-deep-red) center / cover no-repeat; }
.lf-team-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 0 20px 20px; margin-top: -40px; }
.lf-team-logo-lg { width: 96px; height: 96px; border-radius: 20px; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lf-border); }
.lf-team-titles { flex: 1 1 220px; min-width: 0; padding-top: 44px; }
.lf-team-name { margin: 6px 0 2px; font-size: 26px; font-weight: 700; color: var(--lf-deep-red); overflow-wrap: anywhere; }
.lf-team-meta { margin: 0; font-size: 14px; color: var(--lf-text-2); }
.lf-team-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lf-team-section { margin-top: 28px; }
.lf-team-section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.lf-team-desc { white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.lf-team-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0 0; }
.lf-team-links a { color: var(--lf-pomegranate); font-weight: 700; }
.lf-team-members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.lf-team-members a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--lf-text); text-decoration: none; font-size: 14px; }
.lf-team-members img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
@media (max-width: 575.98px) {
    .lf-team-head { padding: 0 16px 16px; }
    .lf-team-actions { width: 100%; }
    .lf-team-create-row { flex-wrap: wrap; }
}

/* ---------- Phase C1: venues ---------- */
.lf-venue-pill { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 40px; background: var(--lf-sun); color: var(--lf-deep-red); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; vertical-align: middle; }
.lf-modal-wide { width: min(720px, calc(100vw - 32px)); }
.lf-crop-wide { width: 100%; aspect-ratio: 5 / 2; border-radius: 12px; }
.lf-venue-map { width: 100%; height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--lf-border); }
.lf-venue-map iframe { width: 100%; height: 100%; border: 0; }
.lf-venues-head h1 { margin: 8px 0 4px; font-size: 28px; font-weight: 700; color: var(--lf-deep-red); }
.lf-venue-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lf-venue-card { display: block; height: 100%; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; overflow: hidden; color: var(--lf-text); text-decoration: none; }
.lf-venue-card:hover { border-color: var(--lf-border-2); color: var(--lf-text); }
.lf-venue-card-cover { display: block; aspect-ratio: 5 / 2; background: var(--lf-deep-red) center / cover no-repeat; }
.lf-venue-card-body { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.lf-venue-card-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: 0 0 48px; border: 1px solid var(--lf-border); }
.lf-venue-card-text { display: flex; flex-direction: column; min-width: 0; }
.lf-venue-card-text strong { color: var(--lf-deep-red); font-size: 16px; overflow-wrap: anywhere; }
.lf-venue-card-text span { font-size: 13px; color: var(--lf-text-2); }
.lf-venue-facts { display: grid; gap: 8px; margin: 16px 0 0; }
.lf-venue-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.lf-venue-facts dt { font-weight: 400; color: var(--lf-text-2); font-size: 14px; }
.lf-venue-facts dd { margin: 0; overflow-wrap: anywhere; }
.lf-room { background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; overflow: hidden; margin-bottom: 12px; }
.lf-room-photos { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.lf-room-photos img { height: 160px; width: auto; max-width: none; display: block; }
.lf-room-body { padding: 14px 16px; }
.lf-room-body h3 { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: var(--lf-deep-red); }
.lf-room-cap { margin: 0 0 8px; color: var(--lf-text-2); font-size: 14px; }
.lf-room-terms { margin: 8px 0 12px; }
.lf-amenity-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lf-amenity-list li { padding: 2px 10px; border-radius: 40px; background: #FFFDEF; border: 1px solid var(--lf-border); font-size: 13px; }
.lf-amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }
.lf-amenity { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.lf-request-form fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.lf-request-form .form-control, .lf-request-form .form-select { width: auto; min-width: 140px; flex: 1 1 140px; }
.lf-request-actions { display: flex; gap: 6px; margin-top: 8px; }
.lf-venue-ask .lf-venue-check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.lf-venue-fields { display: grid; gap: 8px; margin-top: 8px; }
@media (max-width: 575.98px) { .lf-venue-facts > div { grid-template-columns: 1fr; gap: 0; } }
.lf-btn.lf-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- Phase C2: venue picker and bookings ---------- */
.ef-venue-panel { margin-top: 8px; padding: 12px; background: #FFFDEF; border: 1px solid var(--lf-border); border-radius: 14px; }
.ef-venue-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0; font-size: 14px; }
.ef-venue-state p, .ef-venue-state small { flex-basis: 100%; }
.ef-venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ef-venue-box, .ef-room-box { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; background: #fff; border: 1px solid var(--lf-border); border-radius: 12px; font: inherit; color: var(--lf-text); text-align: center; cursor: pointer; }
.ef-venue-box img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.ef-venue-box span, .ef-room-box strong { font-weight: 700; color: var(--lf-deep-red); overflow-wrap: anywhere; }
.ef-venue-box small, .ef-room-box small { color: var(--lf-text-2); font-size: 12px; }
.ef-venue-box.is-on, .ef-room-box.is-on { border: 2px solid var(--lf-deep-red); background: #FFF3B0; }
.ef-room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.ef-room-box { align-items: stretch; text-align: start; }
.ef-room-box img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.ef-room-box span { font-size: 13px; color: var(--lf-text-2); }
.ef-room-box em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--lf-pomegranate); }
.ef-room-box:disabled { opacity: .55; cursor: not-allowed; }
.ef-venue-chosen { padding: 12px; background: #fff; border: 1px solid var(--lf-border); border-radius: 12px; font-size: 14px; }
.ef-venue-deposit { color: var(--lf-pomegranate); }
.ef-locked { background: #F4F1E6 !important; }
.lf-booking-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 8px; }
.lf-booking-actions details, .lf-booking details { flex: 1 1 180px; }
.lf-booking summary { list-style: none; display: inline-block; }
.lf-booking summary::-webkit-details-marker { display: none; }

/* ---------- R7 fixes ---------- */
/* name + several pills (فريق لفيف, team, venue) wrap with space instead of touching */
.up-name, .ev-organiser-name { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; }
.ev-organiser-name { justify-content: flex-start; }
.up-name .lf-pill-team, .up-name .lf-venue-pill, .up-name .lf-org-pill { font-size: 13px; }
/* venue staff page on the public layout */
.lf-venue-edit fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.lf-venue-edit legend { float: none; width: auto; margin: 0 0 6px; padding: 0; font-size: 15px; font-weight: 700; }
.lf-venue-edit .lf-dash-actions form { display: inline-flex; }
.lf-venue-edit textarea.form-control { width: 100%; }
.lf-room-form { border-top: 4px solid var(--lf-deep-red); }
.lf-room-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--lf-border); font-size: 18px; font-weight: 700; color: var(--lf-deep-red); }
.lf-room + .lf-room { margin-top: 16px; }
@media (min-width: 768px) {
    .lf-room { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
    .lf-room:not(:has(.lf-room-photos)) { display: block; }
    .lf-room-photos { flex-direction: column; overflow: visible; }
    .lf-room-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
}
.lf-crop.is-round { border-radius: 50%; }
.lf-cms-logo-dark img { background: var(--lf-deep-red); padding: 8px; border-radius: 10px; }
.event-card-meta { flex-wrap: wrap; row-gap: 6px; }
.event-card-organizer { min-width: 0; }

/* ---------- K1: Syria events calendar (/Calendar). Type colours come in as --bar / --tint from the view. ---------- */
.lf-cal-head .lf-page-sub { margin-bottom: 16px; }
.lf-cal-guest { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; background: var(--lf-sun); color: var(--lf-deep-red); }
.lf-cal-guest p { margin: 0; flex: 1 1 240px; font-weight: 600; }
.lf-cal-months { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--lf-border); border-radius: 40px; background: #fff; width: fit-content; max-width: 100%; }
.lf-cal-month { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: 40px; color: var(--lf-text-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.lf-cal-month[aria-current="page"] { background: var(--lf-deep-red); color: var(--lf-sun); }
.lf-cal-month.is-locked { color: var(--lf-text-3); }
.lf-cal-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.lf-cal-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--lf-text-2); min-width: 180px; }
.lf-cal-field .form-select { min-height: 44px; }
.lf-cal-cats { flex: 1 1 260px; border: 1px solid var(--lf-border); border-radius: 12px; background: #fff; padding: 0 12px; }
.lf-cal-cats summary { min-height: 42px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--lf-text); }
.lf-cal-cat-list { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 4px 0 12px; }
.lf-cal-check { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }
.lf-cal-check input { width: 18px; height: 18px; accent-color: var(--lf-deep-red); }
.lf-cal-free, .lf-cal-apply { min-height: 44px; }
.lf-cal-filters > .lf-chip { height: 44px; }
.lf-cal-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.lf-cal-type { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 40px; border: 1px solid var(--bar); background: var(--tint); color: #111; text-decoration: none; font-size: 14px; }
.lf-cal-type:hover { color: #111; }
.lf-cal-type .lf-i { color: var(--bar); }
.lf-cal-type.is-off { background: #fff; border-color: var(--lf-border-2); color: var(--lf-text-3); text-decoration: line-through; }
.lf-cal-type.is-off .lf-i { color: var(--lf-text-3); }
.lf-cal-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; }
.lf-cal-title { margin: 0; font-size: var(--lf-fs-xl); font-weight: 700; color: var(--lf-deep-red); }
.lf-cal-count { margin: 0; color: var(--lf-text-2); }
.lf-cal-clear { color: var(--lf-pomegranate); font-weight: 600; }

.lf-cal-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; overflow: hidden; }
.lf-cal-grid th { padding: 8px 4px; font-size: 13px; font-weight: 600; color: var(--lf-text-2); text-align: center; background: var(--lf-bg-3); border-bottom: 1px solid var(--lf-border); }
.lf-cal-dn-short { display: none; }
.lf-cal-grid td { vertical-align: top; height: 118px; padding: 4px; border-top: 1px solid var(--lf-border); border-inline-start: 1px solid var(--lf-border); }
.lf-cal-grid tr:first-child td { border-top: 0; }
.lf-cal-grid td:first-child { border-inline-start: 0; }
.lf-cal-grid td.is-out { background: var(--lf-bg); }
.lf-cal-grid td.is-past > * { opacity: 0.6; }
.lf-cal-grid td.is-today { background: #FFFBE5; box-shadow: inset 0 0 0 2px var(--lf-deep-red); }
.lf-cal-daynum { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--lf-text-2); }
.lf-cal-daynum a { color: inherit; text-decoration: none; }
.lf-cal-today { padding: 0 6px; border-radius: 10px; background: var(--lf-deep-red); color: var(--lf-sun); font-size: 11px; line-height: 18px; }
.lf-cal-dots { display: none; }
.lf-cal-chip { display: flex; align-items: center; gap: 4px; min-height: 24px; margin-bottom: 3px; padding: 2px 6px; border-radius: 6px; background: var(--tint); color: #111; text-decoration: none; font-size: 12px; line-height: 1.3; overflow: hidden; }
.lf-cal-chip:hover, .lf-cal-chip:focus-visible { color: #111; outline: 2px solid var(--bar); outline-offset: -1px; }
.lf-cal-chip > .lf-i:first-child { color: var(--bar); }
.lf-cal-chip-time { flex: none; color: #4A3A3E; }
.lf-cal-chip-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lf-cal-heart { display: none; color: var(--lf-pomegranate); }
.is-saved > .lf-cal-heart { display: inline-block; }
.lf-cal-chip.is-cancelled .lf-cal-chip-name, .lf-cal-row.is-cancelled strong { text-decoration: line-through; }
.lf-cal-more { display: block; font-size: 12px; font-weight: 600; color: var(--lf-deep-red); }
.lf-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 13px; color: var(--lf-text-2); }
.lf-cal-legend span { display: inline-flex; align-items: center; gap: 4px; }
.lf-cal-legend .lf-i { color: var(--bar); }
.lf-cal-legend .lf-cal-heart-legend { color: var(--lf-pomegranate); }

.lf-cal-list-day { margin: 24px 0 8px; font-size: 16px; font-weight: 700; color: var(--lf-text); scroll-margin-top: 90px; }
.lf-cal-list-day.is-today { color: var(--lf-deep-red); }
.lf-cal-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lf-cal-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--lf-border); border-inline-start: 4px solid var(--bar); color: var(--lf-text); text-decoration: none; }
.lf-cal-row:hover { color: var(--lf-text); border-color: var(--bar); }
.lf-cal-row.is-past { opacity: 0.6; }
.lf-cal-row-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--bar); flex: none; }
.lf-cal-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lf-cal-row-main strong { font-weight: 600; overflow-wrap: anywhere; }
.lf-cal-row-main span { font-size: 13px; color: var(--lf-text-2); }

.lf-cal-dialog { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--lf-text); }
.lf-cal-dialog::backdrop { background: rgba(17, 17, 17, 0.5); }
.lf-cal-dialog-body { padding: 24px; }
.lf-cal-close { position: sticky; top: 8px; float: left; margin: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lf-bg-3); color: var(--lf-text); z-index: 1; }
.lf-cal-loading { margin: 24px 0; color: var(--lf-text-2); }
.lf-cal-details-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lf-cal-type-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 40px; background: var(--tint); border: 1px solid var(--bar); color: #111; font-size: 13px; font-weight: 600; }
.lf-cal-type-pill .lf-i { color: var(--bar); }
.lf-cal-details-title { margin: 0 0 12px; font-size: var(--lf-fs-xl); font-weight: 700; color: var(--lf-deep-red); line-height: 1.4; }
.lf-cal-details-title:focus { outline: none; }
.lf-cal-notice { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--lf-bg-2); font-weight: 600; }
.lf-cal-notice.is-danger { background: #ECD4D5; color: var(--lf-pomegranate); }
.lf-cal-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lf-cal-facts li { display: flex; align-items: flex-start; gap: 8px; }
.lf-cal-facts .lf-i { color: var(--lf-text-2); margin-top: 2px; }
.lf-cal-summary { font-weight: 600; }
.lf-cal-more-text summary { cursor: pointer; color: var(--lf-deep-red); font-weight: 600; min-height: 32px; }
.lf-cal-more-text p { margin: 8px 0 0; }
.lf-cal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.lf-cal-actions .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lf-cal-contact { align-self: center; font-weight: 600; }
.lf-cal-save .lf-cal-save-on { display: none; color: var(--lf-pomegranate); }
.lf-cal-save.is-saved .lf-cal-save-on { display: inline-block; }
.lf-cal-save.is-saved .lf-cal-save-off { display: none; }
.lf-cal-details-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--lf-border); font-size: 13px; color: var(--lf-text-2); }
.lf-cal-details-foot p { flex-basis: 100%; margin: 0; }
.lf-cal-gate { text-align: center; padding: 16px 8px; }
.lf-cal-gate-icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--lf-sun); color: var(--lf-deep-red); margin-bottom: 12px; }
.lf-cal-gate h2 { font-size: var(--lf-fs-lg); font-weight: 700; color: var(--lf-deep-red); }
.lf-cal-gate p { color: var(--lf-text-2); max-width: 420px; margin: 8px auto 16px; }
.lf-cal-gate-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lf-cal-gate-actions .btn { min-height: 44px; }
.lf-cal-entry .lf-cal-details { background: #fff; border: 1px solid var(--lf-border); border-radius: 20px; padding: 24px; margin-bottom: 16px; }
.lf-cal-back a { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; color: var(--lf-text-2); text-decoration: none; }

@media (max-width: 767.98px) {
    .lf-cal-field { flex: 1 1 100%; }
    .lf-cal-months { width: 100%; }
    .lf-cal-month { flex: 1; justify-content: center; padding: 0 8px; }
    .lf-cal-dn-long { display: none; }
    .lf-cal-dn-short { display: inline; }
    .lf-cal-grid th { font-size: 11px; padding: 6px 0; }
    .lf-cal-grid td { height: 52px; padding: 2px; text-align: center; }
    .lf-cal-daynum { justify-content: center; margin: 0; }
    .lf-cal-daynum a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; border-radius: 50%; background: var(--lf-bg-2); color: var(--lf-deep-red); }
    .lf-cal-today { display: none; }
    .lf-cal-chip, .lf-cal-more { display: none; }
    .lf-cal-dots { display: flex; justify-content: center; gap: 3px; margin-top: 2px; }
    .lf-cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
    .lf-cal-dialog { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; inset: auto 0 0 0; border-radius: 20px 20px 0 0; }
    .lf-cal-dialog-body { padding: 16px; }
}

/* ---------- K1: admin calendar ---------- */
.lf-cal-admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.lf-cal-admin-table td, .lf-cal-admin-table th { vertical-align: middle; }
.lf-cal-admin-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; }
.lf-cal-admin-form fieldset { border: 1px solid var(--lf-border); border-radius: 16px; padding: 16px; margin-bottom: 16px; background: #fff; }
.lf-cal-admin-form legend { float: none; width: auto; padding: 0 6px; font-size: 17px; font-weight: 700; }
.lf-cal-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lf-cal-admin-types { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-cal-admin-types label { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 40px; border: 1px solid var(--lf-border-2); background: #fff; cursor: pointer; }
.lf-cal-admin-types .lf-i { color: var(--bar); }
.lf-cal-admin-review { padding: 12px 16px; border-radius: 14px; background: #FFFBEB; border: 1px solid #F0D98C; margin-bottom: 16px; }
.lf-cal-admin-review pre { white-space: pre-wrap; max-height: 220px; overflow: auto; font: inherit; font-size: 13px; background: #fff; padding: 8px; border-radius: 8px; margin: 8px 0 0; }
.lf-cal-swatch { display: inline-flex; align-items: center; gap: 4px; }
.lf-cal-swatch i { width: 18px; height: 18px; border-radius: 5px; display: inline-block; }

/* K1: the header menu has no room for «التقويم» below 1200px (it already overflows there on master), so on 1024-1199 the
   calendar link moves into the avatar menu; every other header item stays as it was. */
.lf-menu-cal { display: none !important; }
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .lf-nav-cal { display: none; }
    .lf-menu-cal { display: flex !important; }
}

/* K2: Lafeef's own events in the calendar (Sun-Yellow, bookable on Lafeef) */
.lf-cal-chip.is-lafeef { box-shadow: inset 0 0 0 1px var(--lf-deep-red); }
.lf-cal-row.is-lafeef { background: #FFFBE0; }

/* K2: report / suggest a change */
.lf-cal-feedback { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lf-cal-fb > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; color: var(--lf-text-2); font-weight: 600; list-style: none; }
.lf-cal-fb > summary::-webkit-details-marker { display: none; }
.lf-cal-fb[open] > summary { color: var(--lf-deep-red); }
.lf-cal-form { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--lf-border); border-radius: 14px; background: var(--lf-bg-3); }
.lf-cal-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lf-cal-form legend { float: none; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.lf-cal-form-title { margin: 0; font-weight: 600; }
.lf-cal-label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.lf-cal-label small { color: var(--lf-text-2); }
.lf-cal-suggest-group { border-top: 1px solid var(--lf-border) !important; padding-top: 6px !important; }
.lf-cal-suggest-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; padding: 4px 0 8px; }
.lf-cal-suggest-fields[hidden] { display: none; }
.lf-cal-radios { display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 1 / -1; }
.lf-cal-form-msg { margin: 0; min-height: 1em; font-weight: 600; }
.lf-cal-form-msg.is-ok { color: var(--lf-success); }
.lf-cal-form-msg.is-error { color: var(--lf-pomegranate); }
.lf-cal-form-actions { display: flex; gap: 8px; }
.lf-cal-form-actions .btn { min-height: 44px; }
.lf-cal-sug { background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.lf-cal-sug-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.lf-cal-sug-head h3 { margin: 0; font-size: 17px; font-weight: 700; flex-grow: 1; }
.lf-cal-sug-new { font-weight: 600; background: #F4FAF0; }

/* Homepage: static calendar preview (canvas H1/H2), same width as the featured / communities sections */
.lf-home-cal { max-width: 1136px; margin: 0 auto; padding: 8px 16px 24px; }
.lf-home-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lf-home-cal-head .section-title { margin: 0; }
.lf-home-cal-head p { margin: 2px 0 0; color: var(--lf-text-2); font-size: 14px; }
.lf-home-cal-months { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--lf-border); border-radius: 40px; background: #fff; }
.lf-home-cal-months a { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 12px; border-radius: 40px; color: var(--lf-text-2); text-decoration: none; font-size: 14px; }
.lf-home-cal-months a:hover { color: var(--lf-deep-red); }
.lf-home-cal-current { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 40px; background: var(--lf-deep-red); color: var(--lf-sun); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lf-home-cal-card { display: block; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; overflow: hidden; color: var(--lf-text); text-decoration: none; }
.lf-home-cal-card:hover { color: var(--lf-text); border-color: var(--lf-border-2); }
.lf-home-cal-card:focus-visible { outline: 3px solid var(--lf-deep-red); outline-offset: 2px; }
.lf-home-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lf-home-cal-dn { padding: 8px; font-size: 13px; font-weight: 600; color: var(--lf-text-2); background: var(--lf-bg-3); border-bottom: 1px solid var(--lf-border); }
.lf-home-cal-cell { display: flex; flex-direction: column; gap: 3px; min-height: 84px; padding: 6px; border-bottom: 1px solid var(--lf-border); border-inline-start: 1px solid var(--lf-border); min-width: 0; }
.lf-home-cal-cell:nth-child(7n + 1) { border-inline-start: 0; }
.lf-home-cal-cell.is-out { background: var(--lf-bg); }
.lf-home-cal-cell.is-past > * { opacity: 0.6; }
.lf-home-cal-cell.is-today { background: #FFFBE5; box-shadow: inset 0 0 0 2px var(--lf-deep-red); }
.lf-home-cal-num { font-size: 13px; font-weight: 600; color: var(--lf-text-2); }
.is-today > .lf-home-cal-num { color: var(--lf-deep-red); font-weight: 700; }
.lf-home-cal-tlabel { align-self: flex-start; padding: 0 6px; border-radius: 10px; background: var(--lf-deep-red); color: var(--lf-sun); font-size: 11px; line-height: 18px; }
.lf-home-cal-chip { display: flex; align-items: center; gap: 4px; min-height: 20px; padding: 1px 6px; border-radius: 6px; background: var(--tint); color: #111; font-size: 11px; overflow: hidden; }
.lf-home-cal-chip .lf-i { color: var(--bar); }
.lf-home-cal-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-home-cal-chip.is-lafeef { box-shadow: inset 0 0 0 1px var(--lf-deep-red); }
.lf-home-cal-chip.is-cancelled > span { text-decoration: line-through; }
.lf-home-cal-more { font-size: 11px; font-weight: 600; color: var(--lf-deep-red); }
.lf-home-cal-dots { display: none; }
.lf-home-cal-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--lf-bg-3); }
.lf-home-cal-next { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; min-width: 0; }
.lf-home-cal-next > strong { font-size: 13px; }
.lf-home-cal-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--lf-border); border-inline-start: 4px solid var(--bar); font-size: 13px; }
.lf-home-cal-row .lf-i { color: var(--bar); }
.lf-home-cal-row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lf-home-cal-row-time { flex: none; color: var(--lf-text-2); font-size: 12px; }
.lf-home-cal-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 40px; background: var(--lf-deep-red); color: var(--lf-sun); font-size: 14px; font-weight: 700; margin-inline-start: auto; }

@media (max-width: 767.98px) {
    .lf-home-cal-head { align-items: stretch; flex-direction: column; }
    .lf-home-cal-months { justify-content: space-between; }
    .lf-home-cal-mlabel { display: none; }
    .lf-home-cal-months a { width: 44px; justify-content: center; padding: 0; }
    .lf-home-cal-current { flex: 1; justify-content: center; }
    .lf-home-cal-dn { padding: 6px 0; text-align: center; font-size: 11px; }
    .lf-home-cal-cell { min-height: 44px; padding: 4px 0; align-items: center; justify-content: center; border-inline-start: 0; }
    .lf-home-cal-chip, .lf-home-cal-more { display: none; }
    .lf-home-cal-num { font-size: 13px; }
    .lf-home-cal-tlabel { display: none; }
    .lf-home-cal-dots { display: flex; gap: 3px; min-height: 6px; }
    .lf-home-cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--bar); }
    .lf-home-cal-dots i.is-lafeef { background: var(--lf-sun); box-shadow: inset 0 0 0 1.5px var(--lf-deep-red); }
    .lf-home-cal-cta { width: 100%; margin: 0; }
}

/* ---------- Booking forms (F1): builder bf-*, participant form bk-*, answers ba-*, request page br-* ---------- */
.lf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bk-form [hidden], .bf-section [hidden], .bf-dialog [hidden] { display: none !important; }
.lf-btn-danger { background: var(--lf-pomegranate); color: #fff; }
.lf-btn-danger:hover, .lf-btn-danger:focus-visible { background: #7F2122; color: #fff; }
.ef-optional, .bk-optional { color: var(--lf-text-2); font-size: 14px; font-weight: 400; }
.bf-section { padding: 16px; border: 1px solid var(--lf-border-2); border-radius: 16px; background: #fff; }
.bf-hint { margin: 6px 0 12px; color: var(--lf-text-2); font-size: 14px; line-height: 1.6; }
.bf-note, .bf-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--lf-deep-red); }
.bf-note { background: var(--lf-sun); }
.bf-warn { background: var(--lf-bg-2); border: 1px solid var(--lf-border-2); }
.bf-note .lf-i, .bf-warn .lf-i { flex: 0 0 auto; margin-top: 2px; }
.bf-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.bf-q { border: 1px solid var(--lf-border-2); border-radius: 14px; background: var(--lf-bg); }
.bf-q.is-hidden { opacity: .6; }
.bf-q-head { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 6px 10px; border-bottom: 1px solid var(--lf-border); }
.bf-q-num { width: 28px; height: 28px; border-radius: 50%; background: #ECD4D5; color: var(--lf-deep-red); display: grid; place-items: center; font-size: 14px; }
.bf-q-type { flex: 1; min-width: 0; color: var(--lf-text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-q-body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.bf-q-body .form-label { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.bf-icon { min-width: 40px; height: 40px; border: 0; border-radius: 20px; background: transparent; color: var(--lf-deep-red); font-size: 16px; cursor: pointer; }
.bf-icon:hover:not(:disabled) { background: var(--lf-border); }
.bf-icon:disabled { opacity: .35; cursor: default; }
.bf-link { min-height: 40px; padding: 0 10px; border: 0; background: transparent; color: var(--lf-deep-red); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bf-link.is-danger { color: var(--lf-pomegranate); }
.bf-opts { display: grid; gap: 6px; }
.bf-opt { display: flex; gap: 6px; align-items: center; }
.bf-pair { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bf-pair label { display: grid; gap: 4px; font-size: 13px; color: var(--lf-text-2); flex: 1 1 140px; }
.bf-pair .lf-check { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; color: var(--lf-text); font-size: 14px; }
.bf-pair .form-select { flex: 0 1 180px; }
.bf-add { margin-bottom: 12px; }
.bf-add-row { display: flex; gap: 8px; flex-wrap: wrap; }
.bf-add-row .form-select { flex: 1 1 200px; }
.bf-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 20px; padding: 20px; color: var(--lf-text); }
.bf-dialog::backdrop { background: rgba(17, 17, 17, .5); }
.bf-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.bf-dialog-head h3 { margin: 0; font-size: 20px; color: var(--lf-deep-red); }
.bk-preview-opt { padding: 4px 0; }
.bk-preview-input { height: 40px; border: 1px solid var(--lf-border-2); border-radius: 10px; background: #fff; }
.bk-preview-file { padding: 12px; border: 1.5px dashed var(--lf-deep-red); border-radius: 10px; text-align: center; font-weight: 600; color: var(--lf-deep-red); }

.bk-page { padding-block: 24px 48px; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.bk-form { display: grid; gap: 14px; min-width: 0; }
.bk-form .lf-page-title { margin-bottom: 0; }
.bk-req { color: var(--lf-pomegranate); }
.bk-draft { color: var(--lf-text-2); }
.bk-q { padding: 14px 16px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; display: grid; gap: 6px; }
.bk-q.is-bad { border: 1.5px solid var(--lf-pomegranate); }
.bk-q fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 2px; }
.bk-q-label { font-size: 16px; font-weight: 700; color: var(--lf-deep-red); line-height: 1.5; padding: 0; }
.bk-help { margin: 0; color: var(--lf-text-2); font-size: 14px; line-height: 1.6; }
.bk-center { text-align: center; }
.bk-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.bk-opt input { width: 20px; height: 20px; accent-color: var(--lf-deep-red); flex: 0 0 auto; }
.bk-other { padding-inline-start: 30px; }
.bk-short { max-width: 320px; }
.bk-err { display: flex; gap: 6px; align-items: center; margin: 4px 0 0; color: var(--lf-pomegranate); font-size: 14px; font-weight: 700; }
.bk-errors { padding: 12px 16px; border: 2px solid var(--lf-pomegranate); border-radius: 14px; background: #fff; }
.bk-errors h2 { margin: 0 0 6px; font-size: 16px; color: var(--lf-pomegranate); }
.bk-errors ul { margin: 0; padding-inline-start: 18px; }
.bk-errors a { color: var(--lf-pomegranate); font-weight: 600; }
.bk-alert { margin: 0; padding: 12px 14px; border-radius: 12px; background: #ECD4D5; color: var(--lf-deep-red); font-size: 15px; line-height: 1.6; }
.bk-alert.is-info { background: var(--lf-bg-2); border: 1px solid var(--lf-border-2); }
.bk-alert.is-ok { background: #E3EEE2; color: var(--lf-success); }
.bk-info { padding: 12px 16px; border-radius: 14px; background: var(--lf-bg-2); }
.bk-info p { margin: 4px 0 0; color: var(--lf-text-2); }
.bk-files { display: grid; gap: 8px; }
.bk-file-list { display: grid; gap: 8px; }
.bk-file { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--lf-border); border-radius: 12px; }
.bk-file.is-bad { border-color: var(--lf-pomegranate); }
.bk-file.is-bad .bk-file-status { color: var(--lf-pomegranate); font-weight: 700; }
.bk-file-icon { width: 44px; height: 44px; border-radius: 8px; background: #ECD4D5; color: var(--lf-deep-red); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.bk-file-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bk-file-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.bk-file-status { font-size: 12px; color: var(--lf-text-2); }
.bk-bar { height: 6px; border-radius: 3px; background: var(--lf-border); overflow: hidden; }
.bk-bar span { display: block; width: 0; height: 100%; background: var(--lf-deep-red); transition: width .2s; }
.bk-retry { height: 40px; padding: 0 12px; font-size: 13px; }
.bk-file-add { min-height: 52px; border: 1.5px dashed var(--lf-deep-red); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--lf-deep-red); cursor: pointer; }
.bk-file-add:focus-within { outline: 2px solid var(--lf-deep-red); outline-offset: 2px; }
.bk-consent.is-bad { border-color: var(--lf-pomegranate); }
.bk-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--lf-border); color: var(--lf-text-2); font-size: 14px; line-height: 1.6; }
.bk-privacy .lf-i { flex: 0 0 auto; margin-top: 2px; }
.bk-submit { height: 56px; font-size: 18px; }
.bk-aside { position: sticky; top: 104px; display: grid; gap: 6px; padding: 16px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; font-size: 14px; }
.bk-aside b { font-size: 17px; color: var(--lf-deep-red); }
.bk-aside-price { font-size: 20px; font-weight: 600; }
.bk-aside p { margin: 6px 0 0; color: var(--lf-text-2); line-height: 1.6; }
.ev-form-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--lf-border); border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.6; }
.ev-form-note .lf-i { flex: 0 0 auto; margin-top: 2px; }

.ba-page { padding-block: 24px 48px; display: grid; gap: 14px; }
.ba-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ba-head .lf-page-title { margin: 0; }
.ba-state { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid var(--lf-border-2); color: var(--lf-text); }
.ba-state.is-wait, .ba-state.is-new { border-color: var(--lf-deep-red); color: var(--lf-deep-red); }
.ba-state.is-ok { background: var(--lf-success); border-color: var(--lf-success); color: #fff; }
.ba-state.is-bad { background: #ECD4D5; border-color: #ECD4D5; color: var(--lf-deep-red); }
.ba-card { padding: 16px; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; }
.ba-list { margin: 0; display: grid; gap: 12px; }
.ba-item dt { font-weight: 400; color: var(--lf-text-2); font-size: 14px; }
.ba-item dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--lf-text); word-break: break-word; }
.ba-empty { color: var(--lf-text-3); font-weight: 400; }
.ba-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ba-file { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--lf-border); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--lf-deep-red); text-decoration: none; }
.ba-file.is-gone { color: var(--lf-text-2); font-weight: 400; }
.ba-withdraw { padding: 16px; border: 1px solid #ECD4D5; border-radius: 16px; background: #fff; }
.ba-withdraw h2 { margin: 0 0 6px; font-size: 17px; color: var(--lf-deep-red); }
.ba-withdraw p { color: var(--lf-text-2); line-height: 1.6; }
.br-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.br-person { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.br-person > div { flex: 1; min-width: 180px; }
.br-person h1 { margin: 0; font-size: 22px; color: var(--lf-deep-red); }
.br-contact { color: var(--lf-text-2); font-size: 14px; }
.br-h { margin: 0 0 10px; font-size: 17px; color: var(--lf-deep-red); }
.br-actions { display: grid; gap: 10px; position: sticky; top: 104px; }
.br-summary { margin: 8px 0 0; color: var(--lf-text-2); font-size: 14px; }
.rj-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rj-again { align-items: flex-start; margin: 12px 0 0; padding: 12px; border: 1px solid var(--lf-border-2); border-radius: 12px; }
.rj-again small { color: var(--lf-text-2); }
.rj-actions { display: flex; gap: 8px; margin-top: 12px; }
.rj-actions .lf-btn-danger { flex: 1; }
@media (max-width: 899px) {
    .bk-layout, .br-layout { grid-template-columns: 1fr; }
    .bk-aside { position: static; order: -1; }
    .br-actions { position: static; }
}

/* ---------- Follow-ups (F2) ---------- */
.ba-state.is-late, .fu-badge.is-late { background: var(--lf-pomegranate); border-color: var(--lf-pomegranate); color: #fff; }
.ba-state.is-replied { background: var(--lf-deep-red); border-color: var(--lf-deep-red); color: var(--lf-sun); }
.ba-state.is-wait { background: var(--lf-sun); border-color: var(--lf-sun); color: var(--lf-deep-red); }
.request-card.is-late { border: 2px solid var(--lf-pomegranate) !important; }
.lf-chip.is-late { border-color: var(--lf-pomegranate); color: var(--lf-pomegranate); }
.lf-chip.is-late.is-active { background: var(--lf-pomegranate); color: #fff; }
.br-states { margin: -8px 0 16px; }
.fu-history { margin-top: 18px; display: grid; gap: 12px; }
.fu-item { display: grid; gap: 8px; }
.fu-ask, .fu-message { padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--lf-deep-red); color: #FFFEF7; }
.fu-ask p, .fu-message p { margin: 4px 0; font-size: 15px; line-height: 1.7; white-space: pre-line; }
.fu-message p { font-size: 16px; }
.fu-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--lf-sun); }
.fu-reply .fu-meta { color: var(--lf-text-2); }
.fu-badge { border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; background: var(--lf-sun); color: var(--lf-deep-red); }
.fu-badge.is-ok { background: var(--lf-success); color: #fff; }
.fu-badge.is-off { background: rgba(255, 254, 247, .2); color: #FFFEF7; }
.fu-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fu-tags span { border: 1px solid var(--lf-sun); color: var(--lf-sun); border-radius: 999px; padding: 1px 10px; font-size: 12px; }
.fu-tags span.is-due { background: var(--lf-sun); color: var(--lf-deep-red); font-weight: 700; }
.fu-tags span.is-late { background: var(--lf-pomegranate); border-color: var(--lf-pomegranate); color: #fff; font-weight: 700; }
.fu-reply { margin-inline-start: 28px; padding: 10px 12px; border: 1px solid var(--lf-border); border-radius: 16px 16px 4px 16px; background: #fff; display: grid; gap: 6px; }
.fu-reply p { margin: 0; line-height: 1.7; white-space: pre-line; }
.fu-reply-btn { justify-self: start; height: 44px; }
.fu-needs { border: 0; padding: 0; margin: 10px 0; display: flex; gap: 16px; flex-wrap: wrap; }
.fu-needs legend { width: 100%; }
.fu-page .bk-form { margin-top: 4px; }
.fu-earlier summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.fu-earlier ul { margin: 0; padding-inline-start: 18px; color: var(--lf-text-2); line-height: 1.8; }
.fu-banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--lf-sun); color: var(--lf-deep-red); }
.fu-banner .lf-i { flex: 0 0 auto; margin-top: 2px; }
.fu-banner ul { margin: 4px 0 0; padding-inline-start: 18px; }
.fu-banner a { color: var(--lf-deep-red); font-weight: 700; }

/* ---------- Booking table, bulk, export (F3) ---------- */
.bt-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; } /* the wide table scrolls inside .bt-wrap */
.bt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bt-head .lf-page-title { margin: 0; }
.bt-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.bt-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bt-filters .lf-chips { flex: 1 1 320px; min-width: 0; }
.bt-search { flex: 0 1 280px; min-height: 44px; }
.bt-bulk { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-radius: 14px; background: var(--lf-deep-red); color: var(--lf-sun); }
.bt-bulk b { flex: 1; }
.bt-bulk .bt-clear { color: var(--lf-sun); }
.lf-btn-sun { background: var(--lf-sun); color: var(--lf-deep-red); }
.lf-btn-sun:hover, .lf-btn-sun:focus-visible { background: #FFE97A; color: var(--lf-deep-red); }
.lf-btn-outline-sun { background: transparent; color: var(--lf-sun); border: 1.5px solid var(--lf-sun); }
.lf-btn-outline-sun:hover { background: rgba(255, 243, 176, .15); color: var(--lf-sun); }
.bt-bulk .lf-btn:disabled { opacity: .5; }
.bt-wrap { overflow-x: auto; border: 1px solid var(--lf-border); border-radius: 16px; background: #fff; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bt-table th { position: sticky; top: 0; background: var(--lf-bg-3); text-align: start; padding: 10px 12px; font-weight: 700; color: var(--lf-text); white-space: nowrap; }
.bt-table td { padding: 10px 12px; border-top: 1px solid var(--lf-border); vertical-align: top; max-width: 280px; }
.bt-table tr.is-late td { background: #F6E4E4; }
.bt-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--lf-deep-red); }
.bt-name a { font-weight: 700; color: var(--lf-deep-red); }
.bt-name small { display: block; color: var(--lf-text-2); }
.bt-date { white-space: nowrap; color: var(--lf-text-2); }
.ba-state.is-bad { background: #ECD4D5; border-color: #ECD4D5; color: var(--lf-deep-red); }
.br-table-link { margin: -6px 0 14px; }

/* ---- Round 8: «أفاتارات لفيف» (profile picker + /Admin/Avatars) ---- */
.lf-avatar-pick { max-width: 520px; margin-inline: auto; text-align: start; }
.lf-avatar-pick summary { cursor: pointer; color: var(--lf-deep-red); font-weight: 600; text-align: center; padding: 6px 0; }
.lf-avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin-top: 10px; }
.lf-avatar-opt { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; aspect-ratio: 1; min-width: 44px; }
.lf-avatar-opt img { width: 100%; height: 100%; border-radius: 50%; display: block; }
.lf-avatar-opt[aria-pressed="true"] { border-color: var(--lf-deep-red); }
.lf-avatar-opt:focus-visible { outline: 3px solid var(--lf-deep-red); outline-offset: 2px; }
.lf-avatar-admin-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.lf-avatar-admin-grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--lf-border); border-radius: 12px; }
.lf-avatar-admin-grid img { width: 96px; height: 96px; border-radius: 50%; }

/* ---- Profile merge (2026-11-20): «لوحة التحكم» folded into «ملفي الشخصي» ---- */
.up-hero-edit { position: absolute; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 40px; background: #fff; color: var(--lf-deep-red); font-size: 14px; font-weight: 600; text-decoration: none; }
.up-hero-edit:hover { background: var(--lf-bg-2); color: var(--lf-deep-red); }
.up-logout button { min-height: 44px; }
.up-hero .up-info { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 16px 18px; border-radius: 16px; background: #fff; text-align: start; }
.up-info h2 { margin: 0 0 12px; color: var(--lf-text); font-size: 18px; font-weight: 700; }
.up-fields { display: flex; flex-wrap: wrap; gap: 0 40px; }
.up-fields .up-field strong { overflow-wrap: break-word; }
.up-fields strong[dir="ltr"] { text-align: right; }
.up-tags .up-tags-label { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--lf-text-2); }
.up-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.up-stat { padding: 14px 8px; }
.up-link { flex-direction: column; height: auto; min-height: 84px; gap: 4px; padding: 8px; font-size: 16px; text-align: center; }
.up-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.up-next { display: flex; flex-direction: column; gap: 18px; }
.up-next h2 { margin: 0; color: var(--lf-text); font-size: 20px; font-weight: 700; }
.up-next-part { display: flex; flex-direction: column; gap: 8px; }
.up-next-part h3 { margin: 0; color: var(--lf-text-2); font-size: 15px; font-weight: 600; }
.up-next-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.up-next-head a { color: var(--lf-pomegranate); font-size: 14px; }
.up-pending { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--lf-bg-2); color: var(--lf-text-2); font-size: 14px; }
.up-pending-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-pending-text a { color: var(--lf-deep-red); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.up-pending-text > span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.up-withdraw { flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--lf-pomegranate); border-radius: 40px; background: #fff; color: var(--lf-pomegranate); font: inherit; font-size: 14px; cursor: pointer; }
.up-ticket { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--lf-border); border-radius: 14px; color: inherit; text-decoration: none; }
.up-ticket:hover { background: var(--lf-bg-2); }
.up-ticket-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; height: 56px; padding: 0 4px; box-sizing: border-box; border-radius: 12px; background: var(--lf-deep-red); color: var(--lf-sun); line-height: 1.15; }
.up-ticket-date strong { font-size: 20px; }
.up-ticket-date span { font-size: 11px; }
.up-ticket-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-ticket-text strong { color: var(--lf-deep-red); font-size: 15px; overflow-wrap: anywhere; }
.up-ticket-text span { color: var(--lf-text-2); font-size: 13px; }
.up-ticket-pill { flex: none; padding: 2px 10px; border-radius: 40px; background: #E3EEDF; color: var(--lf-success); font-size: 13px; }
.up-following { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.up-following a { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: var(--lf-text); font-size: 13px; text-align: center; text-decoration: none; }
.up-following a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-following img, .up-following-more { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.up-following-more { display: flex; align-items: center; justify-content: center; background: var(--lf-border); color: var(--lf-deep-red); font-weight: 700; }
@media (max-width: 767px) {
    .up-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .up-stats .up-stat { grid-column: span 3; }
    .up-stats .up-link { grid-column: span 2; min-height: 76px; font-size: 15px; }
    .up-following { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Moderators «المشرفون» / «لوحة المشرف» (canvas «Lafeef Moderators» M1–M5) ---------- */
.lf-mods a.lf-pill { text-decoration: none; }
.lf-mod-edit { max-width: 760px; }
.lf-mod-check { padding: 10px 0 10px 0; padding-inline-start: 2em; border-bottom: 1px solid var(--lf-border); }
.lf-mod-check:last-of-type { border-bottom: 0; }
.lf-mod-check .form-check-input { width: 20px; height: 20px; margin-top: 2px; }
.lf-mod-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 20px 24px; border-radius: 20px; background: var(--lf-deep-red); color: #fff; }
.lf-mod-head h2 { margin: 0; color: var(--lf-sun); }
.lf-mod-head-link { border: 1px solid var(--lf-sun); color: var(--lf-sun); }
.lf-mod-log { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; }
.lf-mod-log li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 16px; border-bottom: 1px solid var(--lf-border); }
.lf-mod-log li:last-child { border-bottom: 0; }
.lf-mod-when { flex: 0 0 190px; font-size: 13px; color: var(--lf-text-2); }
.lf-mod-sec { flex: 0 0 110px; font-size: 13px; font-weight: 700; color: var(--lf-pomegranate); }
.lf-mod-what { flex: 1 1 300px; min-width: 0; overflow-wrap: anywhere; }
.lf-mod-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.lf-mod-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--lf-border); border-radius: 16px; color: var(--lf-text); text-decoration: none; }
.lf-mod-tile:hover { border-color: var(--lf-deep-red); color: var(--lf-text); }
.lf-mod-tile strong { font-size: 18px; color: var(--lf-deep-red); }
.lf-mod-tile-mine { border-style: dashed; }
.lf-mod-count { font-size: 32px; font-weight: 700; color: var(--lf-pomegranate); line-height: 1.2; }
.lf-mod-note { padding: 14px 18px; border-radius: 14px; background: var(--lf-sun); color: var(--lf-deep-red); }

/* AI help in create-event (AI_ASSIST_CONCEPT.md): Sun-Yellow buttons with the sparkle icon, preview box, wait / error lines */
.ef-ai { display: grid; gap: 8px; margin-top: 12px; }
.ef-ai-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1px solid var(--lf-deep-red); border-radius: 40px; background: var(--lf-sun); color: var(--lf-deep-red); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ef-ai-btn:hover, .ef-ai-btn:focus-visible { background: #FFEB8A; }
.ef-ai-btn:disabled { border-style: dashed; border-color: var(--lf-border-2); background: transparent; color: var(--lf-text-2); cursor: default; }
.ef-ai-btn.is-busy { opacity: .7; cursor: progress; }
.ef-ai-result { display: grid; gap: 12px; padding: 16px; border: 1.5px solid var(--lf-deep-red); border-radius: 16px; background: #fff; }
.ef-ai-result h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--lf-deep-red); font-size: 15px; font-weight: 700; }
.ef-ai-result p { margin: 0; font-size: 15px; line-height: 1.8; white-space: pre-line; }
.ef-ai-error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #ECD4D5; color: var(--lf-deep-red); font-size: 14px; }
.ef-ai-wait { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--lf-border); color: var(--lf-text); font-size: 14px; }
.ef-ai-undo { margin: 0; padding: 10px 14px; border-radius: 12px; background: #ECD4D5; color: var(--lf-deep-red); font-size: 14px; }
.ef-ai-undo button { border: 0; background: none; color: var(--lf-pomegranate); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ef-ai [hidden] { display: none !important; }