/* Expert Consultant Manager - front-end grid.
   Override via Elementor Pro "Custom CSS" or your theme using the .ecm-* classes,
   or change the custom properties below. */

.ecm-grid {
	--ecm-primary: #6d28d9;
	--ecm-primary-hover: #5b21b6;
	--ecm-text: #1f2937;
	--ecm-muted: #6b7280;
	--ecm-card-bg: #fff;
	--ecm-border: #e5e7eb;
	--ecm-radius: 14px;
	--ecm-star: #f59e0b;

	display: grid;
	grid-template-columns: repeat(var(--ecm-cols, 4), minmax(0, 1fr));
	gap: 24px;
}

@media (max-width: 1024px) {
	.ecm-grid { grid-template-columns: repeat(var(--ecm-cols-tablet, 2), minmax(0, 1fr)); }
}

@media (max-width: 767px) {
	.ecm-grid { grid-template-columns: repeat(var(--ecm-cols-mobile, 1), minmax(0, 1fr)); }
}

.ecm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ecm-card-bg);
	border: 1px solid var(--ecm-border);
	border-radius: var(--ecm-radius);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ecm-card:hover {
	box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
	transform: translateY(-3px);
}

.ecm-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f3f4f6;
	overflow: hidden;
}

.ecm-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ecm-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 64px;
	font-weight: 700;
	color: var(--ecm-primary);
	background: #ede9fe;
}

.ecm-card__status {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ecm-text);
	background: rgba(255, 255, 255, .95);
	border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.ecm-status__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #9ca3af;
}

.ecm-status--available .ecm-status__dot { background: #22c55e; }
.ecm-status--busy .ecm-status__dot { background: #ef4444; }
.ecm-status--offline .ecm-status__dot { background: #9ca3af; }

.ecm-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px;
	gap: 8px;
}

.ecm-card__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.ecm-card__title a {
	color: var(--ecm-text);
	text-decoration: none;
}

.ecm-card__title a:hover { color: var(--ecm-primary); }

.ecm-card__profession {
	margin: 0;
	font-size: 14px;
	color: var(--ecm-muted);
}

.ecm-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ecm-muted);
}

.ecm-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	font-weight: 700;
	color: var(--ecm-text);
	background: #fef3c7;
	border-radius: 999px;
}

.ecm-card__star { color: var(--ecm-star); }

.ecm-card__price {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--ecm-primary);
}

.ecm-card__button {
	display: block;
	margin-top: auto;
	padding: 10px 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--ecm-primary);
	border-radius: 8px;
	transition: background-color .2s ease;
}

.ecm-card__button:hover,
.ecm-card__button:focus {
	color: #fff;
	background: var(--ecm-primary-hover);
}

.ecm-card--offline .ecm-card__img { filter: grayscale(.6); }

.ecm-empty { text-align: center; color: #6b7280; }

/* ===== v2: categories, modes, dashboards, room ===== */
.ecm-cats { gap: 16px; }
.ecm-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; text-align: center; text-decoration: none; background: var(--ecm-card-bg); border: 1px solid var(--ecm-border); border-radius: var(--ecm-radius); color: var(--ecm-text); transition: box-shadow .15s, transform .15s; }
.ecm-cat:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.ecm-cat__emoji { font-size: 34px; line-height: 1; }
.ecm-cat__img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.ecm-cat__name { font-weight: 600; }
.ecm-cat__count { font-size: 13px; color: var(--ecm-muted); }

