/* ════════════════════════════════════════════════════════════════════════════
   Community Volunteers — Frontend CSS  v01.3
   Prefix: .cvol-*    Font: Rubik    Direction: RTL Hebrew
   ────────────────────────────────────────────────────────────────────────────
   Color palette:
     Primary         #008D37   Hover        #00732D   BG Light  #EDF1EF
     Dark            #232F46   DarkDark     #242823   Gray      #6F7280
     Success         #BFD500   Accent       #ECC529   Red       #E5484D
     LightBlueBG     #CAD2E4   YellowSoft   #FAF3D1
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Box-sizing reset (scoped) ───────────────────────────────────────────── */
.cvol-board *, .cvol-board *::before, .cvol-board *::after,
.cvol-single *, .cvol-single *::before, .cvol-single *::after,
.cvol-dashboard *, .cvol-dashboard *::before, .cvol-dashboard *::after,
.cvol-modal-overlay *, .cvol-modal-overlay *::before, .cvol-modal-overlay *::after {
	box-sizing: border-box;
}

/* ── Base containers ─────────────────────────────────────────────────────── */
.cvol-board,
.cvol-single,
.cvol-dashboard,
.cvol-slot-picker,
.cvol-signup-form-wrap {
	font-family: 'Rubik', sans-serif;
	direction: rtl;
	text-align: right;
	color: #232F46;
	-webkit-font-smoothing: antialiased;
}

/* ── Typography ──────────────────────────────────────────────────────────── */
.cvol-section-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #232F46;
	margin: 0 0 1rem;
}

/* ── Filter tabs ─────────────────────────────────────────────────────────── */
.cvol-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.5rem;
}
.cvol-filter-tab {
	padding: .45rem 1.1rem;
	border-radius: 2rem;
	border: 2px solid #CAD2E4;
	background: #fff;
	color: #6F7280;
	font-family: 'Rubik', sans-serif;
	font-size: .85rem;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
	line-height: 1.4;
}
.cvol-filter-tab:hover,
.cvol-filter-tab.is-active {
	background: #008D37;
	border-color: #008D37;
	color: #fff;
}

/* ── Task grid — responsive 1 / 2 / 3 columns ───────────────────────────── */
.cvol-task-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	align-items: start;
}
@media (min-width: 540px) {
	.cvol-task-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.cvol-task-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Task card ───────────────────────────────────────────────────────────── */
.cvol-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(35,47,70,.09);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
	border: 1px solid #e8ecf0;
}
.cvol-card:hover {
	box-shadow: 0 6px 24px rgba(35,47,70,.14);
	transform: translateY(-3px);
}

/* Thumbnail — consistent 16:9 */
.cvol-card__image {
	position: relative;
	overflow: hidden;
}
.cvol-card__image-link {
	display: block;
	line-height: 0;
	cursor: pointer;
}
.cvol-card__image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

/* Status badge overlay on image */
.cvol-card__image .cvol-status-badge {
	position: absolute;
	top: .65rem;
	right: .65rem;
}

/* Card body */
.cvol-card__body {
	padding: 1rem 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .55rem;
	flex: 1;
}

/* Top row (status when no image) */
.cvol-card__top-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Category tags */
.cvol-card__cats { display: flex; flex-wrap: wrap; gap: .3rem; }
.cvol-cat-tag {
	background: #EDF1EF;
	color: #008D37;
	font-size: .72rem;
	font-weight: 600;
	padding: .15rem .6rem;
	border-radius: 2rem;
	letter-spacing: .01em;
}

/* Title */
.cvol-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.35;
	color: #232F46;
}

