/* Didkav Footer — white glass cards with orbiting border light, scroll reveal and soft aurora. */

.dkf {
	--dkh-primary: #00919c;
	--dkh-primary-2: #006d8f;
	--dkf-ink: #1e2b2f;
	--dkf-ink-2: #3d4a4e;
	--dkf-muted: #5c6669;
	--dkf-line: #e3eaeb;
	/* #00919c is 3.8:1 on white — text uses the darker mix. */
	--dkf-teal-ink: color-mix(in srgb, var(--dkh-primary) 80%, #000);
	--dkf-deep: color-mix(in srgb, var(--dkh-primary) 64%, #000);
	--dkf-soft: color-mix(in srgb, var(--dkh-primary) 9%, #fff);
	--dkf-ease: cubic-bezier(.22, .8, .24, 1);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	/* Full bleed even inside a boxed Elementor section / container. */
	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin: 0 calc(50% - 50vw);
	padding: 72px 24px 0;
	font-family: "YekanBakh", Vazirmatn, Tahoma, system-ui, sans-serif;
	direction: rtl;
	text-align: right;
	color: var(--dkf-ink-2);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	background: linear-gradient(180deg, rgba(240, 248, 248, 0) 0, #edf6f7 220px, #e6f2f3 100%);
}
.dkf *, .dkf *::before, .dkf *::after { box-sizing: border-box; }
.dkf a { color: inherit; text-decoration: none; }
.dkf ul { list-style: none; margin: 0; padding: 0; }
.dkf p, .dkf h2, .dkf h3 { margin: 0; }
.dkf svg { display: block; flex-shrink: 0; }
.dkf a:focus-visible, .dkf button:focus-visible { outline: 2px solid var(--dkh-primary); outline-offset: 3px; }

/*
 * Perf gate (1.10.0): every looping decoration here is paused until the footer is really on screen
 * (footer.js adds .dkf-live). Off screen they still cost style, paint and compositing work, and the
 * footer is the last thing on the page — so for most of a visit this is pure saving.
 * Hover animations re-start themselves: the `animation` shorthand resets play-state to running.
 */
.dkf *, .dkf *::before, .dkf *::after { animation-play-state: paused; }
.dkf-live *, .dkf-live *::before, .dkf-live *::after { animation-play-state: running; }

/* 100vw includes the scrollbar; keep the page from scrolling sideways. */
html:has(.dkf), body:has(.dkf) { overflow-x: clip; }
body .elementor-widget-shortcode:has(> .elementor-widget-container > .dkf),
body .elementor-shortcode:has(> .dkf) { width: 100%; max-width: none; }

/* Theme / Elementor kit button resets (same approach as the header). */
body .dkf button.dkf-more,
body .dkf button.dkf-top {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* ---------- Aurora behind the glass ---------- */

.dkf-aura { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dkf-aura::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(color-mix(in srgb, var(--dkh-primary) 22%, transparent) 1px, transparent 1.5px);
	background-size: 24px 24px;
	-webkit-mask: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
	mask: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
	opacity: .55;
}
/*
 * Perf (1.10.0): these three blobs used to drift for ever *behind* the glass cards, so the browser had
 * to re-run a 24px backdrop blur on every frame of a 24-second animation — the biggest single reason
 * scrolling felt heavy. They now sit still, half-way through the old drift, which is where the eye
 * read them anyway. No will-change either: three static layers of ~1MP cost GPU memory for nothing.
 */
.dkf-aura i {
	position: absolute;
	border-radius: 50%;
}
.dkf-aura i:nth-child(1) {
	width: 700px; height: 700px; top: 40px; right: -250px;
	background: radial-gradient(circle, color-mix(in srgb, var(--dkh-primary) 32%, transparent), transparent 66%);
}
.dkf-aura i:nth-child(2) {
	width: 540px; height: 540px; top: 34%; left: -70px;
	background: radial-gradient(circle, color-mix(in srgb, var(--dkh-primary-2) 26%, transparent), transparent 66%);
}
.dkf-aura i:nth-child(3) {
	width: 520px; height: 520px; bottom: -160px; left: 32%;
	background: radial-gradient(circle, rgba(245, 158, 11, .16), transparent 66%);
}

.dkf-wrap {
	position: relative;
	display: grid;
	gap: 18px;
	max-width: 1480px;
	margin: 0 auto;
}

/* ---------- Glass card + orbiting light ---------- */

/*
 * Glass lives on ::before (see header.css). Reveal animations never change the card's opacity/filter,
 * only its transform — otherwise the card becomes a backdrop root and the blur disappears mid-animation.
 */
.dkf-card {
	--mx: -999px;
	--my: -999px;
	position: relative;
	z-index: 0;
	border-radius: 28px;
}
.dkf-card::before {
	content: "";
	position: absolute;
	z-index: -2;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5));
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, .85);
	box-shadow:
		0 0 0 1px rgba(15, 23, 42, .045),
		inset 0 1px 0 rgba(255, 255, 255, .95),
		0 24px 60px -30px rgba(14, 52, 58, .32);
}

.dkf-spot {
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
	pointer-events: none;
	background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--dkh-primary) 11%, transparent), transparent 70%);
}

