* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: "Segoe UI", sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(180,40,90,0.35),
            transparent 30%
        ),

        radial-gradient(
            circle at bottom right,
            rgba(120,20,60,0.28),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #0f0712 0%,
            #160912 25%,
            #1f0d18 50%,
            #12070d 100%
        );

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #f8f4ef;

overflow-x: hidden;
overflow-y: auto;
}

.login-container {
    width: 100%;
    max-width: 420px;

    padding: 30px;
}

.login-card {

background: rgba(25, 10, 20, 0.72);
border: 1px solid rgba(212,175,55,0.18);

    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.12);

    border-radius: 24px;

    padding: 40px 30px;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.35);
}

.logo-placeholder {

    width: 90px;
    height: 90px;

    margin: 0 auto 20px auto;

    border-radius: 24px;

background:
    linear-gradient(
        135deg,
        #7b1e4d,
        #b83280
    );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;
    font-weight: bold;
}

.app-title {

    text-align: center;

    font-size: 32px;
    font-weight: 700;

    margin-bottom: 10px;
}

.app-subtitle {

    text-align: center;

    font-size: 15px;

    color: rgba(255,255,255,0.75);

    margin-bottom: 35px;

    line-height: 1.5;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    color: rgba(255,255,255,0.8);
}

.form-group input {

    width: 100%;

    padding: 14px 16px;

    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.08);

    color: white;

    font-size: 15px;

    outline: none;

    transition: 0.2s;
}

.form-group input:focus {

    border-color: #60a5fa;

    background: rgba(255,255,255,0.12);
}

.login-button {

    width: 100%;

    padding: 15px;

    border: none;

    border-radius: 14px;

background:
    linear-gradient(
        135deg,
        #7b1e4d,
        #b83280
    );

    color: white;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.login-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.error-message {

    background: rgba(239,68,68,0.18);

    border: 1px solid rgba(239,68,68,0.4);

    color: #fecaca;

    padding: 14px;

    border-radius: 14px;

    margin-bottom: 20px;

    font-size: 14px;
}

.footer-text {

    margin-top: 24px;

    text-align: center;

    font-size: 13px;

    color: rgba(255,255,255,0.55);
}

.login-card::before {

    content: "";

    position: absolute;

    inset: 0;

    border-radius: 24px;

    padding: 1px;

    background:
        linear-gradient(
            135deg,
            rgba(212,175,55,0.28),
            rgba(255,255,255,0.02)
        );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;

    pointer-events: none;
}

.login-card {
    position: relative;
}
.dashboard-body {

    background:
        radial-gradient(
            circle at top left,
            rgba(180,40,90,0.22),
            transparent 30%
        ),

        radial-gradient(
            circle at bottom right,
            rgba(120,20,60,0.18),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #0d0610 0%,
            #150912 40%,
            #1c0c17 100%
        );

    display: block;

    padding: 30px;
}

.app-shell {

    max-width: 1400px;

    margin: 0 auto;
}

.pro-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 40px;
}

.pro-brand {

    display: flex;

    align-items: center;

    gap: 16px;
}

.mini-logo {

    width: 56px;
    height: 56px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #6d214f,
            #b33771
        );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: bold;
}

.brand-title {

    font-size: 24px;
    font-weight: 700;
}

.brand-subtitle {

    color: rgba(255,255,255,0.65);

    font-size: 14px;
}

.logout-link {

    text-decoration: none;

    color: rgba(255,255,255,0.75);

    padding: 12px 18px;

    border-radius: 14px;

    background: rgba(255,255,255,0.06);

    transition: 0.2s;
}

.logout-link:hover {

    background: rgba(255,255,255,0.12);
}

.welcome-card {

    position: relative;

overflow-x: hidden;
overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            rgba(40,12,28,0.88),
            rgba(20,8,18,0.78)
        );

    border: 1px solid rgba(212,175,55,0.18);

    border-radius: 28px;

    padding: 40px;

    margin-bottom: 35px;

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.28);
}

