@charset "utf-8";
/* ============================================================
   Buaku Events - Styles globaux
   Thème : violet/indigo + touches ambre
   ============================================================ */

:root {
    --brand: #6d28d9;
    --brand-dark: #4c1d95;
    --brand-light: #8b5cf6;
    --accent: #f59e0b;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --sidebar-width: 250px;
    --radius: 0.75rem;
}

/* Base légèrement réduite pour un rendu plus professionnel
   (15 px au lieu de 16 px : tout ce qui est en rem est réduit) */
html { font-size: 0.9375rem; }

* { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
    color: var(--text);
    background-color: var(--bg);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Paragraphes "lead" légèrement réduits pour une lecture plus dense */
.lead { font-size: 1.05rem; }

/* ---------- Palette ---------- */
.bg-brand { background-color: var(--brand); }
.bg-brand-dark { background-color: var(--brand-dark); }
.text-brand { color: var(--brand); }
.border-brand { border-color: var(--brand); }

.btn-brand {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-disabled-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
}
.text-bg-brand {
    color: #fff;
    background-color: var(--brand);
}

/* ---------- Icônes de marque ---------- */
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%); }
.hero-mockup { max-width: 460px; margin-left: auto; }

/* ---------- Fonctionnalités ---------- */
.feature-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 41, 59, 0.08) !important; }
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(109, 40, 217, 0.08);
    color: var(--brand);
    font-size: 1.25rem;
}

/* ---------- Équipe & paiements (page d'accueil) ---------- */
.team-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(30, 41, 59, 0.08) !important; }
.momo-card { border: 1px solid rgba(255, 255, 255, 0.18); }
.momo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

/* ---------- Sélecteur d'étoiles (témoignage) ---------- */
.star-rating { display: inline-flex; align-items: center; }
.star-rating .star-btn {
    cursor: pointer;
    border: 0;
    background: none;
    line-height: 1;
    transition: transform 0.12s ease, color 0.12s ease;
}
.star-rating .star-btn:hover { transform: scale(1.2); }
.star-rating .star-btn:active { transform: scale(0.92); }
.star-rating .star-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Formulaires ---------- */
.form-control:focus, .form-select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 0.2rem rgba(109, 40, 217, 0.12);
}
.auth-section { min-height: calc(100vh - 140px); }

/* ============================================================
   Tableau de bord (layout)
   ============================================================ */
.dashboard-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--brand-dark);
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    padding: 1rem 0.75rem;
    transition: transform 0.25s ease;
}
.sidebar-brand {
    padding: 0.25rem 0.75rem 1.25rem;
    font-size: 1.05rem;
    color: #fff;
}
.sidebar-nav .sidebar-section {
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 0.75rem 0.35rem;
}
.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}
.sidebar-nav .nav-link i { font-size: 1rem; width: 20px; }
.sidebar-nav .nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--brand); color: #fff; font-weight: 600; }

.dashboard-main { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.sidebar-backdrop { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        z-index: 1035;
    }
    .dashboard-main { margin-left: 0; }
}

/* ---------- Cartes ---------- */
.card { border: 0; }
.stat-card { transition: transform 0.15s ease; }
.stat-card:hover { transform: translateY(-2px); }

/* ---------- Tables ---------- */
.table > :not(caption) > * > * { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.table-light { background-color: #f1f5f9; }

/* ---------- Divers ---------- */
.page-link { color: var(--brand); }
.page-item.active .page-link { background-color: var(--brand); border-color: var(--brand); }
.dropdown-menu { --bs-dropdown-min-width: 14rem; }

/* ---------- Événements ---------- */
.event-cover { height: 150px; object-fit: cover; }
.event-cover-sm { height: 80px; object-fit: cover; }
.event-cover-placeholder {
    height: 150px;
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
}

.anim-hidden {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.6s cubic-bezier(.22, .61, .36, 1), transform 0.6s cubic-bezier(.22, .61, .36, 1);
}
.anim-hidden.anim-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.btn { position: relative; overflow: hidden; }
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: currentColor;
    opacity: .18;
    transform: scale(0);
    pointer-events: none;
    animation: btn-ripple .6s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes btn-ripple {
    to { transform: scale(1); opacity: 0; }
}

.progress-bar { transition: width 1.1s cubic-bezier(.22, .61, .36, 1); }

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(76, 29, 149, .28);
    opacity: 0;
    transform: translateY(12px) scale(.9);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--brand-dark); }

section[id], #abonnement { scroll-margin-top: 82px; }
.navbar-nav .nav-link.is-scroll-active { color: #fff !important; font-weight: 700; }

.star-rating .star-btn.star-pop i { animation: star-pop .35s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes star-pop {
    0% { transform: scale(.7); }
    60% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================================
   Module Partenaires (administration)
   ============================================================ */
.min-w-0 { min-width: 0; }

.partners-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background:
        radial-gradient(1000px 360px at 112% -20%, rgba(255, 255, 255, 0.20), transparent 62%),
        linear-gradient(135deg, #4c1d95 0%, #6d28d9 52%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 18px 40px -18px rgba(76, 29, 149, 0.65);
}
.partners-hero::before,
.partners-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.partners-hero::before {
    top: -90px;
    right: -70px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.08);
}
.partners-hero::after {
    right: 40px;
    bottom: -140px;
    width: 240px;
    height: 240px;
    background: rgba(245, 158, 11, 0.16);
}
.partners-hero > * { position: relative; z-index: 1; }
.partners-hero-title { font-weight: 800; letter-spacing: -0.02em; }
.partners-hero-sub { color: rgba(255, 255, 255, 0.82); }
.partners-hero-meta { color: rgba(255, 255, 255, 0.88); }
.partners-hero-meta span { display: inline-flex; align-items: center; }
.partners-hero .btn-light { --bs-btn-color: var(--brand-dark); font-weight: 600; }
.partners-hero .btn-outline-light { font-weight: 600; }

.partners-kpi { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.partners-kpi:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08) !important;
}
.partners-kpi .kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.partners-kpi .kpi-icon--brand {
    background: rgba(109, 40, 217, 0.10);
    color: var(--brand);
}
.partners-kpi .kpi-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
}
.partners-kpi .kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.partners-kpi .kpi-hint { font-size: 0.72rem; color: var(--muted); }

.category-form-card { position: sticky; top: 88px; }
#new-category { scroll-margin-top: 92px; }
.category-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px -8px rgba(109, 40, 217, 0.7);
}
.category-desc { max-width: 320px; }
@media (max-width: 991.98px) {
    .category-form-card { position: static; top: auto; }
}

.partners-nav {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    padding: 0.35rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    flex-wrap: nowrap;
    overflow-x: auto;
}
.partners-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    border-radius: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.partners-nav .nav-link:hover { background: #f1f5f9; color: var(--brand); }
.partners-nav .nav-link.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 14px -6px rgba(109, 40, 217, 0.6);
}

.partners-search { min-width: 240px; }
.partners-search .input-group-text { border-right: 0; color: var(--muted); }
.partners-search .form-control { border-left: 0; }
.partners-filters .form-select { width: auto; min-width: 155px; }

.partners-table { --bs-table-hover-bg: #f8f5ff; }
.partners-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.partners-table tbody td {
    border-bottom: 1px solid #eef2f7;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    vertical-align: middle;
}
.partners-table tbody tr:last-child td { border-bottom: 0; }

.partners-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 14px -6px rgba(109, 40, 217, 0.6);
}
.partners-name-link { color: var(--text); font-weight: 600; text-decoration: none; }
.partners-name-link:hover { color: var(--brand); }