@property --dkf-orbit {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
.dkf-ring::after {
	content: "";
	position: absolute;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: conic-gradient(
		from var(--dkf-orbit),
		transparent 0deg,
		transparent 250deg,
		color-mix(in srgb, var(--dkh-primary) 35%, transparent) 290deg,
		var(--dkh-primary) 330deg,
		var(--dkh-primary-2) 350deg,
		transparent 360deg
	);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	--dkf-orbit: inherit;
	pointer-events: none;
}
/*
 * The light turns with the page (1.11.0): footer.js writes --dkf-orbit from the scroll offset, so it
 * travels while you scroll and stops the moment the page does. There are no keyframes any more — the
 * old `infinite` animation repainted the whole card (1232x586 on desktop) 60 times a second for ever.
 * The angle is set on the card and pulled into ::after with `inherit`, because the registered property
 * is `inherits: false` (that keeps the invalidation on the ring, not on the card's whole subtree).
 */
.dkf-ring { --dkf-orbit: 235deg; }
/* Two comets chasing each other on the big card. */
.dkf-ring--twin::after {
	background: conic-gradient(
		from var(--dkf-orbit),
		transparent 0deg,
		transparent 70deg,
		color-mix(in srgb, var(--dkh-primary) 35%, transparent) 110deg,
		var(--dkh-primary) 150deg,
		var(--dkh-primary-2) 170deg,
		transparent 180deg,
		transparent 250deg,
		color-mix(in srgb, var(--dkh-primary) 35%, transparent) 290deg,
		var(--dkh-primary) 330deg,
		var(--dkh-primary-2) 350deg,
		transparent 360deg
	);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.dkf-js .dkf-card,
.dkf-js .dkf-bottom {
	transform: translateY(36px);
	transition: transform 1s var(--dkf-ease);
}
.dkf-js [data-r] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .7s ease, transform .9s var(--dkf-ease);
	transition-delay: calc(var(--d, 0) * 60ms + 120ms);
}
.dkf-js .is-in,
.dkf-js .is-in [data-r] { transform: none; }
.dkf-js .is-in [data-r] { opacity: 1; }

/* ---------- 1. Consultation banner ---------- */

.dkf-cta {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 26px 30px;
	color: #fff;
}
.dkf-cta::before {
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%),
		linear-gradient(120deg, var(--dkf-deep), var(--dkf-teal-ink) 55%, var(--dkh-primary-2));
	border-color: rgba(255, 255, 255, .28);
	box-shadow: 0 28px 60px -28px color-mix(in srgb, var(--dkh-primary) 70%, transparent);
}
/* Star dust + sparkles drifting in and out inside the teal banner. */
.dkf-cta-stars {
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: inherit;
	overflow: hidden;
	pointer-events: none;
}
.dkf-cta-stars::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.5px);
	background-size: 18px 18px;
	-webkit-mask: linear-gradient(90deg, transparent, #000 70%);
	mask: linear-gradient(90deg, transparent, #000 70%);
	opacity: .45;
}
.dkf-cta-stars i {
	position: absolute;
	top: var(--y);
	left: var(--x);
	width: var(--s);
	height: var(--s);
	margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
	background: #fff;
	clip-path: polygon(50% 0%, 56% 44%, 100% 50%, 56% 56%, 50% 100%, 44% 56%, 0% 50%, 44% 44%);
	filter: drop-shadow(0 0 7px rgba(255, 255, 255, .95));
	opacity: 0;
	animation: dkf-twinkle var(--dur, 4s) ease-in-out infinite;
	animation-delay: var(--t, 0s);
}
.dkf-cta-stars i:nth-child(1) { --x: 4%; --y: 22%; --s: 18px; --t: 0s; --dur: 4.2s; }
.dkf-cta-stars i:nth-child(2) { --x: 12%; --y: 72%; --s: 11px; --t: .9s; --dur: 3.4s; }
.dkf-cta-stars i:nth-child(3) { --x: 21%; --y: 34%; --s: 9px; --t: 2.1s; --dur: 5s; }
.dkf-cta-stars i:nth-child(4) { --x: 30%; --y: 84%; --s: 14px; --t: 1.4s; --dur: 4.6s; }
.dkf-cta-stars i:nth-child(5) { --x: 42%; --y: 16%; --s: 10px; --t: 3s; --dur: 3.8s; }
.dkf-cta-stars i:nth-child(6) { --x: 53%; --y: 64%; --s: 16px; --t: .4s; --dur: 5.2s; }
.dkf-cta-stars i:nth-child(7) { --x: 64%; --y: 26%; --s: 9px; --t: 2.6s; --dur: 4s; }
.dkf-cta-stars i:nth-child(8) { --x: 75%; --y: 78%; --s: 13px; --t: 1.7s; --dur: 4.8s; }
.dkf-cta-stars i:nth-child(9) { --x: 86%; --y: 36%; --s: 17px; --t: 3.4s; --dur: 3.6s; }
.dkf-cta-stars i:nth-child(10) { --x: 94%; --y: 68%; --s: 10px; --t: 1.1s; --dur: 5.4s; }
@keyframes dkf-twinkle {
	0%, 100% { opacity: 0; transform: scale(.3) rotate(-35deg); }
	45%, 55% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.dkf-orb {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	flex-shrink: 0;
	background: rgba(255, 255, 255, .16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 30px -10px rgba(0, 0, 0, .35);
}
.dkf-orb::before,
.dkf-orb::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .55);
	animation: dkf-ripple 3s var(--dkf-ease) infinite;
}
.dkf-orb::after { animation-delay: 1.5s; }
.dkf-orb svg { width: 30px; height: 30px; animation: dkf-rocket 3.2s ease-in-out infinite; }
@keyframes dkf-ripple {
	from { transform: scale(1); opacity: .9; }
	to { transform: scale(1.9); opacity: 0; }
}
@keyframes dkf-rocket {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(3px, -4px); }
}

