/* CLIK.ma - a page's and a group's own page (page.tpl, group.tpl): the header (cover, logo, avatar, name, numbers, faces, buttons,
   tabs) and the side cards. One 8 px rhythm, edge to edge from the left menu to the chat bar (8 px), 0 / screen width on phones;
   logical sides (Arabic mirrors itself); day and night; every animation only transform / opacity, stopped by "less motion".
   AdminCP -> Réglages CLIK -> "Pages et groupes" (includes/clik-site-settings.php: clik_nd_*). */

.clik-nd-wrap {
  --nd-card: #fff; --nd-ink: #050505; --nd-mute: #65676b; --nd-soft: #e4e6eb; --nd-soft-h: #d8dadf; --nd-line: #e4e6eb;
  --nd-chip: #f0f2f5; --nd-blue: #0866FF; --nd-red: #F5104F; --nd-gold: #FFD200;
  --nd-grad: linear-gradient(135deg, #2f7bff 0%, #0a4dff 55%, #0840d8 100%); /* round 63: blue only */
  padding: 8px; width: 100%; box-sizing: border-box;
}
body.night-mode .clik-nd-wrap { --nd-card: #242526; --nd-ink: #e4e6eb; --nd-mute: #b0b3b8; --nd-soft: #3a3b3c; --nd-soft-h: #4e4f50; --nd-line: #3a3b3c; --nd-chip: #3a3b3c; --nd-blue: #4C9AFF; }

/* ---------- the header card ---------- */
.clik-nd-wrap .clik-nd.profile-header { position: relative; margin: 0 0 8px !important; padding: 0 !important; background: var(--nd-card); border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); overflow: visible; color: var(--nd-ink); }

/* the cover: the crop's own shape (1296 x 360), 160-420 px high */
.clik-nd-cover { position: relative; width: 100%; aspect-ratio: 1296 / 360; min-height: 160px; max-height: 420px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--nd-grad); isolation: isolate; }
.clik-nd-cover > .profile-cover-wrapper { position: absolute !important; inset: 0; width: auto !important; height: auto !important; min-height: 0 !important; aspect-ratio: auto !important; margin: 0 !important; border-radius: 0 !important; background: transparent !important; z-index: 1; overflow: hidden; }
.clik-nd-cover > .profile-cover-wrapper > img.js_position-cover-cropped { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.clik-nd-cover > .profile-cover-wrapper > img.js_position-cover-full:not(.x-hidden) { position: relative; width: 100% !important; height: auto !important; border-radius: 0 !important; }
/* a soft shade at the bottom: the avatar and the cover's tools stay readable on any photo */
.clik-nd-cover:not(.is-empty)::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to top, rgba(0, 0, 0, .28), transparent); pointer-events: none; z-index: 2; }

