/* ==========================================================================
   همراه CRM — Dashboard theme on top of Bootstrap 5.3 (RTL)
   Load AFTER bootstrap.rtl.min.css. Brand tokens match the hamrah-crm
   WordPress theme (navy / teal / coral · Vazirmatn · soft radii).
   Dark mode uses Bootstrap's native  <html data-bs-theme="dark">.
   ========================================================================== */

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Tokens + Bootstrap variable overrides
   -------------------------------------------------------------------------- */
:root {
	--hc-navy: #1f2459;
	--hc-navy-deep: #141838;
	--hc-teal: #3ad3b1;
	--hc-teal-ink: #0e8f76;
	--hc-coral: #f08775;
	--hc-coral-ink: #c2513f;
	--hc-blue: #4f7cff;
	--hc-blue-ink: #3559d6;
	--hc-violet: #7c5cff;
	--hc-violet-ink: #6a4fd6;
	--hc-amber: #f3b93d;
	--hc-amber-ink: #9a7210;

	--hc-soft-teal: rgba(58, 211, 177, .15);
	--hc-soft-coral: rgba(240, 135, 117, .17);
	--hc-soft-blue: rgba(79, 124, 255, .13);
	--hc-soft-violet: rgba(124, 92, 255, .13);
	--hc-soft-amber: rgba(243, 185, 61, .2);
	--hc-soft-navy: rgba(31, 36, 89, .09);

	--hc-faint: #9a9fb8;
	--hc-surface: #f7f8fb;
	--hc-surface-2: #eef0f6;
	--hc-sidebar-w: 272px;
	--hc-topbar-h: 68px;

	--hc-shadow-xs: 0 1px 2px rgba(20, 24, 56, .05);
	--hc-shadow-sm: 0 2px 10px -2px rgba(20, 24, 56, .08);
	--hc-shadow-md: 0 14px 32px -14px rgba(20, 24, 56, .22);

	/* Bootstrap */
	--bs-font-sans-serif: 'Vazirmatn', Tahoma, system-ui, sans-serif;
	--bs-body-font-family: var(--bs-font-sans-serif);
	--bs-body-font-size: .9rem;
	--bs-body-line-height: 1.75;
	--bs-body-color: #1a1f3a;
	--bs-body-color-rgb: 26, 31, 58;
	--bs-body-bg: #f4f6fb;
	--bs-body-bg-rgb: 244, 246, 251;
	--bs-secondary-color: #6b7088;
	--bs-secondary-color-rgb: 107, 112, 136;
	--bs-tertiary-bg: #f7f8fb;
	--bs-tertiary-bg-rgb: 247, 248, 251;
	--bs-secondary-bg: #eef0f6;
	--bs-border-color: #e6e8ef;
	--bs-border-color-translucent: rgba(31, 36, 89, .08);
	--bs-border-radius: .75rem;
	--bs-border-radius-sm: .5rem;
	--bs-border-radius-lg: 1.1rem;
	--bs-border-radius-pill: 999px;
	--bs-heading-color: #1a1f3a;
	--bs-link-color: #1f2459;
	--bs-link-color-rgb: 31, 36, 89;
	--bs-link-hover-color: #0e8f76;
	--bs-link-hover-color-rgb: 14, 143, 118;
	--bs-primary: #1f2459;
	--bs-primary-rgb: 31, 36, 89;
	--bs-primary-text-emphasis: #1f2459;
	--bs-primary-bg-subtle: rgba(31, 36, 89, .09);
	--bs-primary-border-subtle: rgba(31, 36, 89, .2);
	--bs-success: #2fbf9f;
	--bs-success-rgb: 47, 191, 159;
	--bs-success-text-emphasis: #0e8f76;
	--bs-success-bg-subtle: rgba(58, 211, 177, .15);
	--bs-success-border-subtle: rgba(58, 211, 177, .35);
	--bs-info: #4f7cff;
	--bs-info-rgb: 79, 124, 255;
	--bs-info-text-emphasis: #3559d6;
	--bs-info-bg-subtle: rgba(79, 124, 255, .13);
	--bs-info-border-subtle: rgba(79, 124, 255, .3);
	--bs-warning: #f3b93d;
	--bs-warning-rgb: 243, 185, 61;
	--bs-warning-text-emphasis: #9a7210;
	--bs-warning-bg-subtle: rgba(243, 185, 61, .2);
	--bs-warning-border-subtle: rgba(243, 185, 61, .4);
	--bs-danger: #f08775;
	--bs-danger-rgb: 240, 135, 117;
	--bs-danger-text-emphasis: #c2513f;
	--bs-danger-bg-subtle: rgba(240, 135, 117, .17);
	--bs-danger-border-subtle: rgba(240, 135, 117, .4);
	--bs-focus-ring-color: rgba(58, 211, 177, .25);
	color-scheme: light;
}