.dkf-cta-text { flex: 1; min-width: 0; }
.dkf .dkf-cta-title { font-size: 21px; font-weight: 800; line-height: 1.6; color: #fff; }
.dkf-cta-desc { margin-top: 4px; font-size: 14.5px; line-height: 1.9; color: rgba(255, 255, 255, .92); max-width: 640px; text-align: justify; }
.dkf-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

.dkf-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 50px;
	padding: 0 22px;
	border-radius: 16px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	transition: transform .35s var(--dkf-ease), box-shadow .35s ease, background .35s ease;
}
.dkf-btn svg { width: 19px; height: 19px; }
.dkf .dkf-btn--light { background: #fff; color: var(--dkf-deep); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }
.dkf-btn--light svg { transition: transform .35s var(--dkf-ease); }
.dkf-btn--light::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--dkh-primary) 18%, transparent) 50%, transparent 70%);
	transform: translateX(120%);
	transition: transform .8s var(--dkf-ease);
}
.dkf-btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, .45); }
.dkf-btn--light:hover svg { transform: translateX(-5px); }
.dkf-btn--light:hover::after { transform: translateX(-120%); }
.dkf .dkf-btn--ghost { color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.dkf-btn--ghost:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

/* ---------- 2. Highlights ---------- */

.dkf-feats {
	display: grid;
	grid-template-columns: repeat(var(--dkf-n, 4), 1fr);
	padding: 20px 10px;
}
.dkf-feat {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 6px 22px;
}
.dkf-feat + .dkf-feat::before {
	content: "";
	position: absolute;
	top: 12%;
	bottom: 12%;
	right: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent, var(--dkf-line), transparent);
}
.dkf-feat-ico {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 18px;
	color: var(--dkf-teal-ink);
	background: linear-gradient(145deg, #fff, var(--dkf-soft));
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--dkh-primary) 18%, transparent),
		0 10px 24px -14px color-mix(in srgb, var(--dkh-primary) 70%, transparent);
	overflow: hidden;
	transition: transform .45s var(--dkf-ease), color .3s ease, background .3s ease;
	animation: dkf-bob 5s ease-in-out infinite;
	animation-delay: calc(var(--d, 0) * -1.2s);
}
.dkf-feat-ico svg { width: 27px; height: 27px; position: relative; }
/* Light sweep across each tile, staggered. */
.dkf-feat-ico::after {
	content: "";
	position: absolute;
	inset: -20%;
	background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .95) 50%, transparent 62%);
	transform: translateX(110%);
	animation: dkf-tile-sweep 6s ease-in-out infinite;
	animation-delay: calc(var(--d, 0) * .7s + 1s);
}
@keyframes dkf-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}
@keyframes dkf-tile-sweep {
	0%, 70% { transform: translateX(110%); }
	100% { transform: translateX(-110%); }
}
.dkf-feat:hover .dkf-feat-ico {
	color: #fff;
	background: linear-gradient(145deg, var(--dkf-teal-ink), var(--dkh-primary-2));
	transform: translateY(-3px) rotate(-6deg);
	animation-play-state: paused;
}
/* Icons draw themselves in when revealed. */
.dkf-js .dkf-feat-ico svg > * {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 1.8s ease;
	transition-delay: calc(var(--d, 0) * 150ms + 350ms);
}
.dkf-js .is-in .dkf-feat-ico svg > * { stroke-dashoffset: 0; }

