:root {
    --bg-page: #060606;
    --bg-surface: #101010;
    --bg-surface-soft: #171717;
    --border-soft: rgba(255, 255, 255, 0.08);
    --text-main: #f3f3f3; 
    --text-muted: #b7b7b7;
    --accent-gold: #cba248;
    --accent-gold-soft: rgba(203, 162, 72, 0.2);
    --danger: #ff4d4f;
    --success: #1ecb70;
    --header-height: 62px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    background: radial-gradient(circle at top, #111111 0%, #070707 42%, #050505 100%);
    color: var(--text-main);
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

a {
    color: inherit;
}

#wrapper,
#content {
    background: transparent;
}

#wrapper {
    padding-bottom: 98px;
}

/* Modal « Divers » (#mdllList_subTitle) : icônes Font Awesome alignées */
#mdllList_subTitle .gest-divers-ico {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
}

#mdllList_subTitle .gest-divers-ico i {
    font-size: 1rem;
    line-height: 1;
    color: var(--accent-gold);
}

#mdllList_subTitle .gest-divers-ico--muted i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.05rem;
}

/* Divers : fond sombre + textes clairs (lisibles sur thème GEST) */
#mdllList_subTitle .modal-content {
    background: #14141a !important;
    border: 1px solid rgba(203, 162, 72, 0.35) !important;
}

#mdllList_subTitle .emPage___profile.bg-white {
    background: transparent !important;
}

#mdllList_subTitle .emBody__navLink.with__border .item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

#mdllList_subTitle .emBody__navLink .nav-link {
    background: transparent !important;
}

/* Divers : textes plus compacts */
#mdllList_subTitle .emBody__navLink .txt h3 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin: 0 0 2px !important;
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

#mdllList_subTitle .emBody__navLink .txt p {
    font-size: 0.68rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

#mdllList_subTitle a.gest-divers-close {
    cursor: pointer;
}

/* Modal « Affichage » (#mdllList_affiche) : même traitement que Divers */
#mdllList_affiche .gest-divers-ico {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
}

#mdllList_affiche .gest-divers-ico i {
    font-size: 1rem;
    line-height: 1;
    color: var(--accent-gold);
}

#mdllList_affiche .gest-divers-ico--muted i {
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.05rem;
}

#mdllList_affiche .modal-content {
    background: #14141a !important;
    border: 1px solid rgba(203, 162, 72, 0.35) !important;
}

#mdllList_affiche .emPage___profile.bg-white {
    background: transparent !important;
}

#mdllList_affiche .emBody__navLink.with__border .item {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

#mdllList_affiche .emBody__navLink .nav-link {
    background: transparent !important;
}

#mdllList_affiche .emBody__navLink .txt h3 {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    margin: 0 0 2px !important;
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

#mdllList_affiche .emBody__navLink .txt p {
    font-size: 0.68rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

#mdllList_affiche a.gest-divers-close {
    cursor: pointer;
}