[data-bs-theme="dark"] {
	--bs-body-color: #e9eaf3;
	--bs-body-color-rgb: 233, 234, 243;
	--bs-body-bg: #0d1024;
	--bs-body-bg-rgb: 13, 16, 36;
	--bs-emphasis-color: #fff;
	--bs-secondary-color: #a2a7c9;
	--bs-secondary-color-rgb: 162, 167, 201;
	--bs-tertiary-bg: #141838;
	--bs-tertiary-bg-rgb: 20, 24, 56;
	--bs-secondary-bg: #1b204a;
	--bs-border-color: #2a2f5c;
	--bs-border-color-translucent: rgba(255, 255, 255, .08);
	--bs-heading-color: #f1f2fa;
	--bs-link-color: #8fe3d0;
	--bs-link-color-rgb: 143, 227, 208;
	--bs-link-hover-color: #3ad3b1;
	--bs-link-hover-color-rgb: 58, 211, 177;
	--bs-primary: #5663d6;
	--bs-primary-rgb: 86, 99, 214;
	--bs-primary-text-emphasis: #aab3f5;
	--bs-primary-bg-subtle: rgba(86, 99, 214, .2);
	--bs-success-text-emphasis: #6fe6cb;
	--bs-info-text-emphasis: #8ea9ff;
	--bs-warning-text-emphasis: #f3cf73;
	--bs-danger-text-emphasis: #f4a798;

	--hc-teal-ink: #6fe6cb;
	--hc-blue-ink: #8ea9ff;
	--hc-violet-ink: #b3a1ff;
	--hc-amber-ink: #f3cf73;
	--hc-coral-ink: #f4a798;
	--hc-faint: #747aa3;
	--hc-surface: #141838;
	--hc-surface-2: #1b204a;
	--hc-soft-navy: rgba(255, 255, 255, .07);
	--hc-shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
	--hc-shadow-sm: 0 2px 10px -2px rgba(0, 0, 0, .35);
	--hc-shadow-md: 0 14px 32px -14px rgba(0, 0, 0, .55);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; transition: background-color .25s ease, color .25s ease; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.4; }
a { text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.fw-800 { font-weight: 800 !important; }
.fs-7 { font-size: .8rem !important; }
.fs-8 { font-size: .72rem !important; }
.text-faint { color: var(--hc-faint) !important; }
:focus-visible { outline: 2px solid var(--hc-teal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   3. Buttons & forms (Bootstrap components, brand-tuned)
   -------------------------------------------------------------------------- */
.btn {
	--bs-btn-font-weight: 700;
	--bs-btn-font-size: .86rem;
	--bs-btn-padding-x: 1.15rem;
	--bs-btn-padding-y: .5rem;
	--bs-btn-border-radius: 999px;
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .85rem; --bs-btn-font-size: .8rem; }
.btn-primary {
	--bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
	--bs-btn-bg: var(--hc-navy); --bs-btn-border-color: var(--hc-navy);
	--bs-btn-hover-bg: #2b3380; --bs-btn-hover-border-color: #2b3380;
	--bs-btn-active-bg: var(--hc-navy-deep); --bs-btn-active-border-color: var(--hc-navy-deep);
	background-image: linear-gradient(135deg, var(--hc-navy-deep), var(--hc-navy));
	box-shadow: 0 10px 22px -10px rgba(31, 36, 89, .7);
}
[data-bs-theme="dark"] .btn-primary {
	--bs-btn-bg: #3a44a8; --bs-btn-border-color: #3a44a8; --bs-btn-hover-bg: #4651c2; --bs-btn-hover-border-color: #4651c2;
	background-image: linear-gradient(135deg, #2b3380, #3a44a8);
}
.btn-accent {
	--bs-btn-color: #0b1a2b; --bs-btn-hover-color: #0b1a2b; --bs-btn-active-color: #0b1a2b;
	--bs-btn-bg: var(--hc-teal); --bs-btn-border-color: var(--hc-teal);
	--bs-btn-hover-bg: #52dcbe; --bs-btn-hover-border-color: #52dcbe;
	--bs-btn-active-bg: #2fbf9f; --bs-btn-active-border-color: #2fbf9f;
	box-shadow: 0 10px 22px -10px rgba(58, 211, 177, .8);
}
.btn-light {
	--bs-btn-bg: var(--bs-body-bg); --bs-btn-color: var(--bs-body-color);
	--bs-btn-border-color: var(--bs-border-color);
	--bs-btn-hover-bg: var(--bs-tertiary-bg); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-hover-color: var(--bs-body-color);
	--bs-btn-active-bg: var(--bs-secondary-bg); --bs-btn-active-color: var(--bs-body-color); --bs-btn-active-border-color: var(--bs-border-color);
	background-color: var(--bs-card-bg, var(--bs-body-bg));
	box-shadow: var(--hc-shadow-xs);
}
.btn-icon {
	width: 2.1rem; height: 2.1rem; padding: 0; border-radius: .65rem;
	display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--bs-secondary-color);
}
.btn-icon:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); transform: none; }
.btn-round { width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; }

.form-control, .form-select {
	border-radius: .75rem; font-size: .88rem; padding-block: .55rem;
	background-color: var(--bs-body-bg);
}
.card .form-control, .card .form-select, .topbar .form-control { background-color: var(--bs-card-bg, var(--bs-body-bg)); }
.form-control:focus, .form-select:focus { border-color: var(--hc-teal); box-shadow: 0 0 0 .22rem var(--bs-focus-ring-color); background-color: var(--bs-card-bg, var(--bs-body-bg)); }
.form-control::placeholder { color: var(--hc-faint); }
.form-label { font-size: .78rem; font-weight: 700; color: var(--bs-secondary-color); }
.form-check-input:checked { background-color: var(--hc-teal); border-color: var(--hc-teal); }
.form-check-input:focus { border-color: var(--hc-teal); box-shadow: 0 0 0 .22rem var(--bs-focus-ring-color); }
.form-switch .form-check-input:checked { background-color: var(--hc-teal); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); color: var(--hc-faint); pointer-events: none; }
.input-icon > .form-control { padding-inline-start: 2.6rem; }
.input-icon kbd { position: absolute; inset-inline-end: .8rem; top: 50%; transform: translateY(-50%); font: inherit; font-size: .7rem; color: var(--hc-faint); border: 1px solid var(--bs-border-color); border-radius: .4rem; padding: 0 .4rem; background: var(--hc-surface); }