.welcome-card::after {

    content: "";

    position: absolute;

    right: -120px;
    top: -120px;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212,175,55,0.12),
            transparent 70%
        );
}

.welcome-card h1 {

    font-size: 34px;

    margin-bottom: 14px;
}

.welcome-card p {

    color: rgba(255,255,255,0.78);

    line-height: 1.7;

    max-width: 900px;
}

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(260px, 1fr));

    gap: 24px;
}

.dashboard-card {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(45,15,35,0.82),
            rgba(25,10,20,0.72)
        );

    border: 1px solid rgba(255,255,255,0.06);

    border-radius: 24px;

    padding: 28px;

    backdrop-filter: blur(18px);

    transition:
        transform 0.25s,
        border-color 0.25s,
        box-shadow 0.25s;

    cursor: pointer;
}

.dashboard-card:hover {

    transform: translateY(-6px);

    border-color: rgba(212,175,55,0.28);

    box-shadow:
        0 18px 45px rgba(0,0,0,0.35),
        0 0 18px rgba(180,40,90,0.18);

    background:
        linear-gradient(
            145deg,
            rgba(55,18,42,0.88),
            rgba(30,10,22,0.82)
        );
}

.dashboard-card::before {

    content: "";

    position: absolute;

    top: -80px;
    right: -80px;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(180,40,90,0.18),
            transparent 70%
        );

    pointer-events: none;
}

.card-icon {

    width: 64px;
    height: 64px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(180,40,90,0.28),
            rgba(123,30,77,0.45)
        );

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    margin-bottom: 20px;

    box-shadow:
        0 0 18px rgba(180,40,90,0.22);
}

.dashboard-card h2 {

    margin-bottom: 12px;

    font-size: 20px;
}

.dashboard-card p {

    color: rgba(255,255,255,0.72);

    line-height: 1.6;

    font-size: 14px;
}

@media (max-width: 768px) {

    .dashboard-body {
        padding: 18px;
    }

    .pro-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .welcome-card h1 {
        font-size: 28px;
    }
}
.dashboard-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.establishment-card {
    border-color: rgba(212,175,55,0.20);
}

.establishment-card::before {
    background:
        radial-gradient(
            circle,
            rgba(212,175,55,0.16),
            transparent 70%
        );
}

.establishment-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.08);
}

.badge-gold {
    background: rgba(212,175,55,0.14);
    border-color: rgba(212,175,55,0.28);
    color: #f6e6a8;
}

.badge-purple {
    background: rgba(180,40,90,0.16);
    border-color: rgba(180,40,90,0.30);
    color: #ffc2df;
}

.card-action {
    margin-top: 22px;
    display: inline-block;
    padding: 11px 15px;
    border-radius: 13px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.22);
    color: #f6e6a8;
    text-decoration: none;
    font-size: 14px;
}
.establishment-status {
    margin-top: 18px;
}
html,
body {
    min-height: 100%;
}

.dashboard-body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}
.fiche-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 340px;
    margin-bottom: 32px;
    border: 1px solid rgba(212,175,55,0.18);
    background: rgba(20,8,18,0.8);
    box-shadow: 0 22px 55px rgba(0,0,0,0.32);
}

.fiche-hero-background {
    position: absolute;
    inset: 0;
}

.fiche-hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-cover {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(212,175,55,0.22), transparent 28%),
        radial-gradient(circle at 80% 25%, rgba(180,40,90,0.26), transparent 32%),
        linear-gradient(135deg, #170812, #351024 48%, #12070d);
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-cover-text {
    padding: 14px 22px;
    border-radius: 999px;
    background: rgba(0,0,0,0.32);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.78);
    font-size: 15px;
}

.fiche-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0.10),
            rgba(0,0,0,0.62)
        );
}

.fiche-hero-overlay {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 22px;
}

