.ead {
	--ead-bg: #f4f8f5;
	--ead-surface: #ffffff;
	--ead-ink: #10251d;
	--ead-muted: #5f746b;
	--ead-green: #0b6b4f;
	--ead-green-2: #083d2e;
	--ead-gold: #d4b56a;
	--ead-border: #d7e6de;
	max-width: 720px;
	margin: 0 auto 40px;
	padding: 8px 0 32px;
	color: var(--ead-ink);
	font-family: "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
}

html.quran-dark-mode .ead,
body.quran-dark-mode .ead {
	--ead-bg: #061a13;
	--ead-surface: #0b2a20;
	--ead-ink: #f0fbf6;
	--ead-muted: #abc2b8;
	--ead-border: #285446;
}

.ead-hero { text-align: center; margin: 8px 0 18px; }
.ead-kicker {
	margin: 0 0 6px;
	color: var(--ead-green);
	font-weight: 800;
	font-size: 13px;
	letter-spacing: .02em;
}
.ead-title { margin: 0 0 8px; font-size: 32px; color: var(--ead-green-2); }
html.quran-dark-mode .ead-title,
body.quran-dark-mode .ead-title { color: #f0fbf6; }
html.quran-dark-mode .ead-kicker,
body.quran-dark-mode .ead-kicker { color: var(--ead-gold); }
.ead-lead { margin: 0 auto; max-width: 36em; color: var(--ead-muted); line-height: 1.8; }
.ead-date-line { margin: 10px 0 0; font-weight: 700; color: var(--ead-green); }
.ead-day-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 14px;
}

.ead-ayah-view {
	text-align: center;
	margin: 0 0 16px;
	padding: 18px 14px;
	background: var(--ead-surface);
	border: 1px solid var(--ead-border);
	border-radius: 16px;
}
.ead-ayah-text {
	margin: 0;
	font-family: "Amiri Quran", Amiri, serif;
	font-size: clamp(22px, 5vw, 30px);
	line-height: 2;
	color: var(--ead-ink);
}
.ead-ayah-meta {
	margin: 10px 0 0;
	font-weight: 700;
	color: var(--ead-green);
	font-size: 14px;
}

.ead-card-wrap {
	background: var(--ead-green-2);
	border-radius: 22px;
	padding: 12px;
	box-shadow: 0 18px 40px rgba(8, 50, 30, .18);
}
.ead-canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1080 / 1920;
	border-radius: 14px;
	background: #083d2e;
}

.ead-btn.ead-btn-primary,
button.ead-btn-primary {
	background: #0b6b4f !important;
	color: #fff !important;
}

.ead-panel {
	margin-top: 16px;
	background: var(--ead-surface);
	border: 1px solid var(--ead-border);
	border-radius: 16px;
	padding: 16px;
}
.ead-h2 { margin: 0 0 12px; font-size: 18px; color: var(--ead-green-2); }
.ead-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-weight: 600;
	cursor: pointer;
}
.ead-toggle input { width: 18px; height: 18px; }
.ead-row { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.ead-row select,
.ead-row input {
	min-height: 44px;
	border-radius: 10px;
	border: 1px solid var(--ead-border);
	padding: 8px 12px;
	font: inherit;
	background: var(--ead-bg);
	color: inherit;
}
.ead-audio-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ead-audio-row audio { width: 100%; max-width: 360px; }

.ead-btn,
.ead-share {
	min-height: 44px;
	border: 0;
	border-radius: 12px;
	padding: 10px 16px;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
	background: #e8f4ee;
	color: var(--ead-green-2);
}
.ead-btn-primary { background: var(--ead-green); color: #fff; }
.ead-btn:disabled,
.ead-share:disabled { opacity: .6; cursor: wait; }

.ead-share-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}
.ead-share[data-share="whatsapp"] { background: #25d366; color: #fff; }
.ead-share[data-share="telegram"] { background: #229ed9; color: #fff; }
.ead-share[data-share="facebook"] { background: #1877f2; color: #fff; }
.ead-share[data-share="twitter"] { background: #111; color: #fff; }
.ead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ead-hint { margin: 10px 0 0; color: var(--ead-muted); font-size: 13px; line-height: 1.7; }
.ead-status { margin: 10px 0 0; font-weight: 700; color: var(--ead-green); }

.ead-busy {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(6, 26, 19, .55);
	backdrop-filter: blur(2px);
}
.ead-busy[hidden] { display: none !important; }
.ead-busy-card {
	width: min(420px, 100%);
	background: #fff;
	color: #10251d;
	border-radius: 18px;
	padding: 22px 20px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.ead-spinner {
	width: 48px;
	height: 48px;
	margin: 0 auto 14px;
	border: 4px solid #d7e6de;
	border-top-color: #0b6b4f;
	border-radius: 50%;
	animation: ead-spin .8s linear infinite;
}
@keyframes ead-spin { to { transform: rotate(360deg); } }
.ead-busy-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.ead-busy-step { margin: 0 0 14px; color: #5f746b; font-size: 14px; line-height: 1.6; }
.ead-progress {
	height: 10px;
	border-radius: 999px;
	background: #e8f4ee;
	overflow: hidden;
}
.ead-progress > span {
	display: block;
	height: 100%;
	width: 8%;
	background: linear-gradient(90deg, #0b6b4f, #72d5b2);
	border-radius: 999px;
	transition: width .25s ease;
}
.ead-wa-ready-card { text-align: center; }
.ead-wa-preview {
	display: block;
	width: 100%;
	max-height: 280px;
	margin: 0 auto 14px;
	border-radius: 12px;
	background: #083d2e;
}
.ead-wa-send {
	width: 100%;
	background: #25d366 !important;
	color: #fff !important;
	margin-bottom: 8px;
	font-size: 16px;
}
.ead-wa-ready-card .ead-btn { width: 100%; margin-bottom: 8px; }

@media (min-width: 700px) {
	.ead-share-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