/* --------------------------------------------------------------------------
   4. Cards
   -------------------------------------------------------------------------- */
.card {
	--bs-card-border-color: rgba(31, 36, 89, .07);
	--bs-card-border-radius: 1.1rem;
	--bs-card-inner-border-radius: 1.05rem;
	--bs-card-cap-bg: transparent;
	--bs-card-cap-padding-x: 1.3rem;
	--bs-card-cap-padding-y: 1.1rem;
	--bs-card-spacer-x: 1.3rem;
	--bs-card-spacer-y: 1.15rem;
	--bs-card-bg: #fff;
	box-shadow: var(--hc-shadow-sm);
}
[data-bs-theme="dark"] .card { --bs-card-bg: #171b3a; --bs-card-border-color: #2a2f5c; }
.card-header { border-bottom: 0; padding-bottom: .3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-header h3, .card-header .card-title { font-size: .98rem; font-weight: 800; margin: 0; }
.card-header small { display: block; color: var(--bs-secondary-color); font-size: .76rem; font-weight: 500; }
.card-flush { padding: 0; overflow: hidden; }
.link-more { font-size: .78rem; font-weight: 700; color: var(--hc-blue-ink); display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.link-more:hover { color: var(--hc-teal-ink); }

/* --------------------------------------------------------------------------
   5. Badges, icon tiles, avatars
   -------------------------------------------------------------------------- */
.badge { font-weight: 700; font-size: .72rem; padding: .28em .75em; }
.badge.rounded-pill { line-height: 1.5; }
.badge-soft { display: inline-flex; align-items: center; gap: .35rem; }
.badge-soft.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-soft-teal { background: var(--hc-soft-teal); color: var(--hc-teal-ink); }
.badge-soft-blue { background: var(--hc-soft-blue); color: var(--hc-blue-ink); }
.badge-soft-violet { background: var(--hc-soft-violet); color: var(--hc-violet-ink); }
.badge-soft-amber { background: var(--hc-soft-amber); color: var(--hc-amber-ink); }
.badge-soft-coral { background: var(--hc-soft-coral); color: var(--hc-coral-ink); }
.badge-soft-gray { background: var(--hc-surface-2); color: var(--bs-secondary-color); }
.badge-soft-navy { background: var(--hc-soft-navy); color: var(--bs-primary-text-emphasis); }

.icon-tile { width: 2.5rem; height: 2.5rem; border-radius: .8rem; display: inline-grid; place-items: center; flex-shrink: 0; font-size: 1.1rem; }
.icon-tile.sm { width: 2.1rem; height: 2.1rem; border-radius: .65rem; font-size: .98rem; }
.icon-tile.lg { width: 3.1rem; height: 3.1rem; border-radius: 1rem; font-size: 1.35rem; }
.tile-teal { background: var(--hc-soft-teal); color: var(--hc-teal-ink); }
.tile-blue { background: var(--hc-soft-blue); color: var(--hc-blue-ink); }
.tile-violet { background: var(--hc-soft-violet); color: var(--hc-violet-ink); }
.tile-amber { background: var(--hc-soft-amber); color: var(--hc-amber-ink); }
.tile-coral { background: var(--hc-soft-coral); color: var(--hc-coral-ink); }
.tile-navy { background: var(--hc-soft-navy); color: var(--bs-primary-text-emphasis); }

.avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; color: #fff; font-weight: 800; font-size: .76rem; background: linear-gradient(135deg, var(--hc-navy), #3a44a8); }
.avatar.sm { width: 1.7rem; height: 1.7rem; font-size: .62rem; }
.avatar.lg { width: 4rem; height: 4rem; font-size: 1.3rem; }
.avatar.xl { width: 5rem; height: 5rem; font-size: 1.6rem; }
.av-1 { background: linear-gradient(135deg, #1f2459, #3a44a8); }
.av-2 { background: linear-gradient(135deg, #2a9d8f, #3ad3b1); color: #0b1a2b; }
.av-3 { background: linear-gradient(135deg, #f08775, #f3b93d); }
.av-4 { background: linear-gradient(135deg, #4f7cff, #7aa2ff); }
.av-5 { background: linear-gradient(135deg, #7c5cff, #b39dff); }
.av-6 { background: linear-gradient(135deg, #0e8f76, #3ad3b1); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--bs-card-bg, var(--bs-body-bg)); margin-inline-start: -.5rem; }
.avatar-stack .avatar:first-child { margin-inline-start: 0; }

/* --------------------------------------------------------------------------
   6. App shell — sidebar + topbar
   -------------------------------------------------------------------------- */
.app-sidebar {
	position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 1040;
	width: var(--hc-sidebar-w);
	display: flex; flex-direction: column;
	padding: 1.25rem 1rem 1rem;
	background: linear-gradient(170deg, #141838 0%, #1b2050 100%);
	color: #c4c9ee; overflow-y: auto;
	transition: transform .28s ease;
}
.app-sidebar::-webkit-scrollbar { width: 0; }
.app-main { margin-inline-start: var(--hc-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.sidebar-backdrop { display: none; }

.sb-brand { display: flex; align-items: center; gap: .7rem; padding: .25rem .5rem 1.15rem; color: #fff; }
.sb-brand img { width: 2.4rem; height: 2.4rem; object-fit: contain; background: #fff; border-radius: .8rem; padding: 4px; }
.sb-brand b { display: block; color: #fff; font-size: 1.12rem; font-weight: 800; line-height: 1.3; }
.sb-brand small { display: block; color: #8b92c9; font-size: .7rem; font-weight: 500; }

.sb-biz {
	display: flex; align-items: center; gap: .65rem; width: 100%;
	padding: .6rem .7rem; margin-bottom: 1.1rem; color: #fff; text-align: start;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); border-radius: .9rem;
}
.sb-biz:hover { background: rgba(255, 255, 255, .09); }
.sb-biz__logo { width: 2.1rem; height: 2.1rem; border-radius: .65rem; background: linear-gradient(135deg, #3ad3b1, #2a9d8f); color: #0b1a2b; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.sb-biz__txt { flex: 1; min-width: 0; line-height: 1.4; }
.sb-biz__name { display: block; font-weight: 700; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-biz__role { display: block; font-size: .7rem; color: #8b92c9; }
.sb-biz .bi { color: #8b92c9; font-size: .8rem; }

.sb-nav { flex: 1; }
.sb-group { margin-bottom: 1rem; }
.sb-label { padding: 0 .75rem .35rem; font-size: .68rem; font-weight: 700; color: #6f77b3; }
.sb-link {
	position: relative; display: flex; align-items: center; gap: .75rem;
	padding: .55rem .75rem; margin-bottom: 2px; border-radius: .7rem;
	color: #b8bee8; font-weight: 600; font-size: .87rem;
	transition: background-color .15s ease, color .15s ease;
}
.sb-link .bi { font-size: 1.05rem; }
.sb-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.sb-link.active { background: rgba(58, 211, 177, .13); color: #fff; }
.sb-link.active::before { content: ""; position: absolute; inset-inline-start: -1rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--hc-teal); }
[dir="rtl"] .sb-link.active::before { border-radius: 3px 0 0 3px; }
.sb-link.active .bi { color: var(--hc-teal); }
.sb-badge { margin-inline-start: auto; padding: .02rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #d8dcf7; font-size: .7rem; font-weight: 700; }
.sb-link.active .sb-badge { background: rgba(58, 211, 177, .22); color: #bff3e6; }

.sb-credit { margin-top: .5rem; padding: .9rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .09); }
.sb-credit__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .76rem; color: #8b92c9; }
.sb-credit__top b { color: #fff; font-size: 1.05rem; font-weight: 800; }
.sb-credit .progress { --bs-progress-height: 6px; --bs-progress-bg: rgba(255, 255, 255, .1); margin: .6rem 0 .45rem; }
.sb-credit small { font-size: .7rem; color: #7a82bd; }

.topbar {
	position: sticky; top: 0; z-index: 1020; height: var(--hc-topbar-h);
	display: flex; align-items: center; gap: .9rem; padding: 0 2rem;
	background: color-mix(in srgb, var(--bs-body-bg) 82%, transparent);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--bs-border-color-translucent);
}
.topbar .search { flex: 1; max-width: 460px; }
.topbar .search .form-control { height: 2.6rem; border-radius: 999px; box-shadow: var(--hc-shadow-xs); padding-inline-end: 3.2rem; }
.tb-btn { position: relative; width: 2.6rem; height: 2.6rem; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--bs-border-color); background: var(--bs-card-bg, #fff); color: var(--bs-body-color); box-shadow: var(--hc-shadow-xs); }
[data-bs-theme="dark"] .tb-btn { background: #171b3a; }
.tb-btn:hover { color: var(--hc-teal-ink); }
.tb-btn .dot { position: absolute; top: .55rem; inset-inline-end: .6rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--hc-coral); border: 2px solid var(--bs-card-bg, #fff); }
.tb-user { display: flex; align-items: center; gap: .65rem; padding: .22rem .4rem .22rem .9rem; border: 1px solid var(--bs-border-color); border-radius: 999px; background: var(--bs-card-bg, #fff); box-shadow: var(--hc-shadow-xs); color: inherit; }
[data-bs-theme="dark"] .tb-user { background: #171b3a; }
.tb-user b { display: block; font-size: .82rem; line-height: 1.3; }
.tb-user small { display: block; font-size: .7rem; color: var(--bs-secondary-color); line-height: 1.3; }
[data-bs-theme="light"] .theme-moon, [data-bs-theme="dark"] .theme-sun { display: none; }

.dropdown-menu { --bs-dropdown-border-radius: 1rem; --bs-dropdown-padding-y: .5rem; --bs-dropdown-item-border-radius: .6rem; --bs-dropdown-item-padding-y: .45rem; --bs-dropdown-font-size: .86rem; --bs-dropdown-box-shadow: var(--hc-shadow-md); --bs-dropdown-bg: var(--bs-card-bg, #fff); border-color: var(--bs-border-color); box-shadow: var(--hc-shadow-md); }
[data-bs-theme="dark"] .dropdown-menu { --bs-dropdown-bg: #171b3a; }
.dropdown-menu { margin-inline: .5rem; }
.dropdown-item { margin-inline: .4rem; width: auto; }

.page { padding: 1.75rem 2rem 3rem; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.55rem; font-weight: 800; margin: 0; }
.page-head p { color: var(--bs-secondary-color); margin: .15rem 0 0; font-size: .88rem; }
.breadcrumb { --bs-breadcrumb-font-size: .76rem; --bs-breadcrumb-divider-color: var(--hc-faint); --bs-breadcrumb-item-active-color: var(--bs-secondary-color); margin-bottom: .3rem; }
.breadcrumb a { color: var(--hc-faint); }
.breadcrumb a:hover { color: var(--hc-teal-ink); }

/* --------------------------------------------------------------------------
   7. Dashboard pieces
   -------------------------------------------------------------------------- */
.kpi .kpi-label { font-size: .82rem; font-weight: 600; color: var(--bs-secondary-color); }
.kpi .kpi-value { font-size: 1.85rem; font-weight: 800; line-height: 1.2; margin: .55rem 0 .15rem; letter-spacing: -.01em; }
.kpi .kpi-value small { font-size: .78rem; font-weight: 600; color: var(--bs-secondary-color); margin-inline-start: .35rem; letter-spacing: 0; }
.kpi .kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .76rem; color: var(--bs-secondary-color); }
.delta { display: inline-flex; align-items: center; gap: .15rem; font-weight: 800; }
.delta.up { color: var(--hc-teal-ink); }
.delta.down { color: var(--hc-coral-ink); }
.spark { width: 5.5rem; height: 1.9rem; }

.chart-legend { display: flex; gap: 1rem; font-size: .76rem; color: var(--bs-secondary-color); }
.chart-legend i { display: inline-block; width: .6rem; height: .6rem; border-radius: 3px; margin-inline-end: .35rem; vertical-align: -1px; }

.funnel-row + .funnel-row { margin-top: 1rem; }
.funnel-meta { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .35rem; }
.funnel-meta span { color: var(--bs-secondary-color); }
.funnel-bar { height: 2.15rem; border-radius: .7rem; background: var(--hc-surface-2); overflow: hidden; }
.funnel-bar i { display: flex; align-items: center; height: 100%; padding-inline: .9rem; border-radius: .7rem; color: #fff; font-size: .8rem; font-weight: 800; font-style: normal; }

.item-row { display: flex; align-items: center; gap: .75rem; padding: .72rem 0; }
.item-row + .item-row { border-top: 1px dashed var(--bs-border-color); }
.item-row .body { flex: 1; min-width: 0; line-height: 1.5; }
.item-row .body b { display: block; font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-row .body small { color: var(--bs-secondary-color); font-size: .75rem; }
.item-row .when { font-size: .76rem; font-weight: 700; color: var(--bs-secondary-color); white-space: nowrap; }
.item-row .when.late { color: var(--hc-coral-ink); }
.item-row.done .body b { text-decoration: line-through; color: var(--bs-secondary-color); font-weight: 600; }
.item-row .amount { text-align: end; font-weight: 800; font-size: .86rem; line-height: 1.5; }
.item-row .amount small { display: block; font-weight: 600; }

.donut-wrap { display: flex; align-items: center; gap: 1.25rem; }
.legend-list { flex: 1; margin: 0; padding: 0; list-style: none; font-size: .82rem; }
.legend-list li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.legend-list i { width: .65rem; height: .65rem; border-radius: 4px; flex-shrink: 0; }
.legend-list b { margin-inline-start: auto; font-weight: 800; }
.progress { --bs-progress-height: .55rem; --bs-progress-bg: var(--hc-surface-2); --bs-progress-border-radius: 99px; }
.progress-bar { background: linear-gradient(90deg, #2a9d8f, var(--hc-teal)); }

/* --------------------------------------------------------------------------
   8. Tables / lists
   -------------------------------------------------------------------------- */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: var(--hc-surface); --bs-table-border-color: var(--bs-border-color-translucent); margin: 0; font-size: .86rem; }
.table > :not(caption) > * > * { padding: .85rem 1.1rem; vertical-align: middle; }
.table thead th { font-size: .74rem; font-weight: 700; color: var(--bs-secondary-color); background: var(--hc-surface); border-bottom: 1px solid var(--bs-border-color); white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .cell-person { display: flex; align-items: center; gap: .7rem; min-width: 12rem; }
.table .cell-person b { display: block; font-size: .86rem; font-weight: 700; line-height: 1.4; }
.table .cell-person small { color: var(--bs-secondary-color); font-size: .74rem; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
.table-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .9rem 1.25rem; border-top: 1px solid var(--bs-border-color-translucent); font-size: .8rem; color: var(--bs-secondary-color); }

.nav-pills-soft { gap: .35rem; flex-wrap: wrap; }
.nav-pills-soft .nav-link { color: var(--bs-secondary-color); font-weight: 700; font-size: .82rem; padding: .4rem .95rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .45rem; }
.nav-pills-soft .nav-link .count { font-size: .7rem; padding: 0 .45rem; border-radius: 99px; background: var(--hc-surface-2); color: var(--bs-secondary-color); }
.nav-pills-soft .nav-link:hover { color: var(--bs-body-color); background: var(--hc-surface-2); }
.nav-pills-soft .nav-link.active { background: var(--hc-soft-navy); color: var(--bs-primary-text-emphasis); }
.nav-pills-soft .nav-link.active .count { background: var(--hc-navy); color: #fff; }
[data-bs-theme="dark"] .nav-pills-soft .nav-link.active .count { background: #3a44a8; }

.nav-tabs-line { border-bottom: 1px solid var(--bs-border-color); gap: 1.4rem; padding-inline: .25rem; }
.nav-tabs-line .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--bs-secondary-color); font-weight: 700; font-size: .86rem; padding: .7rem .15rem; margin-bottom: -1px; background: transparent; }
.nav-tabs-line .nav-link:hover { color: var(--bs-body-color); }
.nav-tabs-line .nav-link.active { color: var(--bs-primary-text-emphasis); border-bottom-color: var(--hc-teal); background: transparent; }

.pagination { --bs-pagination-border-radius: .65rem; --bs-pagination-font-size: .8rem; --bs-pagination-padding-x: .7rem; --bs-pagination-padding-y: .3rem; --bs-pagination-color: var(--bs-body-color); --bs-pagination-bg: transparent; --bs-pagination-border-color: var(--bs-border-color); --bs-pagination-hover-bg: var(--hc-surface-2); --bs-pagination-hover-color: var(--bs-body-color); --bs-pagination-hover-border-color: var(--bs-border-color); --bs-pagination-active-bg: var(--hc-navy); --bs-pagination-active-border-color: var(--hc-navy); gap: .3rem; margin: 0; }
.pagination .page-link { border-radius: .65rem !important; font-weight: 700; }

/* --------------------------------------------------------------------------
   9. Customer detail
   -------------------------------------------------------------------------- */
.profile-cover { height: 6.5rem; border-radius: 1.1rem 1.1rem 0 0; background: linear-gradient(120deg, #141838 0%, #2b3380 55%, #3ad3b1 140%); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 120%, rgba(58, 211, 177, .45), transparent 55%), radial-gradient(circle at 90% -20%, rgba(240, 135, 117, .35), transparent 50%); }
.profile-avatar { margin-top: -2.5rem; border: 4px solid var(--bs-card-bg, #fff); position: relative; z-index: 1; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; font-size: .84rem; }
.info-list li + li { border-top: 1px dashed var(--bs-border-color); }
.info-list .bi { color: var(--hc-faint); margin-top: .2rem; }
.info-list small { display: block; color: var(--bs-secondary-color); font-size: .72rem; }
.info-list b { font-weight: 700; }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; inset-block: .4rem; inset-inline-start: 1.05rem; width: 2px; background: var(--bs-border-color); }
.timeline li { position: relative; display: flex; gap: .9rem; padding-bottom: 1.35rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-dot { position: relative; z-index: 1; border: 3px solid var(--bs-card-bg, #fff); width: 2.2rem; height: 2.2rem; }
.timeline .tl-body { flex: 1; min-width: 0; line-height: 1.6; }
.timeline .tl-body b { font-size: .86rem; }
.timeline .tl-body p { margin: .15rem 0 0; font-size: .82rem; color: var(--bs-secondary-color); }
.timeline .tl-meta { font-size: .72rem; color: var(--hc-faint); white-space: nowrap; }
.note-box { background: var(--hc-soft-amber); border: 1px solid rgba(243, 185, 61, .3); border-radius: .9rem; padding: .9rem 1rem; font-size: .84rem; }

.stat-mini { padding: .9rem 1rem; border-radius: .9rem; background: var(--hc-surface); text-align: center; }
.stat-mini b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.4; }
.stat-mini small { color: var(--bs-secondary-color); font-size: .72rem; }

/* --------------------------------------------------------------------------
   10. Pipeline (kanban)
   -------------------------------------------------------------------------- */
.kanban { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .75rem; align-items: flex-start; }
.kanban::-webkit-scrollbar { height: 8px; }
.kanban::-webkit-scrollbar-thumb { background: var(--bs-border-color); border-radius: 99px; }
.k-col { flex: 1 0 13rem; background: var(--hc-surface-2); border-radius: 1.1rem; padding: .85rem; }
[data-bs-theme="dark"] .k-col { background: rgba(255, 255, 255, .035); }
.k-head { display: flex; align-items: center; gap: .6rem; padding: .15rem .35rem .8rem; }
.k-head .k-dot { width: .7rem; height: .7rem; border-radius: 50%; }
.k-head b { font-size: .9rem; font-weight: 800; }
.k-head .k-count { font-size: .72rem; font-weight: 800; padding: .02rem .55rem; border-radius: 99px; background: var(--bs-card-bg, #fff); color: var(--bs-secondary-color); }
.k-total { margin-inline-start: auto; font-size: .74rem; color: var(--bs-secondary-color); font-weight: 700; }
.k-card { background: var(--bs-card-bg, #fff); border: 1px solid rgba(31, 36, 89, .06); border-radius: .95rem; padding: .9rem; box-shadow: var(--hc-shadow-xs); transition: transform .15s ease, box-shadow .15s ease; cursor: grab; }
[data-bs-theme="dark"] .k-card { background: #171b3a; border-color: #2a2f5c; }
.k-card:hover { transform: translateY(-2px); box-shadow: var(--hc-shadow-md); }
.k-card + .k-card { margin-top: .7rem; }
.k-card h4 { font-size: .86rem; font-weight: 700; margin: 0 0 .15rem; line-height: 1.6; }
.k-card .k-cust { font-size: .76rem; color: var(--bs-secondary-color); display: flex; align-items: center; gap: .35rem; }
.k-card .k-amount { font-weight: 800; font-size: .92rem; margin: .65rem 0 .6rem; }
.k-card .k-foot { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--bs-secondary-color); padding-top: .65rem; border-top: 1px dashed var(--bs-border-color); }
.k-card .k-prob { height: 4px; border-radius: 99px; background: var(--hc-surface-2); overflow: hidden; margin-bottom: .65rem; }
.k-card .k-prob i { display: block; height: 100%; border-radius: 99px; }
.k-add { width: 100%; margin-top: .7rem; padding: .55rem; border: 1.5px dashed var(--bs-border-color); border-radius: .85rem; background: transparent; color: var(--bs-secondary-color); font-size: .8rem; font-weight: 700; }
.k-add:hover { border-color: var(--hc-teal); color: var(--hc-teal-ink); }

/* --------------------------------------------------------------------------
   11. Calendar + tasks
   -------------------------------------------------------------------------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--bs-border-color); border-radius: 1rem; overflow: hidden; }
.cal-dow { padding: .6rem; text-align: center; font-size: .74rem; font-weight: 700; color: var(--bs-secondary-color); background: var(--hc-surface); border-bottom: 1px solid var(--bs-border-color); }
.cal-cell { min-height: 6.4rem; padding: .45rem .5rem; border-inline-start: 1px solid var(--bs-border-color-translucent); border-top: 1px solid var(--bs-border-color-translucent); background: var(--bs-card-bg, #fff); }
[data-bs-theme="dark"] .cal-cell { background: #171b3a; }
.cal-cell.off { background: var(--hc-surface); opacity: .65; }
.cal-cell.fri .cal-d { color: var(--hc-coral-ink); }
.cal-d { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; font-size: .78rem; font-weight: 700; }
.cal-cell.today .cal-d { background: var(--hc-navy); color: #fff; }
[data-bs-theme="dark"] .cal-cell.today .cal-d { background: #3a44a8; }
.cal-ev { display: block; margin-top: .25rem; padding: .08rem .45rem; border-radius: .4rem; font-size: .68rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-inline-start: 3px solid currentColor; }
.cal-ev.teal { background: var(--hc-soft-teal); color: var(--hc-teal-ink); }
.cal-ev.blue { background: var(--hc-soft-blue); color: var(--hc-blue-ink); }
.cal-ev.violet { background: var(--hc-soft-violet); color: var(--hc-violet-ink); }
.cal-ev.amber { background: var(--hc-soft-amber); color: var(--hc-amber-ink); }
.cal-ev.coral { background: var(--hc-soft-coral); color: var(--hc-coral-ink); }

/* --------------------------------------------------------------------------
   12. Reports
   -------------------------------------------------------------------------- */
.rank { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .74rem; font-weight: 800; background: var(--hc-surface-2); color: var(--bs-secondary-color); }
.rank.r1 { background: var(--hc-soft-amber); color: var(--hc-amber-ink); }
.rank.r2 { background: var(--hc-soft-blue); color: var(--hc-blue-ink); }
.rank.r3 { background: var(--hc-soft-coral); color: var(--hc-coral-ink); }
.apexcharts-tooltip { font-family: 'Vazirmatn', sans-serif !important; }
.apexcharts-text, .apexcharts-legend-text { font-family: 'Vazirmatn', sans-serif !important; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
	.app-sidebar { transform: translateX(100%); box-shadow: none; }
	[dir="ltr"] .app-sidebar { transform: translateX(-100%); }
	.app-sidebar.open { transform: none; box-shadow: var(--hc-shadow-md); }
	.app-main { margin-inline-start: 0; }
	.sidebar-backdrop.show { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(13, 16, 36, .55); }
	.topbar { padding-inline: 1rem; }
	.page { padding: 1.25rem 1rem 2.5rem; }
}
@media (max-width: 575.98px) {
	.tb-user span:not(.avatar) { display: none; }
	.tb-user { padding: .22rem; }
	.donut-wrap { flex-direction: column; align-items: stretch; }
	.cal-cell { min-height: 4.6rem; }
}

.divider-dashed { border-top: 1px dashed var(--bs-border-color); }
.legend-list li { white-space: nowrap; }

.table td { white-space: nowrap; }
.table-toolbar.tabs { padding-block: .7rem; }



/* --------------------------------------------------------------------------
   14. Auth pages (login / register) + creative cover
   -------------------------------------------------------------------------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: 100vh; }
.auth-panel { display: flex; flex-direction: column; padding: 1.75rem 2.5rem; background: var(--bs-body-bg); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.auth-brand { display: flex; align-items: center; gap: .7rem; color: inherit; }
.auth-brand img { width: 2.6rem; height: 2.6rem; object-fit: contain; }
.auth-brand b { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1.3; }
.auth-brand small { display: block; font-size: .7rem; color: var(--bs-secondary-color); }
.auth-card { width: 100%; max-width: 28rem; margin: auto; padding: 2rem 0; }
.auth-card h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; }
.auth-sub { color: var(--bs-secondary-color); margin-bottom: 1.75rem; }
.auth-foot { text-align: center; font-size: .75rem; color: var(--hc-faint); margin: 0; }
.auth-card .form-control, .auth-card .form-select { background-color: var(--bs-card-bg, #fff); }
[data-bs-theme="dark"] .auth-card .form-control, [data-bs-theme="dark"] .auth-card .form-select { background-color: #171b3a; }
.auth-card .form-control-lg { padding-block: .7rem; font-size: .92rem; }
.auth-card .btn-lg { --bs-btn-padding-y: .75rem; --bs-btn-font-size: .95rem; }
.pw-toggle { position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; background: transparent; color: var(--hc-faint); border-radius: 50%; }
.pw-toggle:hover { color: var(--bs-body-color); }
.auth-or { display: flex; align-items: center; gap: .9rem; margin: 1.4rem 0; color: var(--hc-faint); font-size: .78rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--bs-border-color); }
.pw-meter { display: flex; align-items: center; gap: .3rem; }
.pw-meter i { flex: 1; height: 4px; border-radius: 9px; background: var(--hc-surface-2); }
.pw-meter i.on { background: var(--hc-teal); }
.pw-meter span { font-size: .72rem; font-weight: 700; color: var(--hc-teal-ink); margin-inline-start: .4rem; white-space: nowrap; }

/* cover */
.auth-cover {
	position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
	padding: 2rem 3rem 2.5rem; color: #fff;
	background: linear-gradient(155deg, #0f1233 0%, #1b2050 48%, #1f2a6b 100%);
}
.cover-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.cover-glow.g1 { width: 26rem; height: 26rem; background: rgba(58, 211, 177, .35); inset-block-start: -8rem; inset-inline-start: -7rem; }
.cover-glow.g2 { width: 24rem; height: 24rem; background: rgba(240, 135, 117, .28); inset-block-end: -9rem; inset-inline-end: -6rem; }
.cover-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
	background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%); }
.cover-top, .cover-stage, .cover-bottom { position: relative; z-index: 1; }
.cover-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .95rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #bff3e6; background: rgba(58, 211, 177, .14); border: 1px solid rgba(58, 211, 177, .3); }

.cover-stage { position: relative; flex: 1; min-height: 25rem; margin-block: 1rem; }
.fc {
	position: absolute; padding: 1rem 1.1rem; border-radius: 1.1rem; color: #fff;
	background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); animation: fcFloat 7s ease-in-out infinite;
}
.fc small { display: block; color: #aeb5e6; font-size: .72rem; }
.fc b { font-size: .84rem; font-weight: 700; }
.fc-label { font-size: .76rem; font-weight: 600; color: #aeb5e6; }
.fc-chip { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; padding: .05rem .5rem; border-radius: 99px; }
.fc-chip.up { background: rgba(58, 211, 177, .2); color: #7af0d3; }
.fc-revenue { inset-block-start: 0; inset-inline-start: 4%; width: 17rem; }
.fc-value { font-size: 2rem; font-weight: 800; line-height: 1.3; margin: .35rem 0 .7rem; }
.fc-value small { display: inline; font-size: .74rem; margin-inline-start: .4rem; font-weight: 600; }
.fc-bars { display: flex; align-items: flex-end; gap: .4rem; height: 4rem; }
.fc-bars i { flex: 1; border-radius: .4rem .4rem .2rem .2rem; background: linear-gradient(180deg, #6fe6cb, #2a9d8f); transform-origin: bottom; animation: barGrow 1s ease both; }
.fc-bars i:nth-child(odd) { opacity: .7; }
.fc-deal { inset-block-start: 7.2rem; inset-inline-end: 0; display: flex; align-items: center; gap: .8rem; width: 18.5rem; animation-delay: -2s; }
.fc-pipe { inset-block-start: 15.2rem; inset-inline-start: 0; width: 15rem; animation-delay: -4s; }
.fp { display: flex; align-items: center; gap: .6rem; font-size: .7rem; color: #c4c9ee; margin-top: .45rem; }
.fp span { width: 3rem; flex-shrink: 0; }
.fp i { display: block; height: .55rem; border-radius: 99px; }
.fc-task { inset-block-start: 17rem; inset-inline-end: 3%; display: flex; align-items: center; gap: .75rem; width: 17rem; animation-delay: -1s; }
.fc-team { inset-block-end: .5rem; inset-inline-start: 26%; display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; border-radius: 999px; animation-delay: -3s; }
.fc-team .avatar { border-color: #2a3070; }
.fc .icon-tile { flex-shrink: 0; }
@keyframes fcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes barGrow { from { transform: scaleY(.1); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .fc, .fc-bars i { animation: none; } }

.cover-bottom h2 { font-size: 2.1rem; font-weight: 800; line-height: 1.5; color: #fff; margin-bottom: .6rem; }
.cover-bottom p { color: #b8bee8; max-width: 30rem; font-size: .92rem; margin-bottom: 1.1rem; }
.cover-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .82rem; color: #d8dcf7; }
.cover-points .bi { color: var(--hc-teal); margin-inline-end: .3rem; }

@media (max-width: 991.98px) {
	.auth-shell { grid-template-columns: 1fr; }
	.auth-cover { display: none; }
	.auth-panel { padding: 1.25rem; }
}

/* --------------------------------------------------------------------------
   15. Roles & permissions, messaging
   -------------------------------------------------------------------------- */
.role-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: .9rem; border: 1px solid transparent; color: inherit; line-height: 1.5; }
.role-item b { display: block; font-size: .88rem; }
.role-item small { display: block; font-size: .73rem; color: var(--bs-secondary-color); }
.role-item:hover { background: var(--hc-surface); }
.role-item.active { background: var(--hc-soft-teal); border-color: rgba(58, 211, 177, .4); }
.perm-group + .perm-group { margin-top: 1.4rem; }
.perm-head { display: flex; align-items: center; gap: .65rem; padding-bottom: .7rem; }
.perm-head b { font-size: .92rem; }
.perm-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-radius: .8rem; background: var(--hc-surface); line-height: 1.5; }
.perm-row + .perm-row { margin-top: .4rem; }
.perm-row b { display: block; font-size: .84rem; font-weight: 700; }
.perm-row small { display: block; font-size: .73rem; color: var(--bs-secondary-color); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.phone-preview { background: var(--hc-surface); border-radius: 1.4rem; padding: 1rem; border: 1px solid var(--bs-border-color); }
.phone-top { display: flex; align-items: center; gap: .6rem; padding-bottom: .8rem; margin-bottom: .8rem; border-bottom: 1px solid var(--bs-border-color); font-size: .8rem; }
.bubble { background: var(--bs-card-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: 1rem 1rem .25rem 1rem; padding: .8rem .95rem; font-size: .82rem; line-height: 1.9; max-width: 92%; }
[data-bs-theme="dark"] .bubble { background: #171b3a; }
.bubble small { display: block; text-align: end; color: var(--hc-faint); font-size: .68rem; margin-top: .2rem; }
