.settings-modal{
	position:fixed;
	inset:0;

	background:
	rgba(15,23,42,.45);

	backdrop-filter:blur(6px);

	display:none;
	align-items:flex-end;
	justify-content:center;

	z-index:999;
}

.settings-modal.active{
	display:flex;
}

/* PANEL */

.settings-panel{
	width:100%;
	max-width:440px;
	box-sizing:border-box;
	background:var(--card);
	color:var(--text);
	border:1px solid var(--border);
	border-bottom:0;

	border-radius:
	18px 18px 0 0;

	padding:0;

	animation:
	slideUp .22s ease;

	/* TAG: settings-height-fix-14050711-01 */
	/* Taller panel keeps the app-info date row visible without scrolling on desktop. */
	max-height:92vh;
	max-height:92dvh;
	overflow:hidden;
}

.settings-scroll{
	max-height:calc(92dvh - 36px);
	box-sizing:border-box;
	margin-block:18px;
	padding:2px 18px;
	overflow-y:auto;
	overflow-x:hidden;
	scrollbar-gutter:stable;
	scrollbar-width:thin;
	scrollbar-color:rgba(100,116,139,.65) transparent;
}

.settings-scroll::-webkit-scrollbar{
	width:8px;
}

.settings-scroll::-webkit-scrollbar-track{
	background:transparent;
}

.settings-scroll::-webkit-scrollbar-thumb{
	border:2px solid transparent;
	border-radius:999px;
	background:rgba(100,116,139,.65);
	background-clip:padding-box;
}

/* Use the available mobile viewport before enabling the settings scroller. */
@media (max-width:480px){
	.settings-panel{
		max-height:calc(100dvh - 16px - env(safe-area-inset-top, 0px));
	}

	.settings-scroll{
		max-height:calc(100dvh - 52px - env(safe-area-inset-top, 0px));
	}

	/* Recover vertical space only when the user selects the large mobile font. */
	html[data-font="large"] .settings-section + .settings-section{
		margin-top:12px;
	}
}

@keyframes slideUp{

	from{
		transform:translateY(30px);
		opacity:0;
	}

	to{
		transform:translateY(0);
		opacity:1;
	}
}

/* HEADER */

.settings-header{
	display:flex;
	align-items:center;
	justify-content:space-between;
	/* TAG: settings-height-fix-14050711-01 */
	/* Compressed rhythm shares the app spacing scale. */
	margin-bottom:var(--space-md, 16px);
}

.settings-title{
	font-size:18px;
	font-weight:800;
}

.close-settings,
.reset-settings,
.admin-settings{
	width:32px;
	height:32px;
	border:none;
	border-radius:32px;
	background:#f1f5f9;
	font-size:18px;
	cursor:pointer;
	display:flex;
	align-items:center;
	justify-content:center;
	padding:0;
	line-height:1;

	/* color:brown */
}

#adminSettingsBtn[hidden]{
	display:none;
}

/* TAG: settings-icon-hover-14050330-01 */
/* Match settings icon hover color with index info/share actions */
.close-settings:hover,
.reset-settings:hover,
.admin-settings:hover{
	opacity:.85;
	color:var(--primary);
}

/* SECTION */

.settings-section{
	margin:0;
	padding:0;
}

.settings-section + .settings-section{
	/* TAG: settings-height-fix-14050711-01 */
	/* Section rhythm moves from 22px to the shared 16px scale step. */
	margin-top:var(--space-md, 16px);
}

.settings-card{
	min-width:0;
	padding:12px;
	border:1px solid var(--border);
	border-radius:14px;
	background:transparent;
}

.settings-card legend{
	padding:0 7px;
	/* TAG: selectable-color-themes-14050711-01 */
	/* Legend follows the active palette; default stays the brand blue. */
	color:var(--primary);
	opacity:.72;
	font-size:13px;
	font-weight:800;
}

.settings-card legend i{
	margin-left:5px;
	font-size:15px;
	vertical-align:middle;
}

.app-info-section{
	background:transparent;
}

.settings-section h3{
	display:flex;
	align-items:center;
	gap:6px;
	margin:0 0 12px;
	font-size:13px;
	font-weight:800;
	color:var(--muted);
}

.settings-section h3 i{
	font-size:15px;
}

/* OPTION BUTTONS */

.option-group{
	display:flex;
	gap:8px;
	flex-wrap:wrap;
}

.option-btn{
	border:none;
	/* TAG: button-height-unification-14050711-01 */
	/* Selector pills shrink to the shared small control height with centered content. */
	padding:5px 12px;
	min-height:var(--control-height-sm, 28px);
	display:inline-flex;
	align-items:center;
	justify-content:center;
	line-height:1;
	border-radius:999px;
	background:rgba(37,99,235,.08);
	color:var(--primary);
	font-size:13px;
	font-weight:700;
	cursor:pointer;
}

.option-btn.active{
	background:var(--primary);
	color:#fff;
}

.display-setting-group + .display-setting-group{
	margin-top:16px;
	padding-top:0;
	border-top:0;
}

.display-setting-label{
	display:flex;
	align-items:center;
	gap:6px;
	margin-bottom:10px;
	color:var(--muted);
	font-size:12px;
	font-weight:800;
}

.display-setting-label i{
	font-size:14px;
}

/* TAG: settings-short-viewport-collapse-14050711-01
   On short viewports the font-size and color groups collapse behind a border-centered
   toggle, reusing the admin users summary pattern. Wide viewports never see it. */
.readability-collapse-toggle{
	display:none;
}

@media (max-height:700px){
	.display-settings-section{
		position:relative;
		padding-bottom:22px;
	}

	.display-setting-group.is-readability-extra{
		display:none;
	}

	.display-settings-section.is-expanded .display-setting-group.is-readability-extra{
		/* Restores the stacked layout (label above buttons); a flex row would squeeze
		   the label against the option buttons on narrow screens like iPhone SE. */
		display:block;
	}

	.readability-collapse-toggle{
		width:38px;
		height:24px;
		position:absolute;
		left:50%;
		bottom:0;
		margin:0;
		padding:0 7px;
		display:inline-flex;
		align-items:center;
		justify-content:center;
		border:0;
		border-radius:0;
		background:var(--card);
		color:var(--primary);
		font-size:20px;
		cursor:pointer;
		transform:translate(-50%, 50%);
		touch-action:manipulation;
		-webkit-tap-highlight-color:transparent;
		z-index:2;
		transition:color .18s ease, transform .12s ease;
	}

	.readability-collapse-toggle:hover,
	.readability-collapse-toggle:focus-visible{
		background:var(--card);
		color:var(--primary-hover);
		transform:translate(-50%, 50%) !important;
	}

	.readability-collapse-toggle:active{
		transform:translate(-50%, 50%) scale(.96) !important;
	}

	.readability-collapse-toggle i{
		transition:transform .2s ease;
	}

	.readability-collapse-toggle[aria-expanded="true"] i{
		transform:rotate(180deg);
	}
}