.dkf-feat-text { display: grid; min-width: 0; line-height: 1.6; }
.dkf-feat-text strong { font-size: 15.5px; font-weight: 800; color: var(--dkf-ink); }
.dkf-feat-text small { font-size: 13px; color: var(--dkf-muted); }

/* ---------- 3. Main card ---------- */

.dkf-main { padding: 36px 36px 10px; }

.dkf-grid {
	display: grid;
	grid-template-columns: minmax(340px, 2.4fr) repeat(var(--dkf-cols, 3), minmax(130px, 1fr)) minmax(200px, 1fr);
	gap: 34px;
	align-items: start;
}

.dkf-logo { display: inline-flex; align-items: center; max-width: 100%; }
/*
 * Any uploaded logo, any aspect ratio: the height is fixed to --dkf-logo-h, the width follows the
 * ratio, max-width caps it, and object-fit: contain letterboxes an extreme ratio instead of
 * squashing it. So a 1200x200 or a 300x900 file both land inside the box, undistorted.
 * !important beats Elementor's own `.elementor img` rule, which loads later with equal specificity.
 */
body .dkf .dkf-logo img {
	display: block;
	width: auto !important;
	height: var(--dkf-logo-h, 44px) !important;
	max-height: var(--dkf-logo-h, 44px) !important;
	max-width: min(100%, 260px) !important;
	object-fit: contain !important;
	object-position: right center;
}
.dkf-logo-text {
	font-size: 26px;
	font-weight: 800;
	background: linear-gradient(135deg, var(--dkf-teal-ink), var(--dkh-primary-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Logo and slogan sit on one line; the slogan drops below only when the column is too narrow. */
.dkf-brand-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 14px;
	row-gap: 10px;
}
.dkf-brand-row .dkf-tag { margin-top: 0; flex: 1 1 200px; min-width: 0; }

/* Slogan */
.dkf-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.7;
	color: var(--dkf-teal-ink);
}
.dkf-tag i {
	position: relative;
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dkh-primary);
}
.dkf-tag i::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--dkh-primary);
	animation: dkf-ping 2s ease-out infinite;
}
@keyframes dkf-ping {
	from { transform: scale(1); opacity: .7; }
	to { transform: scale(2.8); opacity: 0; }
}