.fiche-logo {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
    border: 3px solid rgba(212,175,55,0.75);
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.fiche-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-logo {
    width: 100%;
    height: 100%;
    color: #5c173d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
}

.default-logo span {
    font-weight: 800;
    font-size: 22px;
}

.default-logo small {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.2;
}

.fiche-hero-overlay h1 {
    font-size: 38px;
    line-height: 1.1;
    text-shadow: 0 3px 18px rgba(0,0,0,0.55);
}

.hero-single-edit-button {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(20,8,18,0.68);
    color: white;
    cursor: pointer;
    backdrop-filter: blur(12px);
}

@media (max-width: 768px) {
    .fiche-hero {
        min-height: 300px;
    }

    .fiche-hero-overlay {
        left: 22px;
        right: 22px;
        bottom: 24px;
        gap: 16px;
    }

    .fiche-logo {
        width: 86px;
        height: 86px;
    }

    .fiche-hero-overlay h1 {
        font-size: 28px;
    }
}
.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    margin-bottom: 22px;
}

.section-header h2 {

    margin: 0;

    font-size: 24px;
}

.section-edit-button {

    width: 40px;
    height: 40px;

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);

    color: rgba(255,255,255,0.82);

    cursor: pointer;

    transition: 0.2s;

    flex-shrink: 0;
}

.section-edit-button:hover {

    background: rgba(180,40,90,0.22);

    border-color: rgba(212,175,55,0.28);

    transform: translateY(-1px);
}
.golib-popup-form {

    display: flex;
    flex-direction: column;
    gap: 22px;

    margin-top: 20px;

    text-align: left;
}

.golib-popup-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.golib-popup-field label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;
    font-weight: 700;

    color: #5b2140;
}

.golib-popup-input,
.golib-popup-textarea {

    width: 100% !important;

    margin: 0 !important;

    border-radius: 16px !important;

    border: 1px solid rgba(120,40,80,0.16) !important;

    background: rgba(255,255,255,0.95) !important;

    color: #2a1220 !important;

    box-shadow: none !important;
}

.golib-popup-input {

    height: 52px !important;

    padding: 0 16px !important;
}

.golib-popup-textarea {

    min-height: 120px !important;

    padding: 14px 16px !important;

    resize: vertical;
}

.swal2-popup {

    border-radius: 28px !important;

    box-shadow:
        0 24px 60px rgba(20,0,20,0.28) !important;
}

.swal2-confirm {

    border-radius: 14px !important;

    background:
        linear-gradient(
            135deg,
            #7c214f,
            #b83d6c
        ) !important;

    padding: 12px 26px !important;
}

.swal2-cancel {

    border-radius: 14px !important;

    padding: 12px 26px !important;
}

@media (max-width: 768px) {

    .golib-popup-grid {

        grid-template-columns: 1fr;
    }
}
.golib-popup-info-box {

    padding: 18px 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(124,33,79,0.08),
            rgba(184,61,108,0.10)
        );

    border: 1px solid rgba(124,33,79,0.14);

    color: #4a1b34;

    line-height: 1.6;

    font-size: 14px;
}

.golib-secondary-button {

    width: 100%;

    border: none;

    border-radius: 16px;

    padding: 14px 18px;

    background:
        rgba(124,33,79,0.10);

    color: #6e2247;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.golib-secondary-button:hover {

    background:
        rgba(124,33,79,0.16);

    transform: translateY(-1px);
}
.event-flyer-block {

    margin-top: 18px;

    display: flex;

    justify-content: center;
}

.event-flyer-image {

    width: 100%;

    max-width: 320px;

    max-height: 480px;

    object-fit: cover;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.event-card {
    overflow: hidden;
}

.event-card-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    align-items: start;
}

.event-card-flyer {
    width: 100%;
    max-width: 220px;
}