/* the admin's cover tools: the bottom end corner (the top corner is the logo's) */
.clik-nd-cover .profile-cover-buttons { position: absolute !important; inset: auto 8px 8px auto !important; inset-inline-end: 8px !important; inset-inline-start: auto !important; top: auto !important; display: flex; gap: 8px; z-index: 4; opacity: 1 !important; }
.clik-nd-cover .profile-cover-buttons .toggle, .clik-nd-cover .profile-cover-position, .clik-nd-cover .profile-cover-delete, .clik-nd-cover .profile-cover-position-buttons { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 12px; border-radius: 18px; background: rgba(0, 0, 0, .55) !important; color: #fff !important; font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; margin: 0 !important; position: static !important; }
.clik-nd-cover .profile-cover-position, .clik-nd-cover .profile-cover-delete, .clik-nd-cover .profile-cover-position-buttons { padding: 0; width: 36px; }
.clik-nd-cover .profile-cover-buttons svg { width: 18px; height: 18px; }
.clik-nd-cover .profile-cover-buttons .x-hidden { display: none !important; }
.clik-nd-cover .profile-cover-change-loader, .clik-nd-cover .profile-cover-position-loader { z-index: 5; }

/* the CLIK.ma logo in the cover's top corner (the banner rule) */
.clik-nd-brand { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 3; line-height: 0; pointer-events: auto; }
.clik-nd-brand .clik-brand { position: static !important; margin: 0 !important; }

/* the cover in the cube's colours (no cover): rays, a fine grid, the cubes floating */
.clik-nd-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--nd-grad); }
body.night-mode .clik-nd-art { background: radial-gradient(circle at 85% 18%, rgba(110, 170, 255, .2), transparent 44%), linear-gradient(135deg, #1d5be0 0%, #0a36b8 55%, #082d99 100%); }
.clik-nd-art-glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; filter: blur(40px); opacity: .55; }
.clik-nd-art-glow.is-a { background: #3d8bff; inset-block-start: -40%; inset-inline-start: -10%; }
.clik-nd-art-glow.is-b { background: #5fb0ff; inset-block-end: -50%; inset-inline-end: -10%; }
.clik-nd-art-glow.is-c { background: #d4ecff; width: 30%; inset-block-start: 10%; inset-inline-end: 30%; opacity: .25; }
.clik-nd-art-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.clik-nd-art-cube { position: absolute; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.clik-nd-art-cube svg { display: block; width: 100%; height: auto; }
.clik-nd-art-cube.is-1 { width: clamp(64px, 11%, 140px); inset-block-start: 18%; inset-inline-end: 22%; }
.clik-nd-art-cube.is-2 { width: clamp(34px, 5%, 64px); inset-block-start: 58%; inset-inline-end: 40%; opacity: .9; }
.clik-nd-art-cube.is-3 { width: clamp(26px, 3.6%, 46px); inset-block-start: 22%; inset-inline-end: 52%; opacity: .75; }
.clik-nd-art-cube.is-4 { width: clamp(40px, 6%, 80px); inset-block-start: 50%; inset-inline-end: 8%; opacity: .85; }
.clik-nd-art-cube.is-5 { width: clamp(22px, 3%, 38px); inset-block-start: 12%; inset-inline-end: 66%; opacity: .6; }

/* ---------- avatar, name, numbers, faces, buttons ---------- */
.clik-nd-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "av main acts"; column-gap: 16px; align-items: end; padding: 0 16px 16px; }
.clik-nd-av.profile-avatar-wrapper { grid-area: av; align-self: start; position: relative !important; width: 168px !important; height: 168px !important; margin: -84px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 32px !important; background: var(--nd-card) !important; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); z-index: 5; inset: auto !important; transform: none !important; }
/* the ring in the cube's colours, 4 px of the card's colour between it and the picture */
.clik-nd-av.profile-avatar-wrapper::before { content: ""; position: absolute; inset: -4px; border-radius: 36px; padding: 4px; background: conic-gradient(from var(--nd-a, 0deg), #0A5CFF, #F5104F, #FFD200, #0A5CFF); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; z-index: 0; }
.clik-nd-av.profile-avatar-wrapper > img { position: relative; z-index: 1; display: block; width: 100% !important; height: 100% !important; max-width: none !important; margin: 0 !important; border: 4px solid var(--nd-card) !important; border-radius: 32px !important; object-fit: cover; background: var(--nd-card); box-shadow: none !important; }
.clik-nd-av.profile-avatar-wrapper > .dropdown { position: absolute !important; inset-block-end: 8px; inset-inline-end: 8px; inset-inline-start: auto; top: auto !important; z-index: 3; }
.clik-nd-av .dropdown > .toggle { display: flex !important; align-items: center; justify-content: center; width: 36px !important; height: 36px !important; padding: 0 !important; margin: 0 !important; border-radius: 50% !important; background: var(--nd-soft) !important; color: var(--nd-ink) !important; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; }
.clik-nd-av .dropdown > .toggle svg { width: 18px; height: 18px; }
.clik-nd-av .profile-avatar-change-loader { border-radius: 32px; z-index: 4; }

.clik-nd-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.clik-nd-name { display: flex; align-items: center; flex-wrap: wrap; column-gap: 6px; row-gap: 2px; margin: 0 !important; font-size: 28px; line-height: 1.15; font-weight: 800; color: var(--nd-ink); letter-spacing: -.01em; }
.clik-nd-title { min-width: 0; overflow-wrap: anywhere; }
.clik-nd-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--nd-mute); font-size: 14px; }
.clik-nd-handle { font-weight: 600; }
.clik-nd-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--nd-chip); color: var(--nd-ink); font-size: 13px; font-weight: 600; max-width: 100%; }
.clik-nd-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clik-nd-chip.is-cat { color: var(--nd-blue); background: rgba(8, 102, 255, .1); }
.clik-nd-chip.is-public { color: #16A34A; background: rgba(22, 163, 74, .12); }
.clik-nd-chip.is-closed { color: #D97706; background: rgba(217, 119, 6, .13); }
.clik-nd-chip.is-secret { color: #DC2626; background: rgba(220, 38, 38, .12); }
body.night-mode .clik-nd-chip.is-cat { background: rgba(76, 154, 255, .16); }
body.night-mode .clik-nd-chip.is-public { color: #4ADE80; }
body.night-mode .clik-nd-chip.is-closed { color: #FBBF24; }
body.night-mode .clik-nd-chip.is-secret { color: #F87171; }

.clik-nd-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.clik-nd-stats > li { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--nd-line); color: var(--nd-mute); font-size: 13px; white-space: nowrap; }
.clik-nd-stats > li b { color: var(--nd-ink); font-weight: 800; font-size: 14px; }
.clik-nd-stats > li a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.clik-nd-stats > li.is-rate .clik-nd-ic { color: #F59E0B; fill: #F59E0B; }
.clik-nd-stats > li a:hover, .clik-nd-stats > li a:focus-visible { color: var(--nd-blue); }

.clik-nd-faces { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; color: var(--nd-mute); font-size: 13px; text-decoration: none !important; }
.clik-nd-stack { display: inline-flex; flex: none; }
.clik-nd-stack img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--nd-card); background: var(--nd-soft); margin-inline-start: -8px; position: relative; z-index: calc(10 - var(--i, 0)); }
.clik-nd-stack img:first-child { margin-inline-start: 0; }
.clik-nd-stack img.is-friend { border-color: var(--nd-blue); }
.clik-nd-faces-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clik-nd-faces-t b { color: var(--nd-ink); font-weight: 700; }
.clik-nd-faces-f { color: var(--nd-blue); font-weight: 600; }
a.clik-nd-faces:hover .clik-nd-faces-t b, a.clik-nd-faces:focus-visible .clik-nd-faces-t b { text-decoration: underline; }

/* the buttons: 40 px pills, the round ones 40 px circles, their icons straight in them */
.clik-nd-acts.profile-buttons-wrapper { grid-area: acts; display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 !important; padding: 0 !important; position: static !important; }
.clik-nd .clik-nd-btn, .clik-nd .clik-nd-acts > .btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px !important; margin: 0 !important; border: 0 !important; border-radius: 20px !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1 !important; white-space: nowrap; box-shadow: none; text-decoration: none !important; transition: transform .15s ease, filter .15s ease, background-color .15s ease; }
.clik-nd .clik-nd-btn i.fa { margin: 0 !important; }
.clik-nd .clik-nd-btn .clik-nd-ic { flex: none; }
.clik-nd .clik-nd-btn.is-primary { background: linear-gradient(135deg, #0A5CFF, #6D3BFF) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(10, 92, 255, .28); }
.clik-nd .clik-nd-btn.is-primary.js_unlike-page, .clik-nd .clik-nd-btn.is-primary.js_leave-group:not(.is-pending) { background: rgba(8, 102, 255, .12) !important; color: var(--nd-blue) !important; box-shadow: none; }
/* a liked page reads "Vous aimez" (the core's own word is "Je n'aime pas"; user.js rewrites the button's words, the data-on stays) */
.clik-nd .clik-nd-btn.js_unlike-page[data-on], .clik-nd .clik-nd-btn.js_leave-group[data-on]:has(> i.fa-check) { font-size: 0 !important; }
.clik-nd .clik-nd-btn.js_unlike-page[data-on] i.fa, .clik-nd .clik-nd-btn.js_leave-group[data-on]:has(> i.fa-check) i.fa { font-size: 14px; }
.clik-nd .clik-nd-btn.js_unlike-page[data-on]::after, .clik-nd .clik-nd-btn.js_leave-group[data-on]:has(> i.fa-check)::after { content: attr(data-on); font-size: 14px; }
@media (max-width: 668px) { .clik-nd .clik-nd-btn.js_unlike-page[data-on]::after, .clik-nd .clik-nd-btn.js_leave-group[data-on]:has(> i.fa-check)::after { font-size: 13px; } }
.clik-nd .clik-nd-btn.is-soft { background: var(--nd-soft) !important; color: var(--nd-ink) !important; }
.clik-nd .clik-nd-btn.is-soft:hover { background: var(--nd-soft-h) !important; }
.clik-nd .clik-nd-btn.is-round { width: 40px; padding: 0 !important; }
.clik-nd .clik-nd-btn.is-boost { background: linear-gradient(135deg, #FFB800, #FF7A00) !important; color: #1c1300 !important; }
.clik-nd .clik-nd-btn:hover { filter: brightness(1.04); }
.clik-nd .clik-nd-btn:active { transform: scale(.96); }
.clik-nd .clik-nd-btn:focus-visible { outline: 2px solid var(--nd-blue); outline-offset: 2px; }
.clik-nd .clik-nd-more > .dropdown-menu { margin-top: 8px; }

/* ---------- the tabs: icons, the counts, a bar that slides to the open one ---------- */
.clik-nd-tabs { position: relative; border-top: 1px solid var(--nd-line); padding: 0 8px; background: var(--nd-card); border-radius: 0 0 12px 12px; }
.clik-nd-tablist { display: flex; gap: 4px; margin: 0; padding: 4px 0; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.clik-nd-tablist::-webkit-scrollbar { display: none; }
.clik-nd-tablist > li { flex: none; margin: 0; padding: 0; border: 0 !important; background: none !important; }
.clik-nd-tab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 10px; color: var(--nd-mute) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.clik-nd-tab svg { width: 20px; height: 20px; flex: none; }
.clik-nd-tab:hover { background: var(--nd-chip); color: var(--nd-ink) !important; }
.clik-nd-tablist > li.active > .clik-nd-tab { color: var(--nd-blue) !important; }
.clik-nd-n { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--nd-chip); color: var(--nd-mute); font-size: 11px; font-weight: 800; }
.clik-nd-tablist > li.active .clik-nd-n { background: rgba(8, 102, 255, .12); color: var(--nd-blue); }
.clik-nd-bar { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #0A5CFF, #6D3BFF, #F5104F); transform: translateX(var(--x, 0px)) scaleX(var(--w, 0)); transform-origin: 0 0; transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), opacity .2s; width: 1px; pointer-events: none; }
/* without the script: the open tab keeps its line */
.clik-nd-tabs:not(.is-ready) .clik-nd-tablist > li.active > .clik-nd-tab { box-shadow: inset 0 -3px 0 #0A5CFF; border-radius: 10px 10px 0 0; }
.clik-nd-sentinel { position: absolute; inset: auto 0 0; height: 1px; pointer-events: none; }
/* the compact bar (AdminCP "Onglets collés"): the picture, the name and the tabs under the site's header once the header has left the screen */
.clik-nd-mini { position: fixed; z-index: 1019; top: var(--clik-hdr-h, 56px); left: 0; right: 0; display: flex; justify-content: center; padding: 0 8px; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.clik-nd-mini.is-on { opacity: 1; transform: none; pointer-events: auto; }
.clik-nd-mini-in { --nd-card: #fff; --nd-ink: #050505; --nd-mute: #65676b; --nd-chip: #f0f2f5; --nd-blue: #0866FF; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 100%; padding: 4px 8px; border-radius: 0 0 12px 12px; background: var(--nd-card); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); min-width: 0; }
body.night-mode .clik-nd-mini-in { --nd-card: #242526; --nd-ink: #e4e6eb; --nd-mute: #b0b3b8; --nd-chip: #3a3b3c; --nd-blue: #4C9AFF; }
.clik-nd-mini-id { display: flex; align-items: center; gap: 8px; flex: none; max-width: 30%; min-width: 0; }
.clik-nd-mini-id img { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; flex: none; }
.clik-nd-mini-id b { font-weight: 800; color: var(--nd-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clik-nd-mini .clik-nd-tablist { flex: 1 1 auto; min-width: 0; padding: 0; }
.clik-nd-mini .clik-nd-tab { height: 40px; }
.clik-nd-mini .clik-nd-tablist > li.active > .clik-nd-tab { box-shadow: inset 0 -3px 0 #0A5CFF; border-radius: 10px 10px 0 0; }
@media (min-width: 1200px) { body:not(.n_chat) .clik-nd-mini { padding-inline-end: 102px; } }
@media (min-width: 669px) { .clik-nd-mini { padding-inline-start: calc(var(--side-w, 0px) + 8px); } }
@media (max-width: 668px) { .clik-nd-mini { padding: 0; } .clik-nd-mini-in { border-radius: 0; } .clik-nd-mini-id b { display: none; } }
@media (prefers-reduced-motion: reduce) { .clik-nd-mini { transition: none; transform: none; } }

/* ---------- the body: two columns 8 px apart, the side cards ---------- */
.clik-nd-body { width: 100%; }
.clik-nd-body > .row { margin: 0 -4px !important; }
.clik-nd-body > .row > [class*="col-"] { padding: 0 4px !important; }
.clik-nd-side > .clik-content, .clik-nd-side > div > .clik-content, .clik-nd-side > .clik-nd-card { margin: 0 0 8px !important; border-radius: 12px !important; background: var(--nd-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); border: 0 !important; overflow: hidden; }
.clik-nd-card { padding: 16px !important; display: flex; flex-direction: column; gap: 12px; color: var(--nd-ink); }
.clik-nd-card-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 800; color: var(--nd-ink); }
.clik-nd-card-h .clik-nd-ic { color: var(--nd-blue); }
.clik-nd-card-h.is-sub { font-size: 15px; justify-content: space-between; padding: 0 !important; }
.clik-nd-card-h.is-sub a { font-size: 13px; font-weight: 700; color: var(--nd-blue); }
.clik-nd-desc { color: var(--nd-ink); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.clik-nd-rows { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.clik-nd-rows > li { display: flex; align-items: center; gap: 12px; min-height: 32px; font-size: 14px; color: var(--nd-ink); min-width: 0; }
.clik-nd-rows > li > .clik-nd-ic { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--nd-chip); color: var(--nd-mute); box-sizing: border-box; }
.clik-nd-rows > li > span, .clik-nd-rows > li > a { min-width: 0; overflow-wrap: anywhere; }
.clik-nd-web { color: var(--nd-blue) !important; font-weight: 600; }
.clik-nd-reveal { height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: rgba(8, 102, 255, .1); color: var(--nd-blue); font-weight: 700; font-size: 13px; cursor: pointer; }
.clik-nd-reveal:hover { background: rgba(8, 102, 255, .18); }
.clik-nd-phone-n { font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.clik-nd-phone-a { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.clik-nd-phone-a a { height: 28px; padding: 0 10px; border-radius: 14px; display: inline-flex; align-items: center; background: var(--nd-chip); color: var(--nd-ink) !important; font-size: 12px; font-weight: 700; text-decoration: none !important; }
.clik-nd-about .clik-map { margin: 0 !important; }
.clik-nd-social.social { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 0 !important; margin: 0 !important; }
.clik-nd-social .clik-nd-soc { display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50% !important; background: var(--nd-chip) !important; color: var(--nd-ink) !important; margin: 0 !important; padding: 0 !important; transition: transform .15s ease; }
.clik-nd-social .clik-nd-soc svg { width: 18px !important; height: 18px !important; margin: 0 !important; }
.clik-nd-social .clik-nd-soc:hover { transform: translateY(-2px); }
.clik-nd-about .clik-side-users { margin: 0 -16px !important; }

/* the search in the page */
.clik-nd-search.clik-nd-card { padding: 8px !important; }
.clik-nd-search .el_prof_search_bar { margin: 0 !important; }
.clik-nd-search .form-control { height: 40px; border-radius: 20px !important; background: var(--nd-chip) !important; border: 0 !important; color: var(--nd-ink) !important; padding-inline: 16px !important; }

/* the admins' checklist */
.clik-nd-check-h { display: flex; align-items: center; gap: 12px; }
.clik-nd-check-h > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clik-nd-check-h b { font-size: 16px; font-weight: 800; }
.clik-nd-check-h small { color: var(--nd-mute); font-size: 13px; }
.clik-nd-ring { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(#0A5CFF calc(var(--p) * 1%), var(--nd-soft) 0); position: relative; }
.clik-nd-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--nd-card); }
.clik-nd-ring b { position: relative; font-size: 15px !important; }
.clik-nd-ring small { font-size: 10px !important; }
.clik-nd-check-l { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.clik-nd-check-l li > a, .clik-nd-check-l li > button, .clik-nd-check-l li.is-done { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 8px; border: 0; border-radius: 10px; background: none; color: var(--nd-ink) !important; font-size: 14px; font-weight: 600; text-align: start; text-decoration: none !important; cursor: pointer; }
.clik-nd-check-l li > a:hover, .clik-nd-check-l li > button:hover { background: var(--nd-chip); }
.clik-nd-check-l li.is-done { color: var(--nd-mute) !important; cursor: default; text-decoration: line-through !important; }
.clik-nd-tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--nd-soft-h); color: #fff; box-sizing: border-box; }
.clik-nd-check-l li.is-done .clik-nd-tick { border: 0; background: #16A34A; }

/* a group: its privacy, its members' requests and pending posts */
.clik-nd-note { display: flex; align-items: center; gap: 12px; padding: 12px 16px !important; margin: 0 0 8px !important; border-radius: 12px; background: var(--nd-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); color: var(--nd-ink) !important; font-weight: 700; text-decoration: none !important; }
.clik-nd-note b.clik-nd-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #F5104F; color: #fff; font-size: 13px; }
.clik-nd-locked { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px !important; text-align: center; }
.clik-nd-locked .clik-nd-ic { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--nd-chip); color: var(--nd-mute); box-sizing: border-box; }
.clik-nd-locked b { font-size: 17px; }
.clik-nd-locked span { color: var(--nd-mute); }
.clik-nd-locked .clik-nd-btn { margin-top: 8px !important; }
.clik-nd-locked .clik-nd-btn.is-primary { display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 20px !important; border: 0 !important; border-radius: 20px !important; font-weight: 700 !important; background: linear-gradient(135deg, #0A5CFF, #6D3BFF) !important; color: #fff !important; }
.clik-nd-locked .clik-nd-btn.is-primary.is-pending { background: rgba(217, 119, 6, .14) !important; color: #B45309 !important; }

/* a group: the privacy explained under its name, the subscription, its requests and pending posts */
.clik-nd-rows > li > span > b { display: block; font-weight: 700; }
.clik-nd-row-l { display: block; color: var(--nd-mute); font-size: 13px; line-height: 1.35; }
.clik-nd-rows a { color: var(--nd-ink); font-weight: 700; }
.clik-nd-subscribe { margin: 0 0 8px; }
.clik-nd-subscribe .btn { width: 100%; height: 44px; border-radius: 22px !important; font-weight: 800; }
.clik-nd .clik-nd-btn.is-primary.is-pending { background: rgba(217, 119, 6, .14) !important; color: #B45309 !important; box-shadow: none; }
body.night-mode .clik-nd .clik-nd-btn.is-primary.is-pending { color: #FBBF24 !important; }
.clik-nd-body .clik-sett-membrs > .clik-content.p-3.mb20.bold { display: flex; align-items: center; gap: 12px; margin: 0 0 8px !important; padding: 12px 16px !important; border-radius: 12px; background: var(--nd-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.clik-nd-body .clik-sett-membrs > .clik-content.p-3.mb20.bold a { color: var(--nd-ink); text-decoration: none; }
.clik-nd-body .clik-sett-membrs > .clik-content.p-3.mb20.bold .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #F5104F !important; color: #fff !important; font-size: 13px; }
.clik-nd-body > .row > .col-12 > .clik-content:first-child, .clik-nd-body > .row > .col-12 > div > .clik-content:first-child { border-radius: 12px; }
.clik-nd-locked.clik-nd-card { margin: 0 0 8px; border-radius: 12px; background: var(--nd-card); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

/* ---------- motion (AdminCP "Animations"; never with "less motion") ---------- */
@property --nd-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .clik-nd.is-motion .clik-nd-av.profile-avatar-wrapper::before { animation: clik-nd-ring 8s linear infinite; }
  .clik-nd.is-motion.is-off .clik-nd-av.profile-avatar-wrapper::before { animation-play-state: paused; }
  .clik-nd.is-motion .clik-nd-main > *, .clik-nd.is-motion .clik-nd-acts > * { animation: clik-nd-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  .clik-nd.is-motion .clik-nd-main > :nth-child(2) { animation-delay: .05s; }
  .clik-nd.is-motion .clik-nd-main > :nth-child(3) { animation-delay: .1s; }
  .clik-nd.is-motion .clik-nd-main > :nth-child(4) { animation-delay: .15s; }
  .clik-nd.is-motion .clik-nd-acts > * { animation-delay: .12s; }
  .clik-nd.is-motion .clik-nd-av.profile-avatar-wrapper { animation: clik-nd-pop .55s cubic-bezier(.3, 1.4, .5, 1) both; }
  .clik-nd.is-motion .clik-nd-stack img { animation: clik-nd-in .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.2s + var(--i, 0) * 60ms); }
  .clik-nd.is-motion.is-art-on .clik-nd-art-cube { animation: clik-nd-float 7s ease-in-out infinite; }
  .clik-nd.is-motion.is-art-on .clik-nd-art-cube.is-2 { animation-duration: 9s; animation-delay: -2s; }
  .clik-nd.is-motion.is-art-on .clik-nd-art-cube.is-3 { animation-duration: 6s; animation-delay: -4s; }
  .clik-nd.is-motion.is-art-on .clik-nd-art-cube.is-4 { animation-duration: 10s; animation-delay: -1s; }
  .clik-nd.is-motion.is-art-on .clik-nd-art-cube.is-5 { animation-duration: 8s; animation-delay: -3s; }
  .clik-nd.is-motion.is-art-on .clik-nd-art-glow { animation: clik-nd-glow 12s ease-in-out infinite alternate; }
  .clik-nd.is-motion .clik-nd-btn.is-burst { animation: clik-nd-press .5s cubic-bezier(.3, 1.6, .5, 1); }
  .clik-nd-burst { position: fixed; z-index: 2000; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 2px; pointer-events: none; animation: clik-nd-burst .7s cubic-bezier(.2, .7, .3, 1) forwards; }
  .clik-nd-side > * { animation: clik-nd-in .45s cubic-bezier(.2, .8, .2, 1) both; }
  .clik-nd-side > :nth-child(2) { animation-delay: .06s; }
  .clik-nd-side > :nth-child(3) { animation-delay: .12s; }
  .clik-nd-side > :nth-child(n + 4) { animation-delay: .18s; }
  .clik-nd-wrap:not(.is-motion-on) .clik-nd-side > * { animation: none; }
}
@keyframes clik-nd-ring { to { --nd-a: 360deg; } }
@keyframes clik-nd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes clik-nd-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes clik-nd-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes clik-nd-glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, 4%) scale(1.15); } }
@keyframes clik-nd-press { 0% { transform: scale(1); } 40% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes clik-nd-burst { from { opacity: 1; transform: translate(0, 0) rotate(0deg); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } }

/* ---------- phones (991 px and under: one column; 668 and under: edge to edge) ---------- */
@media (max-width: 991px) {
  .clik-nd-id { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av main" "acts acts"; row-gap: 12px; }
  .clik-nd-acts.profile-buttons-wrapper { justify-content: flex-start; }
}
@media (max-width: 668px) {
  .clik-nd-wrap { padding: 0; }
  .clik-nd-wrap .clik-nd.profile-header { border-radius: 0; margin-bottom: 8px !important; }
  .clik-nd-cover { border-radius: 0; min-height: 140px; }
  .clik-nd-tabs { border-radius: 0; }
  .clik-nd-id { grid-template-columns: 1fr; grid-template-areas: "av" "main" "acts"; padding: 0 8px 12px; row-gap: 8px; }
  .clik-nd-av.profile-avatar-wrapper { width: 112px !important; height: 112px !important; margin-top: -56px !important; border-radius: 24px !important; }
  .clik-nd-av.profile-avatar-wrapper > img { border-radius: 24px !important; }
  .clik-nd-av.profile-avatar-wrapper::before { border-radius: 28px; }
  .clik-nd-main { padding-top: 0; }
  .clik-nd-name { font-size: 22px; }
  .clik-nd-faces-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
  .clik-nd .clik-nd-btn, .clik-nd .clik-nd-acts > .btn { height: 36px; padding: 0 14px !important; font-size: 13px !important; }
  .clik-nd .clik-nd-btn.is-round { width: 36px; }
  .clik-nd-acts.profile-buttons-wrapper > .is-primary { flex: 1 1 auto; }
  /* Partager, Inviter: their icon alone in a round button (their name stays the label) */
  .clik-nd .clik-nd-btn.is-soft:not(.is-round) { width: 36px; padding: 0 !important; }
  .clik-nd .clik-nd-btn.is-soft:not(.is-round) > span { display: none; }
  .clik-nd-tabs { padding: 0 4px; }
  .clik-nd-tab { height: 40px; padding: 0 10px; }
  .clik-nd-brand { inset-block-start: 8px; inset-inline-end: 8px; }
  .clik-nd-body > .row { margin: 0 !important; }
  .clik-nd-body > .row > [class*="col-"] { padding: 0 !important; }
  .clik-nd-side > .clik-content, .clik-nd-side > div > .clik-content, .clik-nd-side > .clik-nd-card, .clik-nd-note { border-radius: 0 !important; }
  .clik-nd-card { padding: 12px 8px !important; }
  .clik-nd-about .clik-side-users { margin: 0 -8px !important; }
}

/* ---------- an event's own page (event.tpl): the date tile, when it is, the countdown, Going / Interested ---------- */
.clik-nd-av.clik-ev-tile { grid-area: av; align-self: start; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 168px; height: 168px; margin: -84px 0 0; border-radius: 32px; background: var(--nd-card); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); z-index: 5; overflow: hidden; color: var(--nd-ink); text-align: center; }
.clik-ev-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 4px; background: conic-gradient(from var(--nd-a, 0deg), #0A5CFF, #F5104F, #FFD200, #0A5CFF); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
.clik-ev-tile-m { position: absolute; inset: 4px 4px auto; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 28px 28px 0 0; background: linear-gradient(135deg, #F5104F, #E41E3F); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.clik-ev-tile-d { margin-top: 36px; font-size: 64px; line-height: 1; font-weight: 900; letter-spacing: -.03em; color: var(--nd-ink); }
.clik-ev-tile-y { margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--nd-mute); }
.clik-nd-chip.clik-ev-when { color: var(--nd-blue); background: rgba(8, 102, 255, .1); }
.clik-nd-chip.clik-ev-when.is-today { color: #D97706; background: rgba(217, 119, 6, .13); }
.clik-nd-chip.clik-ev-when.is-live { color: #fff; background: #E41E3F; }
.clik-nd-chip.clik-ev-when.is-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; }
.clik-nd-chip.clik-ev-when.is-ended { color: var(--nd-mute); background: var(--nd-chip); }
.clik-nd-chip.is-online { color: #6D3BFF; background: rgba(109, 59, 255, .12); }
.clik-nd-chip.is-place { color: var(--nd-ink); }
body.night-mode .clik-nd-chip.clik-ev-when.is-today { color: #FBBF24; }
body.night-mode .clik-nd-chip.is-online { color: #A78BFA; background: rgba(167, 139, 250, .16); }
.clik-ev-dates, .clik-ev-host { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; line-height: 1.35; color: var(--nd-ink); min-width: 0; }
.clik-ev-dates .clik-nd-ic, .clik-ev-host .clik-nd-ic { flex: none; margin-top: 1px; color: var(--nd-blue); }
.clik-ev-dates b { font-weight: 700; white-space: nowrap; }
.clik-ev-dates > span { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; }
.clik-ev-dates i { font-style: normal; color: var(--nd-mute); margin: 0 4px; }
.clik-ev-host { color: var(--nd-mute); font-size: 14px; }
.clik-ev-host a { color: var(--nd-ink); font-weight: 700; }
.clik-ev-count { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.clik-ev-count:empty { display: none; }
.clik-ev-c-l { font-size: 13px; font-weight: 700; color: var(--nd-mute); }
.clik-ev-c { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; height: 48px; padding: 0 8px; border-radius: 12px; background: var(--nd-chip); overflow: hidden; }
.clik-ev-c b { display: block; font-size: 20px; line-height: 1; font-weight: 900; color: var(--nd-ink); font-variant-numeric: tabular-nums; }
.clik-ev-c i { display: block; margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--nd-mute); text-transform: uppercase; }
.clik-ev-c[data-k="s"] b { color: var(--nd-blue); }
/* Going / Interested once chosen: solid green / amber with their tick */
.clik-nd .clik-nd-btn.clik-ev-go.js_ungo-event { background: linear-gradient(135deg, #16A34A, #15803D) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(22, 163, 74, .28); }
.clik-nd .clik-nd-btn.clik-ev-int.js_uninterest-event { background: rgba(245, 158, 11, .16) !important; color: #B45309 !important; }
body.night-mode .clik-nd .clik-nd-btn.clik-ev-int.js_uninterest-event { color: #FBBF24 !important; }
.clik-ev-cal .dropdown-item { display: flex; align-items: center; gap: 8px; }
.clik-nd-wrap .clik-nd.is-ended .clik-nd-cover { filter: saturate(.55); }
@media (prefers-reduced-motion: no-preference) {
  .clik-nd-wrap.is-motion-on .clik-nd.is-art-on .clik-ev-tile::before { animation: clik-nd-ring 8s linear infinite; }
  .clik-nd-wrap.is-motion-on .clik-ev-tile-d { animation: clik-nd-pop .5s .15s cubic-bezier(.3, 1.4, .5, 1) backwards; }
  .clik-nd-wrap.is-motion-on .clik-nd.is-art-on .clik-ev-when.is-live::before { animation: clik-ev-live 1.4s ease-in-out infinite; }
  .clik-nd-wrap.is-motion-on .clik-ev-count .clik-ev-c { animation: clik-nd-in .4s cubic-bezier(.2, .8, .2, 1) backwards; }
  .clik-nd-wrap.is-motion-on .clik-ev-count .clik-ev-c:nth-child(3) { animation-delay: .05s; }
  .clik-nd-wrap.is-motion-on .clik-ev-count .clik-ev-c:nth-child(4) { animation-delay: .1s; }
  .clik-nd-wrap.is-motion-on .clik-ev-count .clik-ev-c:nth-child(5) { animation-delay: .15s; }
}
@keyframes clik-ev-live { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (max-width: 668px) {
  .clik-nd-av.clik-ev-tile { width: 112px; height: 112px; margin-top: -56px; border-radius: 24px; }
  .clik-ev-tile-m { height: 30px; font-size: 13px; border-radius: 20px 20px 0 0; }
  .clik-ev-tile-d { margin-top: 24px; font-size: 42px; }
  .clik-ev-tile-y { font-size: 12px; }
  .clik-ev-c { min-width: 46px; height: 44px; }
  .clik-ev-c b { font-size: 18px; }
}
/* an event has more buttons than a page: they always go under the title, from the start edge */
.clik-nd.is-event .clik-nd-id { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "av main" "acts acts"; row-gap: 12px; }
.clik-nd.is-event .clik-nd-acts.profile-buttons-wrapper { justify-content: flex-start; }
@media (min-width: 992px) { .clik-nd.is-event .clik-nd-acts.profile-buttons-wrapper { padding-inline-start: calc(168px + 16px) !important; margin-top: -4px !important; } }
@media (max-width: 668px) {
  .clik-nd.is-event .clik-nd-id { grid-template-columns: minmax(0, 1fr); grid-template-areas: "av" "main" "acts"; row-gap: 8px; }
  .clik-ev-dates > span { min-width: 0; }
  .clik-nd .clik-nd-btn.is-soft.clik-ev-int { width: auto; padding: 0 14px !important; }
  .clik-nd .clik-nd-btn.is-soft.clik-ev-int > span { display: inline; }
}
/* the header's menus (⋯, Add to calendar) open over the tabs and the page under them */
.clik-nd-wrap .clik-nd.profile-header { z-index: 3; }
.clik-nd-wrap .clik-nd-id { position: relative; z-index: 4; }
/* a cover without a picture gets the banners' animated stage (__clik_stage.tpl): the small floating cubes step aside for it,
   the viewer's pause sits in the cover's top start corner (the admin's cover tools keep the bottom end one), no fold */
.clik-nd-cover:has(.js_clik-sg-art) .clik-nd-art-cube { display: none; }
.clik-nd-cover .clik-sg-art { z-index: 2; }
.clik-nd-cover .clik-sg-opts { inset-block: 8px auto; inset-inline: 8px auto; z-index: 4; }
.clik-nd-cover .js_clik-sg-fold { display: none; }