/* Mission (first paragraph) + the rest of the about text, clamped. */
.dkf-mission {
	margin-top: 12px !important;
	padding: 12px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 2;
	text-align: justify;
	color: var(--dkf-ink);
	background: linear-gradient(135deg, var(--dkf-soft), rgba(255, 255, 255, .6));
	border-right: 3px solid var(--dkh-primary);
}
.dkf-mission strong { font-weight: 800; color: var(--dkf-teal-ink); }
.dkf-about {
	margin-top: 14px;
	position: relative;
	text-align: justify;
	max-height: calc(14px * 2.05 * 4);
	overflow: hidden;
	font-size: 14px;
	line-height: 2.05;
	color: var(--dkf-ink-2);
	transition: max-height .6s var(--dkf-ease);
}
.dkf-about p + p { margin-top: 8px; }
.dkf-about.is-clamped:not(.is-open) {
	-webkit-mask-image: linear-gradient(#000 82%, rgba(0, 0, 0, .35));
	mask-image: linear-gradient(#000 82%, rgba(0, 0, 0, .35));
}
.dkf-about.is-open { max-height: 900px; }
body .dkf button.dkf-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--dkf-teal-ink);
}
body .dkf button.dkf-more[hidden] { display: none; }
.dkf-more svg { width: 16px; height: 16px; transition: transform .3s var(--dkf-ease); }
.dkf-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Social networks: last grid column (the left edge in RTL). */
.dkf-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.dkf-social {
	--tx: 0px;
	--ty: 0px;
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 14px;
	color: var(--dkf-ink-2);
	background: rgba(255, 255, 255, .75);
	box-shadow: inset 0 0 0 1px var(--dkf-line), 0 6px 16px -10px rgba(14, 52, 58, .35);
	transform: translate(var(--tx), var(--ty));
	transition: transform .3s var(--dkf-ease), color .3s ease, background .3s ease, box-shadow .3s ease;
}
.dkf-social svg { width: 20px; height: 20px; }
.dkf-social:hover {
	color: #fff;
	background: var(--dkf-c);
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--dkf-c) 70%, transparent);
}

/* Admin-only placeholders for empty sections */
a.dkf-social-ph {
	display: block;
	padding: 12px 14px;
	border-radius: 18px;
	border: 1.5px dashed color-mix(in srgb, var(--dkh-primary) 40%, transparent);
	transition: border-color .3s ease, background .3s ease;
}
a.dkf-social-ph:hover { border-color: var(--dkh-primary); background: rgba(255, 255, 255, .6); }
.dkf-placeholder small,
.dkf-hint { display: block; margin-top: 8px !important; font-size: 12px; line-height: 1.9; color: var(--dkf-muted); }
.dkf-social.dkf-social--ghost { color: var(--dkf-muted); background: transparent; box-shadow: inset 0 0 0 1.5px var(--dkf-line); }
.dkf-badge.dkf-badge--ghost {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: color-mix(in srgb, var(--dkh-primary) 60%, #7a8a8d);
	background: rgba(255, 255, 255, .45);
	box-shadow: none;
	border: 1.5px dashed color-mix(in srgb, var(--dkh-primary) 40%, transparent);
}
.dkf-badge.dkf-badge--ghost::after { display: none; }
.dkf-badge--ghost svg { width: 28px; height: 28px; }
.dkf-badge--ghost small { font-size: 12px; font-weight: 700; }
a.dkf-badges.dkf-placeholder:hover .dkf-badge--ghost { border-color: var(--dkh-primary); background: #fff; }

.dkf .dkf-h {
	position: relative;
	margin: 6px 0 16px;
	padding-bottom: 10px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--dkf-ink);
}
.dkf-h::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 28px;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--dkh-primary-2), var(--dkh-primary));
	transition: width .6s var(--dkf-ease);
}
.dkf-col:hover .dkf-h::after,
.dkf-social-col:hover .dkf-h::after { width: 54px; }

.dkf-links { display: grid; gap: 2px; }
.dkf-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 6px 0;
	font-size: 14.5px;
	color: var(--dkf-ink-2);
	transition: color .3s ease;
}
.dkf-link::before {
	content: "";
	width: 0;
	height: 6px;
	margin-left: 0;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--dkh-primary-2), var(--dkh-primary));
	transition: width .35s var(--dkf-ease), margin .35s var(--dkf-ease);
}
.dkf-link span { position: relative; }
.dkf-link span::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: -1px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s var(--dkf-ease);
}
.dkf-link:hover { color: var(--dkf-teal-ink); }
.dkf-link:hover::before { width: 14px; margin-left: 8px; }
.dkf-link:hover span::after { transform: scaleX(1); transform-origin: right; }
.dkf-col--hint p { font-size: 13px; line-height: 2; color: var(--dkf-muted); }
.dkf .dkf-col--hint .dkf-link { margin-top: 6px; font-weight: 700; color: var(--dkf-teal-ink); }