.event-card-flyer img,
.event-card-flyer-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 14px 34px rgba(0,0,0,0.28);
    border: 1px solid rgba(212,175,55,0.22);
}

.event-card-flyer-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    background: linear-gradient(135deg, rgba(124,33,79,0.35), rgba(212,175,55,0.18));
    color: rgba(255,255,255,0.72);
    font-weight: 700;
}

.event-card-place {
    margin-top: 6px;
    color: rgba(255,255,255,0.68);
    font-size: 15px;
}

.event-card-date {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
    font-weight: 700;
    color: #f2d18a;
}

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

.event-badge {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 700;
}

.event-badge-gold {
    background: rgba(212,175,55,0.14);
    border-color: rgba(212,175,55,0.28);
    color: #f2d18a;
}

.event-text-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.event-text-block h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #f2d18a;
}

.event-text-block p {
    margin: 0;
    line-height: 1.7;
    color: rgba(255,255,255,0.78);
}

.event-comment-block p {
    color: rgba(255,255,255,0.62);
}

@media (max-width: 768px) {
    .event-card-layout {
        grid-template-columns: 1fr;
    }

    .event-card-flyer {
        max-width: 260px;
        margin: 0 auto;
    }
}
@media (max-width: 768px) {

    .event-card-header {
        text-align: center;
        align-items: flex-start;
    }

    .event-card-title-block {
        flex: 1;
    }

    .event-card-place {
        font-size: 24px;
        font-weight: 800;
        line-height: 1.15;
        color: rgba(255,255,255,0.92);
        text-align: center;
        margin-bottom: 6px;
    }

    .event-card-header h2 {
        font-size: 24px;
        text-align: center;
    }

    .event-card-layout {
        grid-template-columns: 1fr;
    }

    .event-card-flyer {
        max-width: 260px;
        margin: 0 auto 20px;
    }
}
.event-edit-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.72);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    z-index: 9999;
}

.event-edit-modal {

    width: 100%;
    max-width: 720px;

    background:
        linear-gradient(
            180deg,
            rgba(38,38,42,0.98),
            rgba(20,20,24,0.98)
        );

    border-radius: 24px;

    border:
        1px solid rgba(212,175,55,0.18);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.45);

    overflow: hidden;
}

.event-edit-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 26px;

    border-bottom:
        1px solid rgba(255,255,255,0.08);
}

.event-edit-header h2 {

    margin: 0;

    color: #fff;

    font-size: 22px;
}

.event-edit-close {

    border: none;
    background: transparent;

    color: rgba(255,255,255,0.7);

    font-size: 24px;

    cursor: pointer;
}

.event-edit-body {

    padding: 28px;

    color: rgba(255,255,255,0.82);
}
.event-edit-form {

    display: flex;
    flex-direction: column;
    gap: 22px;

    padding: 28px;
}