.partners-code {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: 0.4rem;
    background: rgba(109, 40, 217, 0.08);
    color: var(--brand-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.partners-category { font-size: 0.75rem; font-weight: 600; color: #475569; }

.partners-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.partners-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}
.partners-status.dot-active { background: #dcfce7; color: #15803d; }
.partners-status.dot-suspended { background: #fef3c7; color: #b45309; }
.partners-status.dot-inactive { background: #e2e8f0; color: #475569; }
.partners-status.dot-scheduled { background: #dbeafe; color: #1d4ed8; }
.partners-status.dot-expired { background: #fee2e2; color: #b91c1c; }

.partners-savings { font-weight: 700; color: var(--brand); white-space: nowrap; }

.pricing-method {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
}
.pricing-conditions { max-width: 260px; }
.offer-service { max-width: 260px; }
.pricing-preview {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8rem;
}

.partners-actions .btn {
    --bs-btn-padding-x: 0.5rem;
    --bs-btn-padding-y: 0.35rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    color: #475569;
    line-height: 1;
}
.partners-actions .btn:hover {
    background: #f1f5f9;
    border-color: rgba(109, 40, 217, 0.35);
    color: var(--brand);
}

.partners-empty { padding: 3rem 1rem; text-align: center; }
.partners-empty .empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.08);
    color: var(--brand);
    font-size: 1.5rem;
}

.partners-pagination .page-link {
    margin: 0 0.12rem;
    border-color: var(--border);
    border-radius: 0.5rem;
    color: #475569;
}
.partners-pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.users-plan-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eef2f7;
}
.users-plan-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.users-plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.users-plan-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.users-plan-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.users-plan-chip strong { font-weight: 800; }
.users-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.users-table .users-name {
    color: var(--text);
    font-weight: 700;
}
.users-you-badge {
    padding: 0.15rem 0.45rem;
    font-size: 0.6rem;
    font-weight: 700;
}
.users-verified {
    font-size: 0.78rem;
    flex-shrink: 0;
}
.users-contact { max-width: 290px; }
.users-contact-sep { margin: 0 0.2rem; color: #cbd5e1; }

.users-plan-form {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.users-plan-select {
    min-width: 112px;
    border-radius: 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.users-icon-btn {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--muted);
    line-height: 1;
    padding: 0.3rem 0.45rem;
}
.users-icon-btn:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}

.users-plan-pill {
    display: inline-flex;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.users-plan-pill--free { background: #f1f5f9; color: #475569; }
.users-plan-pill--standard { background: #ede9fe; color: #6d28d9; }
.users-plan-pill--premium { background: #fef3c7; color: #b45309; }

.users-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.26rem 0.55rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.users-role-badge--super { background: #fee2e2; color: #b91c1c; }
.users-role-badge--admin { background: rgba(109, 40, 217, 0.1); color: var(--brand-dark); }
.users-role-badge--user { background: #f1f5f9; color: #475569; }

.users-bonus-form {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.users-bonus-input {
    width: 58px;
    padding: 0.2rem 0.25rem;
    border-radius: 0.45rem;
    font-size: 0.75rem;
    text-align: center;
}
.users-bonus-sep { color: #cbd5e1; font-size: 0.75rem; }
.users-bonus-static {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.74rem;
    white-space: nowrap;
}

.users-action-toggle {
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: #fff;
    color: #475569;
    line-height: 1;
    padding: 0.35rem 0.55rem;
}
.users-action-toggle:hover,
.users-action-toggle[aria-expanded="true"] {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.users-action-menu {
    min-width: 235px;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.35);
}
.users-action-menu form { margin: 0; }
.users-action-menu .dropdown-header {
    padding: 0.35rem 0.65rem;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.users-action-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.55rem;
    font-size: 0.82rem;
    font-weight: 500;
}
.users-action-menu .dropdown-item i {
    width: 1.05rem;
    font-size: 0.95rem;
    text-align: center;
}
.users-action-menu .dropdown-item:hover {
    background: #f8f5ff;
    color: var(--brand);
}
.users-action-menu .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.admins-create-card {
    position: sticky;
    top: 88px;
}
#admins-create { scroll-margin-top: 92px; }
@media (max-width: 1199.98px) {
    .admins-create-card { position: static; top: auto; }
}

.admins-role-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eef2f7;
}
.admins-role-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.admins-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admins-role-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.admins-role-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.admins-role-chip strong { font-weight: 800; }
.admins-role-chip--super i { color: #dc2626; }
.admins-role-chip--admin i { color: var(--brand); }
.admins-role-chip.is-active i { color: #fff; }

.admins-security {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed rgba(109, 40, 217, 0.25);
    border-radius: 0.75rem;
    background: #f8f5ff;
    color: #475569;
    font-size: 0.75rem;
}
.admins-security > i {
    color: var(--brand);
    font-size: 1.1rem;
    line-height: 1.2;
}
.admins-security strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #0f172a;
    font-size: 0.78rem;
}
.admins-security p {
    font-size: 0.72rem;
    line-height: 1.45;
}
.admins-login { white-space: nowrap; }
.admins-never {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.events-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eef2f7;
}
.events-status-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.events-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.events-status-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.events-status-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.events-status-chip strong { font-weight: 800; }
.events-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}
.events-status-chip--published .events-status-dot { background: #16a34a; }
.events-status-chip--draft .events-status-dot { background: #d97706; }
.events-status-chip--canceled .events-status-dot { background: #dc2626; }
.events-status-chip.is-active .events-status-dot { background: #fff; }

.events-cover {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    object-fit: cover;
    background: #f1f5f9;
}
.events-cover--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.events-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.events-type--wedding { background: #fce7f3; color: #be185d; }
.events-type--birthday { background: #fef3c7; color: #b45309; }
.events-type--conference { background: #dbeafe; color: #1d4ed8; }
.events-type--graduation { background: #ede9fe; color: #6d28d9; }
.events-type--baby { background: #cffafe; color: #0e7490; }
.events-type--funeral { background: #e2e8f0; color: #475569; }
.events-type--other { background: #f1f5f9; color: #475569; }

.events-location,
.events-slug {
    max-width: 170px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.7rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.events-location i,
.events-slug i { margin-right: 0.15rem; }

.events-owner-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
}
.events-owner-email { max-width: 160px; }

.events-date-main {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.events-date-sub {
    color: var(--muted);
    font-size: 0.68rem;
}
.events-date-end {
    color: var(--muted);
    font-size: 0.66rem;
    white-space: nowrap;
}

.events-guests { min-width: 92px; }
.events-guests-total {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1;
}
.events-guests-label {
    color: var(--muted);
    font-size: 0.66rem;
}
.events-guests-progress {
    height: 5px;
    margin: 0.25rem 0 0.2rem;
    border-radius: 999px;
    background: #f1f5f9;
}
.events-guests-progress .progress-bar {
    border-radius: 999px;
    background: var(--brand);
}
.events-guests-hint {
    color: var(--muted);
    font-size: 0.66rem;
    white-space: nowrap;
}

.events-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.guests-hero-back {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.15s ease;
}
.guests-hero-back:hover { color: #fff; }

.guests-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.guests-invite-link {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    color: var(--brand);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
}
.guests-invite-link:hover { text-decoration: underline; }
.guests-invite-muted {
    color: var(--muted);
    font-size: 0.68rem;
}

.guests-contact {
    color: #475569;
    font-size: 0.76rem;
    line-height: 1.4;
}
.guests-contact + .guests-contact { margin-top: 0.1rem; }

.guests-rsvp {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.guests-rsvp--confirmed { background: #dcfce7; color: #15803d; }
.guests-rsvp--pending { background: #fef3c7; color: #b45309; }
.guests-rsvp--declined { background: #fee2e2; color: #b91c1c; }

.guests-presence {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.guests-presence--present { color: #0e7490; }
.guests-presence--absent { color: #b45309; }
.guests-presence--canceled { color: #b91c1c; }

.guests-date-main {
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.guests-date-sub {
    color: var(--muted);
    font-size: 0.66rem;
    white-space: nowrap;
}

.guests-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.guests-rsvp-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eef2f7;
}
.guests-rsvp-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.guests-rsvp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.guests-rsvp-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.guests-rsvp-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.guests-rsvp-chip strong { font-weight: 800; }
.guests-rsvp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}
.guests-rsvp-chip--confirmed .guests-rsvp-dot { background: #16a34a; }
.guests-rsvp-chip--pending .guests-rsvp-dot { background: #d97706; }
.guests-rsvp-chip--declined .guests-rsvp-dot { background: #dc2626; }
.guests-rsvp-chip.is-active .guests-rsvp-dot { background: #fff; }

@media (max-width: 575.98px) {
    .guests-avatar { width: 32px; height: 32px; }
    .guests-rsvp-strip { gap: 0.3rem; }
    .guests-rsvp-chip { padding: 0.26rem 0.5rem; font-size: 0.7rem; }
}

.subs-id {
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
}
.subs-created {
    color: var(--muted);
    font-size: 0.66rem;
    white-space: nowrap;
}
.subs-billing {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.subs-billing--monthly { background: #e0f2fe; color: #0369a1; }
.subs-billing--annual { background: #ede9fe; color: #6d28d9; }

.subs-period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}
.subs-period-sep {
    color: var(--muted);
    font-weight: 400;
}
.subs-period-hint {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.66rem;
}
.subs-period-hint.is-soon { color: #b45309; font-weight: 600; }
.subs-period-hint.is-expired { color: #b91c1c; font-weight: 600; }
.subs-period-progress {
    width: 120px;
    max-width: 100%;
    height: 4px;
    margin-top: 0.25rem;
    border-radius: 999px;
    background: #f1f5f9;
}
.subs-period-progress .progress-bar {
    border-radius: 999px;
    background: var(--brand);
}

.subs-amount {
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}
.subs-amount-hint {
    color: var(--muted);
    font-size: 0.66rem;
}
.subs-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.subs-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eef2f7;
}
.subs-status-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.subs-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.subs-status-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.subs-status-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.subs-status-chip strong { font-weight: 800; }
.subs-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}
.subs-status-chip--active .subs-status-dot { background: #16a34a; }
.subs-status-chip--pending .subs-status-dot { background: #d97706; }
.subs-status-chip--expired .subs-status-dot { background: #dc2626; }
.subs-status-chip--canceled .subs-status-dot { background: #64748b; }
.subs-status-chip.is-active .subs-status-dot { background: #fff; }

@media (max-width: 575.98px) {
    .subs-status-strip { gap: 0.3rem; }
    .subs-status-chip { padding: 0.26rem 0.5rem; font-size: 0.7rem; }
    .subs-period-progress { width: 100%; }
}

.plans-card {
    position: relative;
    --plan-accent: var(--brand);
    --plan-soft: #f5f3ff;
    --plan-ink: var(--brand-dark);
}
.plans-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    border-radius: 1rem 1rem 0 0;
    background: var(--plan-accent);
}
.plans-card--free { --plan-accent: #94a3b8; --plan-soft: #f1f5f9; --plan-ink: #475569; }
.plans-card--standard { --plan-accent: var(--brand); --plan-soft: #f5f3ff; --plan-ink: var(--brand-dark); }
.plans-card--premium { --plan-accent: #f59e0b; --plan-soft: #fffbeb; --plan-ink: #b45309; }

.plans-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    flex-shrink: 0;
    background: var(--plan-soft);
    color: var(--plan-ink);
    font-size: 1.15rem;
}
.plans-popular {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.plans-slug {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.66rem;
}
.plans-slug code {
    padding: 0.05rem 0.3rem;
    border-radius: 0.35rem;
    background: var(--plan-soft);
    color: var(--plan-ink);
    font-size: 0.66rem;
}

.plans-price {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: var(--plan-soft);
}
.plans-price-main {
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
}
.plans-price-period {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.plans-price-annual {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
}
.plans-price-annual strong { color: var(--text); }
.plans-savings {
    display: inline-flex;
    margin-left: 0.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.64rem;
    font-weight: 800;
}

.plans-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.75rem;
}
.plans-stat {
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}
.plans-stat-value {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.plans-stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.2;
}

.plans-section-label {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.plans-quota-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}
.plans-quota {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}
.plans-quota i {
    margin-top: 0.1rem;
    color: var(--plan-ink);
    font-size: 0.85rem;
}
.plans-quota-label {
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.2;
}
.plans-quota-value {
    overflow: hidden;
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plans-features {
    display: grid;
    gap: 0.25rem;
    margin: 0 0 0.25rem;
    padding: 0;
    list-style: none;
}
.plans-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.35;
}
.plans-features i {
    margin-top: 0.1rem;
    color: var(--plan-ink);
    font-weight: 800;
}
.plans-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.65rem;
}
.plans-cap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 0.64rem;
    font-weight: 700;
}
.plans-cap.is-on { background: #dcfce7; color: #15803d; }

.plans-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem;
    border-top: 1px dashed #eef2f7;
}
.plans-actions .btn { flex: 1 1 auto; }

.plans-form-section { padding-top: 0.85rem; }
.plans-form-section + .plans-form-section {
    margin-top: 0.85rem;
    border-top: 1px dashed #eef2f7;
}
.plans-form-title {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.plans-form-note {
    padding: 0.45rem 0.6rem;
    border-radius: 9px;
    background: #fffbeb;
    color: #b45309;
    font-size: 0.7rem;
    line-height: 1.35;
}
.plans-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.6rem;
    margin-top: 0.75rem;
}
.plans-toggle-grid .form-check-label { font-size: 0.78rem; }
.plans-savebar {
    position: sticky;
    bottom: -1px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 0 0.1rem;
    border-top: 1px solid var(--border);
    background: #fff;
}

@media (max-width: 575.98px) {
    .plans-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plans-stats .plans-stat:last-child { grid-column: span 2; }
    .plans-quota-grid { grid-template-columns: 1fr; }
    .plans-toggle-grid { grid-template-columns: 1fr; }
    .plans-actions .btn { flex: 1 1 100%; }
}

#apparence,
#equipe,
#coordonnees,
#paiements,
#cinetpay,
#legal,
#livre-or,
#automatisations,
#temoignages {
    scroll-margin-top: 88px;
}
.site-nav-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.site-nav-link:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}

.site-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.site-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}
.site-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f5f3ff;
    color: var(--brand);
    font-size: 1.05rem;
}
.site-section-name {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
}
.site-section-sub {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.74rem;
}

.site-subcard {
    padding: 1rem;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #fbfcfe;
}

.site-cta-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f1f5f9;
}
.site-cta-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.site-cta-badge {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.site-member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: var(--brand-dark);
    font-size: 0.9rem;
    font-weight: 800;
}
.site-role-badge {
    display: inline-flex;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: var(--brand-dark);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.site-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 0.4rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
}
.site-bio {
    max-width: 280px;
}
.site-member-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.site-provider-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fff;
}
.site-provider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}
.site-provider-name {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}
.site-provider-meta {
    color: var(--muted);
    font-size: 0.68rem;
}

.site-inline-note {
    padding: 0.65rem 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.45;
}
.site-inline-note a { color: var(--brand); }
.site-inline-note--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}
.site-inline-note code {
    color: #475569;
    font-size: 0.72rem;
}

.site-danger-zone {
    padding: 0.85rem 1rem;
    border: 1px solid #fee2e2;
    border-radius: 14px;
    background: #fff7f7;
}
.site-legal-area {
    font-size: 0.78rem;
    line-height: 1.5;
}
.site-copy-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
}

@media (max-width: 575.98px) {
    .site-section-icon { width: 36px; height: 36px; font-size: 0.95rem; }
    .site-nav-link { padding: 0.28rem 0.5rem; font-size: 0.7rem; }
    .site-cta-preview { aspect-ratio: 4 / 3; }
    .site-bio { max-width: 160px; }
}

.event-create-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.event-create-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    background: #f5f3ff;
    color: var(--brand);
    font-size: 0.95rem;
}
.event-create-section-title {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 800;
}
.event-create-section-sub {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.72rem;
}
.event-create-divider {
    margin: 1.5rem 0;
    border-color: #eef2f7;
    opacity: 1;
}
.event-create-preview {
    padding: 0.55rem 0.7rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #fbfcfe;
    color: #475569;
    font-size: 0.82rem;
}
.event-create-coords {
    padding: 0.7rem 0.85rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fbfcfe;
}
.event-create-tips {
    padding-left: 1.1rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.55;
}
.event-create-tips li { margin-bottom: 0.45rem; }
.event-create-tips li:last-child { margin-bottom: 0; }
.event-create-tips li::marker { color: var(--brand); }
.event-create-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.event-create-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.event-create-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f5f3ff;
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 800;
}
.event-create-steps li .small { line-height: 1.4; }

@media (max-width: 575.98px) {
    .event-create-section-icon { width: 34px; height: 34px; font-size: 0.85rem; }
    .event-create-divider { margin: 1.15rem 0; }
}

.testimonials-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #eef2f7;
}
.testimonials-status-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.testimonials-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.testimonials-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.testimonials-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.testimonials-chip strong { font-weight: 800; }
.testimonials-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748b;
}
.testimonials-chip--published .testimonials-chip-dot { background: #16a34a; }
.testimonials-chip--pending .testimonials-chip-dot { background: #d97706; }
.testimonials-chip.is-active .testimonials-chip-dot { background: #fff; }

.testimonials-table .testimonials-quote {
    max-width: 340px;
}
.testimonials-source {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 700;
}
.testimonials-source--user {
    background: #ecfdf5;
    color: #047857;
}
.testimonials-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    color: #f59e0b;
    font-size: 0.72rem;
    white-space: nowrap;
}
.testimonials-rating span {
    margin-left: 0.25rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
}
.testimonials-quote {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.45;
}
.testimonials-quote > i {
    margin-right: 0.15rem;
    color: var(--brand-light);
    font-size: 1rem;
    vertical-align: -0.1em;
}
.testimonials-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.testimonials-status--published { background: #ecfdf5; color: #047857; }
.testimonials-status--pending { background: #fffbeb; color: #b45309; }
.testimonials-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.testimonials-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.testimonials-author-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fbfcfe;
}
.testimonials-author-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f5f3ff;
    color: var(--brand);
}
.testimonials-rating-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fbfcfe;
}
.testimonials-publish-box {
    padding: 0.75rem 0.9rem;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #fbfcfe;
}

.testimonials-preview {
    padding: 1rem;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}
.testimonials-preview-stars {
    display: inline-flex;
    gap: 0.12rem;
    margin-bottom: 0.6rem;
    color: #f59e0b;
    font-size: 0.82rem;
}
.testimonials-preview-quote {
    margin: 0 0 1rem;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.55;
    white-space: pre-line;
    word-break: break-word;
}
.testimonials-tips {
    padding-left: 1.1rem;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.55;
}
.testimonials-tips li { margin-bottom: 0.4rem; }
.testimonials-tips li:last-child { margin-bottom: 0; }
.testimonials-tips li::marker { color: var(--brand); }

@media (max-width: 575.98px) {
    .testimonials-status-strip { gap: 0.3rem; }
    .testimonials-chip { padding: 0.28rem 0.5rem; font-size: 0.7rem; }
    .testimonials-table .testimonials-quote { max-width: 180px; }
    .testimonials-quote { font-size: 0.75rem; }
    .testimonials-rating-box { align-items: flex-start; }
}

.logs-action-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}
.logs-action-strip-label {
    margin-right: 0.25rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.logs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 240px;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.logs-chip > i { font-size: 0.75rem; }
.logs-chip:hover {
    border-color: rgba(109, 40, 217, 0.35);
    background: #f8f5ff;
    color: var(--brand);
}
.logs-chip.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}
.logs-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 700;
}
.logs-chip.is-active .logs-chip-count {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.logs-context {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logs-role {
    display: inline-flex;
    margin-top: 0.2rem;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
}
.logs-role--super { background: #fff1f2; color: #be123c; }
.logs-role--admin { background: #f5f3ff; color: var(--brand-dark); }
.logs-role--user { background: #f1f5f9; color: #475569; }

.logs-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 220px;
    padding: 0.25rem 0.55rem;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}
.logs-action > i { flex-shrink: 0; font-size: 0.78rem; }
.logs-action > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logs-action--login { border-color: #d1fae5; background: #ecfdf5; color: #047857; }
.logs-action--logout { border-color: #e2e8f0; background: #f8fafc; color: #64748b; }
.logs-action--default { border-color: #ede9fe; background: #f5f3ff; color: var(--brand-dark); }

.logs-session {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}
.logs-session--live {
    background: #ecfdf5;
    color: #047857;
}
.logs-session--live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.logs-ip {
    display: inline-block;
    max-width: 150px;
    overflow: hidden;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: #f8fafc;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .logs-context { max-width: 150px; }
    .logs-action { max-width: 130px; }
    .logs-chip { max-width: 190px; }
    .logs-ip { max-width: 110px; }
}

.report-chart-canvas { position: relative; height: 300px; }
.report-chart-canvas-sm { position: relative; height: 260px; }

.report-empty {
    padding: 2.75rem 1rem;
    text-align: center;
    color: var(--muted);
}
.report-empty .bi {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.9rem;
    color: rgba(109, 40, 217, 0.4);
}

.leaderboard-item { padding: 0.85rem 1rem; }
.leaderboard-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 800;
}
.leaderboard-rank.rank-gold { background: #fef3c7; color: #b45309; }
.leaderboard-rank.rank-silver { background: #e2e8f0; color: #475569; }
.leaderboard-rank.rank-bronze { background: #ffedd5; color: #c2410c; }
.leaderboard-item .progress { background: #f1f5f9; border-radius: 999px; }
.leaderboard-item .progress-bar {
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
    border-radius: 999px;
}

#gateway-config { scroll-margin-top: 92px; }
.gateway-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gateway-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}
.gateway-card.is-active::before {
    background: linear-gradient(90deg, var(--brand-light), var(--brand) 58%, var(--accent));
}
.gateway-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.9rem 1.8rem rgba(15, 23, 42, 0.08) !important;
}

.gateway-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    flex-shrink: 0;
    font-size: 1.35rem;
}
.gateway-logo--cinetpay { background: #eef2ff; color: #4f46e5; }
.gateway-logo--saspay { background: #ecfdf5; color: #059669; }
.gateway-logo--sm {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 1rem;
}

.gateway-mini {
    height: 100%;
    padding: 0.55rem 0.6rem;
    border: 1px solid #eef2f7;
    border-radius: 0.75rem;
    background: #f8fafc;
    text-align: center;
}
.gateway-mini-value {
    overflow: hidden;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gateway-mini-label {
    margin-top: 0.1rem;
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gateway-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.gateway-meta-chip .bi { color: var(--brand); }

.gateway-checklist {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: #fff;
}
.gateway-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 500;
}

.gateway-switch-card {
    display: block;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.gateway-switch-card:hover { border-color: rgba(109, 40, 217, 0.35); }
.gateway-switch-card.is-on {
    border-color: rgba(109, 40, 217, 0.35);
    background: linear-gradient(180deg, #faf7ff, #fff);
    box-shadow: 0 6px 16px -12px rgba(109, 40, 217, 0.8);
}
.gateway-switch-card .form-check-input { cursor: pointer; }
.gateway-switch-card .form-check-input:checked {
    background-color: var(--brand);
    border-color: var(--brand);
}
.gateway-switch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    font-size: 1rem;
}
.gateway-switch-icon--cinetpay { background: #eef2ff; color: #4f46e5; }
.gateway-switch-icon--saspay { background: #ecfdf5; color: #059669; }

.gateway-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.gateway-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex-shrink: 0;
    background: rgba(109, 40, 217, 0.1);
    color: var(--brand);
    font-size: 1.05rem;
}
.gateway-section-icon--saspay { background: #ecfdf5; color: #059669; }
.gateway-section-title { margin: 0 0 0.15rem; font-size: 0.98rem; font-weight: 700; }
.gateway-section-sub { margin: 0; color: var(--muted); font-size: 0.8rem; }
.gateway-divider { margin: 1.75rem 0; border-color: var(--border); opacity: 1; }

.gateway-notice {
    display: flex;
    align-items: flex-start;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.78rem;
}
.gateway-notice .bi { color: var(--brand); }

.gateway-callback {
    height: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: #fff;
}
.gateway-event-chip {
    display: inline-flex;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.65rem;
    font-weight: 600;
}

.gateway-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    border-radius: 0 0 1rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.gateway-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.gateway-provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}
.gateway-provider-pill--cinetpay { background: #eef2ff; color: #4338ca; }
.gateway-provider-pill--saspay { background: #ecfdf5; color: #047857; }
.gateway-provider-pill--manual { background: #f1f5f9; color: #475569; }

.gateway-method-chip {
    display: inline-flex;
    padding: 0.2rem 0.5rem;
    border-radius: 0.45rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.gateway-test-result { min-height: 1.15rem; }

.dashboard-kpi .kpi-value {
    margin-top: 0.1rem;
    font-size: 1.6rem;
}
.dashboard-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}
.dashboard-trend--up { background: #dcfce7; color: #15803d; }
.dashboard-trend--down { background: #fee2e2; color: #b91c1c; }
.dashboard-trend--flat { background: #e2e8f0; color: #475569; }

.dashboard-chart-canvas { position: relative; height: 300px; }
.dashboard-chart-canvas-sm { position: relative; height: 210px; }
.dashboard-donut-wrap { position: relative; height: 220px; }
.dashboard-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}
.dashboard-donut-center strong {
    display: block;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.dashboard-donut-center span {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0;
    border-bottom: 1px dashed #eef2f7;
    font-size: 0.8rem;
}
.plan-legend-row:last-child { border-bottom: 0; }
.plan-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}
.plan-legend-count { margin-left: auto; font-weight: 700; }
.plan-legend-share {
    width: 48px;
    color: var(--muted);
    font-size: 0.72rem;
    text-align: right;
}

.dashboard-health-row + .dashboard-health-row { margin-top: 0.8rem; }
.dashboard-health-progress {
    height: 6px;
    border-radius: 999px;
    background: #f1f5f9;
}
.dashboard-health-progress .progress-bar { border-radius: 999px; }
.dashboard-health-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f7;
    color: var(--muted);
    font-size: 0.75rem;
}

.dashboard-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 6px 14px -8px rgba(109, 40, 217, 0.7);
}
.dashboard-event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(109, 40, 217, 0.1);
    color: var(--brand);
    font-size: 1rem;
}
.dashboard-event-icon--cinetpay { background: #eef2ff; color: #4f46e5; }
.dashboard-event-icon--saspay { background: #ecfdf5; color: #059669; }
.dashboard-event-icon--manual { background: #f1f5f9; color: #475569; }

.dashboard-list-item {
    padding: 0.8rem 1rem;
    border-color: #eef2f7;
}
.dashboard-empty {
    padding: 2rem 1rem;
    color: var(--muted);
    text-align: center;
}
.dashboard-empty .bi {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(109, 40, 217, 0.4);
    font-size: 1.7rem;
}

@media (max-width: 767.98px) {
    .report-chart-canvas { height: 240px; }
    .report-chart-canvas-sm { height: 220px; }
    .dashboard-chart-canvas { height: 240px; }
    .dashboard-donut-wrap { height: 200px; }
}

@media (max-width: 575.98px) {
    .partners-search { min-width: 100%; }
    .partners-filters { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .anim-hidden { opacity: 1; transform: none; }
}

/* ============================================================
   Profil utilisateur
   ============================================================ */
#informations, #securite, #abonnement, #paiements, #temoignages { scroll-margin-top: 92px; }

.profile-hero .profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.55);
    background: #fff;
}
.profile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.profile-hero-side { min-width: 260px; }
.profile-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
    font-size: 0.8rem;
}
.profile-hero-meta span { display: inline-flex; align-items: center; justify-content: flex-end; }
.profile-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
}
.profile-hero-chip--muted { opacity: 0.82; }

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.profile-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.profile-status--active { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.profile-status--trial { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.profile-status--warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.profile-status--muted { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.profile-plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}
.profile-subscription-summary .profile-plan-pill {
    border-color: rgba(109, 40, 217, 0.18);
    background: rgba(109, 40, 217, 0.10);
    color: var(--brand-dark);
}

.profile-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.profile-kpi-sep { color: #cbd5e1; font-weight: 600; }

.profile-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
}
.profile-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 0.6rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.profile-nav-link:hover { background: #f1f5f9; color: var(--brand); }
.profile-nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.profile-card { overflow: hidden; }
.profile-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
}
.profile-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(109, 40, 217, 0.10);
    color: var(--brand);
    font-size: 1.05rem;
    flex-shrink: 0;
}
.profile-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.profile-avatar-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border: 1px solid #eef2f7;
    border-radius: 0.9rem;
    background: #f8fafc;
}
.profile-avatar-preview { flex-shrink: 0; object-fit: cover; }

.profile-info-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    border: 1px dashed #dbe3ee;
    border-radius: 0.65rem;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
}
.profile-info-note .bi { color: #059669; }

.profile-security-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.78rem;
    line-height: 1.45;
}
.profile-security-tip .bi { margin-top: 0.1rem; flex-shrink: 0; }

.profile-subscription-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid #ede9fe;
    border-radius: 1rem;
    background:
        radial-gradient(600px 180px at 108% -30%, rgba(139, 92, 246, 0.16), transparent 60%),
        linear-gradient(135deg, #faf8ff 0%, #f5f3ff 100%);
}
.profile-subscription-main { min-width: 0; }
.profile-subscription-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.9rem;
    flex-shrink: 0;
}
.profile-subscription-meta {
    display: flex;
    gap: 1.5rem;
    text-align: right;
}
.profile-subscription-meta div { display: flex; flex-direction: column; gap: 0.15rem; }
.profile-subscription-meta span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.profile-subscription-meta strong { font-size: 0.9rem; font-weight: 800; color: #1e293b; }
.profile-subscription-equivalent {
    display: inline-block;
    margin-left: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.profile-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.profile-usage-card {
    padding: 1rem;
    border: 1px solid #eef2f7;
    border-radius: 0.85rem;
    background: #f8fafc;
}
.profile-usage-label { color: #475569; font-size: 0.8rem; font-weight: 700; }
.profile-usage-value { color: #1e293b; font-size: 0.8rem; font-weight: 800; }
.profile-usage-hint { margin-top: 0.45rem; color: var(--muted); font-size: 0.72rem; }
.profile-progress {
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.profile-progress .progress-bar {
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 999px;
}

.profile-soft-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border: 1px solid #d1fae5;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.profile-soft-badge--warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.profile-plan-option {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    height: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.profile-plan-option:hover {
    border-color: #c4b5fd;
    box-shadow: 0 10px 22px -16px rgba(109, 40, 217, 0.55);
}
.profile-plan-option.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8fafc;
}
.profile-plan-option.is-disabled:hover {
    border-color: #e2e8f0;
    box-shadow: none;
}
.btn-check:checked + .profile-plan-option {
    border-color: var(--brand);
    background: linear-gradient(180deg, #faf8ff, #fff);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}
.btn-check:focus-visible + .profile-plan-option { outline: 2px solid var(--brand); outline-offset: 2px; }
.profile-plan-option-name { font-size: 0.92rem; font-weight: 800; color: #1e293b; }
.profile-plan-option-price { font-size: 1.15rem; font-weight: 800; color: var(--brand-dark); }
.profile-plan-option-price small { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.profile-plan-option-quota {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #475569;
    font-size: 0.74rem;
}
.profile-plan-option-quota::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c4b5fd;
    flex-shrink: 0;
}
.profile-plan-option-features {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.45rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #e2e8f0;
}
.profile-plan-option-features span {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
}
.profile-plan-option-features .bi { color: #059669; flex-shrink: 0; }

.profile-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #eef2f7;
    border-radius: 0.7rem;
    background: #f8fafc;
}
.profile-choice-row .form-check { margin: 0; }
.profile-payment-methods {
    padding: 0.85rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 0.75rem;
    background: #f8fafc;
}
.profile-payment-unavailable {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    height: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.8rem;
    line-height: 1.45;
}
.profile-payment-unavailable .bi { margin-top: 0.1rem; flex-shrink: 0; }

.profile-plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.1rem;
    border: 1px solid #ddd6fe;
    border-radius: 0.85rem;
    background:
        radial-gradient(420px 140px at 100% -30%, rgba(139, 92, 246, 0.14), transparent 60%),
        linear-gradient(135deg, #faf8ff 0%, #f5f3ff 100%);
}
.profile-plan-summary-label {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.profile-plan-summary strong { color: #1e293b; font-size: 0.92rem; font-weight: 800; }
.profile-plan-summary-total { text-align: right; }
.profile-plan-summary-total strong { color: var(--brand-dark); font-size: 1.1rem; }
.profile-plan-summary-total strong small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.profile-plan-summary-total #summary-note { display: block; color: #059669; font-size: 0.72rem; font-weight: 600; }

.profile-table { --bs-table-bg: transparent; }
.profile-table thead th {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eef2f7;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.profile-table tbody td { padding: 0.85rem 1rem; border-color: #eef2f7; font-size: 0.85rem; }
.profile-table tbody tr:hover { background: #faf8ff; }

.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border: 1px dashed #dbe3ee;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: var(--muted);
    text-align: center;
}
.profile-empty .bi {
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(109, 40, 217, 0.4);
    font-size: 1.8rem;
}

.profile-testimonial-card {
    padding: 0.9rem;
    border: 1px solid #eef2f7;
    border-radius: 0.85rem;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.profile-testimonial-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 10px 20px -18px rgba(109, 40, 217, 0.5);
}
.profile-testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #ec4899);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}
.profile-char-count { font-variant-numeric: tabular-nums; }

@media (max-width: 991.98px) {
    .profile-hero-side { width: 100%; min-width: 0; }
    .profile-hero-meta { text-align: left; }
    .profile-hero-meta span { justify-content: flex-start; }
    .profile-subscription-summary { flex-direction: column; }
    .profile-subscription-side { align-items: flex-start; width: 100%; }
    .profile-subscription-meta { text-align: left; }
}

@media (max-width: 767.98px) {
    .profile-usage-grid { grid-template-columns: 1fr; }
    .profile-card-head { padding: 1rem 1.1rem; }
}

@media (max-width: 575.98px) {
    .profile-hero .profile-avatar { width: 78px; height: 78px; }
    .profile-subscription-meta { gap: 1rem; }
    .profile-avatar-panel { align-items: flex-start; }
    .profile-table thead th, .profile-table tbody td { padding-left: 0.75rem; padding-right: 0.75rem; }
    .profile-plan-summary { align-items: flex-start; }
    .profile-plan-summary-total { text-align: left; }
}

/* ============================================================
   Tableau de bord utilisateur
   ============================================================ */
.ud-hero .ud-hero-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 26px -12px rgba(15, 23, 42, 0.55);
    background: #fff;
}
.ud-next-event-wrap { margin-top: 1.6rem; }
.ud-next-event {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    backdrop-filter: blur(6px);
}
.ud-next-event--empty {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
}
.ud-next-event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.15rem;
    flex-shrink: 0;
}
.ud-next-event-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ud-countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.ud-next-event-title { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.ud-next-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
}
.ud-next-event-meta span { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; }
.ud-next-event-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.2rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
}
.ud-next-event-footer span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ud-next-event-footer .btn-light { --bs-btn-color: var(--brand-dark); font-weight: 700; }

.ud-card { overflow: hidden; }
.ud-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid #eef2f7;
}
.ud-soft-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #ede9fe;
    border-radius: 999px;
    background: #faf8ff;
    color: var(--brand);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.ud-chart-wrap { position: relative; height: 300px; }
.ud-chart-wrap--donut { height: 236px; }

.ud-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    border: 1px dashed #dbe3ee;
    border-radius: 0.9rem;
    background: #f8fafc;
    color: var(--muted);
    text-align: center;
}
.ud-empty .bi {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(109, 40, 217, 0.4);
    font-size: 1.9rem;
}
.ud-empty--compact { padding: 2rem 1rem; height: 100%; }

.ud-event-list { display: flex; flex-direction: column; }
.ud-event-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #eef2f7;
    transition: background 0.15s ease;
}
.ud-event-row:last-child { border-bottom: 0; }
.ud-event-row:hover { background: #faf8ff; }
.ud-event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(109, 40, 217, 0.10);
    color: var(--brand);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ud-event-icon--wedding { background: #fdf2f8; color: #db2777; }
.ud-event-icon--birthday { background: #fffbeb; color: #d97706; }
.ud-event-icon--conference { background: #eff6ff; color: #2563eb; }
.ud-event-icon--graduation { background: #ecfdf5; color: #059669; }
.ud-event-icon--baby_shower { background: #f0f9ff; color: #0284c7; }
.ud-event-icon--funeral { background: #f1f5f9; color: #475569; }
.ud-event-icon--other { background: rgba(109, 40, 217, 0.10); color: var(--brand); }

.ud-event-main { flex: 1; min-width: 0; }
.ud-event-title-row { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.ud-event-title { font-size: 0.9rem; font-weight: 700; color: #1e293b; }
.ud-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
}
.ud-event-meta span { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; }
.ud-event-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.72rem;
}
.ud-event-stats span { display: inline-flex; align-items: center; gap: 0.3rem; }
.ud-event-rate { margin-left: auto; color: var(--brand); font-weight: 800; }
.ud-event-progress {
    height: 5px;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.ud-event-progress .progress-bar {
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 999px;
}
.ud-event-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.ud-quota { padding: 0.1rem 0 0.6rem; }
.ud-quota-label { color: #475569; font-size: 0.8rem; font-weight: 700; }
.ud-quota-value { color: #1e293b; font-size: 0.8rem; font-weight: 800; }
.ud-quota-progress {
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.ud-quota-progress .progress-bar {
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 999px;
}
.ud-quota-hint { margin-top: 0.45rem; color: var(--muted); font-size: 0.72rem; }
.ud-plan-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}
.ud-plan-meta div { display: flex; flex-direction: column; gap: 0.1rem; }
.ud-plan-meta span { color: var(--muted); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ud-plan-meta strong { font-size: 0.9rem; font-weight: 800; color: #1e293b; }
.ud-trial-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.7rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.74rem;
    line-height: 1.4;
}
.ud-trial-note .bi { margin-top: 0.1rem; flex-shrink: 0; }

.ud-quick-list { display: flex; flex-direction: column; }
.ud-quick-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.65rem;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s ease;
}
.ud-quick-link:hover { background: #faf8ff; color: var(--brand); }
.ud-quick-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--brand);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.ud-quick-link strong { display: block; font-size: 0.8rem; font-weight: 700; }
.ud-quick-link small { display: block; color: var(--muted); font-size: 0.7rem; }
.ud-quick-link > .bi-chevron-right { color: #cbd5e1; font-size: 0.75rem; }

@media (max-width: 991.98px) {
    .ud-next-event-footer .btn { margin-left: 0 !important; }
}

@media (max-width: 767.98px) {
    .ud-chart-wrap { height: 250px; }
    .ud-chart-wrap--donut { height: 220px; }
    .ud-event-row { flex-wrap: wrap; }
    .ud-event-actions { width: 100%; padding-left: 3.6rem; }
}

@media (max-width: 575.98px) {
    .ud-hero .ud-hero-avatar { width: 64px; height: 64px; }
    .ud-next-event--empty { align-items: flex-start; flex-wrap: wrap; }
    .ud-next-event-head { align-items: flex-start; }
    .ud-event-row { padding: 0.9rem 1rem; }
    .ud-event-actions { padding-left: 0; }
    .ud-event-rate { margin-left: 0; }
}

/* ============================================================
   Module Événements (utilisateur)
   ============================================================ */
.ue-hero-progress {
    max-width: 420px;
    height: 6px;
    margin-top: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    overflow: hidden;
}
.ue-hero-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #fde68a);
}

.ue-filter-card { background: #fff; }
.ue-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 180px auto;
    gap: 0.65rem;
    align-items: center;
}
.ue-search { position: relative; }
.ue-search .bi {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.ue-search .form-control {
    height: 40px;
    padding-left: 2.35rem;
    border-color: var(--border);
    background: #f8fafc;
}
.ue-search .form-control:focus,
.ue-filter-form .form-select:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 0.2rem rgba(109, 40, 217, 0.10);
    background: #fff;
}
.ue-filter-form .form-select {
    height: 40px;
    border-color: var(--border);
    background-color: #f8fafc;
    font-size: 0.85rem;
    color: #475569;
}
.ue-filter-form .btn { height: 40px; }
.ue-status-strip {
    margin-top: 1rem;
    padding-top: 1rem;
}

.ue-card { overflow: visible; transition: box-shadow 0.18s ease; }
.ue-card:hover { box-shadow: 0 20px 40px -26px rgba(15, 23, 42, 0.42) !important; }
.ue-cover-wrap {
    position: relative;
    overflow: hidden;
    border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
}
.ue-cover {
    display: block;
    width: 100%;
    height: 172px;
    object-fit: cover;
}
.ue-cover--placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}
.ue-cover--placeholder::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: -130px 150px 0 rgba(255, 255, 255, 0.08);
}
.ue-cover--placeholder .bi {
    position: relative;
    z-index: 1;
    font-size: 2.7rem;
    opacity: 0.92;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.20));
}
.ue-cover--wedding { background: linear-gradient(135deg, #be185d, #f472b6); }
.ue-cover--birthday { background: linear-gradient(135deg, #b45309, #fbbf24); }
.ue-cover--conference { background: linear-gradient(135deg, #1d4ed8, #60a5fa); }
.ue-cover--graduation { background: linear-gradient(135deg, #047857, #34d399); }
.ue-cover--baby_shower { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.ue-cover--funeral { background: linear-gradient(135deg, #334155, #94a3b8); }
.ue-cover--other { background: linear-gradient(135deg, #5b21b6, #a78bfa); }

.ue-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), transparent 55%, rgba(15, 23, 42, 0.18));
    pointer-events: none;
}
.ue-status,
.ue-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.55);
}
.ue-status--published { background: #dcfce7; color: #15803d; }
.ue-status--draft { background: #fef3c7; color: #b45309; }
.ue-status--canceled { background: #fee2e2; color: #b91c1c; }
.ue-type-badge { background: rgba(255, 255, 255, 0.94); color: #334155; }
.ue-type-badge .bi { color: var(--brand); }

.ue-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 0.85rem;
}
.ue-title {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.ue-past {
    flex-shrink: 0;
    padding: 0.2rem 0.45rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.62rem;
    font-weight: 800;
    white-space: nowrap;
}
.ue-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.75rem;
}
.ue-meta span { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.ue-meta .bi { flex-shrink: 0; color: #94a3b8; }
.ue-meta-location { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ue-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.9rem;
    padding: 0.7rem 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}
.ue-stat-grid div { display: flex; flex-direction: column; gap: 0.12rem; }
.ue-stat-grid strong { color: #1e293b; font-size: 1rem; font-weight: 800; line-height: 1; }
.ue-stat-grid span { color: var(--muted); font-size: 0.68rem; font-weight: 600; }
.ue-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
}
.ue-progress-head strong { color: var(--brand); font-weight: 800; }
.ue-progress {
    height: 6px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}
.ue-progress .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.ue-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 0.8rem 1rem 1rem;
    border-top: 1px solid #eef2f7;
}
.ue-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 31px;
    padding: 0;
}

.ue-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #f5f3ff;
    color: var(--brand);
    font-size: 1.8rem;
}
.ue-empty-copy { max-width: 430px; }

.ue-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}
.ue-pagination-info { color: var(--muted); font-size: 0.78rem; }
.ue-pagination .page-link {
    min-width: 32px;
    margin: 0 0.12rem;
    border-color: var(--border);
    border-radius: 0.5rem;
    color: #475569;
    text-align: center;
}
.ue-pagination .page-link:hover { background: #faf8ff; color: var(--brand); }
.ue-pagination .page-item.active .page-link { border-color: var(--brand); background: var(--brand); color: #fff; }
.ue-pagination .page-item.disabled .page-link { color: #cbd5e1; background: #f8fafc; }

@media (max-width: 1199.98px) {
    .ue-filter-form { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
    .ue-filter-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .ue-filter-form { grid-template-columns: 1fr 1fr; }
    .ue-search { grid-column: 1 / -1; }
    .ue-pagination { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575.98px) {
    .ue-filter-form { grid-template-columns: 1fr; }
    .ue-search { grid-column: auto; }
    .ue-filter-form .btn { grid-column: auto; }
    .ue-cover { height: 150px; }
    .ue-pagination nav { width: 100%; overflow-x: auto; }
}

/* ---------- Création d'événement (utilisateur) ---------- */
.ue-create-required-note {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
}
.ue-create-required-note .bi { color: var(--brand); font-size: 0.48rem; }

.ue-create-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.ue-create-preview-card { overflow: hidden; }
.ue-preview-live {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #15803d;
    font-size: 0.64rem;
    font-weight: 700;
}
.ue-preview-live span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}
.ue-create-preview-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    overflow: hidden;
}
.ue-create-preview-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), transparent 50%, rgba(15, 23, 42, 0.42));
    pointer-events: none;
}
.ue-create-preview-cover .bi {
    z-index: 1;
    color: #fff;
    font-size: 2.8rem;
    opacity: 0.94;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.30));
}
.ue-create-preview-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ue-create-preview-type {
    position: absolute;
    bottom: 0.7rem;
    left: 0.7rem;
    z-index: 3;
    max-width: calc(100% - 1.4rem);
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.60);
}
.ue-create-preview-kicker {
    margin-bottom: 0.25rem;
    color: var(--brand);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.ue-create-preview-title {
    display: -webkit-box;
    margin: 0 0 0.55rem;
    overflow: hidden;
    color: #1e293b;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.ue-create-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.75rem;
}
.ue-create-preview-meta > span { display: flex; align-items: flex-start; gap: 0.4rem; }
.ue-create-preview-meta .bi { flex-shrink: 0; margin-top: 0.1rem; color: #94a3b8; }
.ue-create-preview-meta > span > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ue-create-preview-hint { color: var(--muted); font-size: 0.7rem; }

.ue-create-plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #f5f3ff;
    color: var(--brand);
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}
.ue-create-quota-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}
.ue-create-quota-row strong { color: #1e293b; font-weight: 800; }
.ue-create-quota-progress {
    height: 7px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.ue-create-quota-progress span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.ue-create-quota-hint { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.71rem; line-height: 1.45; }

.ue-create-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ue-create-checklist li { display: flex; align-items: flex-start; gap: 0.55rem; }
.ue-create-checklist > li > .bi { flex-shrink: 0; margin-top: 0.12rem; color: #16a34a; font-size: 0.9rem; }
.ue-create-checklist strong { display: block; color: #334155; font-size: 0.79rem; font-weight: 700; }
.ue-create-checklist span { display: block; margin-top: 0.1rem; color: var(--muted); font-size: 0.71rem; line-height: 1.4; }

.ue-create-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #ddd6fe;
    border-radius: 0.85rem;
    background: #faf8ff;
    color: #5b21b6;
    font-size: 0.73rem;
    line-height: 1.45;
}
.ue-create-note .bi { flex-shrink: 0; margin-top: 0.1rem; }

@media (min-width: 1200px) {
    .ue-create-sidebar { position: sticky; top: 1.25rem; }
}
@media (max-width: 575.98px) {
    .ue-create-preview-cover { height: 155px; }
    .ue-create-required-note { display: none; }
}

/* ============================================================
   Gestion des invités (utilisateur)
   ============================================================ */
.hero-progress-caption {
    max-width: 420px;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.68rem;
    font-weight: 600;
}

.guest-drink-pills { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.guest-drink-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}
.guest-drink-pill .bi { font-size: 0.72rem; }
.guest-drink-pill--alc { background: #fee2e2; color: #b91c1c; }
.guest-drink-pill--soft { background: #dcfce7; color: #15803d; }

.guest-chip-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guest-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.6rem 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
}
.guest-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--muted);
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
}
.guest-chip-remove:hover { background: #fee2e2; color: #b91c1c; }

.guest-drinks-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.guest-drink-col {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    background: #fbfcfe;
    overflow: hidden;
}
.guest-drink-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.guest-drink-cat span { display: inline-flex; align-items: center; gap: 0.35rem; }
.guest-drink-cat strong {
    min-width: 20px;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    text-align: center;
}
.guest-drink-cat--alc { background: #fef2f2; color: #b91c1c; }
.guest-drink-cat--soft { background: #f0fdf4; color: #15803d; }
.guest-drink-empty { margin: 0; padding: 0.85rem 0.75rem; color: var(--muted); font-size: 0.73rem; }

.guest-drink-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.guest-drink-item { border-bottom: 1px solid #eef2f7; }
.guest-drink-item:last-child { border-bottom: 0; }
.guest-drink-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
}
.guest-drink-name { display: block; color: #334155; font-size: 0.78rem; font-weight: 600; overflow-wrap: anywhere; }
.guest-drink-usage { display: block; color: var(--muted); font-size: 0.66rem; }
.guest-drink-actions { display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.guest-drink-actions .users-icon-btn { padding: 0.25rem 0.4rem; font-size: 0.72rem; }
.guest-drink-edit {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0 0.7rem 0.6rem;
}
.guest-drink-edit .form-control { flex: 1 1 7rem; min-width: 0; }
.guest-drink-edit .form-select { flex: 0 0 auto; width: auto; }

.guest-import-help {
    padding: 0.75rem 0.85rem;
    border: 1px solid #ddd6fe;
    border-radius: 0.85rem;
    background: #faf8ff;
}
.guest-import-help code {
    padding: 0.05rem 0.3rem;
    border-radius: 0.3rem;
    background: rgba(109, 40, 217, 0.08);
    color: var(--brand-dark);
    font-size: 0.72rem;
}

.guests-actions { flex-wrap: wrap; }

@media (max-width: 575.98px) {
    .guest-drinks-grid { grid-template-columns: 1fr; }
}

/* ---------- Controle d'entree (scan QR) ---------- */
.profile-hero-chip--live {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(187, 247, 208, 0.5);
    color: #dcfce7;
}
.scan-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.scan-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: scan-pulse 1.6s ease-in-out infinite;
}
@keyframes scan-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.05); }
}
.scan-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 0.5rem;
    border: 1px dashed rgba(109, 40, 217, 0.35);
    border-radius: 1rem;
    background: linear-gradient(180deg, #faf8ff 0%, #f3efff 100%);
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.scan-stage.is-active {
    border-style: solid;
    border-color: rgba(109, 40, 217, 0.15);
    background: #0f172a;
}
.scan-stage #reader { width: 100% !important; }
.scan-stage #reader video,
.scan-stage #reader canvas { border-radius: 0.85rem; }
.scan-stage #reader__dashboard,
.scan-stage #reader__header_message,
.scan-stage #reader__status_span { display: none !important; }
.scan-idle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: center;
}
.scan-idle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 0.35rem;
    border-radius: 1rem;
    background: rgba(109, 40, 217, 0.1);
    color: var(--brand);
    font-size: 1.5rem;
}
.scan-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.76rem;
}
.scan-empty {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px dashed #e2e8f0;
    border-radius: 1rem;
    background: #fbfcfe;
}
.scan-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
    background: rgba(109, 40, 217, 0.08);
    color: var(--brand);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.scan-result {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid;
    border-radius: 1rem;
}
.scan-result--success { background: #f0fdf4; border-color: #bbf7d0; }
.scan-result--success .scan-result-icon { color: #16a34a; }
.scan-result--warning { background: #fffbeb; border-color: #fde68a; }
.scan-result--warning .scan-result-icon { color: #d97706; }
.scan-result--danger { background: #fef2f2; border-color: #fecaca; }
.scan-result--danger .scan-result-icon { color: #dc2626; }
.scan-result-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    font-size: 1.35rem;
    flex-shrink: 0;
}
.scan-result-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0f172a;
    overflow-wrap: anywhere;
}
.scan-result-msg {
    font-size: 0.8rem;
    color: #475569;
    overflow-wrap: anywhere;
}
.scan-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #eef2f7;
    border-radius: 0.8rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.scan-search-item:last-child { margin-bottom: 0; }
.scan-search-item:hover {
    border-color: rgba(109, 40, 217, 0.35);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
@media (max-width: 575.98px) {
    .scan-stage { min-height: 240px; }
    .scan-search-item { flex-direction: column; align-items: stretch; }
    .scan-search-item > .d-flex { justify-content: space-between; }
}

/* ---------- Invitations electroniques ---------- */
.design-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .design-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}
@media (min-width: 1200px) {
    .design-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.design-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    color: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.design-card:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 40, 217, 0.4);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.design-card:focus-within {
    outline: 2px solid rgba(109, 40, 217, 0.55);
    outline-offset: 2px;
}
.design-card.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14), 0 12px 26px rgba(15, 23, 42, 0.06);
}
.design-card.design-locked { cursor: pointer; opacity: 0.82; }
.design-card.design-locked:hover { opacity: 1; }
.design-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}
.design-preview-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.65rem 0.45rem;
    text-align: center;
}
.design-preview-kicker {
    font-size: 0.46rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    opacity: 0.72;
}
.design-preview-monogram {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    white-space: nowrap;
}
.design-preview-date {
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    opacity: 0.75;
}
.design-preview--classic {
    background: linear-gradient(180deg, #fffdf8 0%, #f5eddd 100%);
    color: #6b4f2a;
}
.design-preview--classic::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(107, 79, 42, 0.35);
    border-radius: 0.45rem;
}
.design-preview--classic .design-preview-monogram {
    font-family: Georgia, 'Times New Roman', serif;
}
.design-preview--elegant {
    background:
        radial-gradient(circle at 20% 15%, rgba(251, 207, 232, 0.9), transparent 55%),
        linear-gradient(160deg, #fdf2f8 0%, #ede9fe 100%);
    color: #7e22ce;
}
.design-preview--elegant::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px dashed rgba(126, 34, 206, 0.35);
    border-radius: 0.5rem;
}
.design-preview--elegant .design-preview-monogram {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}
.design-preview--floral {
    background:
        radial-gradient(circle at 22% 20%, rgba(251, 113, 133, 0.5) 0 5px, transparent 6px),
        radial-gradient(circle at 78% 28%, rgba(74, 222, 128, 0.5) 0 4px, transparent 5px),
        radial-gradient(circle at 30% 82%, rgba(250, 204, 21, 0.45) 0 4px, transparent 5px),
        linear-gradient(160deg, #f0fdf4 0%, #fdf2f8 100%);
    color: #166534;
}
.design-preview--floral .design-preview-monogram {
    font-family: Georgia, 'Times New Roman', serif;
}
.design-preview--modern {
    background: #0f172a;
    color: #f8fafc;
}
.design-preview--modern::after {
    content: '';
    position: absolute;
    right: -22%;
    bottom: -12%;
    width: 85%;
    height: 62%;
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 0.4rem;
    transform: rotate(-18deg);
}
.design-preview--modern .design-preview-monogram {
    letter-spacing: 0.12em;
}
.design-preview--luxury-gold {
    background: #0b0b0f;
    color: #e7c873;
}
.design-preview--luxury-gold::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(231, 200, 115, 0.55);
    border-radius: 0.4rem;
}
.design-preview--luxury-gold .design-preview-monogram {
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.16em;
}
.design-preview--minimal {
    background: #ffffff;
    color: #0f172a;
}
.design-preview--minimal::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 16%;
    width: 30%;
    height: 1px;
    background: #0f172a;
    transform: translateX(-50%);
}
.design-preview--minimal .design-preview-monogram {
    font-weight: 600;
    letter-spacing: 0.14em;
}
.design-selected-mark {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.68rem;
    box-shadow: 0 4px 10px rgba(76, 29, 149, 0.35);
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.design-card.is-selected .design-selected-mark {
    opacity: 1;
    transform: scale(1);
}
.design-lock {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.46);
    color: #fff;
    font-size: 1.15rem;
    backdrop-filter: blur(1px);
}
.design-locked-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--brand);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.design-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0 0.15rem;
    min-width: 0;
}
.design-card-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.design-card-meta .badge { font-size: 0.52rem; }
.design-locked .design-card-name { color: #64748b; }
.btn.is-copied,
.btn.is-copied:hover {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.rollup-preview {
    width: 132px;
    max-width: 100%;
    aspect-ratio: 800 / 1880;
    background-color: #141824;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}
.rollup-preview-bar { width: 100%; height: 9px; }
.rollup-preview-body {
    position: absolute;
    inset: 9px 0 0 0;
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.25), rgba(10, 12, 18, 0.62) 55%, rgba(10, 12, 18, 0.9));
    padding: 0 8px 16px;
}
.rollup-preview-title {
    font-size: 14px;
    line-height: 1.25;
    margin-top: 10px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    overflow-wrap: anywhere;
}
.rollup-preview-date {
    margin-top: 10px;
    font-size: 7.5px;
    line-height: 1.15;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.rollup-preview-line {
    margin-top: 6px;
    font-size: 7px;
    line-height: 1.4;
    color: #dfe6f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
    .design-gallery { gap: 0.6rem; }
    .design-preview-monogram { font-size: 0.9rem; }
    .design-card-name { font-size: 0.7rem; }
}


/* Guestbook public page */
.gb-page{--gb-bg:#f6f4ff;--gb-card:#fff;--gb-border:rgba(109,40,217,.10);--gb-shadow:0 10px 40px rgba(76,29,149,.08);--gb-shadow-sm:0 4px 18px rgba(76,29,149,.06)}
.gb-hero{position:relative;overflow:hidden;padding:3.25rem 0 2.5rem;background:radial-gradient(1200px 520px at 10% -10%,rgba(109,40,217,.18),transparent 55%),radial-gradient(900px 420px at 95% 0%,rgba(236,72,153,.14),transparent 55%),linear-gradient(180deg,#fbfaff 0%,var(--gb-bg) 100%);border-bottom:1px solid rgba(109,40,217,.10)}
.gb-hero::after{content:"";position:absolute;inset:auto -10% -55% auto;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(109,40,217,.10),transparent 68%);pointer-events:none}
.gb-kicker{display:inline-flex;align-items:center;gap:.45rem;padding:.4rem .8rem;border-radius:999px;background:rgba(109,40,217,.08);color:#6d28d9;font-size:.78rem;font-weight:700;letter-spacing:.02em;margin-bottom:1rem}
.gb-title{font-size:clamp(1.75rem,4.2vw,3rem);line-height:1.12;font-weight:800;letter-spacing:-.03em;color:#1f1631;margin-bottom:.65rem}
.gb-sub{font-size:1rem;color:#5b556a;max-width:48rem;margin-bottom:1.25rem}
.gb-meta{display:flex;flex-wrap:wrap;gap:.6rem}
.gb-meta-chip{display:inline-flex;align-items:center;gap:.45rem;padding:.55rem .85rem;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(109,40,217,.10);color:#433a52;font-size:.82rem;font-weight:600;backdrop-filter:blur(6px)}
.gb-meta-chip i{color:#6d28d9}
.gb-cover-wrap{position:relative}
.gb-cover{width:132px;height:132px;object-fit:cover;border-radius:1.5rem;box-shadow:0 18px 45px rgba(76,29,149,.22);border:4px solid rgba(255,255,255,.9)}
.gb-cover-fallback{width:132px;height:132px;border-radius:1.5rem;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#6d28d9,#9333ea 55%,#ec4899);color:#fff;font-size:3rem;box-shadow:0 18px 45px rgba(76,29,149,.22);border:4px solid rgba(255,255,255,.9)}
.gb-body{background:linear-gradient(180deg,var(--gb-bg),#fff 22%);padding:2rem 0 3.5rem}
.gb-panel{background:var(--gb-card);border:1px solid var(--gb-border);border-radius:1.25rem;box-shadow:var(--gb-shadow-sm)}
.gb-panel-header{padding:1.25rem 1.25rem 0}
.gb-panel-body{padding:1.25rem}
@media(min-width:992px){.gb-panel-header{padding:1.5rem 1.5rem 0}.gb-panel-body{padding:1.5rem}}
.gb-section-title{font-size:1.05rem;font-weight:800;color:#201735;margin:0;display:flex;align-items:center;gap:.55rem}
.gb-section-title .bi{width:34px;height:34px;border-radius:.7rem;display:inline-flex;align-items:center;justify-content:center;background:rgba(109,40,217,.10);color:#6d28d9;font-size:1rem}
.gb-count{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;background:#f3efff;color:#5b21b6;font-size:.76rem;font-weight:700}
.gb-empty{padding:3.5rem 1.5rem;text-align:center}
.gb-empty-icon{width:76px;height:76px;border-radius:1.25rem;margin:0 auto 1rem;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(109,40,217,.12),rgba(236,72,153,.10));color:#6d28d9;font-size:2rem}
.gb-msg{padding:1.25rem;border-bottom:1px solid rgba(109,40,217,.08)}
.gb-msg:last-child{border-bottom:0}
.gb-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem;color:#fff;background:linear-gradient(135deg,#6d28d9,#9333ea 50%,#ec4899);box-shadow:0 6px 16px rgba(109,40,217,.28)}
.gb-author{font-weight:700;color:#21183a;font-size:.98rem}
.gb-date{font-size:.78rem;color:#7a728a;white-space:nowrap}
.gb-message{margin:.55rem 0 0;color:#41394f;line-height:1.7;white-space:pre-wrap;word-break:break-word;font-size:.95rem}
.gb-media{margin-top:.9rem}
.gb-photo{width:100%;max-height:420px;object-fit:cover;border-radius:1rem;border:1px solid rgba(109,40,217,.08)}
.gb-video{width:100%;max-height:420px;border-radius:1rem;background:#111;border:1px solid rgba(109,40,217,.08)}
.gb-form-panel{position:sticky;top:1rem;z-index:2}
.gb-form .form-label{font-size:.8rem;font-weight:700;color:#352b45;margin-bottom:.45rem}
.gb-form .form-control{border-radius:.8rem;border-color:#ddd6e8;padding:.72rem .9rem;font-size:.93rem}
.gb-form .form-control:focus{border-color:#8b5cf6;box-shadow:0 0 0 .2rem rgba(109,40,217,.12)}
.gb-form .form-text{font-size:.75rem;color:#7a728a}
.gb-rules{background:linear-gradient(180deg,#faf8ff,#f4efff);border:1px dashed rgba(109,40,217,.28);border-radius:1rem;padding:1rem;margin-bottom:1.25rem}
.gb-rules-title{font-size:.8rem;font-weight:800;color:#4c1d95;margin-bottom:.45rem;display:flex;align-items:center;gap:.4rem}
.gb-rules ul{margin:0;padding-left:1.1rem;color:#5b556a;font-size:.8rem;line-height:1.6}
.gb-captcha{background:#faf8ff;border:1px solid rgba(109,40,217,.12);border-radius:1rem;padding:1rem;margin-bottom:1.25rem}
.gb-submit{padding:.8rem 1rem;border-radius:.85rem;font-weight:700;box-shadow:0 10px 24px rgba(109,40,217,.28)}
.gb-submit:hover{transform:translateY(-1px)}
.gb-note{display:flex;gap:.6rem;align-items:flex-start;padding:.85rem 1rem;border-radius:.9rem;background:#f8f7fb;color:#5d566b;font-size:.8rem;line-height:1.55}
.gb-note i{color:#6d28d9;margin-top:.1rem}
.gb-pagination .page-link{border:0;border-radius:.65rem !important;margin:0 .15rem;color:#5b21b6;font-weight:600;min-width:36px;text-align:center}
.gb-pagination .page-item.active .page-link{background:#6d28d9;color:#fff;box-shadow:0 6px 16px rgba(109,40,217,.28)}