/* Historique (compteur_pm) : bloc stats sur la page */
.gest-historique-counter-panel {
    margin: 0 12px 18px;
    padding: 14px 12px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(203, 162, 72, 0.38);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.gest-historique-counter-head {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gest-historique-counter-meta {
    margin: 0 0 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(203, 162, 72, 0.95);
}

.gest-historique-counter-total {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f3e6c8;
    line-height: 1.2;
}

.gest-historique-counter-total span {
    display: block;
    margin-top: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.gest-historique-counter-block {
    margin-top: 14px;
}

.gest-historique-counter-block-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.gest-historique-counter-sub {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.78);
}

.gest-historique-counter-wrap {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.gest-historique-counter-wrap .em__actions {
    padding-top: 0 !important;
}

/* Bandeau date + retour (carte historique & page historique PM) */
.gest-history-banner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 14px 14px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(32, 29, 24, 0.97) 0%, rgba(10, 9, 8, 0.99) 100%);
    border: 1px solid rgba(203, 162, 72, 0.45);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gest-history-banner--pm {
    margin-left: 12px;
    margin-right: 12px;
}

.gest-history-banner-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.gest-history-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #141414;
    background: linear-gradient(135deg, #d6b15f 0%, var(--accent-gold) 55%, #aa8235 100%);
    box-shadow: 0 2px 10px rgba(203, 162, 72, 0.4);
}

.gest-history-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gest-history-date {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f3e6c8;
    line-height: 1.2;
}

.gest-history-slot {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(203, 162, 72, 0.95);
}

.gest-history-back {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    align-self: center;
    padding: 11px 16px;
    min-height: 44px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #141414 !important;
    background: linear-gradient(135deg, #e4c878 0%, var(--accent-gold) 45%, #b8924a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.gest-history-back i {
    font-size: 1.05rem;
    line-height: 1;
}

.gest-history-back:hover,
.gest-history-back:focus {
    color: #141414 !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(203, 162, 72, 0.35);
    filter: brightness(1.05);
    outline: none;
}

.gest-history-back:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

@media (max-width: 400px) {
    .gest-history-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .gest-history-back {
        width: 100%;
        justify-content: center;
    }
}

/* Champ invisible scan bracelet / QR (lecture au clavier) */
.gest-scan-wedge-input {
    position: fixed !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    z-index: 2;
}

.gest-scan-alert {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gest-scan-alert[hidden] {
    display: none !important;
}

.gest-scan-alert__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    border: 0;
    cursor: pointer;
}

.gest-scan-alert__box {
    position: relative;
    max-width: 320px;
    width: 100%;
    padding: 18px 16px 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e1e26, #16161c);
    border: 1px solid rgba(203, 162, 72, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    text-align: center;
}

.gest-scan-alert__msg {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.gest-scan-alert__ok {
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    background: linear-gradient(180deg, #e8c97a, var(--accent-gold));
    color: #1a1208;
}

.main_haeder,
.main_header {
    position: sticky;
    top: 0;
    z-index: 1040;
    min-height: var(--header-height);
    padding: 10px 14px;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main_haeder::after,
.main_header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 20%, #e6cb86 50%, var(--accent-gold) 80%, transparent 100%);
}

.main_haeder .em_brand img,
.main_header .em_brand img {
    max-height: 34px;
    object-fit: contain;
}

.main_haeder .em_side_left,
.main_haeder .em_side_right,
.main_header .em_side_left,
.main_header .em_side_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main_haeder {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main_haeder .em_brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gest-header-icon-link {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: #d4b66e;
}

.gest-open-barrier-btn {
    border-radius: 999px !important;
    padding: 4px 8px !important;
    min-height: 30px !important;
    height: 30px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    letter-spacing: 0.04em;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px;
}

.gest-open-barrier-btn i {
    font-size: 11px !important;
    margin: 0 !important;
}

.gest-open-barrier-btn span {
    font-size: 10px !important;
    font-weight: 800 !important;
}

.gest-header-tag {
    position: absolute;
    top: -10px;
    right: -24px;
    color: var(--accent-gold);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(203, 162, 72, 0.55);
    border-radius: 999px;
    padding: 0.12rem 0.28rem;
}

.gest-conso-pill {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(203, 162, 72, 0.45);
    border-radius: 999px;
    padding: 6px 10px;
    color: #e6cc8d;
    background: rgba(203, 162, 72, 0.08);
    font-size: 12px;
}

.main_haeder .message-badge a,
.main_header .message-badge a,
.main_haeder .profile-badge a,
.main_header .profile-badge a {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
}

.main_haeder .badge-count,
.main_header .badge-count {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.npPage_introDefault,
.emPage__public {
    padding-top: 80px;
}

.cover img {
    max-width: 280px;
    width: min(72vw, 280px);
}

.cover p {
    color: var(--accent-gold) !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.alert {
    border: 1px solid var(--border-soft);
}

.form-control,
.custom-select {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
}

.form-control:focus,
.custom-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(203, 162, 72, 0.2) !important;
    border-color: var(--accent-gold) !important;
}

.form-group label,
.label,
.color-text {
    color: var(--text-muted) !important;
}

.btn.bg-primary,
.btn.btn-primary,
.bg-primary {
    background: linear-gradient(135deg, #d6b15f 0%, var(--accent-gold) 55%, #aa8235 100%) !important;
    border: none !important;
    color: #141414 !important;
    font-weight: 700;
}

.btn.bg-red,
.btn.bg-green,
.btn.bg-yellow,
.btn.bg-blue,
.btn.bg-pink,
.btn.bg-purple {
    border: none !important;
}

.emContent_listJobs,
.emPage___profile,
.modal-content,
.vestiaire-info,
.history-header {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(11, 11, 11, 0.96)) !important;
    border: 1px solid var(--border-soft) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.em__itemList_jobs {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.em__itemList_jobs:hover {
    border-color: rgba(203, 162, 72, 0.45) !important;
    transform: translateY(-1px);
}

.entry-count {
    background: rgba(203, 162, 72, 0.2) !important;
    border-color: rgba(203, 162, 72, 0.45) !important;
    color: #f2ddab !important;
}

#filters .filter-button {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

#filters .filter-button.active {
    background: rgba(203, 162, 72, 0.22) !important;
    border-color: rgba(203, 162, 72, 0.7) !important;
    color: #f2ddb0 !important;
}

.em__actions .btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-height: 84px;
}

.em__actions .btn span {
    color: #dfdfdf;
    font-weight: 600;
}

.em__actions .icon {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.em_main_footer {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100 !important;
    min-height: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(6, 6, 6, 0.97) !important;
    backdrop-filter: blur(10px);
    padding: 0.3rem 0 !important;
}

.qr-code-top-menu {
    position: fixed;
    right: 8px;
    bottom: 72px;
    z-index: 1110;
}

.qr-code-top-menu .btn_navLink {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d6b15f 0%, var(--accent-gold) 55%, #aa8235 100%) !important;
    color: #141414 !important;
    border: none !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qr-code-top-menu .btn_navLink i {
    font-size: 1rem;
}

.em_body_navigation {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.em_body_navigation .item_link {
    flex: 1 !important;
    text-align: center !important;
}

.em_body_navigation .item_link a,
.em_body_navigation .btn_navLink {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    color: #9f9f9f !important;
    transition: all 0.3s ease !important;
    padding: 0.25rem !important;
    border-radius: 8px !important;
    min-height: 38px !important;
    background: transparent !important;
}

.em_body_navigation .item_link a:hover,
.em_body_navigation .item_link a:active,
.em_body_navigation .item_link a.active,
.em_body_navigation .btn_navLink:hover,
.em_body_navigation .btn_navLink:active,
.em_body_navigation .btn_navLink.active {
    color: var(--accent-gold) !important;
    transform: none !important;
}

.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    font-size: 0.86rem;
    margin-bottom: 0.08rem;
    transition: all 0.3s ease;
}

.em_body_navigation .item_link .icon_active {
    display: none !important;
}

.em_body_navigation .item_link a:hover .icon_current,
.em_body_navigation .item_link a:active .icon_current,
.em_body_navigation .item_link a.active .icon_current {
    display: none !important;
}

.em_body_navigation .item_link a:hover .icon_active,
.em_body_navigation .item_link a:active .icon_active,
.em_body_navigation .item_link a.active .icon_active {
    display: block !important;
    color: var(--accent-gold) !important;
}

.em_body_navigation .item_link .txt__tile {
    font-size: 0.56rem !important;
    font-weight: 500 !important;
    margin-top: 0.04rem !important;
    line-height: 1.05 !important;
}

.modal-header h1,
.modal-header h2,
.modal-header h3 {
    color: var(--accent-gold) !important;
}

.modal-body,
.modal-footer {
    background: transparent !important;
}

/*
 * Au-dessus du footer fiche client (.gest-client-footer-bar z-index: 10050)
 * et de tout bandeau fixe similaire.
 */
.modal-backdrop {
    z-index: 10990 !important;
}

.modal {
    z-index: 11000 !important;
}

.history-back-btn {
    border: 1px solid var(--border-soft) !important;
}

.wyylde-badge {
    border-color: rgba(203, 162, 72, 0.55) !important;
    color: #e4cb8a !important;
    box-shadow: none !important;
}

.wyylde-badge:hover {
    background: rgba(203, 162, 72, 0.08) !important;
}

.tab__line.four_item .nav-link {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #d1d1d1;
    background: rgba(255, 255, 255, 0.03);
}

.tab__line.four_item .nav-link.active {
    background: rgba(203, 162, 72, 0.2) !important;
    border-color: rgba(203, 162, 72, 0.6);
    color: #f2ddb0 !important;
}

.gest-modal-header {
    border-bottom: 1px solid rgba(203, 162, 72, 0.25);
}

.gest-preview-card {
    border: 1px solid rgba(203, 162, 72, 0.3) !important;
}

.gest-counter-wrap {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding-top: 14px !important;
}

.gest-counter-wrap .em__actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.gest-counter-wrap .em__actions .btn {
    margin: 0 !important;
    min-height: 76px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4px 2px !important;
}

.gest-counter-wrap .em__actions .icon {
    margin: 0 auto 4px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
}

.gest-counter-wrap .em__actions .btn span {
    font-size: 9px;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.05;
    display: block;
    white-space: nowrap;
    text-align: center;
}

.gest-counter-wrap .em__actions .icon b {
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
}

.vestiaire-info {
    border-radius: 14px !important;
}

.tab__line.four_item {
    margin-top: 6px !important;
}

.tab__line.four_item .nav-pills {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
}

.tab__line.four_item .nav-link {
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 7px 4px !important;
    border-radius: 8px !important;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#searchDefault .input_group {
    border: 1px solid rgba(203, 162, 72, 0.35);
    border-radius: 12px;
    background: rgba(16, 16, 16, 0.9);
    padding: 2px 8px;
}

#searchDefault .input_group .form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

#output,
#outputEmail,
#outputWyylde {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 10px;
}

.gest-modern-title {
    color: var(--accent-gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.gest-gold-outline {
    border: 1px solid rgba(203, 162, 72, 0.58);
    border-radius: 12px;
    background: rgba(203, 162, 72, 0.06);
}

.gest-empty-note {
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 10px;
}

/* Version plus epuree: moins de cards */
.emContent_listJobs,
.emPage___profile,
.history-header {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.em__itemList_jobs {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.em__itemList_jobs:hover {
    transform: none !important;
    border: none !important;
}

.gest-counter-wrap {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding-top: 8px !important;
}

.gest-counter-wrap .em__actions .btn,
.em__actions .btn {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 88px;
}

.gest-counter-wrap .em__actions .icon,
.em__actions .icon {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

.vestiaire-info {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

#output,
#outputEmail,
#outputWyylde {
    margin-top: 6px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.tab__line.four_item .nav-link {
    border-radius: 999px;
}

@media (max-width: 768px) {
    .npPage_introDefault,
    .emPage__public {
        padding-top: 72px;
    }

    .main_haeder,
    .main_header {
        min-height: 56px;
        padding: 8px 10px;
    }

    .gest-open-barrier-btn {
        padding: 3px 7px !important;
        min-height: 28px !important;
        height: 28px !important;
        font-size: 9px !important;
        gap: 3px;
    }

    .gest-open-barrier-btn i {
        font-size: 10px !important;
    }

    .gest-open-barrier-btn span {
        font-size: 9px !important;
    }

    .em_body_navigation .item_link .icon_current,
    .em_body_navigation .item_link .icon_active {
        font-size: 0.8rem;
    }

    .em_body_navigation .item_link .txt__tile {
        font-size: 0.52rem !important;
    }

    .qr-code-top-menu {
        right: 6px;
        bottom: 66px;
    }

    .qr-code-top-menu .btn_navLink {
        width: 36px;
        height: 36px;
    }

    .gest-counter-wrap .em__actions .btn {
        min-height: 70px;
    }

    .gest-counter-wrap .em__actions .icon {
        width: 30px;
        height: 30px;
    }

    .gest-counter-wrap .em__actions .icon b {
        font-size: 13px;
    }

    .tab__line.four_item .nav-link {
        font-size: 9px !important;
        padding: 6px 2px !important;
    }
}

/* Hotfix compact: menu, tabs, compteur */
.gest-counter-wrap .em__actions {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.gest-counter-wrap .em__actions .btn {
    min-height: 70px !important;
    padding: 4px 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.gest-counter-wrap .em__actions .icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    margin: 0 auto 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gest-counter-wrap .em__actions .icon b {
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.gest-counter-wrap .em__actions .btn span {
    font-size: 9px !important;
    line-height: 1.05 !important;
}

.gest-counter-wrap .em__actions .btn button {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    font-size: 14px !important;
    margin-top: 2px !important;
}

.tab__line.four_item .nav-pills {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.tab__line.four_item .nav-link {
    border-radius: 8px !important;
    font-size: 10px !important;
    padding: 7px 3px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tab__line.four_item .nav-link.active {
    background: rgba(203, 162, 72, 0.18) !important;
    border-color: rgba(203, 162, 72, 0.6) !important;
}

.em_main_footer {
    min-height: 58px !important;
    padding: 0.25rem 0 !important;
}

.em_body_navigation .item_link a,
.em_body_navigation .btn_navLink {
    min-height: 36px !important;
    padding: 0.2rem !important;
}

.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    font-size: 0.82rem !important;
    margin-bottom: 0 !important;
}

.em_body_navigation .item_link .txt__tile {
    font-size: 0.54rem !important;
    margin-top: 0 !important;
}

.qr-code-top-menu {
    right: 6px !important;
    bottom: 66px !important;
}

.qr-code-top-menu .btn_navLink {
    width: 36px !important;
    height: 36px !important;
}

.qr-code-top-menu .btn_navLink i {
    font-size: 0.95rem !important;
}

/* Search results (ajax) */
.gest-search-heading {
    color: #05cc47 !important;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
}

.gest-search-link {
    display: block;
    margin-bottom: 8px;
    text-decoration: none !important;
}

.gest-search-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(5, 204, 71, 0.22) !important;
    border-radius: 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px !important;
}

.gest-search-card .txt h3 {
    margin: 0;
    color: #c59b68 !important;
    font-size: 0.92rem;
    font-weight: 700;
}

.gest-search-card .txt p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.75rem;
}

.gest-search-subline {
    color: #05cc47 !important;
    font-size: 0.7rem !important;
}

.gest-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.gest-status-badge.is-valid {
    color: #41bd83;
    border-color: #41bd83;
}

.gest-status-badge.is-watch {
    color: #ff702c;
    border-color: #ff702c;
}

.gest-status-badge.is-banned {
    color: #ff4040;
    border-color: #ff4040;
}

.gest-status-badge.is-new {
    color: #5d6072;
    border-color: #5d6072;
}

.gest-status-badge.is-vip {
    color: #c59b68;
    border-color: #c59b68;
}

.gest-status-badge.is-progress {
    color: #9498ac;
    border-color: #9498ac;
}

.gest-status-badge.is-disabled {
    color: #ff5252;
    border-color: #ff5252;
}

.gest-search-empty {
    text-align: center;
    color: #ff5252;
    font-weight: 700;
    margin: 10px 0;
}

.gest-search-hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    margin: 4px 0 0;
}

/* Counter polish: centered + color by type */
@keyframes gestCounterPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.gest-counter-wrap .em__actions .gest-counter-card {
    min-height: 90px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    text-align: center !important;
}

.gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value {
    margin: 0 auto !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value b {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.gest-counter-wrap .em__actions .gest-counter-card > span {
    display: block;
    margin: 0 !important;
    font-size: 10px !important;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-couple > span {
    color: #c79bf9 !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-couple .gest-counter-value {
    border-color: rgba(175, 106, 255, 0.65) !important;
    background: rgba(175, 106, 255, 0.18) !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-homme > span {
    color: #7bc1ff !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-homme .gest-counter-value {
    border-color: rgba(58, 139, 255, 0.65) !important;
    background: rgba(58, 139, 255, 0.18) !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-femme > span {
    color: #ff89c2 !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-femme .gest-counter-value {
    border-color: rgba(255, 82, 162, 0.65) !important;
    background: rgba(255, 82, 162, 0.18) !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-tgirl > span {
    color: #ffd56f !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.type-tgirl .gest-counter-value {
    border-color: rgba(255, 193, 7, 0.7) !important;
    background: rgba(255, 193, 7, 0.2) !important;
}

.gest-counter-wrap .em__actions .gest-counter-card.is-alert .gest-counter-value,
.gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value.is-alert {
    border-color: rgba(255, 82, 82, 0.95) !important;
    box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.45) inset;
    animation: gestCounterPulse 1s infinite;
}

.gest-counter-add-wrap {
    text-align: center;
    margin-top: 4px;
}

.gest-counter-add {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer;
}

.gest-counter-add.type-couple {
    background: rgba(175, 106, 255, 0.25) !important;
    border-color: rgba(175, 106, 255, 0.65) !important;
}

.gest-counter-add.type-homme {
    background: rgba(58, 139, 255, 0.25) !important;
    border-color: rgba(58, 139, 255, 0.65) !important;
}

.gest-counter-add.type-femme {
    background: rgba(255, 82, 162, 0.25) !important;
    border-color: rgba(255, 82, 162, 0.65) !important;
}

.gest-counter-add.type-tgirl {
    background: rgba(255, 193, 7, 0.25) !important;
    border-color: rgba(255, 193, 7, 0.75) !important;
}

/* Final compact tuning: footer menu icons */
.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    font-size: 0.7rem !important;
    line-height: 1 !important;
}

.em_body_navigation .item_link a,
.em_body_navigation .btn_navLink {
    min-height: 34px !important;
    padding: 0.16rem !important;
}

.qr-code-top-menu .btn_navLink {
    width: 32px !important;
    height: 32px !important;
}

.qr-code-top-menu .btn_navLink i {
    font-size: 0.82rem !important;
    line-height: 1 !important;
}

@media (max-width: 768px) {
    .em_body_navigation .item_link .icon_current,
    .em_body_navigation .item_link .icon_active {
        font-size: 0.66rem !important;
    }

    .em_body_navigation .item_link a,
    .em_body_navigation .btn_navLink {
        min-height: 32px !important;
        padding: 0.14rem !important;
    }
}

/* ===== Final UI pass ===== */

/* Compteur: pleine largeur + centré + chiffres plus gros */
.gest-counter-wrap {
    width: calc(100% - 12px) !important;
    max-width: 100% !important;
    margin: 6px auto 0 !important;
    padding: 8px 4px !important;
}

.gest-counter-wrap .em__actions {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.gest-counter-wrap .em__actions .gest-counter-card {
    min-height: 102px !important;
    padding: 8px 4px !important;
}

.gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value {
    width: 46px !important;
    height: 46px !important;
}

.gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value b {
    font-size: 19px !important;
}

.gest-counter-wrap .em__actions .gest-counter-card > span {
    min-height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
}

/* Barre au-dessus du menu et sous filtres */
.em_main_footer {
    border-top: 0 !important;
    box-shadow: none !important;
}

#filters,
.gest-filters-row {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-bottom: 0 !important;
}

#filters::-webkit-scrollbar {
    display: none;
}

.filter-button.is-danger {
    color: #ff6565 !important;
}

/* Menu: icônes encore plus compactes et visibles */
.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    font-size: 0.62rem !important;
    line-height: 1 !important;
    width: 15px;
    height: 15px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.em_body_navigation .item_link a,
.em_body_navigation .btn_navLink {
    min-height: 32px !important;
    padding: 0.1rem !important;
}

.em_body_navigation .item_link .txt__tile {
    font-size: 0.52rem !important;
}

/* Header: bouton ouvrir plus compact */
.gest-open-barrier-btn {
    min-height: 24px !important;
    height: 24px !important;
    padding: 2px 6px !important;
    border-radius: 999px !important;
}

.gest-open-barrier-btn i {
    font-size: 9px !important;
}

.gest-open-barrier-btn span {
    font-size: 8px !important;
    font-weight: 800 !important;
}

/* Recherche: tabs lisibles (plus de PS... / WY...) */
.tab__line.four_item .nav-pills {
    gap: 4px !important;
}

.tab__line.four_item .nav-link {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: keep-all !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    padding: 7px 2px !important;
}

/* Style des listes membres et derniers membres */
.gest-member-row {
    margin-bottom: 10px !important;
}

.gest-member-card,
.client-container {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 10px !important;
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
}

.client-container .txt h3 {
    color: #c59b68 !important;
    margin: 0 !important;
    font-size: 14px !important;
}

.client-container .txt p {
    margin: 2px 0 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 11px !important;
}

.gest-side-right {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.gest-side-right .gest-status-badge {
    margin-left: auto !important;
    flex-shrink: 0;
}

/* Lock status icon at exact same spot, with/without Wyylde pseudo */
.gest-search-card .gest-side-right,
.gest-member-card .gest-side-right {
    position: relative !important;
    min-width: 128px !important;
    padding-right: 24px !important;
    justify-content: flex-end !important;
}

.gest-search-card .gest-side-right .gest-status-badge,
.gest-member-card .gest-side-right .gest-status-badge {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
}

.gest-search-card .gest-side-right .wyylde-badge,
.gest-member-card .gest-side-right .wyylde-badge {
    margin-right: 26px !important;
}

.gest-pin-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #00ced1;
}

.gest-bye-icon {
    width: 14px;
    height: 14px;
}

.gest-last-member-card {
    border-color: rgba(203, 162, 72, 0.35) !important;
}

/* Résultats recherche pseudo/email/wyylde plus stylés */
.gest-search-card {
    border-color: rgba(203, 162, 72, 0.3) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)) !important;
}

.gest-search-card:hover {
    border-color: rgba(203, 162, 72, 0.58) !important;
}

@media (max-width: 768px) {
    .gest-counter-wrap .em__actions .gest-counter-card {
        min-height: 96px !important;
    }

    .gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value {
        width: 40px !important;
        height: 40px !important;
    }

    .gest-counter-wrap .em__actions .gest-counter-card .gest-counter-value b {
        font-size: 17px !important;
    }

    .tab__line.four_item .nav-link {
        font-size: 8.5px !important;
    }
}

/* ---- Stability hotfixes ---- */

/* Menu always visible and non-buggy */
.em_main_footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 56px !important;
    z-index: 1100 !important;
}

.em_body_navigation .item_link .icon_current {
    display: inline-flex !important;
}

.em_body_navigation .item_link .icon_active {
    display: none !important;
}

.em_body_navigation .item_link a.active .icon_current,
.em_body_navigation .item_link a:hover .icon_current {
    display: none !important;
}

.em_body_navigation .item_link a.active .icon_active,
.em_body_navigation .item_link a:hover .icon_active {
    display: inline-flex !important;
}

.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    font-size: 0.58rem !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 1 !important;
}

.em_body_navigation .item_link .txt__tile {
    margin-top: 1px !important;
}

/* Tabs search: readable */
.tab__line.four_item .nav-link {
    font-size: 10px !important;
    padding: 8px 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    letter-spacing: 0 !important;
}

/* Header open button compact */
.gest-open-barrier-btn {
    min-height: 22px !important;
    height: 22px !important;
    padding: 1px 5px !important;
}

.gest-open-barrier-btn i {
    font-size: 8px !important;
}

.gest-open-barrier-btn span {
    font-size: 7px !important;
}

/* Counter: full width and centered labels without weird contour */
.gest-counter-wrap .em__actions .gest-counter-card {
    border: none !important;
    background: rgba(255, 255, 255, 0.015) !important;
}

.gest-counter-wrap .em__actions .gest-counter-card > span {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

/* Modal counter blocks aligned like main counter */
#mdlldel-sortie .em__actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

#mdlldel-sortie .em__actions .btn {
    min-height: 78px !important;
    border-radius: 10px !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 4px !important;
}

#mdlldel-sortie .em__actions .btn .icon {
    margin: 0 auto 4px !important;
}

#mdlldel-sortie .em__actions .btn span {
    text-align: center !important;
    width: 100%;
}

/* Unified status visuals (search + list) */
.gest-search-card.status-banned,
.client-container[data-statut="2"] {
    background: rgba(120, 120, 120, 0.12) !important;
    border-color: rgba(170, 170, 170, 0.42) !important;
    filter: grayscale(0.5);
}

.gest-search-card.status-banned .txt h3,
.client-container[data-statut="2"] .txt h3 {
    text-decoration: line-through !important;
    color: #b7b7b7 !important;
}

.gest-search-card.status-new,
.client-container[data-new="1"] {
    box-shadow: 0 0 0 1px rgba(95, 132, 255, 0.35) inset, 0 0 16px rgba(95, 132, 255, 0.16) !important;
}

.gest-search-card.status-vip,
.client-container[data-statut="6"] {
    border-color: rgba(203, 162, 72, 0.7) !important;
    box-shadow: 0 0 0 1px rgba(203, 162, 72, 0.32) inset !important;
}

.gest-status-badge.is-watch::before {
    content: "⚠ ";
}

/* ===== Ultra fix alignment + consistency ===== */

/* Compteur labels centered under values */
.gest-counter-wrap .em__actions .gest-counter-card span,
#mdlldel-sortie .em__actions .gest-counter-card span,
#mdlldel-sortie .em__actions .btn span {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
}

.gest-counter-wrap .em__actions .gest-counter-card {
    border: 0 !important;
    box-shadow: none !important;
}

/* Filters clean and not broken */
#filters,
.gest-filters-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    align-items: center !important;
    margin: 0 0 10px !important;
    padding: 0 2px 2px !important;
}

#filters .filter-button,
.gest-filters-row .filter-button {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: #d9d9d9 !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    line-height: 1 !important;
}

#filters .filter-button.active,
.gest-filters-row .filter-button.active {
    background: rgba(203, 162, 72, 0.22) !important;
    border-color: rgba(203, 162, 72, 0.58) !important;
    color: #f1dcad !important;
}

/* Menu spacing + icon sizing + no duplicates */
.em_body_navigation .item_link .icon_active {
    display: none !important;
}

.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    font-size: 0.55rem !important;
    width: 14px !important;
    height: 14px !important;
    margin-bottom: 2px !important;
}

.em_body_navigation .item_link .txt__tile {
    margin-top: 3px !important;
    font-size: 0.54rem !important;
}

.em_body_navigation .item_link a,
.em_body_navigation .btn_navLink {
    gap: 2px !important;
    min-height: 38px !important;
    padding: 0.16rem 0.12rem !important;
}

/* Scanner button must stay round */
.qr-code-top-menu .btn_navLink,
.qr-code-top-menu .item_link .btn_navLink {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 999px !important;
    padding: 0 !important;
}

/* Tabs readable */
.tab__line.four_item .nav-pills {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.tab__line.four_item .nav-link {
    font-size: 10px !important;
    padding: 8px 4px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Header open button smaller */
.gest-open-barrier-btn {
    min-height: 20px !important;
    height: 20px !important;
    padding: 1px 4px !important;
    gap: 2px !important;
}

.gest-open-barrier-btn i {
    font-size: 7px !important;
}

.gest-open-barrier-btn span {
    font-size: 7px !important;
}

/* Status badge icon-only (no text next to) */
.gest-status-badge {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 !important;
    font-size: 0 !important;
    border-radius: 999px !important;
    position: relative;
}

.gest-status-badge::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.gest-status-badge.is-valid::before { content: "✓"; color: #41bd83; }
.gest-status-badge.is-watch::before { content: "!"; color: #ffb347; }
.gest-status-badge.is-banned::before { content: "✕"; color: #ff6b6b; }
.gest-status-badge.is-new::before { content: "✦"; color: #8db1ff; }
.gest-status-badge.is-vip::before { content: "★"; color: #e4cb8a; }
.gest-status-badge.is-progress::before { content: "•"; color: #b9bfd4; font-size: 14px; }
.gest-status-badge.is-disabled::before { content: "−"; color: #ff8080; font-size: 14px; }

/* Banned / new / vip / watch card effects */
.gest-search-card.status-banned,
.client-container.status-banned,
.client-container[data-statut="2"] {
    background: rgba(108, 108, 108, 0.14) !important;
    border-color: rgba(170, 170, 170, 0.42) !important;
    filter: grayscale(0.6);
}

.gest-search-card.status-banned .txt h3,
.client-container.status-banned .txt h3,
.client-container[data-statut="2"] .txt h3 {
    color: #b7b7b7 !important;
    text-decoration: line-through !important;
}

.gest-search-card.status-new,
.client-container.status-new,
.client-container[data-new="1"] {
    box-shadow: 0 0 0 1px rgba(109, 140, 255, 0.34) inset, 0 0 14px rgba(109, 140, 255, 0.18) !important;
}

.gest-search-card.status-vip,
.client-container.status-vip,
.client-container[data-statut="6"] {
    border-color: rgba(203, 162, 72, 0.78) !important;
    box-shadow: 0 0 0 1px rgba(203, 162, 72, 0.32) inset !important;
}

.gest-search-card.status-watch,
.client-container.status-watch,
.client-container[data-statut="3"] {
    border-color: rgba(255, 171, 64, 0.7) !important;
}

/* Wyylde badge and entry count polish */
.wyylde-badge {
    border: 1px solid rgba(82, 150, 255, 0.62) !important;
    border-radius: 999px !important;
    padding: 2px 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    color: #79b2ff !important;
    background: rgba(82, 150, 255, 0.08) !important;
}

.entry-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    padding: 0 6px !important;
    margin-left: 6px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    background: rgba(120, 126, 142, 0.25) !important;
    border: 1px solid rgba(165, 173, 196, 0.45) !important;
    color: #e9ecf7 !important;
}

/* Modal counters must match page counters exactly */
#mdlldel-sortie .gest-counter-wrap--modal {
    width: calc(100% - 12px) !important;
    max-width: 100% !important;
    margin: 6px auto 0 !important;
    padding: 8px 4px !important;
    border: 0 !important;
    background: transparent !important;
}

#mdlldel-sortie .gest-counter-wrap--modal .em__actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-card {
    min-height: 102px !important;
    padding: 8px 4px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.015) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
}

#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-value {
    width: 46px !important;
    height: 46px !important;
    margin: 0 auto 5px !important;
}

#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-value b {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #fff !important;
}

#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-card > span {
    width: 100% !important;
    min-height: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ===== RADICAL FINAL OVERRIDES ===== */

/* 1) Status icon for watch: warning sign, not exclamation */
.gest-status-badge.is-watch::before {
    content: "⚠" !important;
}

/* 2) Counters page + modal: strict same design and centered */
.gest-counter-wrap,
#mdlldel-sortie .gest-counter-wrap--modal {
    width: calc(100% - 10px) !important;
    max-width: 100% !important;
    margin: 6px auto !important;
    padding: 6px 3px !important;
    border: 0 !important;
    background: transparent !important;
}

.gest-counter-wrap .em__actions,
#mdlldel-sortie .gest-counter-wrap--modal .em__actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.gest-counter-wrap .em__actions .gest-counter-card,
#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-card {
    min-height: 94px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 6px 3px !important;
}

.gest-counter-wrap .em__actions .gest-counter-value,
#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-value {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 5px !important;
}

.gest-counter-wrap .em__actions .gest-counter-value b,
#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-value b {
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

.gest-counter-wrap .em__actions .gest-counter-card > span,
#mdlldel-sortie .gest-counter-wrap--modal .gest-counter-card > span {
    width: 100% !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 10px !important;
    line-height: 1.08 !important;
}

/* 3) Header open button: much smaller */
.gest-open-barrier-btn {
    min-height: 18px !important;
    height: 18px !important;
    padding: 0 4px !important;
    gap: 2px !important;
    border-radius: 999px !important;
}

.gest-open-barrier-btn i {
    font-size: 7px !important;
}

.gest-open-barrier-btn span {
    font-size: 6px !important;
    letter-spacing: 0.02em !important;
}

/* 4) Tabs: bigger and centered text */
.tab__line.four_item .nav-pills {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.tab__line.four_item .nav-link {
    min-height: 34px !important;
    padding: 8px 4px !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 5) Vestiaire and other thick blocks: thinner */
.vestiaire-info {
    border-width: 1px !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    box-shadow: none !important;
}

/* 6) Remove ugly white separators and menu top bar */
.dividar.border-white {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.em_main_footer,
.em_main_footer.with__text {
    border-top: 0 !important;
    box-shadow: none !important;
}

/* Tabs recherche: pleine largeur + clics actifs */
.tab__line.four_item {
    width: 100% !important;
}

.tab__line.four_item .nav-pills {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.tab__line.four_item .nav-item {
    width: 100% !important;
    min-width: 0 !important;
}

.tab__line.four_item .nav-link {
    width: 100% !important;
    min-height: 36px !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}

/* Ecrans (3 onglets) : même rendu que recherche .four_item */
.tab__line.three_item {
    width: 100% !important;
}

.tab__line.three_item .nav-pills {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
}

.tab__line.three_item .nav-item {
    width: 100% !important;
    min-width: 0 !important;
}

.tab__line.three_item .nav-link {
    width: 100% !important;
    min-height: 36px !important;
    padding: 8px 4px !important;
    font-size: 10px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tab__line.three_item .nav-link.active {
    background: rgba(203, 162, 72, 0.18) !important;
    border-color: rgba(203, 162, 72, 0.6) !important;
}

.tab-content,
.tab-pane {
    position: relative;
    z-index: 1;
}

/* Counter absolute center lock */
.gest-counter-wrap,
#mdlldel-sortie .gest-counter-wrap--modal {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.gest-counter-wrap .em__actions,
#mdlldel-sortie .gest-counter-wrap--modal .em__actions {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: center !important;
    justify-items: stretch !important;
    align-items: stretch !important;
}

.gest-counter-wrap .em__actions > .gest-counter-card,
#mdlldel-sortie .gest-counter-wrap--modal .em__actions > .gest-counter-card {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
}

.gest-counter-wrap .em__actions > .gest-counter-card .gest-counter-value,
#mdlldel-sortie .gest-counter-wrap--modal .em__actions > .gest-counter-card .gest-counter-value {
    margin-left: auto !important;
    margin-right: auto !important;
}

.gest-counter-wrap .em__actions > .gest-counter-card > span,
#mdlldel-sortie .gest-counter-wrap--modal .em__actions > .gest-counter-card > span {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Member action buttons: compact, aligned, cleaner */
.gest-member-actions-wrap {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gest-member-actions-wrap .gest-member-action-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border-radius: 7px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gest-member-actions-wrap .gest-member-action-btn.ml-3 {
    margin-left: 0 !important;
}

.gest-member-actions-wrap .gest-member-action-btn span {
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    text-align: center !important;
    white-space: nowrap;
}

.gest-member-actions-wrap .gest-member-action-btn.is-view {
    background: rgba(41, 187, 118, 0.52) !important;
    border-color: rgba(41, 187, 118, 0.95) !important;
}

.gest-member-actions-wrap .gest-member-action-btn.is-edit {
    background: rgba(255, 193, 7, 0.5) !important;
    border-color: rgba(255, 193, 7, 0.92) !important;
}

.gest-member-actions-wrap .gest-member-action-btn.is-pin {
    background: rgba(58, 139, 255, 0.5) !important;
    border-color: rgba(58, 139, 255, 0.92) !important;
}

.gest-member-actions-wrap .gest-member-action-btn.is-remove {
    background: rgba(255, 82, 82, 0.52) !important;
    border-color: rgba(255, 82, 82, 0.95) !important;
}

.gest-member-actions-wrap .gest-member-action-btn span {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

/* Recherche only: cards not full-width (like carte.php) */
#output .gest-search-link,
#outputEmail .gest-search-link,
#outputWyylde .gest-search-link {
    max-width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Tabs full width — sauf fiche client (onglets horizontaux) */
#pills-tab {
    width: 100% !important;
}

#pills-tab .nav-item {
    width: 100% !important;
    min-width: 0 !important;
}

.gest-client-page .gest-client-tabs-profile #pills-tab.gest-client-nav-profile .nav-item {
    width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

#pills-tab .nav-link {
    width: 100% !important;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.gest-client-page .gest-client-tabs-profile #pills-tab.gest-client-nav-profile .nav-link {
    width: 100% !important;
}

/* Final icon and badge layout parity */
.gest-star-icon {
    width: auto !important;
    height: auto !important;
    object-fit: initial !important;
    font-size: 10px !important;
    color: #e7c770 !important;
}

.gest-search-card,
.client-container {
    position: relative !important;
}

.gest-corner-icon {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    line-height: 1;
}

.gest-corner-icon.star i.gest-star-gold {
    font-size: 11px;
}

.gest-corner-icon.star {
    left: auto;
    right: 6px;
    top: 6px;
}

/* Départ : coin haut droit ; sous l’étoile si les deux sont affichées */
.gest-corner-icon.departed {
    left: auto !important;
    right: 6px !important;
    top: 6px !important;
}

.gest-member-card:has(.gest-corner-icon.star) .gest-corner-icon.departed,
.client-container:has(.gest-corner-icon.star) .gest-corner-icon.departed,
.gest-search-card:has(.gest-corner-icon.star) .gest-corner-icon.departed {
    top: 24px !important;
}

.gest-corner-icon.departed i {
    color: #9fb3d8;
    font-size: 10px;
}

.entry-count.entry-count-corner {
    position: absolute !important;
    right: 8px !important;
    bottom: 6px !important;
    margin: 0 !important;
}

.entry-count.entry-count-corner.gest-entry-count-dash {
    font-weight: 800;
    opacity: 0.92;
}

.gest-type-line-icon {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1;
}

#results .gest-member-row .gest-member-collapse-body {
    padding-top: 5px !important;
    padding-bottom: 8px !important;
}

.gest-member-actions-wrap {
    background: transparent !important;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px !important;
}

.gest-member-action-btn {
    min-height: 30px !important;
    height: 30px !important;
    min-width: 72px;
    border-radius: 9px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
}

.gest-member-action-btn.is-view { min-width: 62px; }
.gest-member-action-btn.is-edit { min-width: 94px; }
.gest-member-action-btn.is-pin { min-width: 94px; }
.gest-member-action-btn.is-remove { min-width: 80px; }

/* Status icon set requested */
.gest-status-badge.is-watch::before { content: "⚠" !important; }
.gest-status-badge.is-banned::before { content: "⛔" !important; }
.gest-status-badge.is-new::before { content: "🚨" !important; color: #ff3b30 !important; }
.gest-status-badge.is-vip::before { content: "★" !important; }
.gest-status-badge.is-status7::before { content: "⦿" !important; color: #8fb4ff; }

.gest-status-badge.is-watch {
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

@keyframes gestNewRedBlink {
    0%, 100% {
        border-color: rgba(255, 59, 48, 0.95);
        box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.72) inset, 0 0 10px rgba(255, 59, 48, 0.45);
    }
    50% {
        border-color: rgba(255, 59, 48, 0.3);
        box-shadow: 0 0 0 1px rgba(255, 59, 48, 0.14) inset, 0 0 2px rgba(255, 59, 48, 0.15);
    }
}

.gest-search-card.status-new,
.client-container.status-new,
.client-container[data-new="1"] {
    border: 1px solid rgba(255, 59, 48, 0.95) !important;
    animation: gestNewRedBlink 1s infinite !important;
}

/* Counter label centering hard lock */
.gest-counter-wrap .em__actions .gest-counter-card {
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    justify-items: center !important;
    align-items: center !important;
}

.gest-counter-wrap .em__actions .gest-counter-card > span {
    justify-self: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Fix final: libelle type centre sous SON compteur */
.gest-counter-wrap .em__actions > a.btn.gest-counter-card,
.gest-counter-wrap .em__actions > button.btn.gest-counter-card {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.gest-counter-wrap .em__actions > a.btn.gest-counter-card > span,
.gest-counter-wrap .em__actions > button.btn.gest-counter-card > span {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    line-height: 1.08 !important;
}

/* Avatar + parity infos for list/search cards */
.gest-search-card .media.align-items-center {
    gap: 10px;
}

.gest-member-avatar-wrap {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(203, 162, 72, 0.55);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gest-member-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gest-member-avatar-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f1d38f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gest-search-card .txt h3 {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gest-type-icon {
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gest-type-icon.type-homme { color: #3b82f6; }
.gest-type-icon.type-femme { color: #ec4899; }
.gest-type-icon.type-couple { color: #10b981; }
.gest-type-icon.type-tgirl { color: #8b5cf6; }
.gest-type-icon.type-default { color: #8b8f9c; }

.gest-cross-icon {
    font-size: 11px !important;
    color: #ff6b6b;
    line-height: 1;
}

.gest-star-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

/* ===== HARD STOP FINAL SIZING ===== */

/* OUVRIR button: very small */
.gest-open-barrier-btn {
    min-height: 16px !important;
    height: 16px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    gap: 1px !important;
}

.gest-open-barrier-btn i {
    font-size: 6px !important;
}

.gest-open-barrier-btn span {
    font-size: 6px !important;
    line-height: 1 !important;
}

/*
 * Menu bas : icônes Font Awesome homogènes.
 * Ne pas forcer display sur les deux calques — sinon icône ×2 (current + active visibles).
 */
.em_body_navigation .item_link .icon_current,
.em_body_navigation .item_link .icon_active {
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    font-size: inherit !important;
}

.em_body_navigation .item_link .icon_current {
    display: inline-flex !important;
}

.em_body_navigation .item_link .icon_active {
    display: none !important;
}

.em_body_navigation .item_link a:hover .icon_current,
.em_body_navigation .item_link a:active .icon_current,
.em_body_navigation .item_link a.active .icon_current {
    display: none !important;
}

.em_body_navigation .item_link a:hover .icon_active,
.em_body_navigation .item_link a:active .icon_active,
.em_body_navigation .item_link a.active .icon_active {
    display: inline-flex !important;
}

.em_body_navigation .item_link .icon_current i,
.em_body_navigation .item_link .icon_active i {
    font-size: 13px !important;
    line-height: 1 !important;
    width: 1.15em !important;
    text-align: center;
}

.em_body_navigation .item_link a,
.em_body_navigation .btn_navLink {
    min-height: 48px !important;
    padding: 0.2rem 0.12rem 0.14rem !important;
    gap: 2px !important;
}

.em_body_navigation .item_link .txt__tile {
    font-size: 0.52rem !important;
    margin-top: 1px !important;
    line-height: 1.05 !important;
}

.qr-code-top-menu .btn_navLink {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 999px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.qr-code-top-menu .btn_navLink i {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* Vestiaire block: lighter and thinner */
.vestiaire-info-compact {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
}

.vestiaire-stats-row {
    gap: 8px;
}

.vestiaire-sep {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
}

.vestiaire-stat-value {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* Liste membre (#results) : léger espace entre les cartes */
#results .gest-member-row {
    margin-bottom: 10px !important;
}

#results .gest-member-row:last-child {
    margin-bottom: 0 !important;
}

#results .gest-member-row .gest-member-card {
    border-radius: 9px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
}

/* Recherche: tighter spacing and smaller search input */
.gest-recherche-tabs {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

#searchDefault,
#searchWyyldeSection {
    margin-top: 4px !important;
    padding-top: 4px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

#searchDefault .input_group .form-control,
#searchWyyldeSection .input_group .form-control {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
}

#searchDefault .input_group .icon svg,
#searchWyyldeSection .input_group .icon svg {
    width: 18px !important;
    height: 18px !important;
}

/* Search headings/messages in tabs */
.gest-search-heading {
    display: inline-flex !important;
    align-items: center;
    margin: 0 0 8px !important;
    padding: 4px 10px !important;
    border: 1px solid rgba(203, 162, 72, 0.5) !important;
    border-radius: 999px !important;
    background: rgba(203, 162, 72, 0.1) !important;
    color: #e7c98a !important;
    font-size: 11px !important;
}

.gest-search-empty,
.gest-search-hint {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
}

.gest-inline-note {
    margin: 6px 0 8px !important;
    color: #d3d7e3 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

/* No-card block unified with search cards */
.gest-nocarte-link {
    margin-bottom: 8px !important;
}

.gest-nocarte-card {
    border-color: rgba(42, 179, 210, 0.5) !important;
    background: linear-gradient(180deg, rgba(42, 179, 210, 0.08), rgba(42, 179, 210, 0.03)) !important;
}

.gest-nocarte-card .txt h3 {
    color: #5fd8f4 !important;
}

.gest-nocarte-card .txt p {
    color: #f1f4fb !important;
}

.gest-nocarte-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 20px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(42, 179, 210, 0.75) !important;
    color: #5fd8f4 !important;
    background: rgba(42, 179, 210, 0.16) !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Client page identity block */
.gest-client-identity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.gest-client-avatar-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gest-client-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gest-client-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #f0f3ff;
    background: linear-gradient(135deg, rgba(92, 116, 181, 0.58), rgba(56, 74, 120, 0.72));
}

.gest-client-main {
    min-width: 0;
}

.gest-client-main h2 {
    margin: 0 !important;
    font-size: 18px !important;
    color: #f8f2df !important;
}

.gest-client-main .gest-client-type {
    margin: 1px 0 0 !important;
    color: #d7dce8 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gest-client-main > span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
}

.gest-client-ages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.gest-client-ages span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #ebeffa;
    font-weight: 700;
}

.gest-client-ages .fa-mars { color: #69a8ff; }
.gest-client-ages .fa-venus { color: #ff7ba8; }

/* ========== Fiche client (client.php) — refonte complète ========== */
.gest-client-page {
    --gest-client-gold: #cba248;
    --gest-client-gold-dim: rgba(203, 162, 72, 0.35);
    --gest-client-surface: rgba(18, 22, 34, 0.92);
    --gest-client-border: rgba(255, 255, 255, 0.1);
    /* Espace pour le footer fixe (select + bouton, comme profil) */
    padding-bottom: 168px;
}

.gest-client-page .em__head {
    background: var(--gest-client-surface) !important;
    border: 1px solid var(--gest-client-border) !important;
    border-radius: 14px !important;
    padding: 14px 14px 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
}

.gest-client-head-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 520px) {
    .gest-client-head-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }
}

.gest-client-status-card {
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--gest-client-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.gest-client-status-card p {
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.gest-client-status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.gest-client-status-badge--ok {
    color: #7dffb3 !important;
    background: rgba(65, 189, 131, 0.18);
    border-color: rgba(65, 189, 131, 0.45);
}

.gest-client-status-badge--danger {
    color: #ff8a8a !important;
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

.gest-client-status-badge--warn {
    color: #ffc46b !important;
    background: rgba(255, 152, 0, 0.16);
    border-color: rgba(255, 152, 0, 0.4);
}

.gest-client-status-badge--muted {
    color: #b8c0d4 !important;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.gest-client-status-badge--premium {
    color: #f8e6c8 !important;
    background: linear-gradient(135deg, rgba(203, 162, 72, 0.28), rgba(80, 60, 30, 0.35));
    border-color: var(--gest-client-gold-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gest-client-status-badge--vip {
    color: #e8c992 !important;
    background: rgba(197, 155, 104, 0.22);
    border-color: rgba(197, 155, 104, 0.45);
}

.gest-client-status-badge--orga {
    color: #ffb347 !important;
    background: rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.35);
}

/* Étoile membre : Font Awesome `fa-star` partout + rendu doré */
.gest-star-gold {
    color: #e5c66b !important;
    text-shadow:
        0 0 12px rgba(212, 175, 55, 0.42),
        0 1px 0 rgba(35, 28, 12, 0.55);
    line-height: 1;
}

/* Badges statut : lisibles sous la fiche client (interdit, à surveiller, etc.) */
.gest-client-page .gest-client-profile-clone .gest-client-status-badge {
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.3;
}

/* Badge « bon conso » (moyenne ≥ 100 € / entrée) */
/* 4e colonne stats : vide ou icône conso (moyenne ≥ 100 € / entrée) */
.gest-client-page .gest-client-profile-clone .gest-client-stat-slot-extra {
    min-width: 0;
}

.gest-client-page .gest-client-profile-clone .gest-client-stat-conso-ok {
    color: #8fd99a !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gest-client-page .gest-client-profile-clone .gest-client-stat-conso-ok i {
    filter: drop-shadow(0 0 6px rgba(129, 217, 154, 0.45));
}

.gest-client-page .gest-client-profile-clone .gest-client-stat-placeholder {
    color: rgba(255, 255, 255, 0.22) !important;
    font-size: 1.35rem !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    letter-spacing: 0;
    user-select: none;
}

.gest-client-page .gest-client-profile-clone .gest-client-stat-placeholder-label {
    color: rgba(255, 255, 255, 0.28) !important;
    font-size: 0.55rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
}

.gest-client-page .gest-client-profile-clone .age-item--muted {
    color: rgba(255, 255, 255, 0.45) !important;
    font-style: normal;
    font-size: 0.84rem;
}

.gest-client-page .gest-client-profile-clone .age-item--muted i {
    color: rgba(255, 255, 255, 0.5) !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-age-type-icons {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
}

.gest-client-page .gest-client-profile-clone .gest-client-age-type-icons .fa-mars {
    color: #5a9ee6 !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-age-type-icons .fa-venus {
    color: #e24a90 !important;
}

.gest-client-ban-meta {
    margin-top: 6px !important;
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.35;
}

.gest-client-ban-meta strong {
    color: #ffc46b !important;
}

.gest-client-ban-meta--alert {
    color: #ff8a8a !important;
    font-weight: 700 !important;
}

.gest-client-scan-error {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    text-align: center;
}

.gest-client-scan-error strong {
    color: #ff7a7a !important;
    letter-spacing: 0.04em;
}

.gest-client-warning-pill-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.gest-client-capture-sub {
    font-size: 13px;
    margin-top: 6px;
    opacity: 0.9;
}

.gest-client-text-danger {
    color: #ff8a8a !important;
}

.gest-client-wyylde-tile-text {
    font-weight: 500;
}

.gest-client-freq-masked strong {
    color: rgba(203, 162, 72, 0.95);
    font-weight: 800;
}

.gest-client-history-limit-note {
    margin: 6px 0 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.gest-client-history-lead {
    margin-bottom: 8px !important;
}

.gest-client-history-years {
    margin: 0 0 10px !important;
    font-size: 12px !important;
    opacity: 0.92;
}

.gest-client-history-list-intro {
    margin: 0 !important;
}

.gest-client-consos-link {
    cursor: pointer;
}

.gest-client-qr-refused {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
}

.gest-client-qr-refused-inner {
    max-width: 400px;
    padding: 28px 22px;
    border-radius: 16px;
    border: 2px solid rgba(220, 53, 69, 0.65);
    background: linear-gradient(180deg, rgba(40, 12, 18, 0.95), rgba(18, 10, 14, 0.98));
    box-shadow: 0 0 32px rgba(220, 53, 69, 0.25);
}

.gest-client-qr-refused-inner h1 {
    color: #ff6b7a !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    margin: 0 0 14px !important;
}

.gest-client-qr-refused-inner p {
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 14px !important;
    margin: 0 0 10px !important;
}

.gest-client-qr-refused-inner .gest-client-btn-retour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 800;
    color: #1a1208 !important;
    background: linear-gradient(180deg, #e8c97a, var(--gest-client-gold));
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 12px;
    text-decoration: none !important;
}

.gest-client-banner {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 13px !important;
    font-weight: 600;
    border: 1px solid transparent;
}

.gest-client-banner--success {
    color: #9ef5c8 !important;
    background: rgba(65, 189, 131, 0.12);
    border-color: rgba(65, 189, 131, 0.35);
}

.gest-client-banner--error {
    color: #ff9a9a !important;
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.4);
}

.gest-client-banner--info {
    color: #b8d4ff !important;
    background: rgba(105, 168, 255, 0.1);
    border-color: rgba(105, 168, 255, 0.3);
}

.gest-client-copy-mail {
    margin: 12px 0;
    text-align: center;
}

.gest-client-copy-mail .btn {
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
}

.gest-client-warnings {
    margin: 10px 0;
}

.gest-client-warning-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 6px 14px 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(220, 90, 90, 0.38);
    background: rgba(220, 53, 69, 0.12);
    color: #ffc4c4;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    line-height: 1.25;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    vertical-align: middle;
}

.gest-client-page .gest-client-profile-clone .gest-client-warning-chip {
    padding: 8px 16px 8px 12px;
    gap: 9px;
    font-size: 12px;
}

.gest-client-warning-chip:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(255, 140, 140, 0.45);
}

.gest-client-warning-chip__icon {
    flex-shrink: 0;
    font-size: 11px;
    opacity: 0.88;
}

.gest-client-page .gest-client-profile-clone .gest-client-warning-chip__icon {
    font-size: 13px;
}

.gest-client-warning-chip__text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    text-align: left;
}

.gest-client-page .gest-client-profile-clone .gest-client-warning-chip__text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

/* Ancien pill (recherche / autres pages) */
.gest-client-warning-pill {
    border: 1px solid rgba(220, 53, 69, 0.45) !important;
    background: rgba(220, 53, 69, 0.1) !important;
    color: #ff8f9a !important;
    padding: 8px 12px !important;
    text-align: center !important;
    cursor: pointer;
    border-radius: 10px !important;
    transition: background 0.2s;
}

.gest-client-warning-pill:hover {
    background: rgba(220, 53, 69, 0.16) !important;
}

.gest-client-warning-pill .gest-client-warning-count {
    color: var(--gest-client-gold) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
}

/* Modal avertissements fiche client */
.gest-client-modal-warnings__dialog {
    max-width: 300px !important;
    margin: 0.5rem auto !important;
}

.gest-client-modal-warnings.gest-modal-gest-dark .modal-content {
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(165deg, #161a22 0%, #0e1016 100%) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden;
}

.gest-client-modal-warnings__head {
    padding: 7px 10px 7px 12px !important;
    border-bottom: 1px solid rgba(203, 162, 72, 0.2) !important;
    background: rgba(203, 162, 72, 0.06) !important;
}

.gest-client-modal-warnings__head .close {
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
    font-size: 1.35rem !important;
    font-weight: 300 !important;
    padding: 0 4px !important;
    margin: 0 !important;
    text-shadow: none !important;
}

.gest-client-modal-warnings__head .close:hover {
    color: #fff !important;
}

.gest-client-modal-warnings__title {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(248, 242, 223, 0.95) !important;
    margin: 0 !important;
}

.gest-client-modal-warnings__body {
    padding: 6px 10px 8px !important;
    max-height: min(58vh, 380px);
}

.gest-client-warning-item {
    padding: 7px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
}

.gest-client-warning-item:last-child {
    border-bottom: none;
}

.gest-client-warning-item__row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.gest-client-warning-item__row--block {
    flex-direction: column;
    gap: 2px;
}

.gest-client-warning-item__k {
    flex-shrink: 0;
    width: 52px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.gest-client-warning-item__v {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
}

.gest-client-warning-item__reason {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.4;
    padding-left: 0;
    margin-top: 2px;
}

.gest-client-warning-item__actions {
    margin-top: 8px;
}

.gest-client-warning-item__delete {
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid rgba(220, 80, 80, 0.5);
    background: rgba(180, 40, 40, 0.35);
    color: #ffc9c9;
    cursor: pointer;
}

.gest-client-modal-warnings__foot {
    padding: 8px 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gest-client-warning-modal-close {
    width: 100%;
    padding: 7px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 8px;
    border: 1px solid rgba(203, 162, 72, 0.35);
    background: rgba(203, 162, 72, 0.1);
    color: var(--gest-client-gold, #d4af37);
    cursor: pointer;
}

.gest-client-warning-modal-close:hover {
    background: rgba(203, 162, 72, 0.18);
    color: #f8f2df;
}

.gest-modal-gest-dark .modal-content {
    background: #12151f !important;
    color: #eef1f8 !important;
    border: 1px solid rgba(220, 53, 69, 0.45) !important;
    border-radius: 14px !important;
}

.gest-modal-gest-dark.gest-modal-gest--neutral .modal-content {
    border-color: rgba(203, 162, 72, 0.4) !important;
}

.gest-modal-gest-dark .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.gest-modal-gest-dark .modal-title {
    color: #f8f2df !important;
    font-weight: 800 !important;
}

.gest-modal-gest-dark .list-group-item {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #eef1f8 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.gest-modal-gest-dark .list-group-item:not(:last-child) {
    border-bottom: 2px solid rgba(220, 53, 69, 0.35) !important;
    margin-bottom: 4px;
    padding-bottom: 14px !important;
}

.gest-modal-gest-dark .close {
    color: #fff !important;
    opacity: 0.85;
}


.gest-client-capture-alert {
    margin: 16px 0;
    padding: 14px 16px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid rgba(220, 53, 69, 0.55);
    background: rgba(40, 12, 18, 0.6);
    color: #ff9a9a !important;
}

.gest-client-capture-alert .gest-client-capture-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 6px;
}

.gest-client-body {
    margin-top: 18px;
}

.gest-client-body .content {
    background: var(--gest-client-surface) !important;
    border: 1px solid var(--gest-client-border) !important;
    border-radius: 14px !important;
    padding: 8px 8px 14px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28) !important;
}

/* Zone onglets : comme le profil, sans « carte » autour du bloc tabs + panneaux */
.gest-client-body .content.gest-client-tabs-shell {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/*
 * Fiche client — onglets & blocs type profil (inclus dans theme-gest : gest extractable seul).
 */
.gest-client-page .gest-client-tabs-compact.tabs-compact {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 4px 0 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(203, 162, 72, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.gest-client-page .gest-client-tabs-compact .tab-btn-compact {
    flex: 1;
    min-width: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.4rem 0.16rem 0.28rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gest-client-page .gest-client-tabs-compact .tab-btn-compact:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.gest-client-page .gest-client-tabs-compact .tab-btn-compact.active {
    color: #fff;
    border-bottom-color: var(--gest-client-gold, #cba248);
}

.gest-client-page .gest-client-tabs-compact .tab-btn-compact i {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

.gest-client-page .gest-client-tabs-compact .tab-btn-compact.active i {
    color: var(--gest-client-gold, #cba248);
}

.gest-client-page .gest-client-tab-panels .tab-content-compact {
    display: none;
    padding: 0.5rem 0.5rem 0.65rem;
}

.gest-client-page .gest-client-tab-panels .tab-content-compact.active {
    display: block;
}

/*
 * Cartes onglets : titres ultra-légers (pas de barre épaisse, quasi texte seul).
 */
.gest-client-page .gest-client-tab-pane-profile .info-section-compact {
    margin-bottom: 0.38rem;
    background: transparent !important;
    border-radius: 0;
    padding: 0 0 0.15rem;
    border: none !important;
    box-shadow: none !important;
}

.gest-client-page .gest-client-tab-pane-profile .section-header-compact {
    display: block;
    margin: 0 0 0.12rem;
    padding: 0;
    border: none;
    border-left: none;
    padding-left: 0;
}

.gest-client-page .gest-client-tab-pane-profile .section-header-compact h3 {
    margin: 0;
    display: inline;
    font-size: 0.58rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    line-height: 1.15;
    border-bottom: 1px solid rgba(203, 162, 72, 0.22);
    padding-bottom: 1px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.gest-client-page .gest-client-tab-pane-profile .section-content-compact {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem !important;
    line-height: 1.45;
}

.gest-client-tabs {
    margin-bottom: 4px !important;
}

/* Onglets « pilules » (ancien style) — hors fiche profil-like */
.gest-client-tabs:not(.gest-client-tabs-profile) .nav-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    padding: 4px !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border-radius: 12px !important;
    border: 1px solid var(--gest-client-border) !important;
}

.gest-client-tabs:not(.gest-client-tabs-profile) .nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.65) !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent !important;
    background: transparent !important;
}

.gest-client-tabs:not(.gest-client-tabs-profile) .nav-pills .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.gest-client-tabs:not(.gest-client-tabs-profile) .nav-pills .nav-link.active {
    color: #1a1208 !important;
    background: linear-gradient(180deg, #e8c97a, var(--gest-client-gold)) !important;
    border-color: rgba(203, 162, 72, 0.6) !important;
    box-shadow: 0 4px 14px rgba(203, 162, 72, 0.25);
}

/* Onglets comme profile.php (tabs-compact / soulignement or) — pas de fond bleu Bootstrap */
.gest-client-page .gest-client-tabs-profile.tabs-compact .gest-client-nav-profile.nav-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.02) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.gest-client-page .gest-client-tabs-profile .nav-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.gest-client-page .gest-client-tabs-profile .nav-link {
    color: rgba(255, 255, 255, 0.58) !important;
    border-radius: 0 !important;
    padding: 0.7rem 0.25rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
    background-color: transparent !important;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
}

.gest-client-page .gest-client-tabs-profile .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.gest-client-page .gest-client-tabs-profile .nav-link.active {
    color: #fff !important;
    background: transparent !important;
    background-color: transparent !important;
    border-bottom-color: var(--gest-client-gold) !important;
    box-shadow: none !important;
}

.gest-client-page .gest-client-tabs-profile .nav-link:focus {
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

.gest-client-page .gest-client-tab-content.tab-content,
.gest-client-page .gest-client-tab-content.tab-content-compact-profile {
    background: transparent !important;
    background-color: transparent !important;
}

.gest-client-tab-content {
    padding: 8px 6px 4px !important;
}

.gest-client-page .tab-content-compact-profile.gest-client-tab-content {
    padding: 1rem 0.65rem 0.5rem !important;
}

.gest-client-panel {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
}

/* Fiche client onglets : ne pas hériter du 13px global sur tout le panneau (texte trop gros) */
.gest-client-page .gest-client-panel.gest-client-tab-pane-profile {
    font-size: inherit !important;
    line-height: inherit !important;
}

.gest-client-panel .size-15,
.gest-client-panel.size-15 {
    color: rgba(255, 255, 255, 0.88) !important;
}

.gest-client-panel strong {
    color: #f8f2df !important;
    font-weight: 700 !important;
}

.gest-client-panel code {
    background: rgba(203, 162, 72, 0.15) !important;
    color: var(--gest-client-gold) !important;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 11px !important;
}

.gest-client-panel center {
    display: block;
    margin: 8px 0;
}

.gest-client-divider {
    display: block;
    text-align: center;
    margin: 10px 0;
    color: var(--gest-client-gold-dim);
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 11px;
}

.gest-client-wyylde-tile {
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-pseudo-display {
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-pseudo-display strong {
    color: #d4af37;
    font-size: 1rem;
    font-weight: 700;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-pseudo-display--simple {
    gap: 0;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-line-non-repondu {
    color: #ffb74d !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

.gest-client-expire-note--standalone {
    margin: 10px 0 6px !important;
    padding: 0 8px !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
}

.gest-client-wyylde-tap-hint {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* Bloc Wyylde comme profil (dégradé or discret) */
.gest-client-page .gest-client-tab-pane-profile .info-section-compact.wyylde-section.gest-client-wyylde-section-profile {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    border-radius: 8px;
    padding: 0.35rem 0.45rem 0.45rem;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-header-content {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.gest-client-page .gest-client-wyylde-section-profile .wyylde-logo {
    height: 22px;
    width: auto;
    max-height: 22px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin: 0;
}

.gest-client-page .gest-client-wyylde-section-profile .section-header-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.35rem;
    border-left: none;
    padding-left: 0;
}

.gest-client-page .gest-client-wyylde-section-profile .section-header-compact h3 {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    height: 22px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 22px;
    border-bottom: none;
    vertical-align: middle;
}

.gest-client-page .gest-client-wyylde-section-profile .gest-client-expire-note {
    text-align: center !important;
}

.gest-client-page .tab__line.gest-client-tabs-profile {
    background: transparent !important;
    background-color: transparent !important;
}

.gest-client-page ul#pills-tab.nav-pills .nav-link.active,
.gest-client-page ul#pills-tab.nav-pills .show > .nav-link {
    background: transparent !important;
    background-color: transparent !important;
    color: #fff !important;
}

.gest-client-wyylde-tile--pending {
    border-color: rgba(255, 165, 0, 0.45);
    background: rgba(255, 165, 0, 0.1);
    color: #ffc46b !important;
}

.gest-client-wyylde-tile--pending:hover {
    background: rgba(255, 165, 0, 0.18);
}

.gest-client-wyylde-tile--no {
    border-color: rgba(255, 68, 68, 0.45);
    background: rgba(255, 68, 68, 0.1);
    color: #ff8a8a !important;
}

.gest-client-wyylde-tile--no:hover {
    background: rgba(255, 68, 68, 0.16);
}

.gest-client-wyylde-tile--ok {
    border-color: rgba(76, 175, 80, 0.45);
    background: rgba(76, 175, 80, 0.1);
    color: #9ef5b4 !important;
}

.gest-client-wyylde-tile--ok:hover {
    background: rgba(76, 175, 80, 0.18);
}

.gest-client-expire-note {
    text-align: center;
    font-size: 11px !important;
    margin-top: 8px !important;
}

.gest-client-expire-note--expired {
    color: #ff8a8a !important;
}

.gest-client-expire-note--ok {
    color: rgba(255, 255, 255, 0.65) !important;
}

.gest-client-history-summary {
    margin-bottom: 12px !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gest-client-border);
}

.gest-client-history-list.emPage__activities._classic {
    padding-top: 0 !important;
}

/* Ligne historique : liste plate (pas de carte), séparateurs discrets */
.gest-client-page .gest-client-history-list .gest-client-history-item.item__activiClassic,
.gest-client-history-list .gest-client-history-item.item__activiClassic {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 10px 0 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item.item__activiClassic:last-child,
.gest-client-history-list .gest-client-history-item.item__activiClassic:last-child {
    border-bottom: none !important;
    padding-bottom: 4px !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .media,
.gest-client-history-list .gest-client-history-item .media {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .media-body,
.gest-client-history-list .gest-client-history-item .media-body {
    width: 100%;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .txt h2,
.gest-client-history-list .gest-client-history-item .txt h2 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f8f2df !important;
    margin: 0 0 6px !important;
    line-height: 1.25 !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .txt h2 strong,
.gest-client-history-list .gest-client-history-item .txt h2 strong {
    color: #fff !important;
    font-weight: 800 !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .txt p,
.gest-client-history-list .gest-client-history-item .txt p {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.88) !important;
    margin: 3px 0 !important;
    line-height: 1.35 !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .sideRight,
.gest-client-history-list .gest-client-history-item .sideRight {
    flex-shrink: 0 !important;
    align-self: center !important;
    color: var(--gest-client-gold) !important;
    font-weight: 800 !important;
    font-size: 13px !important;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .consos,
.gest-client-history-list .gest-client-history-item .consos {
    cursor: pointer;
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(203, 162, 72, 0.45);
    color: var(--gest-client-gold, #cba248) !important;
    white-space: nowrap;
    font-weight: 700;
}

.gest-client-page .gest-client-history-list .gest-client-history-item .gest-client-conso-empty,
.gest-client-history-list .gest-client-history-item .gest-client-conso-empty {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 14px !important;
}

.gest-client-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px !important;
    margin-bottom: 12px !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid var(--gest-client-border) !important;
    border-radius: 12px !important;
}

.gest-client-actions-grid .btn,
.gest-client-actions-grid a .btn {
    flex: 1 1 140px;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    letter-spacing: 0.02em;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gest-client-actions-grid a {
    text-decoration: none !important;
    flex: 1 1 140px;
    display: flex;
}

.gest-client-actions-grid .btn.ml-3 {
    margin-left: 0 !important;
}

/* Footer fiche client = même principe que profile.php (.message-button-container) : bandeau fixe, pas de carte */
.gest-client-page .gest-client-footer-bar.gest-client-footer-profile-match {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10050 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.gest-client-page .gest-client-footer-profile-match .gest-client-message-footer {
    pointer-events: auto;
    padding: 1rem !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
    background: var(--primary-black, #0a0a0a) !important;
    background-color: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.35) !important;
}

.gest-client-page .gest-client-footer-profile-match .gest-client-footer-form {
    margin: 0;
}

.gest-client-page .main_haeder,
.gest-client-page .gest-client-header {
    background: rgba(10, 12, 20, 0.97) !important;
    border-bottom: 1px solid var(--gest-client-border) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gest-client-page .gest-client-back-link {
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 12px 6px 4px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gest-client-page .gest-client-back-link:active {
    background: rgba(255, 255, 255, 0.1) !important;
}

.gest-client-page .gest-client-back-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: rgba(255, 200, 120, 0.95) !important;
}

.gest-client-page .title_page .page_name {
    color: #f8f2df !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.06em;
}

/* Ancien bloc <p> onglet Infos (si encore présent ailleurs) */
.gest-client-page .gest-client-panel > p.size-15.color-text {
    background: rgba(0, 0, 0, 0.22);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
}

.gest-client-stat-msg {
    margin: 12px 0 !important;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gest-client-border);
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
}

.vestiaire-stat-value.is-ok { color: #41bd83; }
.vestiaire-stat-value.is-low { color: #ff6b6b; }
.vestiaire-stat-value.is-used { color: #69a8ff; }

.vestiaire-stat-label {
    font-size: 0.66rem !important;
    color: rgba(255, 255, 255, 0.66) !important;
    line-height: 1.2 !important;
    margin-top: 2px;
}

.alert-vestiaire-compact {
    margin-top: 8px;
    background: rgba(255, 90, 90, 0.2) !important;
    border: 1px solid rgba(255, 90, 90, 0.45) !important;
    color: #ff9090 !important;
    padding: 5px 7px !important;
    border-radius: 6px !important;
    text-align: center;
    font-size: 10px !important;
    font-weight: 700 !important;
}

/* Remove ugly separators and footer top line */
.dividar,
.dividar.border-white {
    border-color: rgba(255, 255, 255, 0.08) !important;
    border-width: 1px !important;
}

.em_main_footer,
.em_main_footer.with__text {
    border-top: 0 !important;
    box-shadow: none !important;
}

/* ========== Fiche client : même structure / design que profile.php (sans mobile-optimized.css) ========== */
.gest-client-page .gest-client-profile-clone.profile-compact {
    min-height: 0;
    background: transparent;
    padding-top: 0;
    padding-bottom: 0;
    margin: 12px -4px 12px;
}

@media (min-width: 480px) {
    .gest-client-page .gest-client-profile-clone.profile-compact {
        margin-left: 0;
        margin-right: 0;
    }
}

/* En-tête fiche : pas de carte — bandeau léger */
.gest-client-page .gest-client-profile-clone .gest-client-profile-top {
    text-align: center;
    padding: 0 0 0.2rem;
    margin: 0 0 4px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-avatar {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(203, 162, 72, 0.4);
    background: #0d0f14;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #cba248 0%, #d4af37 100%);
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-avatar-placeholder span {
    color: #0a0a0a;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-avatar-placeholder--error {
    background: linear-gradient(135deg, #8b2942 0%, #c43c5c 100%);
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-avatar-placeholder--error span {
    color: #fff;
    font-size: 1.35rem;
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-identity {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding-top: 0;
    text-align: center;
}

.gest-client-page .gest-client-profile-clone .profile-stats-under-photo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.28rem 0.08rem 0.22rem;
    margin: 0.65rem 0 0.15rem;
    background: transparent;
    border: none;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 0.3rem;
}

.gest-client-page .gest-client-profile-clone .stat-item-under {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.gest-client-page .gest-client-profile-clone .stat-value-under {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.gest-client-page .gest-client-profile-clone .stat-value-under .stat-unit-under {
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1;
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
}

.gest-client-page .gest-client-profile-clone .stat-value-under.gest-client-stat--zero {
    color: #ff6b6b !important;
    font-weight: 800;
}

.gest-client-page .gest-client-profile-clone .stat-value-under.gest-client-stat--dash {
    color: rgba(203, 162, 72, 0.9) !important;
    font-weight: 800;
}

.gest-client-page .gest-client-profile-clone .stat-value-under.certified {
    color: inherit;
    font-size: 0.88rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gest-client-page .gest-client-profile-clone .stat-value-under.certified .gest-star-gold {
    font-size: 0.92rem;
}

.gest-client-page .gest-client-profile-clone .stat-label-under {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.gest-client-page .gest-client-profile-clone .profile-name-compact,
.gest-client-page .gest-client-profile-clone .gest-client-pseudo {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    text-align: center;
    letter-spacing: 0.01em;
}

.gest-client-page .gest-client-profile-clone .gest-client-pseudo .gest-client-star-inline.gest-star-gold {
    font-size: 0.82em;
    margin-left: 3px;
    vertical-align: middle;
}

.gest-client-page .gest-client-profile-clone .age-display-with-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.gest-client-page .gest-client-profile-clone .age-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    font-weight: 500;
}

.gest-client-page .gest-client-profile-clone .age-item .fa-mars {
    color: #4a90e2;
}

.gest-client-page .gest-client-profile-clone .age-item .fa-venus {
    color: #e24a90;
}

.gest-client-page .gest-client-profile-clone .age-item .fa-user {
    color: rgba(255, 255, 255, 0.45);
}

.gest-client-page .gest-client-profile-clone .type-display {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    margin-bottom: 0;
    text-align: center;
    font-weight: 500;
}

.gest-client-page .gest-client-profile-clone .profile-scan-error,
.gest-client-page .gest-client-profile-clone .gest-client-scan-error {
    margin: 0.35rem 0 0.5rem;
    font-size: 1rem;
    color: #ff6b6b !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-profile-status-wrap {
    margin-top: 0.75rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.gest-client-page .gest-client-profile-clone .gest-client-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 7px;
}

.gest-client-page .gest-client-profile-clone .gest-client-status-line .gest-client-ban-meta {
    flex-basis: 100%;
    margin: 0.2rem 0 0 !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-status-line .gest-client-presence-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.26rem;
    margin-top: 0.32rem !important;
    padding: 0.28rem 0.56rem;
    border-radius: 999px;
    border: 1px solid rgba(67, 215, 137, 0.38);
    background: rgba(18, 46, 33, 0.45);
    color: #dafbe9 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    box-shadow: none;
}

/* Fallback global: certains contextes n'ont pas les wrappers .gest-client-page/.gest-client-profile-clone */
.gest-client-presence-pill {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    margin-top: 0.36rem !important;
    padding: 0.30rem 0.58rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(67, 215, 137, 0.42) !important;
    background: rgba(18, 46, 33, 0.48) !important;
    color: #e2fff0 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    box-shadow: none !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-presence-pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6be9b4;
    box-shadow: none;
    animation: none;
}

.gest-client-presence-pill__dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #6be9b4 !important;
    box-shadow: none !important;
    animation: none !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-presence-pill__label {
    color: #b8ffd8;
    font-weight: 800;
}

.gest-client-presence-pill__label {
    color: #c4ffdf !important;
    font-weight: 900 !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-presence-pill__sep {
    opacity: 0.52;
}

.gest-client-presence-pill__sep {
    opacity: 0.6 !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-presence-pill__text {
    color: #e8fff2;
    font-weight: 700;
}

.gest-client-presence-pill__text {
    color: #f2fff8 !important;
    font-weight: 700 !important;
}

.gest-client-page .gest-client-profile-clone .gest-client-presence-pill__text--money {
    color: #ffe082;
}

.gest-client-presence-pill__text--money {
    color: #ffe082 !important;
}

@keyframes gestPresencePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(85, 255, 177, 0.55);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(85, 255, 177, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(85, 255, 177, 0);
    }
}

@media (max-width: 360px) {
    .gest-client-page .gest-client-profile-clone .gest-client-profile-head {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .gest-client-page .gest-client-profile-clone .gest-client-profile-identity {
        text-align: left;
    }
}

/* Onglets Infos / Historique / Paramètres / Consos — cartes comme profile.php */
.gest-client-page .gest-client-tab-pane-profile {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gest-client-page .gest-client-tab-pane-profile .info-section-compact:last-child {
    margin-bottom: 0;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-section-text,
.gest-client-page .gest-client-tab-pane-profile .section-content-compact.size-15,
.gest-client-page .gest-client-tab-pane-profile .gest-client-section-text.size-15 {
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-section-text strong,
.gest-client-page .gest-client-tab-pane-profile .section-content-compact strong {
    color: #f8f2df;
    font-weight: 700;
}

.gest-client-page .gest-client-tab-pane-profile .section-content-compact code {
    background: rgba(203, 162, 72, 0.15);
    color: var(--gest-client-gold);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.85em;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-actions-grid {
    margin-bottom: 10px;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-actions-grid:last-child {
    margin-bottom: 0;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-history-list-wrap {
    padding: 0;
    margin: 0 -4px;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-history-lead,
.gest-client-page .gest-client-tab-pane-profile .gest-client-history-years {
    color: rgba(255, 255, 255, 0.92) !important;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-history-lead strong,
.gest-client-page .gest-client-tab-pane-profile .gest-client-history-years strong {
    color: #f8f2df !important;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-history-lead {
    margin: 0 0 0.5rem;
}

.gest-client-page .gest-client-tab-pane-profile .gest-client-history-years {
    margin: 0;
}

/* Historique : montant à droite, centré, sans libellé "conso" */
.gest-client-history-list .sideRight.gest-client-history-conso-cell {
    text-align: center !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.gest-client-conso-empty {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer : select + bouton (aligné profil — pas de carte) */
.gest-client-page .gest-client-footer-profile-match .gest-client-footer-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
    max-width: 100%;
}

/* Annuler + Valider (ou Déjà présent) sur une même ligne */
.gest-client-page .gest-client-footer-buttons-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.65rem !important;
    width: 100% !important;
    align-items: stretch !important;
}

.gest-client-page .gest-client-footer-buttons-row .gest-client-btn-footer {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

.gest-client-page .gest-client-entree-type-wrap {
    width: 100%;
}

.gest-client-page .gest-client-entree-type-label {
    display: block;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(203, 162, 72, 0.9);
    margin-bottom: 8px;
}

.gest-client-page .gest-client-footer-profile-match .gest-client-select-entree,
.gest-client-page .gest-client-footer-profile-match .gest-client-select-entree.custom-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    text-align-last: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    min-height: 36px !important;
    height: auto !important;
    padding: 7px 2.5rem 7px 1rem !important;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.92) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    vertical-align: middle !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23cba248' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.gest-client-page .gest-client-footer-profile-match .gest-client-select-entree option {
    text-align: center;
    text-transform: uppercase;
    background: #1a1d26;
    color: #f8f2df;
    font-weight: 600;
    padding: 0.5rem;
}

/* Bouton principal = .btn-send-message-profile (profil) — hauteur réduite */
.gest-client-page .gest-client-btn-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 40px;
    padding: 0.5rem 0.85rem !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    text-align: center;
    line-height: 1.2;
}

.gest-client-page .gest-client-btn-footer--primary {
    background: var(--accent-gold, #cba248) !important;
    background-color: #cba248 !important;
    color: var(--primary-black, #0a0a0a) !important;
    box-shadow: 0 4px 15px rgba(203, 162, 72, 0.35);
}

.gest-client-page .gest-client-btn-footer--primary:hover {
    background: var(--accent-gold-hover, #d4af37) !important;
    background-color: #d4af37 !important;
    color: #0a0a0a !important;
    box-shadow: 0 6px 20px rgba(203, 162, 72, 0.45);
}

.gest-client-page .gest-client-btn-footer--primary:active {
    transform: translateY(1px);
}

.gest-client-page .gest-client-btn-footer--blocked {
    background: rgba(180, 55, 55, 0.25) !important;
    color: #ffb0b0 !important;
    border: 1px solid rgba(255, 100, 100, 0.35) !important;
    cursor: not-allowed;
    opacity: 0.95;
}

/* Annuler : fond opaque (plus de transparence « lavée ») */
.gest-client-page .gest-client-btn-footer--cancel {
    background: #6b1c24 !important;
    background-color: #6b1c24 !important;
    color: #ffecec !important;
    border: 1px solid #9a2a35 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.gest-client-page .gest-client-btn-footer--cancel:hover {
    background: #7d242e !important;
    background-color: #7d242e !important;
    color: #fff !important;
    border-color: #c43c4c !important;
}

.gest-client-page .gest-client-btn-footer--cancel:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .gest-client-page .gest-client-footer-profile-match .gest-client-message-footer {
        padding: 0.875rem !important;
        padding-bottom: calc(0.875rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    .gest-client-page .gest-client-btn-footer {
        min-height: 40px;
        padding: 0.5rem 0.85rem !important;
        font-size: 0.86rem !important;
    }
}

/* Onglet Paramètres : grille sobre (pas de bleu) */
.gest-client-param-tab .gest-client-param-section-inner {
    padding-top: 0.25rem;
}

.gest-client-param-group-label {
    margin: 1rem 0 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
}

.gest-client-param-group-label:first-child {
    margin-top: 0;
}

.gest-client-phone-form {
    margin: 0 0 0.5rem;
    text-align: left;
}

.gest-client-phone-form__label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.gest-client-phone-form__input {
    margin-bottom: 8px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f3f0ea !important;
}

.gest-client-phone-form__hint {
    margin: 0 0 10px;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.42);
}

.gest-client-phone-form__hint code {
    font-size: 0.9em;
    color: rgba(203, 162, 72, 0.9);
}

.gest-client-phone-form__submit {
    margin-top: 4px;
}

.gest-client-phone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-start;
}

.gest-client-phone-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #141414 !important;
    background: linear-gradient(135deg, #e4c878 0%, var(--accent-gold) 45%, #b8924a 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.gest-client-phone-action-btn:hover,
.gest-client-phone-action-btn:focus {
    color: #141414 !important;
    filter: brightness(1.06);
}

.gest-client-phone-actions-hint {
    margin: 8px 0 0;
    font-size: 0.62rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.42);
}

.gest-client-param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.gest-client-param-grid--single {
    grid-template-columns: 1fr;
}

.gest-desactiver-carte-modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-gold);
    padding-right: 28px;
    padding-left: 28px;
}

.gest-desactiver-carte-modal {
    background: linear-gradient(180deg, #1a1a22, #121218) !important;
    border: 1px solid rgba(203, 162, 72, 0.35) !important;
    border-radius: 14px !important;
    color: rgba(255, 255, 255, 0.9);
}

.gest-desactiver-carte-modal .modal-header .close {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.gest-desactiver-carte-modal__lead {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.gest-desactiver-carte-modal__list {
    margin: 0 0 12px;
    padding-left: 1.1rem;
    font-size: 0.72rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.gest-desactiver-carte-modal__warn {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ff8a8a;
}

@media (max-width: 380px) {
    .gest-client-param-grid {
        grid-template-columns: 1fr;
    }
}

.gest-client-param-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-align: center;
    line-height: 1.25;
}

.gest-client-param-btn:active {
    transform: scale(0.98);
}

.gest-client-param-btn--link {
    text-decoration: none !important;
    box-sizing: border-box;
}

.gest-client-param-btn--danger {
    border-color: rgba(220, 80, 80, 0.45);
    background: rgba(180, 50, 50, 0.2);
    color: #ffb4b4;
}

.gest-client-param-btn--gold {
    border-color: rgba(203, 162, 72, 0.5);
    background: rgba(203, 162, 72, 0.14);
    color: #f0d78c;
}

.gest-client-param-btn--warn {
    border-color: rgba(230, 170, 60, 0.45);
    background: rgba(230, 170, 60, 0.12);
    color: #ffd59e;
}

.gest-client-param-btn--muted {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
}

.gest-client-param-btn--accent {
    border-color: rgba(186, 120, 255, 0.4);
    background: rgba(120, 70, 160, 0.22);
    color: #e8d4ff;
}

.gest-client-param-btn--star {
    border-color: rgba(255, 170, 80, 0.45);
    background: rgba(255, 140, 60, 0.15);
    color: #ffd4a8;
    gap: 8px;
}

.gest-client-param-btn__star-ic {
    flex-shrink: 0;
    font-size: 0.88rem;
}

.gest-client-param-btn--outline {
    border-color: rgba(203, 162, 72, 0.4);
    background: transparent;
    color: var(--gest-client-gold);
}

/* -------------------------------------------------------------------------
   Notes, motif ban, promos auto, modaux promo (fiche client — compacts)
   ------------------------------------------------------------------------- */

.gest-client-hidden-form {
    display: none !important;
}

.gest-client-motif-strip {
    margin: 8px 12px 0;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(220, 53, 69, 0.45);
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    font-size: 12px;
    line-height: 1.35;
}

.gest-client-motif-strip__label {
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.6rem;
    color: #ff9a9a;
}

.gest-client-motif-strip__text {
    color: rgba(255, 255, 255, 0.92);
    flex: 1 1 auto;
    min-width: 0;
}

/* Motif rattaché au badge statut (interdit / surveillance) */
.gest-client-page .gest-client-profile-clone .gest-client-status-line .gest-client-motif-attached {
    flex: 1 1 100%;
    order: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 8px;
    margin: 4px 0 2px;
    padding: 5px 10px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(203, 162, 72, 0.28);
    background: linear-gradient(90deg, rgba(203, 162, 72, 0.12), rgba(220, 53, 69, 0.08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gest-client-page .gest-client-profile-clone .gest-client-status-line .gest-client-motif-attached__label {
    flex-shrink: 0;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gest-client-gold, #d4af37);
}

.gest-client-page .gest-client-profile-clone .gest-client-status-line .gest-client-motif-attached__text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.gest-client-notes-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px auto 0;
    padding: 0 10px;
    max-width: 480px;
}

.gest-client-note-card {
    position: relative;
    padding: 10px 32px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(203, 162, 72, 0.22);
    background: linear-gradient(145deg, rgba(22, 24, 32, 0.98) 0%, rgba(14, 16, 22, 0.99) 100%);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 11px;
    line-height: 1.45;
    overflow: hidden;
}

.gest-client-note-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, var(--gest-client-gold, #e8c97a), rgba(203, 162, 72, 0.45));
}

.gest-client-note-card__close {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 180, 180, 0.9);
    font-size: 1.1rem;
    line-height: 1;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    opacity: 0.85;
    transition: background 0.15s, color 0.15s;
}

.gest-client-note-card__close:hover {
    opacity: 1;
    background: rgba(220, 53, 69, 0.2);
    color: #ffb4b4;
}

.gest-client-note-card__head {
    margin-bottom: 6px;
}

.gest-client-note-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1208;
    background: linear-gradient(90deg, #e8c97a, var(--gest-client-gold, #cba248));
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(203, 162, 72, 0.25);
}

.gest-client-note-card__body {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
    text-align: left;
    word-break: break-word;
}

.gest-client-note-card__meta {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(203, 162, 72, 0.15);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* Bannières fidélité / VIP / double entrée */
.gest-client-auto-promo {
    margin: 6px 12px 0;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(46, 125, 80, 0.14);
}

.gest-client-auto-promo--vipstatus {
    background: rgba(125, 137, 138, 0.2);
    border-color: rgba(255, 255, 255, 0.14);
}

.gest-client-auto-promo--double {
    background: rgba(46, 125, 80, 0.16);
}

.gest-client-auto-promo__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.gest-client-auto-promo--vipstatus .gest-client-auto-promo__icon {
    color: #e8c97a;
}

.gest-client-auto-promo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gest-client-auto-promo__title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f8f2df;
}

.gest-client-auto-promo__desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.35;
}

.gest-client-auto-promo__hint {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 150, 150, 0.95);
    margin-top: 2px;
}

/* Modaux promotion (#myModal) */
.gest-client-modal-promo .modal-content {
    border-radius: 14px !important;
    border: 1px solid rgba(76, 175, 80, 0.35) !important;
    background: #12151f !important;
    overflow: hidden;
}

.gest-client-modal-promo--vip .modal-content {
    border-color: rgba(203, 162, 72, 0.45) !important;
}

.gest-client-modal-dialog--sm {
    max-width: 340px;
    margin: 0.75rem auto;
}

.gest-client-modal-header--compact {
    padding: 10px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.gest-client-modal-title--sm {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #7fd67f !important;
    margin: 0 !important;
}

.gest-client-modal-promo--vip .gest-client-modal-title--sm {
    color: var(--gest-client-gold, #cba248) !important;
}

.gest-client-modal-body--compact {
    padding: 10px 14px 12px !important;
}

.gest-client-modal-promo__intro {
    margin: 0;
    padding: 0 14px 6px;
    font-size: 11px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.gest-client-modal-promo__intro strong {
    color: var(--gest-client-gold, #cba248);
}

.gest-client-promo-offer-body {
    text-align: center;
}

.gest-client-promo-offer-main {
    font-size: 13px;
    font-weight: 700;
    color: #f8f2df;
    line-height: 1.4;
}

.gest-client-promo-offer-main--lg {
    font-size: 15px;
}

.gest-client-promo-offer-wyylde {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.gest-client-promo-offer-date {
    margin: 8px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.gest-client-promo-offer-fallback {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.gest-client-modal-footer--stack {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: stretch !important;
    padding: 10px 14px 14px !important;
    border-top: none !important;
}

.gest-client-promo-offer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.gest-client-promo-offer-btn--primary {
    background: linear-gradient(180deg, #5fcf7a, #3aa85a);
    color: #0a1f0f;
    box-shadow: 0 4px 14px rgba(60, 180, 100, 0.3);
}

.gest-client-promo-offer-btn--primary:active {
    transform: translateY(1px);
}

.gest-client-promo-offer-btn--ghost {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Liste promos (variante liste — si réutilisée) */
.gest-client-promo-use-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gest-client-promo-use-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gest-client-promo-use-item:last-child {
    border-bottom: none;
}

.gest-client-promo-use-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 12px;
    background: var(--gest-client-gold, #cba248);
    color: #0a0a0a;
    cursor: pointer;
}

.gest-client-modal-btn-secondary {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Ecrans / Chiffres / Validation (theme sombre) */
.gest-screen-shell {
    padding: 12px 10px 26px;
}

.gest-screen-card {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: none;
    padding: 14px;
    margin-bottom: 16px;
}

.gest-screen-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.gest-screen-page-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 14px;
}

.gest-screen-panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
}

.gest-screen-actions {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.gest-screen-illustration {
    width: 60%;
    max-width: 280px;
    margin: 8px auto 14px;
    display: block;
}

/* Stocks pages */
.gest-stock-page .gest-stock-search-panel,
.gest-stock-page .gest-stock-list-panel,
.gest-stock-page .gest-stock-create-panel,
.gest-stock-page .gest-stock-product-panel,
.gest-stock-page .gest-stock-history-panel,
.gest-stock-page .gest-stock-flash {
    margin-top: 10px;
    padding: 12px;
}

.gest-stock-search-row {
    display: flex;
    gap: 8px;
}

.gest-stock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gest-stock-toolbar .gest-stock-search-row {
    flex: 1;
}

.gest-stock-input {
    min-height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 0 10px;
}

.gest-stock-btn-search {
    min-width: 96px;
    border-radius: 10px;
}

.gest-stock-list-head,
.gest-stock-product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.gest-stock-top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.gest-stock-table-wrap {
    overflow: auto;
}

.gest-stock-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.gest-stock-history-table {
    min-width: 520px;
}

.gest-stock-table thead tr {
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gest-stock-table th,
.gest-stock-table td {
    padding: 7px 6px;
}

.gest-stock-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gest-stock-row-clickable {
    cursor: pointer;
}

.gest-stock-row-clickable:hover {
    transform: translateY(-1px);
}

.gest-stock-row-clickable:hover td {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(203, 162, 72, 0.35);
}

.gest-stock-name-link {
    color: #f5f6fb;
    font-weight: 700;
    text-decoration: none;
}

.gest-stock-inline-volume {
    margin-left: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

/* Tableau stocks version propre (2 colonnes) */
.gest-stock-table--simple {
    min-width: 0;
    border-collapse: collapse;
    border-spacing: 0;
    background: #0f0f12;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    overflow: hidden;
}

.gest-stock-table--simple thead tr {
    background: #1a1a1f;
}

.gest-stock-table--simple th {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 10px 9px;
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.gest-stock-table--simple td {
    font-size: 13px;
    padding: 10px 9px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.gest-stock-table--simple th + th,
.gest-stock-table--simple td + td {
    border-left: 1px solid rgba(255, 255, 255, 0.34);
}

.gest-stock-table--simple tbody tr {
    border-bottom: none;
}

.gest-stock-table--simple tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.045);
}

.gest-stock-table--simple tbody tr:last-child td {
    border-bottom: none;
}

.gest-stock-empty {
    padding: 10px 6px;
    color: rgba(255, 255, 255, 0.72);
}

.gest-stock-code {
    font-family: monospace;
}

.gest-stock-qty.is-ok {
    color: #9df5c4;
    font-weight: 700;
}

.gest-stock-qty.is-low {
    color: #ff7c7c;
    font-weight: 700;
}

.gest-stock-btn-add,
.gest-stock-btn-open,
.gest-stock-btn-remove,
.gest-stock-btn-back {
    border-radius: 10px;
    min-height: 34px;
}

.gest-stock-btn-icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

.gest-stock-create-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
}

.gest-stock-create-actions {
    margin-top: 10px;
}

.gest-stock-meta {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.88);
}

.gest-stock-current {
    margin: 0 0 10px;
    color: #9df5c4;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.05;
}

.gest-stock-adjust-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.gest-stock-product-name {
    font-size: 52px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
}

.gest-stock-adjust-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.gest-stock-product-panel .gest-stock-btn-add,
.gest-stock-product-panel .gest-stock-btn-remove {
    min-width: 84px;
    min-height: 62px;
    font-size: 38px !important;
    font-weight: 900 !important;
    line-height: 1;
    padding: 0 !important;
}

.gest-stock-product-main {
    min-height: calc(100vh - 96px);
}

.gest-stock-product-main .gest-stock-product-panel {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px 18px !important;
}

.gest-stock-qty-input {
    width: 120px;
    min-height: 54px;
    font-size: 30px !important;
    font-weight: 800 !important;
    text-align: center;
}

@media (max-width: 420px) {
    .gest-stock-page .gest-screen-card {
        padding: 10px 8px 18px !important;
    }

    .gest-stock-page .gest-screen-page-title,
    .gest-stock-page .gest-stock-product-title {
        font-size: 17px !important;
        margin: 0 0 6px !important;
    }

    .gest-stock-page .gest-stock-search-panel,
    .gest-stock-page .gest-stock-list-panel,
    .gest-stock-page .gest-stock-create-panel,
    .gest-stock-page .gest-stock-product-panel,
    .gest-stock-page .gest-stock-history-panel,
    .gest-stock-page .gest-stock-flash {
        padding: 9px !important;
        border-radius: 10px !important;
    }

    .gest-stock-search-row {
        gap: 6px;
    }

    .gest-stock-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .gest-stock-input {
        min-height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }

    .gest-stock-btn-search,
    .gest-stock-btn-add,
    .gest-stock-btn-open,
    .gest-stock-btn-remove,
    .gest-stock-btn-back {
        min-height: 32px !important;
        font-size: 11px !important;
        padding: 0 10px !important;
    }

    .gest-stock-btn-icon {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        font-size: 20px !important;
    }

    .gest-stock-table {
        min-width: 620px;
        font-size: 11px;
    }

    .gest-stock-table th,
    .gest-stock-table td {
        padding: 6px 5px;
    }

    .gest-stock-current {
        font-size: 34px;
    }

    .gest-stock-product-name {
        font-size: 40px !important;
    }

    .gest-stock-product-panel .gest-stock-btn-add,
    .gest-stock-product-panel .gest-stock-btn-remove {
        min-width: 74px;
        min-height: 54px;
        font-size: 32px !important;
    }

    .gest-stock-product-main .gest-stock-product-panel {
        min-height: 64vh;
    }
}

@media (max-width: 360px) {
    .gest-stock-search-row,
    .gest-stock-product-top,
    .gest-stock-adjust-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gest-stock-btn-search,
    .gest-stock-btn-add,
    .gest-stock-btn-open,
    .gest-stock-btn-remove,
    .gest-stock-btn-back,
    .gest-stock-qty-input {
        width: 100% !important;
        min-width: 0 !important;
    }

    .gest-stock-input {
        min-height: 32px;
        font-size: 11px;
    }

    .gest-stock-table {
        min-width: 560px;
        font-size: 10px;
    }

    .gest-stock-table th,
    .gest-stock-table td {
        padding: 5px 4px;
    }

    .gest-stock-product-name {
        font-size: 32px !important;
    }

    .gest-stock-current {
        font-size: 28px;
    }

    .gest-stock-product-main .gest-stock-product-panel {
        min-height: 60vh;
    }
}

/* Forcage final: grille visible sur fond noir */
.gest-stock-page .gest-stock-table.gest-stock-table--simple {
    border: 2px solid #7f7f7f !important;
    background: #0f0f12 !important;
}

.gest-stock-page .gest-stock-table.gest-stock-table--simple th {
    border: 1px solid #8a8a8a !important;
    background: #19191f !important;
    color: #fff !important;
}

.gest-stock-page .gest-stock-table.gest-stock-table--simple td {
    border: 1px solid #6f6f6f !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.gest-stock-page .gest-stock-table.gest-stock-table--simple tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Carte/liste membres: compact sur petits ecrans pour eviter les debordements */
@media (max-width: 420px) {
    #results .gest-member-row .gest-member-card,
    #results .gest-member-row .gest-search-card {
        padding: 10px 11px !important;
    }

    .gest-member-avatar-wrap {
        width: 36px !important;
        height: 36px !important;
    }

    .gest-search-card .txt h3,
    .client-container .txt h3 {
        font-size: 12px !important;
        line-height: 1.15 !important;
    }

    .gest-search-card .txt p,
    .client-container .txt p {
        font-size: 10px !important;
        line-height: 1.15 !important;
        margin-top: 1px !important;
    }

    .gest-type-icon {
        font-size: 10px !important;
    }

    .gest-search-card .gest-side-right,
    .gest-member-card .gest-side-right {
        min-width: 84px !important;
        padding-right: 20px !important;
        gap: 5px !important;
    }

    .gest-search-card .gest-side-right .wyylde-badge,
    .gest-member-card .gest-side-right .wyylde-badge {
        margin-right: 22px !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: 8px !important;
        padding: 1px 4px !important;
    }

    .gest-search-card .gest-side-right .wyylde-badge img,
    .gest-member-card .gest-side-right .wyylde-badge img {
        width: 12px !important;
        height: 12px !important;
        margin-right: 3px !important;
    }

    .entry-count.entry-count-corner {
        right: 6px !important;
        bottom: 4px !important;
        font-size: 9px !important;
        min-width: 16px !important;
        height: 16px !important;
        line-height: 16px !important;
    }

    #filters .filter-button,
    .gest-filters-row .filter-button {
        font-size: 10px !important;
        padding: 5px 8px !important;
    }
}

@media (max-width: 360px) {
    .gest-search-card .txt h3,
    .client-container .txt h3 {
        font-size: 11px !important;
    }

    .gest-search-card .txt p,
    .client-container .txt p {
        font-size: 9px !important;
    }

    .gest-search-card .gest-side-right,
    .gest-member-card .gest-side-right {
        min-width: 74px !important;
        padding-right: 18px !important;
    }

    .gest-search-card .gest-side-right .wyylde-badge,
    .gest-member-card .gest-side-right .wyylde-badge {
        max-width: none !important;
        font-size: 6px !important;
        padding: 0 2px !important;
        border-width: 1px !important;
        line-height: 1.05 !important;
    }

    .gest-search-card .gest-side-right .wyylde-badge img,
    .gest-member-card .gest-side-right .wyylde-badge img {
        width: 8px !important;
        height: 8px !important;
        margin-right: 1px !important;
    }
}

/* Mail Center */
.gest-mail-page {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 0;
}

.gest-mail-shell {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.gest-mail-shell__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-top: 6px;
}

.gest-mail-shell__brand {
    display: block;
    min-width: 0;
    justify-self: start;
}

.gest-mail-shell__brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 84px;
    height: 84px;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
    pointer-events: none;
}

.gest-mail-title {
    margin: 0;
    color: #f3e6c8;
    font-size: 1.1rem;
    font-weight: 800;
}

.gest-mail-subtitle {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
}

.gest-mail-shell__actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    justify-self: end;
}

.gest-mail-shell__actions .btn,
.gest-mail-detail-actions .btn,
.gest-mail-modal__actions .btn,
.gest-mail-back-btn {
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #252933 0%, #1a1d26 100%) !important;
    color: #f0f3ff !important;
}

.gest-mail-icon-btn {
    width: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
}

.gest-mail-icon-btn i {
    font-size: 13px;
}

.gest-mail-btn-new,
.gest-mail-btn-reply {
    background: linear-gradient(145deg, #e5c879 0%, #cba248 55%, #a88136 100%) !important;
    color: #141414 !important;
    border-color: rgba(255, 222, 160, 0.45) !important;
}

.gest-mail-btn-search {
    background: linear-gradient(145deg, #4f7dff 0%, #345fd8 100%) !important;
    color: #eef3ff !important;
    border-color: rgba(147, 175, 255, 0.45) !important;
}

.gest-mail-btn-refresh {
    background: linear-gradient(145deg, #2d313d 0%, #1f222b 100%) !important;
    color: #dfe5f7 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.gest-mail-toolbar {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 8px;
    margin-bottom: 10px;
}

.gest-mail-segments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gest-mail-segment {
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
}

.gest-mail-segment.is-active {
    color: #141414;
    background: linear-gradient(145deg, #e5c879 0%, #cba248 55%, #a88136 100%);
}

.gest-mail-bulkbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.gest-mail-bulkbar__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 4px;
}

.gest-mail-bulkbar__check input {
    width: 14px;
    height: 14px;
}

.gest-mail-bulk-btn {
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
}

.gest-mail-bulk-btn.is-danger {
    background: linear-gradient(145deg, #7c1c22 0%, #591217 100%) !important;
    border-color: rgba(255, 121, 121, 0.45) !important;
}

.gest-mail-bulk-select {
    min-height: 30px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    width: auto;
    min-width: 150px;
}

.gest-mail-layout {
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    gap: 10px;
    height: calc(100dvh - 255px);
    min-height: calc(100dvh - 255px);
    margin-bottom: 0;
}

.gest-mail-list-wrap,
.gest-mail-detail {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.gest-mail-list {
    max-height: none;
    height: calc(100dvh - 302px);
    overflow: auto;
    padding: 6px;
}

.gest-mail-item {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 10px;
    margin-bottom: 8px;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.gest-mail-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 6px;
}

.gest-mail-row.is-selected .gest-mail-item {
    border-color: rgba(79, 125, 255, 0.45);
}

.gest-mail-item-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.gest-mail-item-select input {
    width: 14px;
    height: 14px;
}

.gest-mail-item:hover {
    transform: translateY(-1px);
    border-color: rgba(203, 162, 72, 0.45);
}

.gest-mail-item strong {
    color: #f3e6c8;
    font-size: 0.76rem;
}

.gest-mail-item-badges {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
    align-self: flex-start !important;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
}

.gest-mail-badge {
    display: inline-flex !important;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
    font-style: normal;
    width: auto !important;
    max-width: max-content !important;
    flex: 0 0 auto !important;
    white-space: nowrap;
}

.gest-mail-badge.is-client {
    color: #c5ffd9;
    border: 1px solid rgba(67, 215, 137, 0.55);
    background: rgba(67, 215, 137, 0.12);
}

.gest-mail-badge.is-other {
    color: #ffe3b8;
    border: 1px solid rgba(203, 162, 72, 0.55);
    background: rgba(203, 162, 72, 0.14);
}

.gest-mail-badge.is-replied {
    color: #bde7ff;
    border: 1px solid rgba(95, 174, 255, 0.55);
    background: rgba(95, 174, 255, 0.14);
}

.gest-mail-item span,
.gest-mail-item small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.67rem;
}

.gest-mail-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gest-mail-item-from {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gest-mail-item-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gest-mail-type-icon {
    font-size: 10px;
    line-height: 1;
    opacity: 0.9;
}

.gest-mail-type-icon.is-client {
    color: #82efb4;
}

.gest-mail-type-icon.is-other {
    color: #ffd489;
}

.gest-mail-type-icon.is-replied {
    color: #9ed2ff;
}

.gest-mail-item-date {
    text-align: right;
}

.gest-mail-item.is-unread strong {
    color: #ffe4a6;
}

.gest-mail-item.is-active {
    border-color: rgba(203, 162, 72, 0.55);
    background: rgba(203, 162, 72, 0.12);
}

.gest-mail-pagination {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.gest-mail-pagination button {
    border: 1px solid rgba(203, 162, 72, 0.38);
    background: linear-gradient(180deg, rgba(203, 162, 72, 0.26), rgba(150, 110, 38, 0.24));
    color: #f3e6c8;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 800;
}

.gest-mail-detail {
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.gest-mail-detail-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.gest-mail-detail-head h2 {
    margin: 0;
    color: #f7e7bf;
    font-size: 0.95rem;
    line-height: 1.3;
}

.gest-mail-back-btn {
    display: none !important;
    margin-bottom: 8px !important;
}

.gest-mail-detail-head-top {
    display: block;
    margin-bottom: 8px;
}

.gest-mail-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.gest-mail-detail-title-row h2 {
    flex: 1;
    min-width: 0;
}

.gest-mail-detail-meta {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.67rem;
}

.gest-mail-detail-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    flex-shrink: 0;
}

.gest-mail-detail-body {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.74rem;
    line-height: 1.45;
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow: auto;
}

.gest-mail-empty {
    color: rgba(255, 255, 255, 0.54);
    text-align: center;
    font-size: 0.72rem;
    margin: 16px 8px;
}

.gest-mail-modal {
    position: fixed;
    inset: 0;
    z-index: 20040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.gest-mail-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.gest-mail-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(203, 162, 72, 0.35);
    background: linear-gradient(180deg, #171722, #12121a);
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 28px 58px rgba(0, 0, 0, 0.55);
}

.gest-mail-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gest-mail-modal__head h3 {
    margin: 0;
    color: #f3e6c8;
    font-size: 0.9rem;
}

.gest-mail-modal__head button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
}

.gest-mail-modal__body {
    display: grid;
    gap: 10px;
    padding: 10px 12px 12px;
}

.gest-mail-modal__body .form-control,
.gest-mail-toolbar .form-control,
.gest-mail-toolbar .custom-select {
    border-radius: 12px !important;
    min-height: 40px !important;
}

.gest-mail-file-picker {
    display: grid;
    gap: 6px;
}

.gest-mail-file-picker__input {
    display: none;
}

.gest-mail-file-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(203, 162, 72, 0.45);
    background: linear-gradient(145deg, rgba(229, 200, 121, 0.16), rgba(168, 129, 54, 0.2));
    color: #f3e6c8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    width: fit-content;
}

.gest-mail-file-picker__button i {
    font-size: 12px;
}

.gest-mail-file-picker__meta {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    word-break: break-word;
}

.gest-mail-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.gest-mail-footer-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    margin-top: 0;
    border-top: 1px solid rgba(203, 162, 72, 0.5);
    background: linear-gradient(180deg, rgba(8, 9, 13, 0.92), rgba(13, 15, 20, 0.98));
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.35);
}

.gest-mail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 6px 10px;
    color: rgba(247, 234, 204, 0.92);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.gest-mail-footer p {
    margin: 0;
    line-height: 1.25;
}

@media (max-width: 820px) {
    .gest-mail-page {
        padding-left: 6px;
        padding-right: 6px;
        padding-bottom: 10px;
    }

    .gest-mail-shell__header {
        position: static;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo logo"
            "brand actions";
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        padding-top: 0;
    }

    .gest-mail-shell__brand {
        grid-area: brand;
    }

    .gest-mail-title {
        font-size: 0.98rem;
    }

    .gest-mail-subtitle {
        font-size: 0.63rem;
    }

    .gest-mail-shell__brand-logo {
        grid-area: logo;
        position: static;
        left: auto;
        transform: none;
        justify-self: center;
        width: 62px;
        height: 62px;
        margin-bottom: 2px;
    }

    .gest-mail-shell__actions .btn,
    .gest-mail-toolbar .btn,
    .gest-mail-detail-actions .btn,
    .gest-mail-back-btn {
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        letter-spacing: 0.02em;
    }

    .gest-mail-icon-btn {
        width: 30px !important;
        min-width: 30px !important;
    }

    .gest-mail-shell__actions {
        grid-area: actions;
        width: auto;
        display: inline-flex;
        gap: 6px;
    }

    .gest-mail-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
        margin-bottom: 0;
    }

    .gest-mail-list {
        max-height: calc(100dvh - 280px);
        height: auto;
        padding-bottom: 10px;
    }

    .gest-mail-detail-body {
        max-height: calc(100dvh - 290px);
    }

    .gest-mail-toolbar {
        grid-template-columns: 1fr auto;
        gap: 6px;
    }

    .gest-mail-toolbar .custom-select {
        grid-column: 1 / -1;
    }

    .gest-mail-toolbar .form-control {
        min-height: 36px !important;
    }

    .gest-mail-toolbar .gest-mail-icon-btn {
        min-height: 36px !important;
        width: 36px !important;
        min-width: 36px !important;
    }

    .gest-mail-segments {
        width: 100%;
        justify-content: flex-start;
        gap: 4px;
        padding: 2px;
    }

    .gest-mail-segment {
        padding: 5px 10px;
        font-size: 10px;
    }

    .gest-mail-bulkbar {
        gap: 4px;
        margin-bottom: 8px;
    }

    .gest-mail-bulkbar__check {
        width: 100%;
        font-size: 10px;
        margin-bottom: 2px;
    }

    .gest-mail-bulk-btn {
        min-height: 28px !important;
        padding: 0 8px !important;
        font-size: 10px !important;
    }

    .gest-mail-bulk-select {
        min-width: 120px;
        font-size: 10px !important;
    }

    .gest-mail-item {
        padding: 8px;
        margin-bottom: 6px;
    }

    .gest-mail-item strong {
        font-size: 0.72rem;
    }

    .gest-mail-back-btn {
        display: inline-flex !important;
        align-self: flex-start;
    }

    .gest-mail-detail-head-top {
        margin-bottom: 6px;
    }

    .gest-mail-detail-title-row {
        gap: 8px;
    }

    .gest-mail-detail-actions .btn {
        min-height: 30px !important;
        padding: 0 10px !important;
        font-size: 10px !important;
    }

    body:not(.gest-mail-mobile-detail-open) .gest-mail-detail {
        display: none;
    }

    body.gest-mail-mobile-detail-open .gest-mail-list-wrap {
        display: none;
    }

    .gest-mail-modal {
        padding: 0;
    }

    .gest-mail-modal__dialog {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .gest-mail-modal__body {
        max-height: calc(100vh - 58px);
        overflow: auto;
        padding-bottom: 90px;
    }

    .gest-mail-footer-wrap {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        box-shadow: none;
        margin-top: 8px;
    }

    .gest-mail-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 9px;
        padding: 5px 6px;
    }
}

.gest-mail-toast-wrap {
    position: fixed;
    right: 12px;
    bottom: 90px;
    z-index: 22000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.gest-mail-toast {
    min-width: 180px;
    max-width: min(360px, 84vw);
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(203, 162, 72, 0.45);
    background: linear-gradient(180deg, rgba(26, 26, 32, 0.96), rgba(16, 16, 20, 0.98));
    color: #f3e6c8;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gest-mail-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