/* INFO */

.app-info{
	background:transparent;
	border:0;
	border-radius:0;
	padding:0 !important;
}

.info-row{
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	align-items:center;
	gap:14px;
	min-height:28px;
	margin:0;
	font-size:13px;
}

.info-label{
	color:#64748b;
}

.info-value{
	font-weight:700;
	justify-self:end;
	margin-left:10px;
	text-align:left;
}

.app-owner-row{
	grid-template-columns:max-content minmax(0,1fr);
	gap:6px;
}

.app-owner-value{
	margin-left:10px;
	white-space:nowrap;
}

.collapsible-info-toggle{
	appearance:none;
	padding:0;
	border:0;
	background:transparent;
	color:inherit;
	font:inherit;
	font-weight:inherit;
	display:inline-flex;
	align-items:center;
	gap:5px;
	cursor:pointer;
	-webkit-tap-highlight-color:transparent;
}

.collapsible-info-toggle:focus-visible{
	outline:2px solid var(--primary);
	outline-offset:2px;
	border-radius:4px;
}

.collapsible-info-arrow{
	font-size:17px;
	transition:transform .2s ease;
}

.collapsible-info-toggle[aria-expanded="true"] .collapsible-info-arrow{
	transform:rotate(180deg);
}

.collapsible-info-section.is-collapsed{
	cursor:pointer;
}

.collapsible-info-hint{
	display:flex;
	align-items:center;
	justify-content:flex-start;
	margin:0;
	padding-right:14px;
	color:var(--muted);
	font-size:12px;
	text-align:right;
	transform:translateY(-.4rem);
}

.collapsible-info-hint[hidden]{
	display:none;
}

.contact-website-link{
	color:var(--primary);
}

/* =========================
   Global font-size scale
========================= */

:root{
	font-size:16px;
} /* medium default */

html[data-font="small"]{
	font-size:14px;
}

html[data-font="medium"]{
	font-size:16px;
}

html[data-font="large"]{
	font-size:18px;
}

/* اجزایی که قبلاً سایزشان ثابت مانده بود */

.custom-select,
.custom-select-trigger,
.custom-options,
.custom-option,
/*selectedLoanType,*/
.input-minimal,
.result-label,
.result-value,
.result-unit,
.form-label,
.option-btn,
.primary-btn,
.secondary-btn{
	font-size:1rem;
}

.admin-dashboard-card .form-label {
	width: 100% !important;
}

/* =========================================================
   USER ACCOUNT AND OTP AUTHENTICATION
   TAG: user-auth-ui-14050408-01
========================================================= */

.account-settings-section {
	margin-bottom: 0;
	padding-top: 0;
}

.account-entry-btn {
	width: 100%;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--card);
	color: var(--text);
	cursor: pointer;
	font-family: inherit;
	transition: border-color .2s ease, background-color .2s ease;
}

.settings-card .account-entry-btn {
	min-height:40px;
	padding:4px 10px;
	border:0;
	background:transparent;
}

.account-entry-btn:hover {
	border-color: var(--primary);
	background: rgba(37, 99, 235, .06);
}

.account-entry-main {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
}

.account-entry-main i {
	font-size: 18px;
	color: var(--primary);
}

.account-entry-status {
	min-width: 0;
	font-size: 14px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.auth-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .48);
	backdrop-filter: blur(5px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
	z-index: 11000;
}

.auth-modal.active {
	opacity: 1;
	visibility: visible;
}

.auth-panel {
	width: 100%;
	max-width: 440px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--card);
	color: var(--text);
	box-shadow: 0 20px 55px rgba(15, 23, 42, .20);
	transform: translateY(10px);
	transition: transform .22s ease;
}

.auth-modal.active .auth-panel {
	transform: translateY(0);
}

.auth-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.auth-title {
	font-size: 19px;
	font-weight: 900;
}

.auth-subtitle {
	margin-top: 4px;
	font-size: 13px;
	color: var(--muted);
}

.auth-icon-btn {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	font-size: 21px;
	cursor: pointer;
}

.auth-icon-btn:hover {
	color: var(--primary);
	background: rgba(37, 99, 235, .08);
}

.auth-view.auth-hidden,
.auth-development-code.auth-hidden,
.auth-delete-code-wrap.auth-hidden,
.auth-delete-request-btn.auth-hidden,
.auth-delete-confirm-btn.auth-hidden {
	display: none;
}

.auth-profile-fields {
	display: grid;
	gap: 20px;
	padding-top: 7px;
	margin-bottom: 16px;
}

.auth-profile-actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

.auth-profile-actions.has-cancel {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-profile-cancel-btn.auth-hidden {
	display: none;
}

.auth-profile-row {
	position: relative;
	min-width: 0;
	height: 48px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--border);
	/* TAG: auth-token-alignment-14102401-01 — 14px control radius per DESIGN.md. */
	border-radius: 14px;
	background: var(--bg);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-profile-row legend {
	padding: 0 6px;
	color: var(--muted);
	opacity: .72;
	/* TAG: auth-token-alignment-14102401-01 — out of the 11px readability penalty zone. */
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.auth-profile-row:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.auth-profile-row:focus-within legend {
	color: var(--primary);
	opacity: 1;
}

.auth-profile-row .auth-input-wrap {
	position: absolute;
	top: 0;
	right: 12px;
	bottom: 0;
	left: 12px;
	height: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	transform: translateY(-4px);
}

.auth-profile-row .auth-input-wrap:focus-within {
	box-shadow: none;
}

/* TAG: profile-value-weight-14050409-01
   Profile values use normal weight so field legends remain the visual hierarchy. */
.auth-profile-row .auth-input-wrap input {
	font-weight: 400;
}

.auth-field-label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 800;
}

.auth-input-wrap {
	height: 48px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	border: 1px solid var(--border);
	/* TAG: auth-token-alignment-14102401-01 — 14px control radius per DESIGN.md. */
	border-radius: 14px;
	background: var(--bg);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input-wrap:focus-within {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.auth-input-wrap input {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	direction: ltr;
	text-align: left;
}

#authFirstNameInput,
#authLastNameInput {
	direction: rtl;
	text-align: right;
}

#authEmailInput {
	direction: ltr;
	text-align: left;
}

/* TAG: auth-autofill-theme-14050411-01
   Override the browser autofill paint for every account input in both light and dark themes. */
#authModal input:-webkit-autofill,
#authModal input:-webkit-autofill:hover,
#authModal input:-webkit-autofill:focus,
#authModal input:-webkit-autofill:active {
	-webkit-text-fill-color: var(--text) !important;
	caret-color: var(--text);
	background-color: transparent !important;
	box-shadow: 0 0 0 1000px var(--bg) inset !important;
	-webkit-box-shadow: 0 0 0 1000px var(--bg) inset !important;
	transition: background-color 9999s ease-out 0s;
}

