/* Arsam Online Tools — full dark navy/gold (site theme) */
.arsam-ot {
	--ot-navy: #03172f;
	--ot-navy-mid: #0a2744;
	--ot-surface: rgba(255, 255, 255, 0.035);
	--ot-surface-hi: rgba(255, 255, 255, 0.055);
	--ot-gold: #d7a53c;
	--ot-gold-hi: #e7b64d;
	--ot-text: rgba(255, 255, 255, 0.92);
	--ot-muted: rgba(255, 255, 255, 0.58);
	--ot-line: rgba(215, 165, 60, 0.28);
	--ot-radius: 22px;
	--ot-radius-sm: 16px;
	font-family: inherit;
	color: var(--ot-text);
	max-width: 1080px;
	margin: 0 auto;
	padding: clamp(1.75rem, 4vw, 3rem) 1.25rem 4.5rem;
}

body.arsam-ot-page .arsam-ot__title {
	color: #fff !important;
}

.arsam-ot__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ot-gold);
}

.arsam-ot__crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 0 0 1.25rem;
	font-size: 0.86rem;
	color: var(--ot-muted);
}

.arsam-ot__crumb a {
	color: var(--ot-gold-hi);
	text-decoration: none;
}

.arsam-ot__crumb a:hover {
	text-decoration: underline;
}

.arsam-ot__count {
	display: inline-block;
	margin-top: 0.55rem;
	font-size: 0.82rem;
	color: rgba(215, 165, 60, 0.9);
}

/* Hub tool cards */
.arsam-ot__tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
}

.arsam-ot__tool {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 1.35rem 1.4rem 1.25rem;
	text-decoration: none;
	color: inherit;
	background: var(--ot-surface);
	border: 1px solid var(--ot-line);
	border-radius: var(--ot-radius-sm);
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.arsam-ot__tool:hover {
	background: var(--ot-surface-hi);
	border-color: rgba(215, 165, 60, 0.55);
	transform: translateY(-2px);
}

.arsam-ot__tool--soon {
	opacity: 0.55;
	cursor: default;
}

.arsam-ot__tool-badge {
	display: inline-flex;
	padding: 0.2rem 0.55rem;
	margin-bottom: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	color: #03172f;
	background: var(--ot-gold);
	border-radius: 999px;
}

.arsam-ot__tool-badge--muted {
	color: rgba(255, 255, 255, 0.75);
	background: rgba(255, 255, 255, 0.1);
}

.arsam-ot__tool-kicker {
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ot-gold-hi);
}

.arsam-ot__tool-title {
	font-size: 1.15rem;
	font-weight: 750;
	color: #fff;
}

.arsam-ot__tool-desc {
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--ot-muted);
}

.arsam-ot__tool-cta {
	margin-top: 0.55rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ot-gold-hi);
}

/* SEO copy */
.arsam-ot__seo {
	margin-top: 2.75rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(215, 165, 60, 0.18);
	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
}

.arsam-ot__seo h2 {
	margin: 1.75rem 0 0.65rem;
	font-size: 1.15rem;
	font-weight: 750;
	color: #fff;
}

.arsam-ot__seo h2:first-child {
	margin-top: 0;
}

.arsam-ot__seo p,
.arsam-ot__seo li {
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--ot-muted);
}

.arsam-ot__seo a {
	color: var(--ot-gold-hi);
}

.arsam-ot__steps {
	margin: 0.5rem 0 0;
	padding-right: 1.25rem;
}

.arsam-ot__faq details {
	margin: 0.55rem 0;
	padding: 0.85rem 1rem;
	background: var(--ot-surface);
	border: 1px solid var(--ot-line);
	border-radius: 12px;
}

.arsam-ot__faq summary {
	cursor: pointer;
	font-weight: 650;
	color: #fff;
}

.arsam-ot__faq details[open] summary {
	color: var(--ot-gold-hi);
}