/* App card (right) + trust badges in one row (left). */
.dkf-app {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 18px;
	padding: 16px 18px;
	border-radius: 22px;
	background: linear-gradient(135deg, var(--dkf-soft), rgba(255, 255, 255, .6));
	box-shadow: inset 0 0 0 1px var(--dkf-line);
}
.dkf-app-ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	flex-shrink: 0;
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(135deg, var(--dkf-teal-ink), var(--dkh-primary-2));
	box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--dkh-primary) 70%, transparent);
}
.dkf-app-ico svg { width: 22px; height: 22px; }
.dkf-app-text { flex: 1 1 190px; min-width: 0; }
.dkf .dkf-app-title { font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--dkf-ink); }
.dkf-app-desc { margin-top: 2px; font-size: 13.5px; line-height: 1.9; color: var(--dkf-muted); }
.dkf-app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Store buttons: same tile material as the trust badges. */
.dkf-store {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px 9px 10px;
	border-radius: 16px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--dkf-ink);
	background: rgba(255, 255, 255, .85);
	box-shadow: inset 0 0 0 1px var(--dkf-line), 0 12px 26px -18px rgba(14, 52, 58, .45);
	transition: transform .4s var(--dkf-ease), box-shadow .4s ease, color .3s ease;
}
.dkf-store:hover {
	color: var(--dkf-teal-ink);
	transform: translateY(-3px);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dkh-primary) 35%, transparent), 0 18px 34px -16px color-mix(in srgb, var(--dkh-primary) 55%, transparent);
}
.dkf-store-ico {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 11px;
	color: var(--dkf-teal-ink);
	background: var(--dkf-soft);
}
.dkf-store-ico svg { width: 18px; height: 18px; }
/* Uploaded store icons: any file size lands inside the 32px tile, undistorted. */
body .dkf .dkf-store-ico img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 22px !important;
	max-height: 22px !important;
	object-fit: contain !important;
}
.dkf-store--ghost {
	color: color-mix(in srgb, var(--dkh-primary) 60%, #7a8a8d);
	background: rgba(255, 255, 255, .45);
	box-shadow: none;
	border: 1.5px dashed color-mix(in srgb, var(--dkh-primary) 40%, transparent);
}
.dkf-store--ghost svg { width: 18px; height: 18px; }
a.dkf-app-links.dkf-placeholder:hover .dkf-store--ghost { border-color: var(--dkh-primary); background: #fff; }

/* About text (right) + trust badges in one row (left), like the reference. */
.dkf-lower {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 40px;
	margin-top: 30px;
	padding-top: 26px;
}
.dkf-lower::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--dkf-line) 15%, var(--dkf-line) 85%, transparent);
}
.dkf-lower--badges { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.dkf-badges { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; }
.dkf-badges .dkf-badge { width: 104px; flex-shrink: 0; }
.dkf-badge {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 12px;
	border-radius: 20px;
	overflow: hidden;
	background: rgba(255, 255, 255, .85);
	box-shadow: inset 0 0 0 1px var(--dkf-line), 0 12px 26px -18px rgba(14, 52, 58, .45);
	transition: transform .45s var(--dkf-ease), box-shadow .45s ease, border-color .3s ease, background .3s ease;
}
.dkf-badge > * { max-width: 100%; }
/* A seal whose image never loads (eNamad blocks non-Iranian IPs, and goes down now and then) is dropped
   instead of leaving an empty glass square — footer.js adds the class. */
.dkf-badge.is-dead { display: none; }
body .dkf .dkf-badge img { display: block; max-width: 100% !important; max-height: 84px; width: auto; height: auto; }
.dkf-badge::after {
	content: "";
	position: absolute;
	inset: -30%;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .85) 50%, transparent 60%);
	transform: translateX(120%);
	animation: dkf-tile-sweep 7s ease-in-out infinite;
	animation-delay: calc(var(--d, 0) * .9s + 2s);
}
.dkf-badge:hover {
	transform: translateY(-4px);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dkh-primary) 35%, transparent), 0 18px 34px -16px color-mix(in srgb, var(--dkh-primary) 55%, transparent);
}

