@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

.zft-lookup-root {
	--zft-bg: #0a0508;
	--zft-red: #e21b1b;
	--zft-red-light: #ff4545;
	--zft-red-dim: #7a1414;
	--zft-glass: rgba(255,255,255,0.045);
	--zft-glass-border: rgba(255,255,255,0.09);
	--zft-text: #f3eeee;
	--zft-text-dim: #b3a7a7;

	position: relative;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	direction: rtl;
	background: radial-gradient(120% 140% at 20% 10%, #1c0708 0%, var(--zft-bg) 55%, #060304 100%);
	border-radius: 24px;
	padding: 56px 20px;
	min-height: 560px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--zft-text);
	box-sizing: border-box;
}
.zft-lookup-root *, .zft-lookup-root *::before, .zft-lookup-root *::after { box-sizing: border-box; }

.zft-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; }
.zft-glow-1 { width: 380px; height: 380px; background: var(--zft-red); top: -120px; right: -80px; animation: zftFloat 9s ease-in-out infinite; }
.zft-glow-2 { width: 300px; height: 300px; background: #7a0f0f; bottom: -100px; left: -60px; animation: zftFloat 11s ease-in-out infinite reverse; }
@keyframes zftFloat {
	0%, 100% { transform: translateY(0) translateX(0); }
	50% { transform: translateY(30px) translateX(-15px); }
}

.zft-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: linear-gradient(155deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--zft-glass-border);
	border-radius: 20px;
	padding: 36px 30px;
	box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
	animation: zftBoxIn 0.6s cubic-bezier(.2,.9,.25,1);
}
@keyframes zftBoxIn {
	from { opacity: 0; transform: translateY(18px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.zft-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.zft-brand-mark {
	font-weight: 800; font-size: 22px; width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--zft-red-light), var(--zft-red-dim));
	border-radius: 10px; color: #fff;
	box-shadow: 0 6px 18px -6px rgba(226,27,27,0.7);
}
.zft-brand-text { font-size: 14px; color: var(--zft-text-dim); }
.zft-brand-text b { color: var(--zft-text); }

.zft-title { font-size: 21px; font-weight: 700; margin: 0 0 6px; color: #fff; }
.zft-subtitle { font-size: 13px; color: var(--zft-text-dim); margin: 0 0 26px; line-height: 1.9; }
.zft-subtitle-sm { font-size: 12px; color: var(--zft-text-dim); margin: 2px 0 0; }

.zft-field { position: relative; margin-bottom: 18px; }
.zft-field input {
	width: 100%; background: rgba(255,255,255,0.04);
	border: 1px solid var(--zft-glass-border);
	border-radius: 12px; padding: 18px 16px 8px;
	color: #fff; font-size: 16px; font-family: inherit;
	outline: none; transition: border-color .25s, box-shadow .25s;
}
.zft-field input:focus { border-color: var(--zft-red); box-shadow: 0 0 0 4px rgba(226,27,27,0.15); }
.zft-field label {
	position: absolute; right: 16px; top: 17px; color: var(--zft-text-dim);
	font-size: 15px; pointer-events: none; transition: all .2s ease;
}
.zft-field input:focus + label,
.zft-field input:not(:placeholder-shown) + label {
	top: 6px; font-size: 11px; color: var(--zft-red-light);
}

.zft-error { color: var(--zft-red-light); font-size: 12.5px; min-height: 18px; margin-bottom: 6px; }

.zft-btn-primary {
	width: 100%; border: none; border-radius: 12px; padding: 15px;
	background: linear-gradient(135deg, var(--zft-red-light), var(--zft-red));
	color: #fff; font-family: inherit; font-size: 15px; font-weight: 700;
	cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
	transition: transform .15s, box-shadow .25s; text-decoration: none;
	box-shadow: 0 10px 25px -10px rgba(226,27,27,0.65);
}
.zft-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(226,27,27,0.8); }
.zft-btn-primary:active { transform: translateY(0); }
.zft-btn-sm { width: auto; padding: 10px 18px; font-size: 13px; }

.zft-btn-ghost {
	background: rgba(255,255,255,0.05); border: 1px solid var(--zft-glass-border);
	color: var(--zft-text); border-radius: 10px; padding: 9px 16px;
	font-family: inherit; font-size: 13px; cursor: pointer; transition: background .2s;
}
.zft-btn-ghost:hover { background: rgba(255,255,255,0.1); }

.zft-spinner {
	width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
	animation: zftSpin .7s linear infinite;
}
@keyframes zftSpin { to { transform: rotate(360deg); } }

.zft-box-list { max-width: 480px; }
.zft-list-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }

.zft-programs-list { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; padding-left: 4px; }
.zft-programs-list::-webkit-scrollbar { width: 6px; }
.zft-programs-list::-webkit-scrollbar-thumb { background: var(--zft-red-dim); border-radius: 4px; }

.zft-program-item {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	background: rgba(255,255,255,0.04); border: 1px solid var(--zft-glass-border);
	border-radius: 14px; padding: 14px 16px; cursor: pointer;
	transition: background .2s, transform .15s, border-color .2s;
}
.zft-program-item:hover { background: rgba(226,27,27,0.09); border-color: rgba(226,27,27,0.4); transform: translateX(-3px); }
.zft-program-item .zft-pi-main { display: flex; flex-direction: column; gap: 4px; }
.zft-program-item .zft-pi-date { font-weight: 700; font-size: 14px; color: #fff; }
.zft-program-item .zft-pi-coach { font-size: 12px; color: var(--zft-text-dim); }
.zft-program-item .zft-pi-badge {
	background: linear-gradient(135deg, var(--zft-red-light), var(--zft-red));
	color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
}
.zft-empty-state { text-align: center; color: var(--zft-text-dim); padding: 30px 10px; font-size: 13px; }

.zft-box-pdf { max-width: 780px; width: 100%; }
.zft-pdf-frame-wrap {
	width: 100%; height: 70vh; min-height: 420px; border-radius: 14px; overflow: hidden;
	border: 1px solid var(--zft-glass-border); background: #1a1a1a;
}
.zft-pdf-frame-wrap iframe { width: 100%; height: 100%; border: none; }

/* ریسپانسیو موبایل */
@media (max-width: 600px) {
	.zft-lookup-root { padding: 30px 12px; border-radius: 16px; min-height: 480px; }
	.zft-box { padding: 26px 18px; border-radius: 16px; }
	.zft-title { font-size: 18px; }
	.zft-pdf-frame-wrap { height: 60vh; }
	.zft-list-header { flex-direction: column; align-items: stretch; }
}