.arsam-ot__faq details p {
	margin: 0.65rem 0 0;
}

@media (max-width: 720px) {
	.arsam-ot__tools {
		grid-template-columns: 1fr;
	}
}

/* Hero */
.arsam-ot__hero {
	text-align: center;
	margin: 0 auto 1.75rem;
	max-width: 40rem;
}

.arsam-ot__title {
	margin: 0 0 0.85rem;
	font-size: clamp(1.45rem, 3.4vw, 2.05rem);
	font-weight: 800;
	line-height: 1.6;
	color: #fff;
	letter-spacing: -0.01em;
}

.arsam-ot__accent {
	color: var(--ot-gold-hi);
}

.arsam-ot__lead {
	margin: 0 auto;
	max-width: 32rem;
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--ot-muted);
}

.arsam-ot__panel {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

/* Search */
.arsam-ot-hs__label-visible {
	display: block;
	margin: 0 0 0.65rem;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
}

.arsam-ot-hs__helper {
	margin: 0.65rem auto 0;
	max-width: 720px;
	text-align: center;
	font-size: 0.84rem;
	line-height: 1.6;
	color: var(--ot-muted);
}

.arsam-ot__legal {
	margin: 1.15rem auto 0;
	max-width: 820px;
	padding: 0.9rem 1.1rem;
	font-size: 0.86rem;
	line-height: 1.75;
	color: var(--ot-muted);
	background: rgba(215, 165, 60, 0.06);
	border: 1px solid rgba(215, 165, 60, 0.22);
	border-radius: 12px;
}

.arsam-ot__legal--final {
	margin-top: 1.5rem;
}

.arsam-ot__links {
	margin-top: 1.25rem;
	font-size: 0.92rem;
	line-height: 1.8;
	color: var(--ot-muted);
}

.arsam-ot__links a {
	color: var(--ot-gold-hi);
}

.arsam-ot--en .arsam-ot__hero,
.arsam-ot--en .arsam-ot-hs__label-visible,
.arsam-ot--en .arsam-ot-hs__helper,
.arsam-ot--en .arsam-ot__seo {
	text-align: left;
}

.arsam-ot--en .arsam-ot__crumb {
	justify-content: flex-start;
}

.arsam-ot--en .arsam-ot-hs__btn {
	min-height: 44px;
}

.arsam-ot-hs__form {
	margin: 0 auto 1.25rem;
	max-width: 720px;
}

.arsam-ot-hs__field {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem;
	background: var(--ot-surface);
	border: 1px solid var(--ot-line);
	border-radius: 999px;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.arsam-ot-hs__field:focus-within {
	background: var(--ot-surface-hi);
	border-color: rgba(215, 165, 60, 0.65);
	box-shadow: 0 0 0 3px rgba(215, 165, 60, 0.16);
}

/* Kill Elementor/theme default square input chrome — only the outer pill shows. */
.arsam-ot .arsam-ot-hs__input,
.arsam-ot input.arsam-ot-hs__input[type="text"],
.arsam-ot input.arsam-ot-hs__input[type="search"] {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: auto;
	min-height: 0;
	max-height: none;
	box-sizing: border-box;
	margin: 0;
	padding: 0.85rem 1.2rem;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--ot-text) !important;
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}

.arsam-ot .arsam-ot-hs__input:focus,
.arsam-ot .arsam-ot-hs__input:focus-visible,
.arsam-ot .arsam-ot-hs__input:hover {
	background: transparent !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
}

.arsam-ot .arsam-ot-hs__input::-webkit-search-decoration,
.arsam-ot .arsam-ot-hs__input::-webkit-search-cancel-button,
.arsam-ot .arsam-ot-hs__input::-webkit-search-results-button,
.arsam-ot .arsam-ot-hs__input::-webkit-search-results-decoration {
	display: none !important;
	-webkit-appearance: none !important;
}

.arsam-ot .arsam-ot-hs__input::placeholder {
	color: rgba(255, 255, 255, 0.38);
}

.arsam-ot-hs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex-shrink: 0;
	min-height: 44px;
	padding: 0.75rem 1.35rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #03172f;
	background: linear-gradient(180deg, var(--ot-gold-hi) 0%, var(--ot-gold) 100%);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.arsam-ot-hs__btn:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
}