/* Contact row with a light travelling along the divider. */
.dkf-contact {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--dkf-n, 4), minmax(0, auto));
	justify-content: space-between;
	gap: 18px 28px;
	margin-top: 30px;
	padding: 22px 0 20px;
}
.dkf-divider {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	overflow: hidden;
	background: linear-gradient(90deg, transparent, var(--dkf-line) 15%, var(--dkf-line) 85%, transparent);
}
/* Perf: the comet used to animate `right`, i.e. a layout pass per frame; it is a GPU transform now. */
.dkf-divider::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--dkh-primary) 50%, transparent) no-repeat 100% 0;
	background-size: 200px 1px;
	animation: dkf-comet 5s ease-in-out infinite;
}
@keyframes dkf-comet {
	from { transform: translateX(200px); }
	to { transform: translateX(-100%); }
}
.dkf-ci { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dkf-ci-ico {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border-radius: 14px;
	color: var(--dkf-teal-ink);
	background: var(--dkf-soft);
	transition: transform .4s var(--dkf-ease), background .3s ease, color .3s ease;
}
.dkf-ci-ico svg { width: 20px; height: 20px; }
.dkf-ci:hover .dkf-ci-ico { color: #fff; background: var(--dkf-teal-ink); transform: rotate(-8deg) scale(1.05); }
.dkf-ci-text { display: grid; min-width: 0; line-height: 1.6; }
.dkf-ci-text small { font-size: 12px; color: var(--dkf-muted); }
.dkf-ci-text a, .dkf-ci-text span { font-size: 14.5px; font-weight: 700; color: var(--dkf-ink); }
.dkf-ci-text a[dir="ltr"] { text-align: right; unicode-bidi: plaintext; }
.dkf-ci-text a:hover { color: var(--dkf-teal-ink); }

/* ---------- 4. Bottom bar ---------- */

.dkf-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 8px 28px;
}
.dkf-copy { font-size: 13.5px; color: var(--dkf-muted); }

/* Back to top: rounded square; scroll progress fills its frame and a small light keeps circling it. */
body .dkf button.dkf-top {
	position: relative;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 17px;
	color: var(--dkf-teal-ink);
	background: rgba(255, 255, 255, .85);
	box-shadow: 0 14px 28px -16px rgba(14, 52, 58, .55), inset 0 0 0 1px var(--dkf-line);
	transition: transform .4s var(--dkf-ease), color .3s ease, background .3s ease, box-shadow .3s ease;
}
.dkf-top svg { position: relative; width: 20px; height: 20px; transform: rotate(90deg); }
.dkf-top-ring,
.dkf-top-glow {
	position: absolute;
	inset: 0;
	padding: 2px;
	border-radius: inherit;
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
}
.dkf-top-ring { background: conic-gradient(color-mix(in srgb, var(--dkh-primary) 55%, transparent) calc(var(--p, 0) * 360deg), transparent 0); }
.dkf-top-glow {
	background: conic-gradient(from var(--dkf-orbit), transparent 0deg, transparent 270deg, var(--dkh-primary) 340deg, var(--dkh-primary-2) 355deg, transparent 360deg);
	--dkf-orbit: 300deg;
	filter: drop-shadow(0 0 3px color-mix(in srgb, var(--dkh-primary) 70%, transparent));
}
body .dkf button.dkf-top:hover {
	color: #fff;
	background: linear-gradient(135deg, var(--dkf-teal-ink), var(--dkh-primary-2));
	box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--dkh-primary) 70%, transparent);
	transform: translateY(-3px);
}
.dkf-top:hover svg { animation: dkf-up .9s ease-in-out infinite; }
@keyframes dkf-up {
	0%, 100% { transform: rotate(90deg) translateX(0); }
	50% { transform: rotate(90deg) translateX(4px); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1179px) {
	.dkf-grid { grid-template-columns: repeat(var(--dkf-cols, 3), minmax(0, 1fr)); gap: 28px; }
	.dkf-brand, .dkf-social-col { grid-column: 1 / -1; }
	.dkf-lower { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.dkf-lower--badges { justify-items: stretch; }
	.dkf-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
	.dkf { padding-top: 48px; }
	.dkf-cta { flex-wrap: wrap; padding: 24px; }
	.dkf-cta-text { flex-basis: calc(100% - 90px); }
	.dkf-cta-actions { width: 100%; }
	.dkf-feats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; padding: 18px 6px; }
	.dkf-feat { padding: 6px 14px; }
	.dkf-feat:nth-child(odd)::before { display: none; }
	.dkf-main { padding: 28px 24px 8px; }
}

@media (max-width: 639px) {
	.dkf { padding: 36px 12px 0; }
	.dkf-wrap { gap: 14px; }
	.dkf-card { border-radius: 24px; }
	.dkf-cta { gap: 16px; padding: 22px 18px; }
	.dkf-orb { width: 52px; height: 52px; }
	.dkf-orb svg { width: 24px; height: 24px; }
	.dkf-cta-text { flex-basis: calc(100% - 70px); }
	.dkf .dkf-cta-title { font-size: 18px; }
	.dkf-cta-desc { font-size: 13.5px; }
	.dkf-cta-actions { display: grid; grid-template-columns: 1fr; }
	.dkf-btn { justify-content: center; }
	.dkf-feats { grid-template-columns: 1fr 1fr; gap: 12px 0; padding: 14px 4px; }
	.dkf-feat { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 8px; }
	.dkf-feat-ico { width: 50px; height: 50px; border-radius: 16px; }
	.dkf-feat-text strong { font-size: 14px; }
	.dkf-feat-text small { font-size: 12px; }
	.dkf-main { padding: 24px 18px 6px; }
	.dkf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }

	/* Phones: lighter weights and shorter type so the footer reads calm, not heavy. */
	.dkf-brand-row { column-gap: 10px; }
	.dkf-tag { font-size: 13px; font-weight: 700; line-height: 1.75; gap: 8px; }
	.dkf-tag i { width: 6px; height: 6px; }
	.dkf .dkf-h { margin-bottom: 12px; padding-bottom: 8px; font-size: 14.5px; font-weight: 700; }
	.dkf-h::after { width: 22px; height: 2px; }
	.dkf-link { padding: 5px 0; font-size: 13.5px; }
	.dkf-mission { padding: 10px 12px; font-size: 13px; line-height: 1.95; }
	.dkf-about { font-size: 13px; line-height: 1.95; }
	.dkf-ci { gap: 10px; }
	.dkf-ci-ico { width: 38px; height: 38px; border-radius: 12px; }
	.dkf-ci-ico svg { width: 18px; height: 18px; }
	.dkf-ci-text { line-height: 1.75; }
	.dkf-ci-text small { font-size: 11.5px; }
	.dkf-ci-text a, .dkf-ci-text span { font-size: 13px; font-weight: 600; }
	.dkf-app { gap: 12px 14px; padding: 14px; }
	.dkf-app-ico { width: 40px; height: 40px; border-radius: 13px; }
	.dkf-app-ico svg { width: 20px; height: 20px; }
	.dkf .dkf-app-title { font-size: 15px; }
	.dkf-app-desc { font-size: 12.5px; }
	.dkf-app-links { width: 100%; }
	.dkf-store { flex: 1 1 130px; justify-content: center; font-size: 13px; }
	.dkf-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.dkf-badges .dkf-badge { width: auto; padding: 6px; border-radius: 14px; }
	.dkf-contact { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
	.dkf-bottom { flex-direction: column-reverse; text-align: center; gap: 12px; }
	.dkf-copy { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.dkf *, .dkf *::before, .dkf *::after { animation: none !important; }
	.dkf-cta-stars i { opacity: .6; transform: none; }
	.dkf-js .dkf-card, .dkf-js .dkf-bottom, .dkf-js [data-r], .dkf-js .dkf-feat-ico svg > * { transition: none !important; }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.dkf-card:not(.dkf-cta)::before { background: rgba(255, 255, 255, .96); }
}
@media (max-width: 639px) {
	.dkf-col--hint { grid-column: 1 / -1; }
}