.auth-date-input-wrap {
	cursor: pointer;
}

.auth-date-input-wrap input {
	direction: rtl;
	text-align: right;
	cursor: pointer;
}

.jalali-date-picker.auth-hidden {
	display: none;
}

.jalali-year-options.auth-hidden,
.jalali-month-options.auth-hidden {
	display: none;
}

.jalali-date-picker {
	position: fixed;
	top: 50%;
	right: auto;
	left: 50%;
	z-index: 12000;
	width: min(300px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: hidden;
	box-sizing: border-box;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--card);
	box-shadow: 0 16px 38px rgba(15, 23, 42, .20);
	transform: translate(-50%, -50%);
	overscroll-behavior: contain;
}

.jalali-picker-scroll {
	max-height: calc(100vh - 56px);
	box-sizing: border-box;
	margin-block: 12px;
	padding: 0 12px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(100, 116, 139, .65) transparent;
	overscroll-behavior: contain;
}

.jalali-picker-scroll::-webkit-scrollbar {
	width: 8px;
}

.jalali-picker-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.jalali-picker-scroll::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 999px;
	background: rgba(100, 116, 139, .65);
	background-clip: padding-box;
}

.jalali-picker-header {
	display: grid;
	grid-template-columns: 26px 110px 90px 26px;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.jalali-picker-header .jalali-month-nav,
.jalali-month-trigger,
.jalali-year-trigger,
.jalali-clear-date {
	min-height: 34px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
}

.jalali-picker-header .jalali-month-nav {
	position: relative;
	width: 26px;
	height: 26px;
	min-height: 26px;
	padding: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
}

.jalali-picker-header .jalali-month-nav::before {
	content: '';
	width: 6px;
	height: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.jalali-picker-header .jalali-nav-next::before {
	transform: translateX(-1px) rotate(45deg);
}

.jalali-picker-header .jalali-nav-prev::before {
	transform: translateX(1px) rotate(-135deg);
}

.jalali-picker-header .jalali-month-nav,
.jalali-clear-date {
	cursor: pointer;
}

.jalali-year-dropdown,
.jalali-month-dropdown {
	position: relative;
	min-width: 0;
}

.jalali-month-trigger,
.jalali-year-trigger {
	width: 100%;
	height: 34px;
	padding: 0 8px 0 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	cursor: pointer;
}

.jalali-month-trigger i,
.jalali-year-trigger i {
	font-size: 16px;
	line-height: 1;
}

.jalali-year-options,
.jalali-month-options {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 4;
	max-height: 240px;
	overflow-y: auto;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--card);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
	overscroll-behavior: contain;
}

.jalali-year-options button,
.jalali-month-options button {
	width: 100%;
	min-height: 32px;
	padding: 5px 4px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--text);
	font-family: inherit;
	cursor: pointer;
}

.jalali-year-options button:hover,
.jalali-year-options button.selected,
.jalali-month-options button:hover,
.jalali-month-options button.selected {
	background: rgba(37, 99, 235, .10);
	color: var(--primary);
}

.jalali-weekdays,
.jalali-days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.jalali-weekdays {
	margin-bottom: 5px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 800;
	text-align: center;
}

.jalali-days-grid button,
.jalali-day-spacer {
	min-height: 31px;
}

.jalali-days-grid button {
	width: 100%;
	min-width: 0;
	padding: 0;
	box-sizing: border-box;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--text);
	font-family: inherit;
	cursor: pointer;
}

.jalali-days-grid button:hover:not(:disabled),
.jalali-days-grid button.today {
	background: rgba(37, 99, 235, .09);
	color: var(--primary);
}

.jalali-days-grid button.selected {
	background: var(--primary);
	color: #fff;
}

.jalali-days-grid button:disabled {
	opacity: .28;
	cursor: not-allowed;
}

.jalali-clear-date {
	width: 100%;
	margin-top: 10px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 700;
}

.auth-input-wrap i {
	color: var(--muted);
	font-size: 19px;
}

.auth-otp-input-wrap input {
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 4px;
}

.auth-otp-input-wrap input::placeholder {
	color: var(--muted);
	font-weight: 400;
	opacity: .52;
}

.auth-otp-input-wrap i {
	opacity: .55;
}

.auth-clear-otp-btn {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	/* TAG: auth-tap-targets-14102403-01 — 42px finger-friendly tap target. */
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(100, 116, 139, .10);
	color: var(--muted);
	cursor: pointer;
}

.auth-clear-otp-btn:hover,
.auth-clear-otp-btn:focus-visible {
	background: rgba(37, 99, 235, .12);
	color: var(--primary);
}

.auth-clear-otp-btn:active {
	transform: translateY(-50%) scale(.96);
}

.auth-clear-otp-btn[hidden] {
	display: none;
}

.auth-clear-otp-btn i {
	font-size: 17px;
	line-height: 1;
	opacity: 1;
}

/* TAG: auth-otp-action-spacing-14050408-01
   Keep the OTP action visually separated when the development-code notice is hidden. */
.auth-otp-input-wrap {
	position: relative;
	margin-bottom: 14px;
}

.auth-privacy-note {
	margin: 8px 2px 10px;
	/* TAG: auth-token-alignment-14102401-01 — 12px readability floor. */
	font-size: 12px;
	line-height: 1.7;
	color: var(--muted);
}

.auth-consent-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 2px 16px;
	/* TAG: auth-token-alignment-14102401-01 — 12px readability floor. */
	font-size: 12px;
	line-height: 1.7;
	color: var(--muted);
	cursor: pointer;
}

.auth-consent-row input {
	/* TAG: auth-consent-copy-14102404-01 — 18px visual box keeps text proportion;
	   the full-width label was already the big tap surface (42px target preserved). */
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin-top: 2px;
	accent-color: var(--primary);
}

