/* AzarBo Download Host — Public Panel */
.adh-panel {
	--adh-fg: #0c0a09;
	--adh-muted: #57534e;
	--adh-border: #d6d3d1;
	--adh-accent: #a16207;
	--adh-accent-soft: #fef3c7;
	--adh-card: rgba(255, 255, 255, 0.78);
	--adh-radius: 18px;
	position: relative;
	isolation: isolate;
	min-height: 70vh;
	padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) 64px;
	font-family: Vazirmatn, Tahoma, sans-serif;
	color: var(--adh-fg);
	overflow: hidden;
}

.adh-panel * {
	box-sizing: border-box;
}

.adh-panel-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 80% 50% at 100% 0%, rgba(161, 98, 7, 0.14), transparent 55%),
		radial-gradient(ellipse 60% 40% at 0% 100%, rgba(28, 25, 23, 0.08), transparent 50%),
		linear-gradient(165deg, #fafaf9 0%, #f5f5f4 45%, #e7e5e4 100%);
}

.adh-panel-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231c1917' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

/* Lock */
.adh-lock {
	display: grid;
	place-items: center;
	min-height: 60vh;
	animation: adh-fade-up 0.55s ease both;
}

.adh-lock-card {
	width: min(420px, 100%);
	padding: 40px 32px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(214, 211, 209, 0.8);
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(28, 25, 23, 0.1);
	text-align: center;
}

.adh-lock-mark {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--adh-accent);
}

.adh-lock-card h1 {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 4vw, 2rem);
	font-weight: 700;
}

.adh-lock-card p {
	margin: 0 0 24px;
	color: var(--adh-muted);
	line-height: 1.7;
}

.adh-lock-card input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--adh-border);
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	margin-bottom: 12px;
	background: #fff;
}

.adh-lock-card button {
	width: 100%;
	padding: 14px 18px;
	border: 0;
	border-radius: 12px;
	background: #1c1917;
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.15s, background 0.15s;
}

.adh-lock-card button:hover {
	background: #292524;
	transform: translateY(-1px);
}

.adh-lock-error {
	margin-top: 12px;
	color: #dc2626;
	font-size: 0.9rem;
}

/* Hero */
.adh-panel-hero {
	max-width: 720px;
	margin: 0 auto 36px;
	text-align: center;
	animation: adh-fade-up 0.6s ease both;
}

.adh-brand {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--adh-accent);
}

.adh-panel-hero h1 {
	margin: 0 0 12px;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.adh-lead {
	margin: 0;
	color: var(--adh-muted);
	font-size: 1.05rem;
	line-height: 1.8;
}

/* Controls */
.adh-panel-controls {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 960px;
	margin: 0 auto 20px;
	animation: adh-fade-up 0.65s 0.08s ease both;
}

.adh-panel-search {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: var(--adh-card);
	backdrop-filter: blur(12px);
	border: 1px solid var(--adh-border);
	border-radius: 999px;
	box-shadow: 0 8px 30px rgba(28, 25, 23, 0.05);
}

.adh-panel-search svg {
	flex-shrink: 0;
	opacity: 0.55;
}

.adh-panel-search input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: inherit;
	font-size: 1rem;
	color: var(--adh-fg);
}

.adh-panel-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.adh-chip {
	appearance: none;
	border: 1px solid var(--adh-border);
	background: rgba(255, 255, 255, 0.7);
	color: var(--adh-muted);
	padding: 8px 16px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.18s ease;
}

.adh-chip:hover {
	border-color: #a8a29e;
	color: var(--adh-fg);
}

.adh-chip.is-active {
	background: #1c1917;
	border-color: #1c1917;
	color: #fff;
}

.adh-panel-meta {
	max-width: 960px;
	margin: 0 auto 16px;
	color: var(--adh-muted);
	font-size: 0.9rem;
	animation: adh-fade-up 0.65s 0.12s ease both;
}

/* Grid */
.adh-panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
	max-width: 960px;
	margin: 0 auto;
	animation: adh-fade-up 0.7s 0.16s ease both;
}

.adh-file {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	background: var(--adh-card);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(214, 211, 209, 0.9);
	border-radius: var(--adh-radius);
	box-shadow: 0 10px 30px rgba(28, 25, 23, 0.04);
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
	text-decoration: none;
	color: inherit;
}

.adh-file:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(28, 25, 23, 0.1);
	border-color: #a8a29e;
}

.adh-file-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.adh-ext {
	display: inline-grid;
	place-items: center;
	min-width: 48px;
	height: 48px;
	padding: 0 8px;
	border-radius: 12px;
	background: linear-gradient(145deg, #1c1917, #44403c);
	color: #fef3c7;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.adh-file-cat {
	font-size: 0.75rem;
	color: var(--adh-accent);
	font-weight: 600;
	background: var(--adh-accent-soft);
	padding: 4px 10px;
	border-radius: 999px;
}

.adh-file h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
}

.adh-file p {
	margin: 0;
	color: var(--adh-muted);
	font-size: 0.88rem;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.adh-file-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 4px;
	border-top: 1px solid #f5f5f4;
	margin-top: auto;
}

.adh-file-meta {
	font-size: 0.78rem;
	color: var(--adh-muted);
}

.adh-dl-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 10px;
	background: var(--adh-accent);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}

.adh-dl-btn:hover {
	background: #854d0e;
	color: #fff;
}

.adh-skeleton {
	min-height: 180px;
	border-radius: var(--adh-radius);
	background: linear-gradient(90deg, #e7e5e4 25%, #f5f5f4 50%, #e7e5e4 75%);
	background-size: 200% 100%;
	animation: adh-shimmer 1.2s infinite linear;
}

.adh-empty {
	text-align: center;
	color: var(--adh-muted);
	margin: 40px auto;
}

.adh-panel-pager {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 28px auto 0;
	max-width: 960px;
}

.adh-panel-pager button {
	min-width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--adh-border);
	background: #fff;
	font-family: inherit;
	cursor: pointer;
	transition: 0.15s;
}

.adh-panel-pager button.is-active,
.adh-panel-pager button:hover {
	background: #1c1917;
	border-color: #1c1917;
	color: #fff;
}

@keyframes adh-fade-up {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes adh-shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

@media (max-width: 640px) {
	.adh-panel {
		padding-inline: 14px;
	}
	.adh-lock-card {
		padding: 28px 20px;
	}
}