/* Meta list */
.cvol-card__meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}
.cvol-card__meta-row {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .83rem;
	color: #6F7280;
	line-height: 1.3;
}
.cvol-card__meta-row .cvol-icon {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	opacity: .75;
}
.cvol-card__time-range {
	margin-right: .3rem;
	background: #EDF1EF;
	color: #008D37;
	font-size: .75rem;
	font-weight: 600;
	padding: .1rem .45rem;
	border-radius: 4px;
}
.cvol-card__remaining {
	color: #008D37;
	font-style: normal;
	margin-right: .25rem;
	font-size: .78rem;
}
.cvol-card__meta-row--compensation { color: #a07900; }

/* Progress */
.cvol-card__progress { margin-top: .1rem; }

/* ── CTA area ────────────────────────────────────────────────────────────── */
.cvol-card__actions {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: auto;
	padding-top: .5rem;
}

/* Secondary "details" link */
.cvol-card__details-link {
	display: block;
	text-align: center;
	font-size: .8rem;
	font-weight: 400;
	color: #6F7280;
	text-decoration: underline;
	text-underline-offset: 2px;
	line-height: 1;
}
.cvol-card__details-link:hover { color: #008D37; }

/* ── Status badges ───────────────────────────────────────────────────────── */
.cvol-status-badge {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	padding: .25rem .75rem;
	border-radius: 2rem;
	letter-spacing: .02em;
	white-space: nowrap;
}
.cvol-status-badge--lg { font-size: .85rem; padding: .35rem .95rem; }

.cvol-status--open        { background: #EDF1EF; color: #008D37; }
.cvol-status--almost-full { background: #FAF3D1; color: #a07900; }
.cvol-status--full        { background: #CAD2E4; color: #232F46; }
.cvol-status--closed      { background: #CAD2E4; color: #6F7280; }
.cvol-status--completed   { background: #BFD500; color: #232F46; }
.cvol-status--cancelled   { background: #fde8e9; color: #E5484D; }

/* ── Progress bar ────────────────────────────────────────────────────────── */
.cvol-progress {}
.cvol-progress__track {
	height: 8px;
	background: #EDF1EF;
	border-radius: 4px;
	overflow: hidden;
}
.cvol-progress__bar {
	height: 100%;
	background: #008D37;
	border-radius: 4px;
	transition: width .4s ease;
}
.cvol-progress--almost-full .cvol-progress__bar { background: #ECC529; }
.cvol-progress--full .cvol-progress__bar        { background: #E5484D; }
.cvol-progress--compact .cvol-progress__track   { height: 6px; }

.cvol-progress__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: .35rem;
}
.cvol-progress__label {
	font-size: .78rem;
	color: #6F7280;
	margin: 0;
}
.cvol-progress__remaining {
	font-size: .78rem;
	font-weight: 600;
	color: #008D37;
}
.cvol-progress--full .cvol-progress__remaining   { color: #E5484D; }
.cvol-progress--almost-full .cvol-progress__remaining { color: #a07900; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.cvol-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.4rem;
	border-radius: 9px;
	font-family: 'Rubik', sans-serif;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .15s, color .15s, border-color .15s, opacity .15s;
	text-decoration: none;
	min-height: 48px;
	white-space: nowrap;
}

/* Primary — !important guards against theme overrides hiding button text */
.cvol-btn--primary {
	background: #008D37 !important;
	color: #fff !important;
	border-color: #008D37 !important;
}
.cvol-btn--primary:hover,
.cvol-btn--primary:focus {
	background: #00732D !important;
	border-color: #00732D !important;
	color: #fff !important;
}

.cvol-btn--outline {
	background: transparent;
	border-color: #008D37;
	color: #008D37;
}
.cvol-btn--outline:hover { background: #EDF1EF; }

.cvol-btn--full     { width: 100%; }
.cvol-btn--lg       { font-size: 1.05rem; padding: .85rem 1.8rem; min-height: 56px; }
.cvol-btn--sm       { font-size: .825rem; padding: .4rem .9rem; min-height: 36px; }

.cvol-btn--disabled,
.cvol-btn[disabled] {
	background: #CAD2E4 !important;
	color: #6F7280 !important;
	border-color: #CAD2E4 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

/* Extra safety: card action buttons always show their text */
.cvol-card__actions .cvol-btn {
	color: #fff !important;
	font-size: .95rem !important;
	line-height: 1.4 !important;
}
.cvol-card__actions .cvol-btn--disabled,
.cvol-card__actions .cvol-btn[disabled] {
	color: #6F7280 !important;
}

/* ── Icon ────────────────────────────────────────────────────────────────── */
.cvol-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Single task ─────────────────────────────────────────────────────────── */
.cvol-single { max-width: 740px; margin: 0 auto; }
.cvol-single__hero-img { width: 100%; border-radius: 14px; display: block; margin-bottom: 1.5rem; aspect-ratio: 16/9; object-fit: cover; }
.cvol-single__header { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cvol-single__title { font-size: 1.6rem; font-weight: 700; margin: 0; flex: 1; color: #232F46; }

.cvol-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem 1.5rem;
	margin-bottom: 1.5rem;
	padding: 1rem 1.1rem;
	background: #EDF1EF;
	border-radius: 10px;
}
.cvol-meta-item {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-size: .875rem;
	color: #6F7280;
}
.cvol-meta-item--deadline { color: #a07900; }

.cvol-single__description { margin-bottom: 2rem; line-height: 1.8; }
.cvol-overall-progress { margin-bottom: 1.5rem; }

.cvol-login-prompt,
.cvol-closed-notice {
	text-align: center;
	padding: 2rem;
	background: #EDF1EF;
	border-radius: 12px;
	font-size: 1.05rem;
}
.cvol-link { color: #008D37; text-decoration: none; }
.cvol-link:hover { text-decoration: underline; }

/* ── Slot picker ─────────────────────────────────────────────────────────── */
.cvol-slot-picker { margin-bottom: 2rem; }
.cvol-slot-date-group { margin-bottom: 1.5rem; }
.cvol-slot-date-label { font-size: 1rem; font-weight: 600; margin: 0 0 .75rem; color: #6F7280; }
.cvol-slot-list { display: flex; flex-direction: column; gap: .6rem; }

.cvol-slot-item {
	display: flex;
	align-items: center;
	gap: .85rem;
	padding: .9rem 1rem;
	border: 2px solid #CAD2E4;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	direction: rtl;
	width: 100%;        /* fill parent column flex container */
	box-sizing: border-box;
}
.cvol-slot-item:hover:not(.cvol-slot-item--full) { border-color: #008D37; background: #EDF1EF; }
.cvol-slot-item--full { opacity: .55; cursor: not-allowed; }
.cvol-slot-item:has(.cvol-slot-radio:checked) { border-color: #008D37; background: #EDF1EF; }

/* Base slot radio — note: .cvol-modal-sheet input {width:100%;min-height:48px} would
   override these at specificity 11. The double-class rule below (specificity 20) wins. */
.cvol-slot-radio { width: 20px; height: 20px; accent-color: #008D37; flex-shrink: 0; }
.cvol-modal-sheet .cvol-slot-radio {
	width: 20px !important;
	height: 20px !important;
	min-height: unset !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	border-radius: 0 !important;
	flex-shrink: 0;
}
.cvol-slot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.cvol-slot-time { font-size: .95rem; font-weight: 600; color: #232F46; }
.cvol-slot-availability { font-size: .8rem; }
.cvol-slot-open        { color: #008D37; }
.cvol-slot-almost-full { color: #a07900; }
.cvol-slot-full        { color: #E5484D; }

/* ── Signup form (single task page) ─────────────────────────────────────── */
.cvol-signup-form-wrap {
	background: #fff;
	border: 1.5px solid #CAD2E4;
	border-radius: 14px;
	padding: 1.5rem 1.25rem;
}

.cvol-form-row { margin-bottom: 1rem; }
.cvol-form-row--two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .75rem;
}
@media (max-width: 480px) {
	.cvol-form-row--two { grid-template-columns: 1fr; }
}

.cvol-field { display: flex; flex-direction: column; gap: .3rem; }
.cvol-field label {
	font-size: .85rem;
	font-weight: 600;
	color: #232F46;
}
.cvol-required { color: #E5484D; }

.cvol-field input,
.cvol-field textarea,
.cvol-modal-sheet input,
.cvol-modal-sheet textarea {
	width: 100%;
	padding: .65rem .9rem;
	border: 1.5px solid #CAD2E4;
	border-radius: 8px;
	font-family: 'Rubik', sans-serif;
	font-size: .95rem;
	color: #232F46;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
	min-height: 48px;
}
.cvol-field input:focus,
.cvol-field textarea:focus,
.cvol-modal-sheet input:focus,
.cvol-modal-sheet textarea:focus {
	outline: none;
	border-color: #008D37;
	box-shadow: 0 0 0 3px rgba(0,141,55,.13);
}
.cvol-field input.is-invalid,
.cvol-modal-sheet input.is-invalid { border-color: #E5484D; }
.cvol-field-error { font-size: .78rem; color: #E5484D; min-height: 1rem; }

.cvol-form-footer { margin-top: 1.25rem; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.cvol-alert {
	padding: .85rem 1rem;
	border-radius: 8px;
	font-size: .875rem;
	margin-bottom: .75rem;
}
.cvol-alert--error   { background: #fde8e9; color: #c0392b; border: 1px solid #fcc; }
.cvol-alert--success { background: #EDF1EF; color: #008D37; border: 1px solid #b3ddc1; }

/* ── Signup success state ────────────────────────────────────────────────── */
.cvol-signup-success {
	text-align: center;
	padding: 2.5rem 1.5rem;
}
.cvol-success-icon {
	width: 64px; height: 64px;
	background: #008D37;
	color: #fff;
	border-radius: 50%;
	font-size: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

/* ── User dashboard ──────────────────────────────────────────────────────── */
.cvol-dashboard-cards { display: flex; flex-direction: column; gap: 1rem; }
.cvol-dashboard-card {
	background: #fff;
	border: 1.5px solid #CAD2E4;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}
.cvol-dashboard-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.cvol-dashboard-card__task { font-size: 1rem; font-weight: 600; margin: 0; }
.cvol-dashboard-card__task a { color: inherit; text-decoration: none; }
.cvol-dashboard-card__date { font-size: .875rem; color: #6F7280; margin: 0; }
.cvol-dashboard-card__actions { margin-top: .25rem; }

/* ── Badges (admin/status) ───────────────────────────────────────────────── */
.cvol-badge {
	display: inline-block;
	font-size: .72rem;
	font-weight: 700;
	padding: .2rem .65rem;
	border-radius: 2rem;
}
.cvol-badge--approved   { background: #EDF1EF; color: #008D37; }
.cvol-badge--pending    { background: #FAF3D1; color: #a07900; }
.cvol-badge--waitlisted { background: #CAD2E4; color: #232F46; }
.cvol-badge--rejected   { background: #fde8e9; color: #E5484D; }
.cvol-badge--cancelled  { background: #f5f5f5; color: #6F7280; }

/* ── Empty / error states ────────────────────────────────────────────────── */
.cvol-empty, .cvol-error {
	text-align: center;
	color: #6F7280;
	padding: 2rem 1rem;
	font-size: .95rem;
}
.cvol-error { color: #E5484D; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.cvol-pagination {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}
.cvol-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 8px;
	border: 1.5px solid #CAD2E4;
	color: #232F46;
	text-decoration: none;
	font-weight: 500;
	font-size: .9rem;
	font-family: 'Rubik', sans-serif;
}
.cvol-pagination .page-numbers.current { background: #008D37; border-color: #008D37; color: #fff; }
.cvol-pagination .page-numbers:hover:not(.current) { border-color: #008D37; color: #008D37; }

/* ── Volunteer list ──────────────────────────────────────────────────────── */
.cvol-volunteer-list {
	margin: 1.75rem 0;
	padding: 1.25rem 1.5rem;
	background: #EDF1EF;
	border-radius: 12px;
}
.cvol-vlist-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	text-align: right;
	font-family: 'Rubik', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #232F46;
	padding: 0;
}
.cvol-vlist-toggle[aria-expanded="false"] + .cvol-vlist-body { display: none; }
.cvol-vlist-arrow { transition: transform .2s; }
.cvol-vlist-toggle[aria-expanded="true"] .cvol-vlist-arrow { transform: rotate(180deg); }

.cvol-vlist-body { margin-top: 1rem; }
.cvol-vlist-date-group { margin-bottom: 1.25rem; }
.cvol-vlist-date-label { font-size: .95rem; font-weight: 600; margin: 0 0 .6rem; color: #232F46; }

.cvol-vlist-slot {
	background: #fff;
	border-radius: 8px;
	padding: .75rem 1rem;
	margin-bottom: .6rem;
}
.cvol-vlist-slot-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: .5rem;
}
.cvol-vlist-time  { font-weight: 600; font-size: .875rem; }
.cvol-vlist-count { font-size: .825rem; color: #6F7280; }

.cvol-vlist-names {
	list-style: none;
	margin: .25rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .75rem;
}
.cvol-vlist-names li { font-size: .85rem; color: #232F46; }
.cvol-vlist-names li::before { content: '·'; margin-left: .4rem; color: #008D37; }
.cvol-vlist-group-badge { font-size: .78rem; color: #008D37; margin-right: .3rem; white-space: nowrap; }
.cvol-vlist-empty { font-size: .825rem; color: #6F7280; margin: 0; }

/* Hidden mode counts */
.cvol-vlist-counts { display: flex; flex-direction: column; gap: .5rem; }
.cvol-vlist-count-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: .35rem;
	padding: .6rem .9rem;
	background: #fff;
	border-radius: 7px;
	font-size: .875rem;
}

/* ── Modal overlay & bottom sheet ────────────────────────────────────────── */
.cvol-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(35,47,70,.55);
	z-index: 99990;
	display: flex;
	align-items: flex-end;   /* bottom sheet on mobile */
	justify-content: center;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}
@media (min-width: 600px) {
	.cvol-modal-overlay { align-items: center; }
}

body.cvol-modal-open { overflow: hidden; }

.cvol-modal-sheet {
	background: #fff;
	border-radius: 20px 20px 0 0;
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	overflow-y: auto;
	padding: .5rem 1.25rem 2.5rem;
	font-family: 'Rubik', sans-serif;
	direction: rtl;
	text-align: right;
	animation: cvol-sheet-in .25s cubic-bezier(.22,.61,.36,1);
}
@media (min-width: 600px) {
	.cvol-modal-sheet {
		border-radius: 16px;
		max-height: 88vh;
		padding: 1.25rem 1.5rem 2rem;
	}
}

@keyframes cvol-sheet-in {
	from { transform: translateY(48px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

/* Drag handle */
.cvol-modal-handle {
	width: 40px;
	height: 4px;
	background: #CAD2E4;
	border-radius: 2px;
	margin: .5rem auto 1rem;
}
@media (min-width: 600px) { .cvol-modal-handle { display: none; } }

/* Modal header */
.cvol-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	padding-bottom: .85rem;
	border-bottom: 1px solid #EDF1EF;
}
.cvol-modal-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 .2rem;
	color: #232F46;
	line-height: 1.3;
}
.cvol-modal-context {
	font-size: .82rem;
	color: #6F7280;
	margin: 0;
	line-height: 1.3;
}
.cvol-modal-close {
	background: #EDF1EF;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	color: #6F7280;
	transition: background .15s, color .15s;
}
.cvol-modal-close:hover { background: #CAD2E4; color: #232F46; }

.cvol-modal-subtitle {
	font-size: .9rem;
	font-weight: 600;
	color: #232F46;
	margin: 0 0 .75rem;
}

/* Modal slot list */
.cvol-modal-slots { display: flex; flex-direction: column; gap: .55rem; }
.cvol-modal-loading { text-align: center; color: #6F7280; padding: 1rem; font-size: .9rem; }

/* Modal footer */
.cvol-modal-footer {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	margin-top: 1.25rem;
}

/* Modal form label adjustments */
.cvol-modal-sheet .cvol-field label {
	font-size: .85rem;
	font-weight: 600;
	color: #232F46;
}

/* ── Toast notification ──────────────────────────────────────────────────── */
.cvol-toast {
	position: fixed;
	bottom: 1.75rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	min-width: 230px;
	max-width: 90vw;
	padding: .9rem 1.5rem;
	border-radius: 12px;
	font-family: 'Rubik', sans-serif;
	font-size: .95rem;
	font-weight: 600;
	text-align: center;
	box-shadow: 0 6px 24px rgba(0,0,0,.18);
	animation: cvol-toast-in .22s ease;
	direction: rtl;
}
@keyframes cvol-toast-in {
	from { opacity: 0; transform: translateX(-50%) translateY(12px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cvol-toast--success { background: #008D37; color: #fff; }
.cvol-toast--error   { background: #E5484D; color: #fff; }

/* ── Task instructions block ─────────────────────────────────────────────── */
.cvol-task-instructions {
	background: #FAF3D1;
	border-right: 4px solid #ECC529;
	border-radius: 0 6px 6px 0;
	padding: .9rem 1rem;
	margin-bottom: 1.25rem;
	direction: rtl;
}
.cvol-instructions-title {
	font-size: .85rem;
	font-weight: 700;
	color: #856404;
	margin: 0 0 .35rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.cvol-instructions-text {
	font-size: .9rem;
	color: #232F46;
	margin: 0;
	line-height: 1.55;
}
/* Compact version inside modal */
#cvol-modal-instructions {
	margin: 0 0 1rem;
	font-size: .88rem;
}
#cvol-modal-instructions .cvol-instructions-title { font-size: .8rem; }

/* ── Optional field label ────────────────────────────────────────────────── */
.cvol-optional {
	font-size: .8rem;
	font-weight: 400;
	color: #6F7280;
}

/* ── Share buttons ───────────────────────────────────────────────────────── */
.cvol-share-section {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #CAD2E4;
	direction: rtl;
}
.cvol-share-title {
	font-size: .95rem;
	font-weight: 600;
	color: #6F7280;
	margin: 0 0 .75rem;
}
.cvol-share-buttons {
	display: flex;
	gap: .6rem;
	flex-wrap: wrap;
}
.cvol-share-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem 1rem;
	border-radius: 2rem;
	font-family: 'Rubik', sans-serif;
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity .15s, transform .1s;
	white-space: nowrap;
	color: #fff !important;
}
.cvol-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.cvol-share-btn--whatsapp { background: #25D366; }
.cvol-share-btn--facebook  { background: #1877F2; }
.cvol-share-btn--email     { background: #6F7280; }

/* ── Group-size stepper ──────────────────────────────────────────────────── */
.cvol-field--group-wrap { margin-top: .25rem; }
.cvol-group-stepper {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-top: .4rem;
}
.cvol-stepper-btn {
	width: 32px;
	height: 32px;
	border: 1.5px solid #CAD2E4;
	border-radius: 50%;
	background: #fff;
	color: #232F46;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s, background .15s;
	flex-shrink: 0;
}
.cvol-stepper-btn:hover { border-color: #008D37; background: #EDF1EF; color: #008D37; }
.cvol-stepper-display {
	min-width: 2rem;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	color: #232F46;
}
.cvol-group-hint {
	font-size: .82rem;
	color: #008D37;
	margin: .4rem 0 0;
	font-weight: 500;
}

/* ── Completed task banner ───────────────────────────────────────────────── */
.cvol-completed-banner {
	background: #E8F5E9;
	border: 1.5px solid #52B788;
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	margin-bottom: 1.5rem;
}
.cvol-completed-icon {
	color: #52B788;
	margin-bottom: .5rem;
	line-height: 1;
}
.cvol-completed-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2E7D5E;
	margin: 0 0 .4rem;
}
.cvol-completed-sub {
	color: #4A7A5F;
	font-size: .95rem;
	margin: 0;
}
.cvol-completed-cta { margin: 1.5rem 0; }
.cvol-completed-cta .cvol-btn[disabled] {
	opacity: .55;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Post → footer spacing ───────────────────────────────────────────────── */
.cvol-single,
.cvol-board { margin-bottom: 60px; }

/* ── Mobile overrides ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.cvol-single__title { font-size: 1.3rem; }
	.cvol-signup-form-wrap { padding: 1rem; }
	.cvol-form-row--two { grid-template-columns: 1fr; }
	.cvol-btn { font-size: .9rem; }
	.cvol-share-btn { font-size: .8rem; padding: .45rem .8rem; }
}