.event-form-grid {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.event-form-group {

    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-form-group label {

    color: rgba(255,255,255,0.88);

    font-size: 14px;
    font-weight: 600;
}

.event-form-group input,
.event-form-group textarea {

    width: 100%;

    background: rgba(255,255,255,0.04);

    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 14px;

    padding: 14px 16px;

    color: #fff;

    font-size: 15px;
}

.event-form-group textarea {

    resize: vertical;
    min-height: 120px;
}

.event-form-switches {

    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.event-form-switches label {

    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255,255,255,0.88);
}

.event-edit-actions {

    display: flex;
    justify-content: flex-end;
}

.event-save-button {

    border: none;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #f3d36b
        );

    color: #1b1b1f;

    padding: 14px 24px;

    border-radius: 14px;

    font-weight: 700;

    cursor: pointer;
}

@media (max-width: 768px) {

    .event-form-grid {

        grid-template-columns: 1fr;
    }

    .event-edit-modal {

        max-height: 92vh;
        overflow-y: auto;
    }
}
.event-edit-modal {
    background: #f7f1f4;
    color: #2d1420;
    border-radius: 28px;
    border: 1px solid rgba(120,40,80,0.12);
}

.event-edit-header {
    border-bottom: 1px solid rgba(120,40,80,0.10);
}

.event-edit-header h2 {
    color: #2d1420;
}

.event-edit-close {
    color: #7c214f;
}

.event-form-group label,
.event-form-switches label {
    color: #5b2140;
}

.event-form-group input,
.event-form-group textarea,
.event-form-group select {
    background: rgba(255,255,255,0.95);
    color: #2a1220;
    border: 1px solid rgba(120,40,80,0.16);
    border-radius: 16px;
}

.event-save-button {
    background: linear-gradient(135deg, #7c214f, #b83d6c);
    color: #fff;
}
.event-flyer-preview-wrapper {

    display: flex;
    justify-content: center;

    margin-bottom: 14px;
}

.event-flyer-preview {

    width: 100%;
    max-width: 240px;

    border-radius: 18px;

    border:
        1px solid rgba(120,40,80,0.16);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);
}

.event-flyer-preview-placeholder {

    width: 240px;
    height: 320px;

    border-radius: 18px;

    background:
        rgba(120,40,80,0.06);

    border:
        1px dashed rgba(120,40,80,0.20);

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(120,40,80,0.60);
}

.event-change-flyer-button {

    border: none;

    background:
        linear-gradient(
            135deg,
            #7c214f,
            #b83d6c
        );

    color: white;

    padding: 12px 18px;

    border-radius: 14px;

    font-weight: 600;

    cursor: pointer;

    align-self: flex-start;
}
.event-edit-overlay {
    align-items: flex-start;
    overflow-y: auto;
}

.event-edit-modal {
    margin: 32px auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.event-edit-actions {

    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.event-cancel-button {

    border:
        1px solid rgba(120,40,80,0.18);

    background: white;

    color: #7c214f;

    padding: 14px 24px;

    border-radius: 14px;

    font-weight: 600;

    cursor: pointer;
}
.media-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.media-editor-modal {
    width: 100%;
    max-width: 980px;
    margin: 24px auto;
    background: #f7f1f4;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.40);
    overflow: hidden;
}

.media-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(120,40,80,0.12);
}

.media-editor-header h2 {
    margin: 0;
    color: #5b2140;
}

.media-editor-close {
    border: none;
    background: transparent;
    font-size: 26px;
    color: #7c214f;
    cursor: pointer;
}

.media-editor-body {
    padding: 28px;
}

.media-editor-colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.media-editor-colors-label {
    font-size: 14px;
    font-weight: 700;
    color: #5b2140;
    margin-right: 6px;
}

.media-editor-colors button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(120,40,80,0.22);
    cursor: pointer;
}

.media-editor-custom-color {
    width: 42px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.media-editor-image-wrapper {
    max-height: 68vh;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(120,40,80,0.06);
}

.media-editor-image {
    display: block;
    max-width: 100%;
}

.media-editor-help {
    margin: 16px 0 0;
    color: rgba(45,20,32,0.72);
    font-size: 14px;
    line-height: 1.6;
}

.media-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 24px 28px;
    border-top: 1px solid rgba(120,40,80,0.10);
}

.media-editor-cancel {
    border: 1px solid rgba(120,40,80,0.18);
    background: white;
    color: #7c214f;
    padding: 14px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
}

.media-editor-validate {
    border: none;
    background: linear-gradient(135deg, #7c214f, #b83d6c);
    color: white;
    padding: 14px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
}
.js-create-evenement {

    min-width: 220px;

    background:
        linear-gradient(
            135deg,
            #7c214f,
            #b83d6c
        );

    color: white;

    border: none;
}
.event-page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .event-page-actions {
        justify-content: center;
    }

    .js-create-evenement {
        width: 100%;
 
   }
}
.media-choice-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 9999;
}