.arsam-ot-hs__btn:active {
	transform: translateY(0);
}

.arsam-ot-hs__status {
	margin: -0.35rem auto 1rem;
	max-width: 720px;
	text-align: center;
	font-size: 0.82rem;
	color: var(--ot-muted);
}

/* Results table */
.arsam-ot-hs__table {
	margin-top: 0.35rem;
}

.arsam-ot-hs__head {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem 8rem;
	gap: 0.75rem;
	align-items: center;
	padding: 0.95rem 1.35rem;
	margin-bottom: 0.65rem;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ot-gold-hi);
	background: linear-gradient(180deg, var(--ot-navy-mid) 0%, #06182c 100%);
	border: 1px solid var(--ot-line);
	border-radius: var(--ot-radius);
	box-shadow: none;
}

.arsam-ot-hs__results {
	display: grid;
	gap: 0.55rem;
}

.arsam-ot-hs__row {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem 8rem;
	gap: 0.75rem;
	align-items: center;
	padding: 1.05rem 1.35rem;
	background: var(--ot-surface);
	border: 1px solid var(--ot-line);
	border-radius: var(--ot-radius-sm);
	box-shadow: none;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
	animation: arsam-ot-in 0.28s ease both;
}

.arsam-ot-hs__row:hover {
	transform: translateY(-1px);
	background: var(--ot-surface-hi);
	border-color: rgba(215, 165, 60, 0.55);
}

.arsam-ot-hs__code {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--ot-gold-hi);
	letter-spacing: 0.02em;
	unicode-bidi: isolate;
}

.arsam-ot-hs__name {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.65;
	color: var(--ot-text);
}

.arsam-ot-hs__name-sub {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--ot-muted);
	line-height: 1.5;
}

.arsam-ot-hs__unit,
.arsam-ot-hs__value {
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
}

.arsam-ot-hs__value {
	color: var(--ot-gold-hi);
}

.arsam-ot-hs__empty,
.arsam-ot-hs__hint {
	margin: 0;
	padding: 2rem 1rem;
	text-align: center;
	color: var(--ot-muted);
	font-size: 0.95rem;
	line-height: 1.7;
}

.arsam-ot-hs__placeholder {
	margin-top: 0.5rem;
	background: var(--ot-surface);
	border: 1px dashed rgba(215, 165, 60, 0.28);
	border-radius: var(--ot-radius-sm);
}

@keyframes arsam-ot-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 800px) {
	.arsam-ot-hs__head {
		display: none;
	}

	.arsam-ot-hs__row {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"code value"
			"name name"
			"unit unit";
		gap: 0.45rem 0.75rem;
		padding: 1rem 1.1rem;
	}

	.arsam-ot-hs__code {
		grid-area: code;
	}

	.arsam-ot-hs__name {
		grid-area: name;
	}

	.arsam-ot-hs__unit {
		grid-area: unit;
	}

	.arsam-ot-hs__unit::before {
		content: "واحد: ";
		font-weight: 500;
		color: var(--ot-muted);
	}

	.arsam-ot-hs__value {
		grid-area: value;
		text-align: left;
	}

	.arsam-ot-hs__value::before {
		content: "ارزش: ";
		font-weight: 500;
		color: var(--ot-muted);
	}
}

@media (max-width: 520px) {
	.arsam-ot-hs__field {
		flex-wrap: wrap;
		border-radius: 18px;
		padding: 0.55rem;
	}

	.arsam-ot-hs__input {
		width: 100%;
		padding: 0.65rem 0.85rem;
	}

	.arsam-ot-hs__btn {
		width: 100%;
	}
}