.auth-submit-btn {
	width: 100%;
	/* TAG: button-height-unification-14050711-01 */
	min-height: var(--control-height-md, 42px);
}

.auth-submit-btn:disabled {
	/* TAG: auth-disabled-contrast-14102401-01 */
	/* Neutral surface + muted text keeps the busy state readable; alpha-white on
	   primary failed contrast. Trust Blue stays for enabled states only. */
	background: var(--border, #e5e7eb);
	color: var(--muted, #64748b);
	opacity: 1;
	cursor: wait;
}

.auth-phone-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	font-size: 13px;
}

.auth-phone-summary span {
	direction: ltr;
	font-weight: 800;
}

.auth-phone-summary button {
	border: 0;
	background: transparent;
	color: var(--primary);
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.auth-development-code {
	margin: 9px 0 14px;
	padding: 8px 10px;
	border: 1px dashed rgba(37, 99, 235, .38);
	border-radius: 6px;
	background: rgba(37, 99, 235, .07);
	color: var(--primary);
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

/* TAG: otp-resend-countdown-14050711-01 */
/* Bare countdown under the OTP input; swaps to a plain-text resend link when it ends.
   Spacing is symmetric so the gap to the confirm button matches the gap to the input. */
.auth-otp-expiry-row[hidden],
.auth-otp-expiry-row.auth-hidden{
	display:none;
}

/* TAG: otp-expiry-countdown-14050711-01 */
/* Shows the remaining validity of the code itself, distinct from the resend cooldown. */
.auth-otp-expiry-row{
	display:flex;
	align-items:center;
	justify-content:center;
	margin:10px 0 0;
	min-height:var(--control-height-sm, 28px);
}

.auth-otp-expiry-timer{
	color:var(--muted);
	font-size:12.5px;
	font-weight:600;
	font-variant-numeric:tabular-nums;
}

.auth-otp-resend-row[hidden],
.auth-otp-resend-row.auth-hidden{
	display:none;
}

.auth-otp-resend-row{
	display:flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	margin:10px 0;
	min-height:var(--control-height-sm, 28px);
}

.auth-otp-resend-timer{
	color:var(--muted);
	font-size:13px;
	font-weight:600;
	font-variant-numeric:tabular-nums;
	letter-spacing:.5px;
}

.auth-resend-otp-btn{
	border:0;
	padding:0;
	/* TAG: auth-tap-targets-14102403-01 — shared 42px control height for the link action. */
	min-height:var(--control-height-md, 42px);
	display:inline-flex;
	align-items:center;
	background:transparent;
	color:var(--primary);
	font-family:inherit;
	font-size:13px;
	font-weight:700;
	cursor:pointer;
	transition:color .18s ease;
}

.auth-resend-otp-btn:hover,
.auth-resend-otp-btn:focus-visible{
	background:transparent;
	color:var(--primary-hover);
	text-decoration:underline;
}

.auth-resend-otp-btn[hidden]{
	display:none;
}

.auth-email-actions {
	display: grid;
	gap: 10px;
}

.auth-secondary-btn,
.auth-email-status-btn {
	width: 100%;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid rgba(37, 99, 235, .22);
	/* TAG: auth-token-alignment-14102401-01 — 14px control radius per DESIGN.md. */
	border-radius: 14px;
	background: rgba(37, 99, 235, .06);
	color: var(--primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* Purpose: alert mode has one acknowledgement action; confirmations explicitly remove this attribute. */
#appDialogCancelBtn[hidden] {
	display: none;
}

.auth-secondary-btn:disabled {
	opacity: .62;
	cursor: wait;
}

.auth-email-status-btn {
	justify-content: flex-start;
	margin-bottom: 14px;
	padding: 0 12px;
	direction: ltr;
	overflow-wrap: anywhere;
}

.auth-email-status-btn.is-verified {
	border-color: rgba(22, 163, 74, .22);
	background: rgba(22, 163, 74, .06);
	color: #15803d;
}

.auth-message {
	display: none;
	margin-bottom: 14px;
	padding: 9px 10px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.7;
}

.auth-message.visible {
	display: block;
}

.auth-message.info {
	background: rgba(37, 99, 235, .08);
	color: var(--primary-hover, #1d4ed8);
}

.auth-message.error {
	background: rgba(148, 0, 0, .08);
	color: #940000;
}

.auth-message.success {
	background: rgba(22, 163, 74, .09);
	color: #15803d;
}

.auth-account-identity {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.auth-avatar {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	flex: 0 0 44px;
	border-radius: 50%;
	background: rgba(37, 99, 235, .10);
	color: var(--primary);
	font-size: 21px;
}

.auth-account-label {
	font-size: 11px;
	color: var(--muted);
}

.auth-account-name {
	font-size: 15px;
	font-weight: 900;
}

.auth-account-phone {
	margin-top: 3px;
	direction: ltr;
	font-size: 16px;
	font-weight: 900;
}

.auth-account-state {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 14px 0;
	color: #15803d;
	font-size: 12px;
	font-weight: 800;
}

.auth-account-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.auth-edit-profile-btn,
.auth-logout-btn {
	width: 100%;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid rgba(148, 0, 0, .20);
	border-radius: 8px;
	background: rgba(148, 0, 0, .05);
	color: #940000;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.auth-delete-account-btn,
.auth-delete-request-btn,
.auth-delete-confirm-btn {
	width: 100%;
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid rgba(148, 0, 0, .24);
	border-radius: 8px;
	background: rgba(148, 0, 0, .06);
	color: #940000;
	font-family: inherit;
	font-size: .90rem;
	font-weight: 800;
	cursor: pointer;
}

.auth-delete-account-btn {
	margin-top: 10px;
}

.auth-delete-warning {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
	padding: 12px;
	border: 1px solid rgba(148, 0, 0, .20);
	border-radius: 8px;
	background: rgba(148, 0, 0, .05);
	color: #940000;
}

.auth-delete-warning i {
	flex: 0 0 auto;
	font-size: 20px;
}

.auth-delete-warning p {
	margin: 0;
	font-size: 12px;
	line-height: 1.8;
}

.auth-delete-code-wrap {
	margin-top: 14px;
}

.auth-delete-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.auth-delete-request-btn:disabled,
.auth-delete-confirm-btn:disabled {
	opacity: .62;
	cursor: wait;
}

.auth-edit-profile-btn {
	margin-bottom: 0;
	border-color: rgba(37, 99, 235, .22);
	background: rgba(37, 99, 235, .06);
	color: var(--primary);
}

.auth-logout-btn {
	border-color: rgba(148, 0, 0, .20);
	background: rgba(148, 0, 0, .05);
	color: #940000;
}

/* TAG: unified-text-button-typography-14050411-01
   Keep textual actions consistent across themes while preserving icon-only and calendar-day sizing. */
:is(
	.install-link,
	.option-btn,
	.account-entry-btn,
	.admin-submit,
	.auth-submit-btn,
	.auth-secondary-btn,
	.auth-edit-profile-btn,
	.auth-logout-btn,
	.auth-delete-account-btn,
	.auth-delete-request-btn,
	.auth-delete-confirm-btn,
	.jalali-month-trigger,
	.jalali-year-trigger,
	.jalali-clear-date,
	.jalali-year-options button,
	.jalali-month-options button,
	#authChangePhoneBtn,
	#authChangeEmailBtn
) {
	font-size: .95rem !important;
	font-weight: 400 !important;
}

:is(
	.account-entry-btn,
	.auth-email-status-btn,
	.auth-edit-profile-btn,
	.auth-logout-btn,
	.auth-delete-account-btn
) span {
	font-weight: 400 !important;
}

body[data-theme="dark"] .auth-message.info {
	color: #93c5fd;
}

body[data-theme="dark"] .auth-message.error,
body[data-theme="dark"] .auth-logout-btn,
body[data-theme="dark"] .auth-delete-account-btn,
body[data-theme="dark"] .auth-delete-request-btn,
body[data-theme="dark"] .auth-delete-confirm-btn,
body[data-theme="dark"] .auth-delete-warning {
	color: #fca5a5;
}

body[data-theme="dark"] .auth-message.success,
body[data-theme="dark"] .auth-account-state,
body[data-theme="dark"] .auth-email-status-btn.is-verified {
	color: #86efac;
}

@media (max-width: 480px) {
	.auth-modal {
		align-items: flex-end;
		padding: 0;
	}

	.auth-panel {
		max-width: none;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 18px 18px 0 0;
		padding-bottom: max(18px, env(safe-area-inset-bottom));
	}

	.jalali-date-picker {
		right: auto;
	}
}

/* Match the main calculate/PDF action behavior when the app becomes exceptionally narrow. */
@media (max-width: 369px) {
	.auth-profile-actions.has-cancel,
	.auth-email-actions,
	.auth-account-actions,
	.auth-delete-actions {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* =========================================================
   ADMIN DASHBOARD
   TAG: admin-dashboard-14050420-01
========================================================= */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.admin-tabs {
	position: relative;
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid var(--border);
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.admin-tab.is-overflow-hidden,
.admin-tabs::-webkit-scrollbar {
	display: none;
}

.admin-tab {
	position: relative;
	min-height: 40px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 1px 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	font-size: .86rem;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
}

.admin-more-wrap {
	position: relative;
	display: none;
	flex: 0 0 auto;
	padding-left: 4px;
}

.admin-more-wrap.is-visible {
	display: block;
}

.admin-tabs:has(.admin-more-wrap.is-visible) {
	justify-content: space-between;
}

.admin-more-wrap.is-measuring {
	visibility: hidden;
	pointer-events: none;
}

.admin-tab-more {
	width: 30px;
	padding-inline: 0;
}

.admin-tab:hover,
.admin-tab:focus-visible {
	background: transparent;
	color: var(--primary);
}

.admin-tab.is-active {
	background: transparent;
	color: var(--primary);
	box-shadow: none;
}

.admin-tab.is-active::after {
	content: "";
	position: absolute;
	right: 0;
	left: 0;
	bottom: -1px;
	height: 2px;
	border-radius: 999px;
	background: var(--primary);
}

.admin-tab i {
	font-size: 16px;
	line-height: 1;
}

.admin-more-menu {
	position: absolute;
	top: calc(100% + 0px);
	left: 15px;
	z-index: 20;
	min-width: max-content;
	padding: 6px;
	border: 1px solid var(--border);
	border-radius: 0;
	background: var(--card);
	/* TAG: admin-token-alignment-14050711-01 */
	/* Popover reuses the soft layered shadow token instead of its own heavy shadow. */
	box-shadow: var(--shadow, 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05));
}

.admin-more-item {
	width: 100%;
	min-height: 36px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 0 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	font-size: .88rem;
	font-weight: 400;
	text-align: right;
	justify-content: flex-end;
	direction: rtl;
	cursor: pointer;
}

.admin-more-item:hover,
.admin-more-item:focus-visible {
	/* Match primary navigation feedback without adding a second visual surface. */
	background: transparent;
	color: var(--primary);
}

.admin-more-item i {
	order: 2;
	font-size: 16px;
	line-height: 1;
}

.admin-dashboard {
	display: grid;
	gap: 16px;
}

.admin-tab-panel {
	display: grid;
	gap: 16px;
}

.admin-tab-panel[hidden] {
	display: none;
}

.admin-health-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.admin-health-card {
	min-width: 0;
	min-height: 72px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: transparent;
	transition: background-color .18s ease;
}

.admin-health-card.is-healthy:hover {
	background: rgba(22, 163, 74, .06);
}

.admin-health-card.is-warning:hover {
	background: rgba(245, 158, 11, .07);
}

.admin-health-card.is-error:hover {
	background: rgba(220, 38, 38, .07);
}

.admin-health-card > div {
	min-width: 0;
	width: 100%;
}

.admin-health-card strong,
.admin-service-status strong {
	display: block;
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

.admin-health-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
}

.admin-health-title-copy {
	min-width: 0;
	display: grid;
	justify-items: start;
	width: max-content;
	text-align: right;
}

.admin-health-state {
	display: block;
	color: var(--muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
	text-align: right;
}

.admin-service-status small {
	display: block;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
	white-space: normal;
}

.admin-service-status .admin-health-last-success {
	margin-top: 2px;
}

.admin-health-dot {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	margin-top: 5px;
	border-radius: 999px;
	background: var(--primary);
	box-shadow: 0 0 0 5px rgba(37, 99, 235, .10);
}

.admin-health-card.is-healthy .admin-health-dot,
.admin-service-status.is-healthy .admin-status-badge {
	background: #16a34a;
}

.admin-health-card.is-warning .admin-health-dot {
	background: #f59e0b;
}

.admin-health-card.is-error .admin-health-dot {
	background: #dc2626;
}

.admin-health-email-mobile {
	display: none;
}

.admin-service-status.is-warning .admin-status-badge {
	background: #f59e0b;
}

.admin-service-status.is-error .admin-status-badge {
	background: #dc2626;
}

.admin-service-status-list {
	display: grid;
	gap: 10px;
}

.admin-service-status {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: transparent;
	transition: background-color .18s ease;
}

.admin-service-status.is-healthy:hover {
	background: rgba(22, 163, 74, .06);
}

.admin-service-status.is-warning:hover {
	background: rgba(245, 158, 11, .07);
}

.admin-service-status.is-error:hover {
	background: rgba(220, 38, 38, .07);
}

.admin-status-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.5;
}

.admin-empty-section {
	display: grid;
	place-items: center;
	gap: 8px;
	min-height: 170px;
	text-align: center;
}

.admin-empty-section > i {
	color: var(--primary);
	font-size: 34px;
	opacity: .85;
}

.admin-empty-section > strong {
	color: var(--text);
	font-size: 15px;
	font-weight: 700;
}

.admin-empty-section > span {
	max-width: 320px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.8;
}

.admin-security-form {
	display: grid;
	gap: 18px;
}

.admin-security-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.admin-security-field {
	position: relative;
	min-width: 0;
	display: grid;
	gap: 8px;
	margin-top: 8px;
	padding: 16px 12px 10px;
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: background-color .18s ease;
}

.admin-security-field:hover {
	background: rgba(37, 99, 235, .04);
}

.admin-security-field > span {
	position: absolute;
	top: 0;
	right: 12px;
	transform: translateY(-50%);
	padding: 0 7px;
	background: var(--card);
	color: #64748b;
	font-size: 13px;
}

.admin-security-field > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.admin-security-field input {
	width: 72px;
	padding: 0 6px;
	border: 1px solid var(--border);
	border-radius: 0;
	background: var(--bg);
	color: var(--text);
	font: inherit;
	font-feature-settings: "ss01";
	direction: ltr !important;
	text-align: center !important;
}

.admin-security-field input:focus {
	text-align: center !important;
}

.admin-security-field small,
.admin-security-note,
.admin-security-warning {
	color: var(--muted);
	font-size: 11px;
}

.admin-security-note {
	margin: 10px 2px 0;
}

.admin-security-readonly {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.admin-security-readonly > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--bg);
}

.admin-security-readonly span {
	color: var(--muted);
	font-size: 12px;
}

.admin-security-readonly strong {
	color: var(--text);
	font-size: 12px;
}

.admin-security-footer {
	display: grid;
	gap: 10px;
}

.admin-security-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.admin-security-warning {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.admin-security-footer .admin-message:empty {
	display: none;
}

.admin-stat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.admin-stat-card {
	min-width: 0;
	min-height: 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 8px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg);
	text-align: center;
}

.admin-stat-card > span {
	display: block;
	margin-bottom: 5px;
	/* TAG: admin-token-alignment-14050711-01 */
	/* Labels recede like the user-facing results: muted token + lighter weight. */
	color: var(--muted);
	font-weight: 500;
	font-size: .75rem !important;
	line-height: 1.35;
}

.admin-stat-unit {
	display: none;
}

.admin-stat-card strong {
	display: block;
	/* TAG: admin-token-alignment-14050711-01 */
	/* Stat numbers follow the active palette with the same weight hierarchy as results. */
	color: var(--primary);
	font-size: 20px;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
}

.admin-dashboard-card {
	/* TAG: admin-token-alignment-14050711-01 */
	/* Uniform spacing scale shared with the main app cards. */
	padding: var(--space-sm, 12px);
	container-type: inline-size;
}

.admin-dashboard-card + .admin-dashboard-card {
	margin-top: 0;
}

.admin-dashboard-card .admin-form {
	margin-top: 4px;
}

.admin-dashboard-card .form-label,
.admin-meta {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.admin-dashboard-card .form-label {
	display: block;
	flex: 1 1 12rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.7;
}

.admin-dashboard-card .admin-form-row {
	min-width: 0;
}

.admin-dashboard-card .admin-form-row:has(#loanReceiveCost) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.admin-dashboard-card .value-wrap {
	width: auto !important;
	max-width: 100%;
	box-sizing: border-box;
	flex: none !important;
	overflow: hidden;
	margin-right: auto;
}

.admin-dashboard-card .loan-amount-input {
	flex: 0 1 9ch;
	width: 9ch;
	min-width: 7ch;
	max-width: 0ch;
	box-sizing: border-box;
	text-align: left;
}

.admin-dashboard-card .result-unit {
	flex: 0 0 auto;
	white-space: nowrap;
}

.admin-dashboard-card .admin-submit {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.admin-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.admin-meta span {
	flex: 0 0 auto;
	white-space: nowrap;
}

.admin-meta strong {
	min-width: 0;
	text-align: left;
	overflow-wrap: anywhere;
}

.admin-user-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32px;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	direction: rtl;
}

.admin-user-toolbar[hidden] {
	display: none;
}

#adminUserSummaryCard[hidden] {
	display: none;
}

.admin-user-list-card.is-full-user-list {
	margin-top: 0;
}

.admin-user-toolbar-main {
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}

.admin-user-toolbar-main .admin-search-wrap {
	flex: 1 1 auto;
	min-width: 0;
}

.admin-users-report-btn {
	width: max-content;
	max-width: 100%;
	min-height: 42px;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding-inline: 14px;
	white-space: nowrap;
}

.admin-users-report-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.admin-users-report-form {
	display: grid;
	gap: 14px;
}

.admin-users-report-form fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
}

.admin-users-report-form legend {
	padding-inline: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.admin-users-report-form label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	cursor: pointer;
}

.admin-users-report-form label.is-disabled {
	opacity: .5;
	cursor: not-allowed;
}

.admin-users-back-btn {
	width: 32px;
	height: 32px;
	position: static;
	transform: none;
	margin: 0;
	flex: 0 0 auto;
}

.admin-users-back-btn:hover,
.admin-users-back-btn:focus-visible {
	transform: none;
}

.admin-users-back-btn:active {
	transform: scale(.96);
}

.admin-user-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.admin-user-summary-toggle {
	display: none;
}

.admin-view-all-users-btn {
	width: max-content;
	max-width: 100%;
	min-height: 40px;
	margin: 12px auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding-inline: 16px;
}

.admin-view-all-users-btn:hover,
.admin-view-all-users-btn:focus-visible {
	transform: translateY(-1px);
}

.admin-view-all-users-btn:active {
	transform: scale(.98);
}

.admin-view-all-users-btn[hidden] {
	display: none;
}

.admin-user-summary-card {
	min-width: 0;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--bg);
	color: var(--text);
	font-family: inherit;
	text-align: right;
}

button.admin-user-summary-card {
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}

button.admin-user-summary-card:hover,
button.admin-user-summary-card:focus-visible {
	background: rgba(37, 99, 235, .06);
	border-color: rgba(37, 99, 235, .25);
}

.admin-user-summary-card span {
	min-width: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.5;
}

.admin-user-summary-card strong {
	min-width: 0;
	color: #64748b;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
	text-align: left;
	overflow-wrap: anywhere;
}

.admin-search-wrap {
	position: relative;
	min-width: 0;
}

.admin-user-toolbar .input-minimal,
body[data-theme="dark"] .admin-user-toolbar .input-minimal {
	min-height: 42px;
	box-sizing: border-box;
	border: 1px solid var(--border) !important;
	border-radius: 12px !important;
	background: var(--card) !important;
	padding-right: 12px !important;
	padding-left: 14px !important;
	direction: rtl !important;
	text-align: right !important;
	font-size: .92rem;
	font-weight: 400 !important;
}

.admin-user-toolbar .input-minimal::placeholder {
	direction: rtl;
	text-align: right;
	font-size: .80rem;
}

.admin-user-toolbar .input-minimal.has-value,
body[data-theme="dark"] .admin-user-toolbar .input-minimal.has-value {
	padding-right: 50px !important;
}

.admin-user-toolbar .input-minimal.is-rtl-query,
body[data-theme="dark"] .admin-user-toolbar .input-minimal.is-rtl-query {
	direction: rtl !important;
	text-align: right !important;
}

.admin-user-toolbar .input-minimal.is-ltr-query,
body[data-theme="dark"] .admin-user-toolbar .input-minimal.is-ltr-query {
	direction: ltr !important;
	text-align: left !important;
	padding-right: 50px !important;
	padding-left: 14px !important;
}

.admin-user-toolbar .input-minimal::-webkit-search-cancel-button {
	display: none;
	-webkit-appearance: none;
}

.admin-clear-search-btn {
	right: 8px;
	top: 7px;
	transform: none !important;
}

.admin-clear-search-btn:hover,
.admin-clear-search-btn:focus-visible {
	transform: none !important;
}

.admin-clear-search-btn:active {
	transform: scale(.96) !important;
}

.admin-refresh-users {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding-inline: 14px;
	white-space: nowrap;
}

.admin-users-table-wrap {
	display: block;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--card);
}

.admin-user-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	color: var(--muted);
	font-size: 12px;
}

.admin-user-pagination[hidden] {
	display: none;
}

.admin-user-page-btn {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: transparent;
	color: var(--primary);
	font: inherit;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.admin-user-page-btn:hover:not(:disabled),
.admin-user-page-btn:focus-visible:not(:disabled) {
	background: rgba(37, 99, 235, .08);
}

.admin-user-page-btn:disabled {
	opacity: .35;
	cursor: default;
}

.admin-user-page-btn i {
	font-size: 16px;
	line-height: 1;
}

.admin-users-table {
	display: table;
	width: 100%;
	min-width: 0;
	border-collapse: collapse;
	font-size: 13px;
	table-layout: fixed;
}

.admin-users-name-col {
	width: auto;
}

.admin-users-phone-col {
	width: 118px;
}

.admin-users-details-col {
	width: 38px;
}

.admin-users-table th,
.admin-users-table td {
	height: 46px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--border);
	text-align: right;
	vertical-align: middle;
	font-size: 14px;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
	text-align: right;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
	text-align: center;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
	text-align: center !important;
	overflow: visible;
	text-overflow: clip;
}

.admin-users-table th {
	color: var(--muted);
	font-weight: 800;
	background: rgba(100, 116, 139, .06);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.admin-users-table th span {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin-users-table th i {
	display: inline-block;
	font-size: 20px;
	line-height: 1;
	overflow: visible;
	width: 18px;
	min-width: 18px;
	padding-left: 2px;
}

.admin-users-table th:nth-child(3) i {
	display: block;
}

.admin-users-table tr:last-child td {
	border-bottom: 0;
}

.admin-user-row {
	transition: background-color .18s ease;
}

.admin-user-row:hover {
	background: rgba(37, 99, 235, .06);
}

.admin-users-table td[dir="ltr"] {
	text-align: center;
}

.admin-users-table .is-verified {
	color: #15803d;
}

.admin-user-name-cell,
.admin-user-phone-cell {
	font-size: 13px;
	letter-spacing: -.35px;
}

.admin-user-name-cell.is-empty {
	color: var(--muted);
	opacity: .65;
}

.admin-user-phone-cell {
	min-width: 0;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

.admin-user-details-cell {
	width: 38px;
	text-align: center !important;
	padding-left: 10px !important;
	padding-right: 6px !important;
	overflow: visible !important;
	text-overflow: clip !important;
}

.admin-user-details-cell .admin-user-more-btn {
	margin-inline: auto;
}

.admin-user-more-btn {
	width: 22px;
	min-height: 22px;
	flex: 0 0 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0;
	border: 1px solid rgba(37, 99, 235, .22);
	border-radius: 999px;
	background: rgba(37, 99, 235, .06);
	color: var(--primary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	cursor: pointer;
	white-space: nowrap;
}

.admin-user-more-btn i {
	font-size: 13px;
	line-height: 1;
}

.admin-user-details-panel {
	max-width: 380px;
}

.admin-user-details-panel .auth-header {
	direction: ltr;
	align-items: flex-start;
}

.admin-user-details-panel .auth-header > div {
	flex: 1 1 auto;
	direction: rtl;
	text-align: right;
}

.admin-user-details-panel .auth-title,
.admin-user-details-panel .auth-subtitle {
	text-align: right;
}

.admin-user-details-body {
	display: grid;
	gap: 10px;
}

.admin-user-details-body div {
	display: grid;
	grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
}

.admin-user-details-body span {
	color: var(--muted);
	font-size: 13px;
}

.admin-user-details-body strong {
	min-width: 0;
	font-size: 13px;
	font-weight: 400;
	overflow-wrap: anywhere;
	text-align: left;
}

.admin-verified-email-value {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	direction: ltr;
}

.admin-verified-email-value i {
	width: 18px;
	height: 18px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(22, 163, 74, .12);
	color: #16a34a;
	font-size: 15px;
	line-height: 1;
}

.admin-user-empty-cell {
	color: var(--muted);
	text-align: center !important;
}

body[data-theme="dark"] .admin-users-table .is-verified {
	color: #86efac;
}

body[data-theme="dark"] .admin-verified-email-value i {
	background: rgba(34, 197, 94, .16);
	color: #86efac;
}

/* TAG: unified-text-button-typography-14050411-01
   Include the new admin dashboard refresh action in the existing button typography system. */
.admin-refresh-users {
	font-size: .95rem !important;
	font-weight: 400 !important;
}

@media (max-width: 760px) {
	.admin-security-grid,
	.admin-security-readonly {
		grid-template-columns: 1fr;
	}

	.admin-security-field {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		margin-top: 0;
		padding: 8px 10px;
	}

	.admin-security-field > span {
		position: static;
		transform: none;
		min-width: 0;
		padding: 0;
		background: transparent;
	}

	.admin-security-field > div {
		width: 150px;
		flex: 0 0 132px;
	}

	.admin-security-field input {
		width: 72px;
		padding: 0 6px;
		border-radius: 0;
	}

	.admin-tabs {
		margin-inline: -2px;
		gap: 10px;
		padding: 0 2px;
	}

	.admin-tab {
		flex: 0 0 auto;
		min-width: auto;
		padding-inline: 0;
		font-size: .84rem;
	}

	.admin-health-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.admin-health-card {
		min-height: 48px;
	}

	.admin-stat-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.admin-stat-card {
		min-height: 48px;
		flex-direction: row;
		justify-content: space-between;
		gap: 12px;
		padding: 12px;
		border-radius: 14px;
		background: transparent;
		transition: background-color .18s ease;
	}

	.admin-stat-card:hover {
		background: rgba(37, 99, 235, .06);
	}

	.admin-stat-card > span {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-bottom: 0;
		color: var(--text);
		font-size: 14px !important;
		font-weight: 700;
		text-align: right;
	}

	.admin-stat-card > span::before {
		content: "";
		width: 12px;
		height: 12px;
		flex: 0 0 12px;
		border-radius: 999px;
		background: #2563eb55;
	}

	.admin-stat-card strong {
		flex: 0 0 auto;
		display: grid;
		grid-template-columns: 40px 28px;
		align-items: center;
		gap: 4px;
		font-size: 16px;
	}

	.admin-stat-card strong > span:first-child {
		text-align: left;
	}

	.admin-stat-card strong .admin-stat-unit {
		display: inline;
		color: var(--muted);
		font-size: 11px;
		font-weight: 400;
		line-height: 1.5;
		text-align: left;
	}

	.admin-health-title-row {
		width: 100%;
		justify-content: flex-start;
	}

	.admin-health-title-copy {
		width: auto;
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}

	.admin-health-state {
		padding: 3px 8px;
		border-radius: 999px;
		color: #fff;
		font-size: 11px;
		line-height: 1.5;
		white-space: nowrap;
	}

	.admin-health-card.is-healthy .admin-health-state {
		background: #16a34a;
	}

	.admin-health-card.is-warning .admin-health-state {
		background: #f59e0b;
	}

	.admin-health-card.is-error .admin-health-state {
		background: #dc2626;
	}

	.admin-health-email-default {
		display: none;
	}

	.admin-health-email-mobile {
		display: inline;
	}

	.admin-user-toolbar {
		grid-template-columns: minmax(0, 1fr) 32px;
		grid-template-areas:
			"search back"
			"report .";
		align-items: center;
		gap: 10px 8px;
	}

	.admin-user-toolbar-main {
		display: contents;
	}

	.admin-user-toolbar-main .admin-search-wrap {
		grid-area: search;
		width: 100%;
		min-width: 0;
	}

	.admin-users-report-btn {
		grid-area: report;
		width: max-content;
		max-width: 100%;
		min-height: 40px;
		justify-self: start;
		padding-inline: 14px;
		margin-inline-start: 0;
	}

	.admin-users-back-btn {
		grid-area: back;
		width: 32px;
		height: 32px;
		justify-self: center;
	}

	.admin-user-summary-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	#adminUserSummaryCard {
		position: relative;
		padding-bottom: 22px;
	}

	.admin-user-summary-grid:not(.is-expanded) .is-mobile-summary-extra {
		display: none;
	}

	.admin-user-summary-toggle {
		/* TAG: admin-users-mobile-toggle-border-14050707-01
		   Center the compact control over the fieldset border, matching the legend treatment. */
		width: 38px;
		height: 24px;
		position: absolute;
		left: 50%;
		bottom: 0;
		margin: 0;
		padding: 0 7px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: 0;
		background: var(--card);
		color: var(--primary);
		font-size: 20px;
		cursor: pointer;
		transform: translate(-50%, 50%);
		touch-action: manipulation;
		-webkit-tap-highlight-color: transparent;
		z-index: 2;
		transition: color .18s ease, transform .12s ease;
	}

	.admin-user-summary-toggle:hover,
	.admin-user-summary-toggle:focus-visible {
		background: var(--card);
		color: var(--primary-hover);
		transform: translate(-50%, 50%) !important;
	}

	.admin-user-summary-toggle:active {
		transform: translate(-50%, 50%) scale(.96) !important;
	}

	.admin-refresh-users {
		width: 42px;
		padding-inline: 0;
	}

	.admin-refresh-users span {
		display: none;
	}

	.admin-refresh-users i {
		font-size: 17px;
	}

	.admin-dashboard-card .form-label {
		font-size: .88rem;
	}

	.admin-dashboard-card .value-wrap {
		justify-content: flex-end;
	}

	.admin-meta strong {
		white-space: nowrap;
	}

	.admin-meta strong::before {
		content: attr(data-full-date);
	}

	.admin-meta strong {
		font-size: 0;
	}

	.admin-meta strong::before {
		font-size: .95rem;
	}

	.admin-meta {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}

	.admin-meta strong {
		flex: 0 1 auto;
		text-align: left;
	}

	.admin-users-table {
		min-width: 0;
	}

	.admin-users-table .admin-user-empty-cell {
		padding: 14px 10px;
	}

	.admin-users-table-wrap {
		overflow-x: hidden;
	}
}

@media (max-width: 430px) {
	.admin-users-phone-col {
	width: 118px;
	}

	.admin-users-details-col {
		width: 38px;
	}

	.admin-users-table th,
	.admin-users-table td {
		padding-inline: 8px;
	}

	.admin-user-details-cell {
		padding-left: 10px !important;
		padding-right: 6px !important;
	}
}

@container (max-width: 260px) {
	.admin-meta strong::before {
		content: attr(data-short-date);
	}
}

@media (max-width: 480px) {
	.admin-security-actions {
		grid-template-columns: 1fr;
	}

	.admin-dashboard-card .value-wrap {
		margin-right: auto;
	}
}