.ecm-actions { margin: 10px 0; }
.ecm-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.ecm-mode { flex: 1 1 0; min-width: 72px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 6px; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; color: var(--ecm-primary); background: #fff; border: 1.5px solid var(--ecm-primary); border-radius: 999px; }
.ecm-mode:hover:not(:disabled) { background: var(--ecm-primary); color: #fff; }
.ecm-mode:disabled { cursor: not-allowed; color: #9ca3af; border-color: #d1d5db; background: #f9fafb; }
.ecm-billing { display: grid; gap: 4px; margin-bottom: 8px; font-size: 14px; }
.ecm-profile-panel { margin: 24px 0; padding: 20px; border: 1px solid var(--ecm-border); border-radius: var(--ecm-radius); }
.ecm-profile-panel .ecm-card__status { position: static; display: inline-flex; margin-bottom: 8px; }

.ecm-dash { max-width: 1000px; margin: 0 auto; color: var(--ecm-text); }
.ecm-dash__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ecm-dash__head .ecm-card__status { position: static; }
.ecm-dash__box { margin: 16px 0; padding: 16px; border: 1px solid var(--ecm-border); border-radius: var(--ecm-radius); background: #fff; }
.ecm-dash__box[hidden] { display: none; }
.ecm-switch { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ecm-switch input { width: 20px; height: 20px; }
.ecm-muted { color: var(--ecm-muted); font-size: 13px; }
.ecm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.ecm-stats > div { padding: 16px; border: 1px solid var(--ecm-border); border-radius: var(--ecm-radius); background: #fff; }
.ecm-stats strong { display: block; font-size: 24px; }
.ecm-stats span { color: var(--ecm-muted); font-size: 13px; }
.ecm-table-wrap { overflow-x: auto; }
.ecm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ecm-table th, .ecm-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--ecm-border); }
.ecm-btn { display: inline-block; padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; color: #fff; background: var(--ecm-primary); border: 0; border-radius: 999px; }
.ecm-btn:hover { background: var(--ecm-primary-hover); color: #fff; }
.ecm-btn--sm { padding: 6px 14px; font-size: 14px; }
.ecm-btn--danger { background: #dc2626; }
.ecm-btn--danger:hover { background: #b91c1c; }
.ecm-notice { max-width: 560px; margin: 24px auto; padding: 20px; text-align: center; border: 1px solid var(--ecm-border); border-radius: var(--ecm-radius); }
.ecm-incoming { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; }

.ecm-room { max-width: 900px; margin: 0 auto; }
.ecm-room__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #111827; color: #fff; border-radius: var(--ecm-radius) var(--ecm-radius) 0 0; }
.ecm-room__bar .ecm-room__with { flex: 1; }
.ecm-room__timer { font-variant-numeric: tabular-nums; font-size: 20px; }
.ecm-room__msg { margin: 12px 0; text-align: center; }
.ecm-room__video { aspect-ratio: 16 / 9; background: #000; }
.ecm-room__video[hidden], .ecm-chat[hidden], .ecm-room__rate[hidden], .ecm-room__after[hidden] { display: none; }
.ecm-room__video iframe { width: 100%; height: 100%; border: 0; }
.ecm-chat { border: 1px solid var(--ecm-border); border-radius: 0 0 var(--ecm-radius) var(--ecm-radius); }
.ecm-chat__log { height: 380px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ecm-msg { max-width: 75%; padding: 8px 12px; background: #f3f4f6; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.ecm-msg--mine { align-self: flex-end; background: var(--ecm-primary); color: #fff; }
.ecm-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--ecm-border); }
.ecm-chat__form input { flex: 1; padding: 10px 12px; border: 1px solid var(--ecm-border); border-radius: 999px; }
.ecm-room__rate, .ecm-room__after { text-align: center; margin: 16px 0; }
.ecm-star { font-size: 32px; line-height: 1; cursor: pointer; color: var(--ecm-star); background: none; border: 0; }

/* ===== v2.1: pro card, single profile page, expert panel ===== */
.ecm-grid, .ecm-profile, .ecm-panel, .ecm-dash, .ecm-room, .ecm-notice, .ecm-cats {
	--ecm-primary: #ec4f8c;
	--ecm-primary-hover: #d63a78;
	--ecm-grad: linear-gradient(90deg, #ec4f8c, #fb7185);
	--ecm-text: #1f2937;
	--ecm-muted: #6b7280;
	--ecm-border: #e5e7eb;
	--ecm-radius: 14px;
	--ecm-star: #f59e0b;
	--ecm-ok: #16a34a;
	--ecm-ok-bg: #e8f6ee;
}
.ecm-ico { flex: none; }

/* --- card --- */
.ecm-card--pro { padding: 22px; gap: 14px; border-radius: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ecm-card--pro:hover { transform: none; box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.ecm-card--pro .ecm-card__top { display: flex; align-items: flex-start; gap: 14px; }
.ecm-card--pro .ecm-card__media { position: relative; flex: none; width: 76px; height: 76px; aspect-ratio: auto; border-radius: 18px; overflow: visible; background: #f3f4f6; }
.ecm-card--pro .ecm-card__img { border-radius: 18px; }
.ecm-card--pro .ecm-card__placeholder { border-radius: 18px; font-size: 32px; }
.ecm-card__dot { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; background: #9ca3af; }
.ecm-card--available .ecm-card__dot, .ecm-profile--available .ecm-card__dot { background: var(--ecm-ok); }
.ecm-card--busy .ecm-card__dot, .ecm-profile--busy .ecm-card__dot { background: #ef4444; }
.ecm-card--pro .ecm-card__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ecm-card--pro .ecm-card__title { font-size: 17px; font-weight: 700; }
.ecm-card__sub { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ecm-muted); min-width: 0; }
.ecm-card__sub .ecm-card__rating { padding: 0; background: none; font-size: 13px; }
.ecm-card__tagline { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecm-card__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ecm-card--pro .ecm-card__status, .ecm-profile .ecm-card__status { position: static; padding: 0; font-size: 12px; background: none; box-shadow: none; }
.ecm-card--pro .ecm-card__status.ecm-status--available, .ecm-profile .ecm-card__status.ecm-status--available { color: var(--ecm-ok); }
.ecm-card--pro .ecm-card__status.ecm-status--busy, .ecm-profile .ecm-card__status.ecm-status--busy { color: #dc2626; }
.ecm-card--pro .ecm-card__status.ecm-status--offline, .ecm-profile .ecm-card__status.ecm-status--offline { color: var(--ecm-muted); }
.ecm-badge { padding: 2px 8px; font-size: 11.5px; font-weight: 600; color: #15803d; background: var(--ecm-ok-bg); border-radius: 6px; white-space: nowrap; }
.ecm-card__desc { margin: 0; font-size: 15px; line-height: 1.5; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ecm-card__tags { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ecm-text); }
.ecm-card__tags li { margin: 0; }
.ecm-card__tags li + li::before { content: "·"; margin: 0 7px; color: #9ca3af; }
.ecm-card__tags--lg { font-size: 14px; gap: 6px 0; }
.ecm-card--pro .ecm-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ecm-border); }
.ecm-card--pro .ecm-card__price { font-size: 19px; font-weight: 800; color: var(--ecm-text); }
.ecm-card--pro .ecm-actions { margin: 0; }
.ecm-card--pro .ecm-card__button { margin-top: 0; padding: 12px 16px; border-radius: 12px; background: var(--ecm-grad); font-weight: 700; }
.ecm-card--pro .ecm-card__button:hover, .ecm-card--pro .ecm-card__button:focus { background: var(--ecm-grad); filter: brightness(.95); }
.ecm-card--pro .ecm-card__button { align-self: flex-start; min-width: 140px; }

/* round icon buttons (card) */
.ecm-mode--icon { flex: none; min-width: 0; width: 38px; height: 38px; padding: 0; color: var(--ecm-primary); background: #fff; border: 1px solid var(--ecm-border); border-radius: 10px; }
.ecm-mode--icon:hover:not(:disabled) { color: #fff; background: var(--ecm-primary); border-color: var(--ecm-primary); }
.ecm-mode--icon .ecm-mode__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ecm-mode--icon:disabled { opacity: 1; }
.ecm-actions--card .ecm-modes { gap: 8px; flex-wrap: nowrap; }
.ecm-actions--profile .ecm-modes { flex-direction: column; }
.ecm-actions--profile .ecm-mode { flex: none; justify-content: center; padding: 12px; font-size: 15px; border-radius: 12px; }

/* --- single page --- */
.ecm-single { max-width: 1120px; margin: 0 auto; padding: 32px 16px; }
.ecm-profile { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; color: var(--ecm-text); }
.ecm-profile__main { display: grid; gap: 18px; }
.ecm-pbox { padding: 24px; background: #fff; border: 1px solid var(--ecm-border); border-radius: 20px; }
.ecm-pbox h2 { margin: 0 0 12px; font-size: 18px; }
.ecm-profile__hero { display: flex; gap: 22px; align-items: center; }
.ecm-profile__avatar { position: relative; flex: none; width: 128px; height: 128px; border-radius: 28px; background: #f3f4f6; }
.ecm-profile__avatar img, .ecm-profile__avatar .ecm-card__placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; display: flex; }
.ecm-profile__avatar .ecm-card__dot { width: 24px; height: 24px; right: -6px; bottom: -6px; border-width: 4px; }
.ecm-profile__crumbs { margin: 0 0 4px; font-size: 13px; }
.ecm-profile__crumbs a { color: var(--ecm-primary); text-decoration: none; }
.ecm-profile__name { margin: 0 0 4px; font-size: 30px; line-height: 1.2; }
.ecm-profile__tagline { margin: 0 0 10px; color: var(--ecm-muted); }
.ecm-pstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ecm-pstats > div { padding: 16px; background: #fff; border: 1px solid var(--ecm-border); border-radius: 16px; }
.ecm-pstats strong { display: block; font-size: 20px; }
.ecm-pstats span { font-size: 13px; color: var(--ecm-muted); }
.ecm-profile__content { line-height: 1.7; }
.ecm-profile__side { position: sticky; top: 24px; }
.ecm-book { display: grid; gap: 10px; }
.ecm-book p { margin: 0; }
.ecm-book__price { font-size: 32px; font-weight: 800; }
.ecm-book__price small { font-size: 15px; font-weight: 500; color: var(--ecm-muted); }
.ecm-hist { display: grid; gap: 6px; margin: 8px 0 16px; }
.ecm-hist__row { display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; }
.ecm-hist__bar { height: 8px; background: #f3f4f6; border-radius: 99px; overflow: hidden; }
.ecm-hist__bar span { display: block; height: 100%; background: var(--ecm-star); }
.ecm-hist__n { text-align: right; color: var(--ecm-muted); }

/* --- expert panel (dashboard) --- */
.ecm-panel { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; max-width: 1200px; align-items: start; }
.ecm-panel__nav { position: sticky; top: 24px; padding: 16px; background: #fff; border: 1px solid var(--ecm-border); border-radius: 18px; }
.ecm-panel__who { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--ecm-border); }
.ecm-panel__avatar { flex: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; background: #f3f4f6; }
.ecm-panel__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ecm-panel__nav nav { display: grid; gap: 2px; }
.ecm-panel__nav nav a { padding: 10px 12px; border-radius: 10px; color: var(--ecm-text); text-decoration: none; font-weight: 600; font-size: 14px; }
.ecm-panel__nav nav a:hover { background: #f9fafb; }
.ecm-panel__nav nav a.is-active { color: #fff; background: var(--ecm-grad); }
.ecm-panel__nav nav a.ecm-panel__ext { margin-top: 8px; font-weight: 500; color: var(--ecm-muted); }
.ecm-panel__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--ecm-border); border-radius: 16px; }
.ecm-panel__bar .ecm-card__status { position: static; }
.ecm-panel__title { margin: 18px 0 4px; font-size: 24px; }
.ecm-panel h3 { margin: 22px 0 8px; font-size: 16px; }
.ecm-panel .ecm-table-wrap { background: #fff; border: 1px solid var(--ecm-border); border-radius: 14px; }
.ecm-panel .ecm-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--ecm-muted); }
.ecm-panel .ecm-table a { color: var(--ecm-primary); font-weight: 600; text-decoration: none; }
.ecm-flash { margin: 14px 0 0; padding: 10px 14px; color: #166534; background: var(--ecm-ok-bg); border-radius: 10px; }
.ecm-flash--err { color: #991b1b; background: #fee2e2; }
.ecm-input { padding: 10px 12px; font: inherit; border: 1px solid var(--ecm-border); border-radius: 10px; max-width: 100%; box-sizing: border-box; }
.ecm-form .ecm-input:not([type="checkbox"]) { width: 100%; max-width: 560px; }
.ecm-form__row { display: grid; gap: 4px; margin: 0 0 16px; }
.ecm-form__row > label { font-weight: 600; }
.ecm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 14px; }
.ecm-filters select { padding: 8px 10px; border: 1px solid var(--ecm-border); border-radius: 10px; background: #fff; }
.ecm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 13px; background: #fdf2f8; color: var(--ecm-primary); border-radius: 99px; }
.ecm-chip a { text-decoration: none; font-weight: 700; color: inherit; }
.ecm-pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.ecm-pager a, .ecm-pager span { min-width: 34px; padding: 6px 10px; text-align: center; text-decoration: none; border: 1px solid var(--ecm-border); border-radius: 8px; background: #fff; color: var(--ecm-text); }
.ecm-pager .is-current { color: #fff; background: var(--ecm-primary); border-color: var(--ecm-primary); }
.ecm-transcript { height: auto; max-height: 520px; background: #fff; border: 1px solid var(--ecm-border); border-radius: 14px; }
.ecm-msg small { display: block; margin-top: 2px; font-size: 11px; opacity: .7; }
.ecm-pos { color: #15803d; }
.ecm-neg { color: #dc2626; }
.ecm-stars { color: var(--ecm-star); letter-spacing: 1px; }
.ecm-readonly { margin: 0 0 8px; padding-left: 18px; }

@media (max-width: 900px) {
	.ecm-profile { grid-template-columns: 1fr; }
	.ecm-profile__side { position: static; order: -1; }
	.ecm-panel { grid-template-columns: 1fr; }
	.ecm-panel__nav { position: static; }
	.ecm-panel__nav nav { display: flex; overflow-x: auto; gap: 6px; }
	.ecm-panel__nav nav a { white-space: nowrap; }
}
@media (max-width: 560px) {
	.ecm-profile__hero { flex-direction: column; align-items: flex-start; }
	.ecm-card--pro { padding: 18px; }
}

/* status segmented control + live panel */
.ecm-seg { display: inline-flex; padding: 3px; background: #f3f4f6; border-radius: 12px; gap: 2px; }
.ecm-seg label { position: relative; cursor: pointer; }
.ecm-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ecm-seg span { display: block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--ecm-muted); border-radius: 9px; }
.ecm-seg input:checked + span { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ecm-seg__on input:checked + span { color: var(--ecm-ok); }
.ecm-seg__busy input:checked + span { color: #dc2626; }
.ecm-seg input:focus-visible + span { outline: 2px solid var(--ecm-primary); }
.ecm-live { margin: 16px 0; padding: 16px 20px; }
.ecm-live h3 { margin: 0 0 8px; }
.ecm-live h3 small { font-weight: 500; color: var(--ecm-muted); }
.ecm-live__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ecm-border); }
.ecm-live__row .ecm-btn { margin-left: auto; }

/* payment popup */
.ecm-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(17,24,39,.55); }
.ecm-modal__box { width: 100%; max-width: 420px; padding: 24px; color: #1f2937; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ecm-modal__title { margin: 0 0 8px; font-size: 20px; }
.ecm-modal__box p { margin: 0 0 12px; }
.ecm-modal__amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ecm-chipbtn { padding: 10px 16px; font: inherit; font-weight: 700; color: #1f2937; background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; cursor: pointer; }
.ecm-chipbtn.is-on { color: #ec4f8c; border-color: #ec4f8c; background: #fdf2f8; }
.ecm-modal__actions { display: flex; gap: 10px; margin-top: 8px; }
.ecm-btn--ghost { color: #374151; background: #f3f4f6; }
.ecm-start-note { margin: 8px 0 0; }
.ecm-modal { --ecm-primary: #ec4f8c; --ecm-grad: linear-gradient(90deg, #ec4f8c, #fb7185); --ecm-muted: #6b7280; }
.ecm-modal .ecm-btn { padding: 12px 20px; font: inherit; font-weight: 700; color: #fff; background: var(--ecm-grad); border: 0; border-radius: 12px; cursor: pointer; }
.ecm-modal .ecm-btn:disabled { opacity: .6; cursor: wait; }
.ecm-modal .ecm-btn--ghost { color: #374151; background: #f3f4f6; }
.ecm-modal .ecm-muted { color: var(--ecm-muted); font-size: 14px; }

/* ===== v2.4: professional card + fluid grid ===== */
.ecm-grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(270px, calc(100% / var(--ecm-cols, 3) - 24px))), 1fr));
	gap: 24px;
	align-items: stretch;
}
.ecm-card--pro {
	container-type: inline-size;
	display: flex; flex-direction: column; gap: 14px;
	padding: 22px; background: #fff;
	border: 1px solid #eceef2; border-radius: 22px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 18px rgba(16,24,40,.04);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.ecm-card--pro:hover { transform: translateY(-2px); border-color: #f5c6da; box-shadow: 0 10px 30px rgba(236,79,140,.14); }
.ecm-card--pro .ecm-card__top { display: flex; align-items: center; gap: 14px; }
.ecm-card--pro .ecm-card__media { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(16,24,40,.15); }
.ecm-card--pro .ecm-card__img, .ecm-card--pro .ecm-card__placeholder { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; }
.ecm-card--pro .ecm-card__placeholder { display: flex; align-items: center; justify-content: center; color: #ec4f8c; background: linear-gradient(135deg, #fde7f1, #ede9fe); font-weight: 800; }
.ecm-card--pro .ecm-card__id { gap: 6px; }
.ecm-card--pro .ecm-card__title { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.ecm-card--pro .ecm-card__title a { color: #111827; text-decoration: none; }
.ecm-card--pro .ecm-card__title a:hover { color: #ec4f8c; }
.ecm-card--pro .ecm-card__sub { gap: 8px; font-size: 13px; }
.ecm-card--pro .ecm-card__rating { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 99px; white-space: nowrap; }
.ecm-card--pro .ecm-card__star { color: #f59e0b; }

/* status pill with dot */
.ecm-card--pro .ecm-card__status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; font-size: 12px; font-weight: 700; border-radius: 99px; background: #f3f4f6; color: #6b7280; }
.ecm-card--pro .ecm-card__status .ecm-status__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ecm-card--pro .ecm-card__status.ecm-status--available { color: #15803d; background: #e8f6ee; }
.ecm-card--pro .ecm-card__status.ecm-status--available .ecm-status__dot { box-shadow: 0 0 0 3px rgba(22,163,74,.22); }
.ecm-card--pro .ecm-card__status.ecm-status--busy { color: #b91c1c; background: #fee2e2; }
.ecm-card--pro .ecm-card__status.ecm-status--offline { color: #6b7280; background: #f3f4f6; }
.ecm-card--pro .ecm-badge { padding: 3px 9px; font-size: 11.5px; border-radius: 99px; }

.ecm-card--pro .ecm-card__desc { font-size: 14.5px; line-height: 1.55; color: #4b5563; -webkit-line-clamp: 3; }
.ecm-card--pro .ecm-card__tags { gap: 6px; }
.ecm-card--pro .ecm-card__tags li { padding: 4px 11px; font-size: 12px; font-weight: 500; color: #374151; background: #f5f6f8; border-radius: 99px; }
.ecm-card--pro .ecm-card__tags li + li::before { content: none; }
.ecm-card--pro .ecm-card__tags li.ecm-card__more { color: #ec4f8c; background: #fdf2f8; font-weight: 700; }

/* foot: price + icons never collide */
.ecm-card--pro .ecm-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #f0f1f4; }
.ecm-card__pricebox { min-width: 0; flex: 1 1 auto; }
.ecm-card--pro .ecm-card__price { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.1; color: #111827; letter-spacing: -.02em; white-space: nowrap; }
.ecm-card--pro .ecm-card__price small { margin-left: 2px; font-size: 13px; font-weight: 600; color: #6b7280; letter-spacing: 0; }
.ecm-card__price2 { margin: 3px 0 0; font-size: 12px; color: #6b7280; }
.ecm-card--pro .ecm-actions { flex: none; margin: 0; }
.ecm-card--pro .ecm-mode--icon { width: 40px; height: 40px; border-radius: 12px; }

.ecm-card--pro .ecm-card__button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-width: 0; box-sizing: border-box; padding: 13px 18px; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; background: var(--ecm-grad); border-radius: 14px; box-shadow: 0 6px 16px rgba(236,79,140,.28); transition: filter .15s ease, box-shadow .15s ease; }
.ecm-card--pro .ecm-card__button::after { content: "\2192"; font-weight: 700; }
.ecm-card--pro .ecm-card__button:hover { filter: brightness(.96); box-shadow: 0 8px 20px rgba(236,79,140,.36); }
.ecm-card--pro .ecm-card__button:focus-visible, .ecm-card--pro .ecm-mode--icon:focus-visible { outline: 3px solid rgba(236,79,140,.45); outline-offset: 2px; }

/* container-based responsiveness: adapts to the card's own width */
@container (max-width: 300px) {
	.ecm-card--pro .ecm-card__media { width: 64px; height: 64px; border-radius: 17px; }
	.ecm-card--pro .ecm-card__title { font-size: 16px; }
	.ecm-card--pro .ecm-card__foot { flex-direction: column; align-items: stretch; }
	.ecm-card--pro .ecm-actions .ecm-modes { justify-content: space-between; }
	.ecm-card--pro .ecm-mode--icon { flex: 1; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .ecm-card--pro, .ecm-card--pro .ecm-card__button { transition: none; } .ecm-card--pro:hover { transform: none; } }
.ecm-card--pro .ecm-card__top { align-items: flex-start; }
.ecm-card--pro .ecm-card__id { min-width: 0; }
.ecm-card--pro .ecm-badge { max-width: 100%; white-space: normal; line-height: 1.3; }
.ecm-card--pro .ecm-card__title, .ecm-card--pro .ecm-card__tagline { overflow-wrap: anywhere; }

/* v2.6: price block must never be overlapped by the icons */
.ecm-card--pro .ecm-card__foot { align-items: center; }
@container (max-width: 300px) {
	.ecm-card--pro .ecm-card__pricebox { flex: none; width: 100%; }
	.ecm-card--pro .ecm-card__foot { flex-wrap: nowrap; gap: 12px; }
	.ecm-card--pro .ecm-actions { width: 100%; }
}
.ecm-card--pro .ecm-mode--icon:disabled { opacity: 1; }

/* v2.6.1: theme buttons (Hello/Elementor kit) must not recolor our action buttons */
.ecm-card--pro .ecm-actions button.ecm-mode--icon,
.ecm-card--pro .ecm-actions a.ecm-mode--icon {
	-webkit-appearance: none; appearance: none; box-shadow: none; text-transform: none; letter-spacing: 0;
	color: #ec4f8c; background: #fff; border: 1px solid #e5e7eb;
}
.ecm-card--pro .ecm-actions button.ecm-mode--icon:hover,
.ecm-card--pro .ecm-actions button.ecm-mode--icon:focus,
.ecm-card--pro .ecm-actions button.ecm-mode--icon:active {
	color: #fff; background: #ec4f8c; border-color: #ec4f8c;
}
.ecm-actions--profile button.ecm-mode { -webkit-appearance: none; appearance: none; box-shadow: none; text-transform: none; letter-spacing: 0; color: #ec4f8c; background: #fff; border: 1.5px solid #ec4f8c; }
.ecm-actions--profile button.ecm-mode:hover, .ecm-actions--profile button.ecm-mode:focus, .ecm-actions--profile button.ecm-mode:active { color: #fff; background: #ec4f8c; }
.ecm-mode .ecm-ico { stroke: currentColor; }

/* toasts (replace browser alerts) */
.ecm-toasts { position: fixed; left: 50%; bottom: 24px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.ecm-toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; color: #fff; font: 500 14.5px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; background: #1f2937; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.28); pointer-events: auto; animation: ecm-toast-in .25s ease; }
.ecm-toast--error { background: #b91c1c; }
.ecm-toast__msg { flex: 1; }
.ecm-toast__x { flex: none; padding: 0 4px; font: inherit; font-size: 20px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; opacity: .8; }
.ecm-toast__x:hover { opacity: 1; }
@keyframes ecm-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ecm-toast { animation: none; } }
.ecm-modal .ecm-input { width: 100%; box-sizing: border-box; margin: 4px 0 12px; }

/* plugin screens inside the theme */
.ecm-sa-main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; box-sizing: border-box; }

/* customer reviews (profile page) */
.ecm-reviews__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ecm-review { padding: 16px 18px; background: #fafafb; border: 1px solid #eceef2; border-radius: 16px; }
.ecm-review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.ecm-review__name { font-size: 15px; color: #111827; }
.ecm-review .ecm-stars { color: #f59e0b; letter-spacing: 1px; }
.ecm-review__date { margin-left: auto; font-size: 12.5px; color: #6b7280; }
.ecm-review__text { margin: 0; line-height: 1.6; color: #374151; overflow-wrap: anywhere; }

/* Message form popup */
.ecm-modal .ecm-field { display: block; margin: 0 0 4px; }
.ecm-modal .ecm-field__label { display: block; font-size: 14px; font-weight: 600; color: #374151; }
.ecm-modal .ecm-field-row { display: flex; gap: 10px; }
.ecm-modal .ecm-field-row .ecm-field { flex: 1; min-width: 0; }
.ecm-modal textarea.ecm-input { resize: vertical; min-height: 110px; font: inherit; }
.ecm-modal .ecm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ecm-modal__box { max-height: 92vh; overflow-y: auto; }
.ecm-toast--ok { background: #166534; color: #fff; }
@media (max-width: 480px) { .ecm-modal .ecm-field-row { flex-direction: column; gap: 0; } }

/* Message form: make sure every field (incl. the textarea) has a visible border, whatever the theme does */
.ecm-modal .ecm-input,
.ecm-modal input.ecm-input,
.ecm-modal textarea.ecm-input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	color: #1f2937;
	background: #fff;
	border: 1px solid #9ca3af !important;
	border-radius: 10px;
	box-shadow: none;
}
.ecm-modal textarea.ecm-input { min-height: 120px; }
.ecm-modal .ecm-input:focus,
.ecm-modal textarea.ecm-input:focus {
	border-color: #ec4f8c !important;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(236,79,140,.2);
}