.media-choice-modal {
    width: 100%;
    max-width: 440px;
    background: #f7f1f4;
    border-radius: 28px;
    border: 1px solid rgba(120,40,80,0.12);
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    overflow: hidden;
}

.media-choice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(120,40,80,0.10);
}

.media-choice-header h2 {
    margin: 0;
    color: #5b2140;
    font-size: 22px;
}

.media-choice-close {
    border: none;
    background: transparent;
    color: #7c214f;
    font-size: 26px;
    cursor: pointer;
}

.media-choice-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

.media-choice-button {
    padding: 16px 18px;
    border: 1px solid rgba(120,40,80,0.14);
    border-radius: 16px;
    background: white;
    color: #5b2140;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.media-choice-button:hover {
    background: linear-gradient(135deg, #7c214f, #b83d6c);
    color: white;
}
.indicator-establishment-block {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(124,33,79,0.14);
}

.indicator-establishment-block h3 {
    margin: 0 0 18px;
    color: #5b2140;
    font-size: 22px;
}

.indicator-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.indicator-event-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(124,33,79,0.12);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.indicator-event-flyer {
    width: 110px;
    height: 155px;
    border-radius: 16px;
    overflow: hidden;
    background: #f3e8ee;
    flex-shrink: 0;
}

.indicator-event-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.indicator-event-no-flyer {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c214f;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

.indicator-event-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.indicator-event-content h4 {
    margin: 0 0 12px;
    color: #2f1726;
    font-size: 17px;
    line-height: 1.25;
}

.indicator-event-meta {
    margin-bottom: 7px;
    color: #5f4b58;
    font-size: 14px;
}

.indicator-event-stats {
    margin-top: 12px;
    align-self: flex-start;
    padding: 8px 14px;
    background: linear-gradient(135deg, #7c214f, #b83d6c);
    color: white;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 520px) {
    .indicator-events-grid {
        grid-template-columns: 1fr;
    }

    .indicator-event-card {
        grid-template-columns: 90px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .indicator-event-flyer {
        width: 90px;
        height: 128px;
    }
}
.event-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
}

.event-page-actions .section-edit-button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border-radius: 999px;
    border: 1px solid rgba(124,33,79,0.22);

    background: linear-gradient(135deg, #7c214f, #b83d6c);

    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    box-shadow: 0 8px 20px rgba(124,33,79,0.18);

    flex-shrink: 0;
}	
.event-page-actions .section-edit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(124,33,79,0.24);
}
.event-page-actions .event-filter-button {
    background: linear-gradient(135deg, #284b63, #3c7a89);
    border-color: rgba(60,122,137,0.35);
}

.event-page-actions .event-filter-button:hover {
    box-shadow: 0 12px 24px rgba(40,75,99,0.28);
}
.event-calendar-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.event-calendar-modal {
    width: 100%;
    max-width: 460px;
    background: #f7f1f4;
    border-radius: 28px;
    border: 1px solid rgba(124,33,79,0.14);
    box-shadow: 0 28px 70px rgba(0,0,0,0.36);
    padding: 24px;
}

.event-calendar-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.event-calendar-header h2 {
    margin: 0;
    text-align: center;
    color: #5b2140;
    font-size: 22px;
}

.event-calendar-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #7c214f, #b83d6c);
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.event-calendar-weekdays,
.event-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.event-calendar-weekdays {
    margin-bottom: 8px;
    color: #7c214f;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.event-calendar-day {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(124,33,79,0.12);
    background: white;
    color: #2f1726;
    cursor: pointer;
    font-weight: 700;
}

.event-calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.event-calendar-day.has-event {
    background: #f3d5e2;
    border-color: rgba(184,61,108,0.45);
    color: #7c214f;
    box-shadow: inset 0 -3px 0 #b83d6c;
}

.event-calendar-day.selected {
    background: linear-gradient(135deg, #7c214f, #b83d6c);
    color: white;
}

.event-calendar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.past-events-separator,
.future-events-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 22px;
    color: #7c214f;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.past-events-separator::before,
.past-events-separator::after,
.future-events-separator::before,
.future-events-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(124,33,79,0.28);
}

.past-events-separator span,
.future-events-separator span {
    padding: 8px 16px;
    border-radius: 999px;
    background: #f3d5e2;
}
.indicator-dashboard-grid {
    display: grid;
    gap: 24px;
}

.indicator-dashboard-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.indicator-dashboard-card h3 {
    margin: 0 0 18px 0;
}

.dashboard-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.dashboard-stat-tile {
    flex: 1;
    min-width: 220px;

    padding: 20px;

    border-radius: 18px;

    background: rgba(255,255,255,0.04);

    text-align: center;
}

.dashboard-stat-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.dashboard-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #d4af37;
}

.dashboard-stat-label {
    margin-top: 8px;
    opacity: 0.85;
}


.messaging-page {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0 !important;
    overflow: hidden !important;
}

.messaging-page .messaging-shell {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    max-width: none;
    margin: 0;
    overflow: hidden;
}

.messaging-page .messaging-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 20;

    height: 82px;
    margin-bottom: 0;
    padding: 18px 24px;

    background:
        linear-gradient(
            135deg,
            #0d0610 0%,
            #150912 40%,
            #1c0c17 100%
        );
}

.messaging-page .messaging-main {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    bottom: 76px;

    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 18px;

    overflow: hidden;
}

.messaging-page .messages-panel {
    height: 100%;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.messaging-page .messages-list {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    padding: 22px;

    background: #f8fafc;
    color: #111827;
}

.messaging-page .message-form {
    position: fixed;
    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: 100%;
    max-width: 900px;

    z-index: 30;

    display: flex;
    gap: 10px;
    align-items: flex-end;

    padding: 14px 18px;

    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.message-input {
    flex: 1;

    min-height: 44px;
    max-height: 150px;

    resize: none;
    overflow-y: auto;

    border: 1px solid #d1d5db;
    border-radius: 18px;

    padding: 12px 14px;

    font-size: 15px;
    line-height: 1.4;

    outline: none;
}

.message-send-button {
    border: none;
    border-radius: 999px;

    padding: 12px 18px;

    background: #2563eb;
    color: #ffffff;

    font-weight: 700;

    cursor: pointer;
}

.message-bubble-row {
    display: flex;
    margin-bottom: 12px;
}

.message-bubble-row.mine {
    justify-content: flex-end;
}

.message-bubble-row.theirs {
    justify-content: flex-start;
}

.message-bubble-row > div {
    display: flex;
    flex-direction: column;
    max-width: min(76%, 560px);
}

.message-bubble-row.mine > div {
    align-items: flex-end;
}

.message-bubble-row.theirs > div {
    align-items: flex-start;
}

.message-bubble {
    max-width: 100%;

    padding: 10px 14px;

    border-radius: 18px;

    font-size: 15px;
    line-height: 1.45;
}

.message-bubble-row.mine .message-bubble {
    background: #2563eb;
    color: #ffffff;
    border-bottom-right-radius: 5px;
}

.message-bubble-row.theirs .message-bubble {
    background: #ffffff;
    color: #111827;

    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 11px;
    opacity: 0.65;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .messaging-page .messaging-header {
        height: 72px;
        padding: 10px 14px;
    }

    .messaging-page .messaging-main {
        top: 72px;
        bottom: 72px;

        padding: 0;
    }

    .messaging-page .messages-panel {
        border-radius: 0;
    }

    .messaging-page .messages-list {
        padding: 14px 12px;
    }

    .messaging-page .message-form {
        max-width: none;

        padding:
            10px
            10px
            calc(10px + env(safe-area-inset-bottom))
            10px;
    }

    .message-send-button {
        padding: 11px 14px;
    }
}
