@font-face {
	font-family: "QuranTaha";
	src: url("../fonts/QuranTaha.woff") format("woff");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "PinarDS2FDBold";
	src: url("../fonts/Pinar-DS2-FD-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.phoenix-khatm-root {
	--pk-primary: #1a7a1a;
	--pk-accent: #c79c35;
	--pk-font-arabic: "QuranTaha", serif;
	--pk-font-size-arabic: 28px;
	--pk-bg: #f4efe3;
	--pk-card: #fffdf7;
	--pk-card-strong: #ffffff;
	--pk-text: #1f241d;
	/* متن آیه و ترجمه — بیشترین کنtrast */
	--pk-focal: #121712;
	--pk-muted: #6b6f67;
	/* کنترل‌های فرعی: آمار، نقشه، هدر — کم‌رنگ‌تر از محتوای اصلی */
	--pk-chrome: #8a9088;
	--pk-chrome-bg: rgba(56, 77, 41, 0.045);
	--pk-chrome-border: rgba(56, 77, 41, 0.09);
	--pk-border: rgba(56, 77, 41, 0.12);
	--pk-shadow: 0 12px 40px rgba(27, 55, 28, 0.08);
	--pk-mobile-actions-bg: rgba(255, 253, 247, 0.94);
	--pk-mobile-actions-border: rgba(56, 77, 41, 0.12);
	--pk-mobile-actions-shadow: 0 16px 34px rgba(27, 55, 28, 0.18);
	max-width: 760px;
	min-width: 320px;
	margin: 1.75rem auto;
	padding: 0 0.75rem;
	box-sizing: border-box;
	color: var(--pk-text);
	background: transparent;
	font-family: inherit;
}

.phoenix-khatm-root.pk-theme-dark {
	--pk-bg: #121813;
	--pk-card: #182019;
	--pk-card-strong: #1f2921;
	--pk-text: #f2f5ef;
	--pk-focal: #f6faf4;
	--pk-muted: #b4beb2;
	--pk-chrome: #8a968c;
	--pk-chrome-bg: rgba(255, 255, 255, 0.04);
	--pk-chrome-border: rgba(202, 221, 203, 0.1);
	--pk-border: rgba(202, 221, 203, 0.12);
	--pk-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	--pk-mobile-actions-bg: rgba(24, 32, 25, 0.94);
	--pk-mobile-actions-border: rgba(202, 221, 203, 0.14);
	--pk-mobile-actions-shadow: 0 20px 38px rgba(0, 0, 0, 0.34);
}

.phoenix-khatm-root * {
	box-sizing: border-box;
}

.pk-card {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--pk-border);
	border-radius: 30px;
	background: linear-gradient(180deg, var(--pk-card-strong), var(--pk-card));
	box-shadow: var(--pk-shadow);
}

.pk-card::before,
.pk-card::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	pointer-events: none;
	opacity: 0.35;
}

.pk-card::before {
	width: 16rem;
	height: 16rem;
	top: -9rem;
	right: -5rem;
	background: radial-gradient(circle, rgba(199, 156, 53, 0.12), transparent 68%);
}

.pk-card::after {
	width: 14rem;
	height: 14rem;
	left: -6rem;
	bottom: -8rem;
	background: radial-gradient(circle, rgba(26, 122, 26, 0.1), transparent 68%);
}

.pk-shell {
	isolation: isolate;
}

.pk-mode-dialog {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.pk-mode-dialog-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 18, 0.58);
	backdrop-filter: blur(6px);
}

.pk-mode-dialog-card {
	position: relative;
	z-index: 1;
	width: min(100%, 34rem);
	padding: 1.25rem 1.15rem 1.15rem;
	border: 1px solid var(--pk-border);
	border-radius: 26px;
	background: linear-gradient(180deg, var(--pk-card-strong), var(--pk-card));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	text-align: center;
}

.pk-mode-dialog-close {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border: 1px solid var(--pk-chrome-border);
	border-radius: 999px;
	background: var(--pk-chrome-bg);
	color: var(--pk-chrome);
	cursor: pointer;
}

.pk-mode-dialog-close-icon {
	display: block;
	font-size: 1.5rem;
	line-height: 1;
	font-weight: 400;
	transform: translateY(-1px);
}

.pk-mode-dialog-kicker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.32rem 0.7rem;
	border-radius: 999px;
	background: rgba(26, 122, 26, 0.08);
	color: var(--pk-primary);
	font-size: 0.76rem;
	font-weight: 800;
}

.pk-mode-dialog-title {
	margin: 0.85rem 0 0.4rem;
	font-size: 1.18rem;
	font-weight: 800;
	line-height: 1.85;
	color: var(--pk-text);
}

.pk-mode-dialog-copy,
.pk-mode-dialog-foot {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.95;
	color: var(--pk-muted);
}

.pk-mode-dialog-foot {
	display: flex;
	align-items: center;
	gap: 0.42rem;
}

.pk-mode-dialog-foot-right {
	justify-content: flex-end;
	text-align: right;
}

.pk-mode-dialog-foot-center {
	justify-content: center;
	text-align: center;
}

.pk-mode-dialog-foot-alert {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 0.78rem;
	line-height: 1;
	color: #d39a22;
	transform: translateY(-1px);
}

.pk-mode-dialog-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.95rem;
	margin: 1.15rem 0 0.9rem;
	padding: 0;
}

.pk-mode-choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 92px;
	padding: 1.1rem 1rem;
	border: 0;
	border-radius: 24px;
	box-shadow: 0 16px 34px rgba(27, 55, 28, 0.14);
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}

.pk-mode-choice::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.92;
}

.pk-mode-choice-single {
	color: #fff;
	text-shadow: 0 1px 0 rgba(10, 45, 10, 0.22);
	box-shadow:
		0 5px 0 rgba(11, 59, 11, 0.42),
		0 22px 40px rgba(26, 122, 26, 0.24);
}

.pk-mode-choice-single::before {
	background: linear-gradient(135deg, #1a7a1a, #31a231);
}

.pk-mode-choice-full {
	color: #5a430f;
	box-shadow:
		0 5px 0 rgba(121, 89, 26, 0.34),
		0 22px 40px rgba(199, 156, 53, 0.24);
}

.pk-mode-choice-full::before {
	background: linear-gradient(135deg, #f8edd0, #e4c26c);
}

.pk-mode-choice:hover,
.pk-mode-choice:focus-visible {
	transform: translateY(-2px) scale(1.01);
	filter: saturate(1.03);
	outline: none;
}

.pk-mode-choice:active {
	transform: translateY(0);
	filter: saturate(1);
}

.pk-mode-choice-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.46rem;
	width: 100%;
	font-size: 1.08rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-align: center;
	color: inherit;
}

.pk-mode-choice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.92em;
	line-height: 1;
}

.pk-mode-choice-copy {
	font-size: 0.82rem;
	line-height: 1.85;
	color: var(--pk-muted);
}

.pk-hero {
	position: relative;
	padding: 1.45rem 1.45rem 1rem;
}

.pk-hero-grid {
	display: grid;
	gap: 1rem;
	align-items: start;
}

.pk-hero-copy {
	position: relative;
	z-index: 1;
}

.pk-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.32rem 0.65rem;
	border-radius: 999px;
	background: var(--pk-chrome-bg);
	border: 1px solid var(--pk-chrome-border);
	color: var(--pk-chrome);
	font-size: 0.76rem;
	font-weight: 600;
}

.pk-title {
	margin: 0.9rem 0 0.45rem;
	font-size: 1.45rem;
	line-height: 1.45;
	font-weight: 700;
	text-wrap: balance;
	color: var(--pk-chrome);
}

.pk-hero-subtitle {
	margin: 0;
	max-width: 32rem;
	font-size: 0.94rem;
	line-height: 1.9;
	color: var(--pk-muted);
}

.pk-card-inner {
	position: relative;
	z-index: 1;
	padding: 1rem 1.45rem;
}

.pk-stats {
	position: relative;
	z-index: 1;
	direction: rtl;
}

.pk-stats-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem;
}

.pk-stat-box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.4rem;
	min-height: 0;
	padding: 0.65rem 0.85rem;
	border-radius: 18px;
	border: 1px solid var(--pk-chrome-border);
	background: var(--pk-chrome-bg);
	box-shadow: none;
}

.pk-stat-box::before {
	display: none;
}

.pk-stat-line {
	display: flex;
	align-items: center;
	min-width: 0;
}

.pk-stat-line--value {
	align-items: baseline;
	gap: 0.15rem;
	flex-wrap: wrap;
}

.pk-stat-line--sub {
	gap: 0.4rem;
}

.pk-stat-line--sub .pk-stat-label {
	display: inline;
}

.pk-stat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 10px;
	background: rgba(56, 77, 41, 0.07);
	color: var(--pk-chrome);
	font-size: 0.78rem;
}

.pk-stat-label {
	display: block;
	font-size: 0.76rem;
	line-height: 1.4;
	font-weight: 500;
	color: var(--pk-chrome);
}

.pk-stat-unit {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pk-muted);
}

.pk-stat-value {
	display: inline;
	font-size: 1.22rem;
	line-height: 1.2;
	font-weight: 800;
	color: var(--pk-text);
}

.pk-progress-wrap {
	padding-top: 0;
	padding-bottom: 1.1rem;
}

.pk-progress-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.pk-progress-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--pk-chrome);
}

.pk-progress-bar {
	position: relative;
	height: 8px;
	overflow: hidden;
	border: 1px solid var(--pk-chrome-border);
	border-radius: 999px;
	background: var(--pk-chrome-bg);
}

.pk-progress-fill {
	position: relative;
	height: 100%;
	border-radius: inherit;
	background: rgba(26, 122, 26, 0.35);
	box-shadow: none;
	transition: width 0.45s ease;
}

.pk-progress-fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 0, rgba(255, 255, 255, 0.2) 48%, transparent 75%);
	animation: none;
	opacity: 0.5;
}

.pk-main {
	position: relative;
	min-height: 270px;
	padding-top: 0;
}

.pk-stage-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	max-width: 100%;
	margin-bottom: 1rem;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	border: 1px solid rgba(26, 122, 26, 0.15);
	background: rgba(26, 122, 26, 0.1);
	color: var(--pk-primary);
	font-size: 0.84rem;
	font-weight: 800;
	line-height: 1.8;
	text-align: center;
}

.pk-stage-tag-success {
	background: rgba(199, 156, 53, 0.12);
	border-color: rgba(199, 156, 53, 0.2);
	color: #8a6720;
}

.pk-stage-tag-soft {
	background: rgba(26, 122, 26, 0.08);
	border-color: rgba(26, 122, 26, 0.14);
}

.pk-reading-panel {
	position: relative;
	padding: 1rem;
	border-radius: 26px;
	border: 1px solid var(--pk-chrome-border);
	background: var(--pk-chrome-bg);
	box-shadow: none;
}

.pk-reading-panel::after {
	display: none;
}

.pk-helper-text {
	margin: 0 0 1rem;
	color: var(--pk-chrome);
	font-size: 0.82rem;
}

.pk-helper-text-full {
	max-width: 36rem;
	line-height: 1.95;
}

.pk-bismillah-full {
	width: min(100%, 380px);
	height: 70px;
	margin: 0 auto 0.95rem;
	background: center / contain no-repeat url("../images/bismillah.png");
}

.pk-helper-text-action {
	margin: 0;
	max-width: 32rem;
	font-size: 0.78rem;
	line-height: 1.85;
	text-align: center;
	color: var(--pk-chrome);
}

.pk-reading-panel-full {
	padding-top: 1.1rem;
}

.pk-full-surah-list {
	display: block;
}

.pk-surah-arabic-full {
	line-height: 2.35;
	text-align: right;
}

.pk-surah-arabic-full .pk-arabic-text {
	display: block;
	text-align: justify;
	text-align-last: right;
	text-justify: inter-word;
	white-space: normal;
}

.pk-surah-translation-flow {
	margin-top: 0.85rem;
	line-height: 2.05;
}

.pk-surah-translation-wrap {
	margin-top: 0.85rem;
	position: relative;
}

.pk-surah-translation-wrap .pk-translation {
	margin-top: 0;
	padding-bottom: 3.9rem;
}

.pk-surah-translation-wrap.is-collapsed .pk-surah-translation-flow {
	overflow: hidden;
	max-height: 7.4em;
}

.pk-surah-translation-wrap.is-collapsed::after {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 1px;
	height: 4.8rem;
	border-radius: 0 0 18px 18px;
	background: linear-gradient(180deg, rgba(255, 253, 246, 0) 0%, rgba(255, 253, 246, 0.84) 52%, #fffdf6 100%);
	pointer-events: none;
}

.pk-surah-translation-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.38rem;
	position: absolute;
	left: 50%;
	bottom: 0.8rem;
	transform: translateX(-50%);
	z-index: 1;
	min-width: 7rem;
	padding: 0.55rem 1rem;
	border: 1px solid rgba(26, 122, 26, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 20px rgba(27, 55, 28, 0.1);
	color: var(--pk-primary);
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
}

.pk-surah-translation-toggle:hover,
.pk-surah-translation-toggle:focus-visible {
	background: #fff;
	box-shadow: 0 14px 24px rgba(27, 55, 28, 0.14);
	outline: none;
}

.pk-surah-translation-toggle-icon {
	display: inline-block;
	font-size: 0.95rem;
	line-height: 1;
	transition: transform 0.18s ease;
}

.pk-surah-translation-toggle[aria-expanded="true"] .pk-surah-translation-toggle-icon {
	transform: rotate(180deg);
}

.pk-arabic {
	position: relative;
	z-index: 1;
	display: block;
	margin: 0;
	padding: 1.2rem 1.15rem 1.05rem;
	border: 1px solid rgba(26, 122, 26, 0.22);
	border-radius: 22px;
	background: #fffef9;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 8px 28px rgba(26, 122, 26, 0.09);
	font-family: var(--pk-font-arabic);
	font-size: var(--pk-font-size-arabic);
	line-height: 2.15;
	text-align: right;
	direction: rtl;
	color: var(--pk-focal);
}

/* یک جریان خطی تا شمارهٔ آیه دقیقاً انتهای متن (آخرین خط) بنشیند، نه جدا در گوشهٔ باکس */
.pk-arabic-text {
	display: inline;
}

.pk-ayah-endmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 1.12em;
	height: 1.42em;
	vertical-align: -0.38em;
	margin-inline-start: 0.16em;
	line-height: 1;
	unicode-bidi: embed;
	background: center / contain no-repeat url("../images/dsfghfkjfkfhj.svg");
}

.pk-ayah-endmark-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	inset: 0.17em 0 0 0;
	width: 100%;
	height: 100%;
	font-family: "PinarDS2FDBold", "Segoe UI", Tahoma, sans-serif;
	font-size: 0.54em;
	line-height: 1;
	font-weight: 800;
	color: #1a7a1a;
	font-variant-numeric: tabular-nums;
	padding: 0;
	border: none;
	border-radius: 0;
	background: none;
	box-shadow: none;
	letter-spacing: 0;
	white-space: nowrap;
	font-feature-settings: "liga" 0;
	text-shadow:
		0 1px 0 rgba(9, 62, 22, 0.26),
		0 0 8px rgba(9, 62, 22, 0.08);
	transform: translateY(-0.02em);
}

.pk-translation {
	position: relative;
	z-index: 1;
	margin-top: 0.85rem;
	padding: 1rem 1.05rem;
	border: 1px solid rgba(26, 122, 26, 0.16);
	border-radius: 18px;
	background: #fffdf6;
	font-size: 0.98rem;
	line-height: 1.95;
	text-align: justify;
	direction: rtl;
	color: var(--pk-focal);
}

.pk-reading-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.pk-reading-head .pk-stage-tag {
	margin-bottom: 0;
}

.pk-audio-inline {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-inline-start: auto;
	position: relative;
	isolation: isolate;
}

.pk-audio-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0.55rem 0.95rem;
	border: 1px solid rgba(24, 96, 78, 0.16);
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(250, 252, 250, 0.96) 0%, rgba(241, 247, 244, 0.92) 100%);
	box-shadow:
		0 10px 18px rgba(16, 44, 36, 0.08),
		0 1px 0 rgba(255, 255, 255, 0.72) inset;
	color: #144e3f;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.5;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.pk-audio-badge:hover:not(:disabled),
.pk-audio-badge:focus-visible {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 247, 0.96) 100%);
	box-shadow:
		0 14px 26px rgba(16, 44, 36, 0.12),
		0 1px 0 rgba(255, 255, 255, 0.84) inset;
	outline: none;
	transform: translateY(-1px);
}

.pk-audio-badge:disabled {
	cursor: wait;
	opacity: 0.9;
}

.pk-audio-badge[data-state="playing"] {
	background: linear-gradient(180deg, rgba(226, 244, 238, 0.98) 0%, rgba(211, 238, 230, 0.94) 100%);
	border-color: rgba(32, 120, 97, 0.22);
	box-shadow:
		0 16px 30px rgba(16, 56, 45, 0.14),
		0 0 0 1px rgba(61, 153, 129, 0.08);
}

.pk-audio-visualizer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pk-audio-inline[data-audio-state="playing"] .pk-audio-visualizer {
	opacity: 1;
}

.pk-audio-inline--single .pk-audio-visualizer {
	border-radius: 999px;
}

.pk-audio-inline--dual {
	gap: 0.28rem;
}

.pk-audio-badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 1rem;
	height: 1rem;
	font-size: 0.9rem;
	line-height: 1;
	z-index: 1;
}

.pk-audio-badge-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	white-space: nowrap;
	font-size: 0.86rem;
	font-weight: 900;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.pk-audio-player-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.pk-trans-label {
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--pk-chrome);
}

.pk-live-region {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.pk-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0;
	padding-bottom: 1.45rem;
}

.pk-actions-row {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0.75rem;
	width: min(100%, 460px);
}

.pk-actions-row--dual .pk-btn-confirm {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
}

.pk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: min(100%, 320px);
	min-height: 58px;
	padding: 0.95rem 1.6rem;
	border: 0;
	border-radius: 18px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.pk-btn:disabled {
	opacity: 0.72;
	cursor: not-allowed;
}

.pk-btn-primary {
	background: linear-gradient(135deg, var(--pk-primary), var(--pk-accent));
	color: #fff;
	box-shadow:
		0 4px 0 rgba(15, 70, 15, 0.35),
		0 18px 40px rgba(26, 122, 26, 0.35);
}

.pk-btn-primary:hover:not(:disabled) {
	transform: translateY(-1px) scale(1.01);
	box-shadow:
		0 5px 0 rgba(15, 70, 15, 0.38),
		0 22px 44px rgba(26, 122, 26, 0.38);
}

.pk-btn-primary:active:not(:disabled) {
	transform: translateY(0);
}

/* دکمه «آیه را خواندم» — یکدست سبز (بدون طلایی) */
.pk-btn-primary.pk-btn-confirm:not(.pk-btn-next-mode) {
	background: var(--pk-primary);
	color: #fff;
	box-shadow:
		0 4px 0 rgba(12, 58, 12, 0.45),
		0 18px 42px rgba(26, 122, 26, 0.4);
}

.pk-btn-primary.pk-btn-confirm:not(.pk-btn-next-mode):hover:not(:disabled) {
	background: #166b16;
	box-shadow:
		0 5px 0 rgba(12, 58, 12, 0.48),
		0 22px 46px rgba(22, 107, 22, 0.42);
}

.pk-btn-primary.pk-btn-confirm:not(.pk-btn-next-mode):active:not(:disabled) {
	background: #145a14;
}

.pk-btn-next-mode {
	background: linear-gradient(135deg, #8a6220, #b8892e);
	color: #fff;
	box-shadow: 0 10px 28px rgba(120, 90, 20, 0.22);
}

.pk-btn-secondary {
	background: rgba(56, 77, 41, 0.08);
	border: 1px solid rgba(56, 77, 41, 0.14);
	color: var(--pk-text);
	box-shadow: none;
}

.pk-btn-inline-next {
	flex: 0 0 auto;
	width: auto;
	min-width: 126px;
	padding-inline: 1.15rem;
	border-color: rgba(37, 109, 70, 0.22);
	background: rgba(255, 255, 255, 0.72);
	color: #256d46;
}

.pk-btn-inline-next:hover:not(:disabled) {
	transform: translateY(-1px);
	border-color: rgba(37, 109, 70, 0.32);
	background: rgba(250, 255, 252, 0.92);
	box-shadow: 0 10px 24px rgba(37, 109, 70, 0.08);
}

.pk-btn-inline-next:active:not(:disabled) {
	transform: translateY(0);
}

.pk-helper-text-action.pk-helper-text-error {
	color: #8a3a2c;
	font-weight: 700;
}

.pk-btn-text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.pk-btn-icon,
.pk-btn-next-icon,
.pk-btn-loading-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	font-size: 1rem;
	line-height: 1;
}

.pk-btn-next-icon {
	animation: pk-next-arrow 0.95s ease-in-out infinite;
}

.pk-btn-next-icon i,
.pk-btn-loading-icon i,
.pk-btn-icon i {
	display: block;
	line-height: 1;
}

.pk-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pk-map-wrap {
	margin: 0 1.45rem 1.45rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--pk-chrome-border);
	border-radius: 22px;
	background: var(--pk-chrome-bg);
}

.pk-map-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.7rem;
	margin-bottom: 0.65rem;
}

.pk-map-title {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--pk-chrome);
}

.pk-map-caption {
	font-size: 0.74rem;
	color: var(--pk-chrome);
	opacity: 0.92;
}

.pk-map {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 0.48rem;
}

.pk-map-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid var(--pk-chrome-border);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: none;
	color: var(--pk-muted);
	font-size: 0.74rem;
	font-weight: 600;
	cursor: default;
}

.pk-map-cell:disabled {
	opacity: 1;
	color: inherit;
}

.pk-map-confirmed {
	border-color: rgba(26, 122, 26, 0.18);
	background: rgba(26, 122, 26, 0.1);
	color: #2d6a32;
}

.pk-map-reserved {
	border-color: rgba(160, 130, 60, 0.2);
	background: rgba(199, 156, 53, 0.12);
	color: #7a6630;
	animation: pk-map-reserved-blink 1.55s ease-in-out infinite;
}

.pk-map-empty {
	opacity: 0.65;
}

.pk-map-current {
	border-color: rgba(199, 156, 53, 0.5);
	background: rgba(199, 156, 53, 0.18);
	animation: pk-map-current-blink 1.1s ease-in-out infinite;
	box-shadow: 0 0 0 2px rgba(199, 156, 53, 0.28);
}

.pk-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.65rem;
	font-size: 0.72rem;
	color: var(--pk-chrome);
}

.pk-map-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.3rem 0.55rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
}

.pk-legend-icon {
	width: 0.9rem;
	font-size: 0.8rem;
	text-align: center;
	opacity: 0.85;
}

.pk-legend-icon-confirmed {
	color: #4a8f52;
}

.pk-legend-icon-reserved {
	color: #9a8a50;
}

.pk-legend-icon-empty {
	color: #b8b8b8;
}

.pk-skeleton {
	position: relative;
	min-height: 430px;
	overflow: hidden;
	border: 1px solid var(--pk-border);
	border-radius: 30px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(245, 239, 227, 0.96));
}

.pk-skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 0, rgba(255, 255, 255, 0.7) 42%, transparent 76%);
}

.pk-pulse::after {
	animation: pk-skeleton-sheen 1.45s linear infinite;
}

.pk-state-card,
.pk-rate,
.pk-error,
.pk-celebrate,
.pk-success {
	text-align: center;
}

.pk-state-card {
	padding-top: 1.2rem;
}

.pk-check,
.pk-state-orb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 0.95rem;
	border-radius: 24px;
	font-size: 1.85rem;
	line-height: 1;
	color: #fff;
	box-shadow: 0 18px 34px rgba(26, 122, 26, 0.18);
}

.pk-check {
	background: linear-gradient(135deg, var(--pk-primary), var(--pk-accent));
	animation: pk-pop 0.42s ease;
}

.pk-state-orb-error {
	background: linear-gradient(135deg, #aa2f2f, #d57b39);
	box-shadow: 0 18px 34px rgba(170, 47, 47, 0.2);
}

.pk-state-orb-wait {
	background: linear-gradient(135deg, #a06f13, var(--pk-accent));
	box-shadow: 0 18px 34px rgba(151, 106, 18, 0.2);
}

.pk-thanks,
.pk-celebrate-title,
.pk-message-title {
	margin: 0 0 0.65rem;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.8;
	text-wrap: balance;
}

.pk-success-note,
.pk-rate-note,
.pk-doa,
.pk-countdown-hint,
.pk-celebrate-sub,
.pk-total-after,
.pk-error-copy {
	margin: 0 0 0.9rem;
	font-size: 0.94rem;
	line-height: 1.9;
	color: var(--pk-muted);
}

.pk-countdown-wrap {
	position: relative;
	width: 110px;
	height: 110px;
	margin: 0.25rem auto 0.9rem;
}

.pk-countdown-svg {
	width: 110px;
	height: 110px;
	transform: rotate(-90deg);
}

.pk-cd-bg {
	fill: none;
	stroke: rgba(56, 77, 41, 0.14);
	stroke-width: 8;
}

.pk-cd-fg {
	fill: none;
	stroke: var(--pk-primary);
	stroke-width: 8;
	stroke-linecap: round;
	transition: stroke-dashoffset 1s linear;
}

.pk-countdown-num {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.55rem;
	font-weight: 800;
	color: var(--pk-text);
}

.pk-wait-num {
	margin: 0 0 0.65rem;
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--pk-text);
}

.pk-celebrate {
	position: relative;
	overflow: hidden;
	padding-top: 1.2rem;
}

.pk-confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 16% 24%, rgba(199, 156, 53, 0.2), transparent 18%),
		radial-gradient(circle at 82% 16%, rgba(26, 122, 26, 0.18), transparent 20%),
		radial-gradient(circle at 74% 72%, rgba(199, 156, 53, 0.14), transparent 18%);
	animation: pk-float 3.6s ease-in-out infinite;
}

.pk-total-after strong {
	color: var(--pk-text);
	font-size: 1.1rem;
}

.pk-next-wrap {
	margin-top: 1rem;
}

.pk-rate .pk-btn,
.pk-error .pk-btn {
	margin-top: 0.4rem;
}

.phoenix-khatm-root.pk-theme-dark .pk-stat-box,
.phoenix-khatm-root.pk-theme-dark .pk-reading-panel,
.phoenix-khatm-root.pk-theme-dark .pk-map-wrap {
	background: var(--pk-chrome-bg);
	border-color: var(--pk-chrome-border);
}

.phoenix-khatm-root.pk-theme-dark .pk-progress-bar {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--pk-chrome-border);
}

.phoenix-khatm-root.pk-theme-dark .pk-progress-fill {
	background: rgba(74, 180, 90, 0.35);
}

.phoenix-khatm-root.pk-theme-dark .pk-map-legend span,
.phoenix-khatm-root.pk-theme-dark .pk-map-cell {
	background: rgba(255, 255, 255, 0.03);
}

.phoenix-khatm-root.pk-theme-dark .pk-mode-choice {
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.phoenix-khatm-root.pk-theme-dark .pk-mode-choice-single {
	box-shadow:
		0 5px 0 rgba(12, 54, 12, 0.48),
		0 22px 40px rgba(26, 122, 26, 0.28);
}

.phoenix-khatm-root.pk-theme-dark .pk-mode-choice-full {
	color: #fff4cf;
	box-shadow:
		0 5px 0 rgba(95, 72, 21, 0.4),
		0 22px 40px rgba(199, 156, 53, 0.22);
}

.phoenix-khatm-root.pk-theme-dark .pk-mode-choice-full::before {
	background: linear-gradient(135deg, #6e5417, #a9832f);
}

.phoenix-khatm-root.pk-theme-dark .pk-translation {
	background: rgba(22, 32, 24, 0.95);
	border-color: rgba(120, 200, 130, 0.22);
	color: var(--pk-focal);
}

.phoenix-khatm-root.pk-theme-dark .pk-audio-badge {
	background: linear-gradient(180deg, rgba(18, 33, 28, 0.96) 0%, rgba(13, 25, 21, 0.94) 100%);
	border-color: rgba(121, 183, 161, 0.18);
	box-shadow:
		0 12px 24px rgba(0, 0, 0, 0.24),
		0 1px 0 rgba(186, 235, 219, 0.06) inset;
	color: #b9f0dd;
}

.phoenix-khatm-root.pk-theme-dark .pk-audio-badge:hover:not(:disabled),
.phoenix-khatm-root.pk-theme-dark .pk-audio-badge:focus-visible {
	background: linear-gradient(180deg, rgba(22, 40, 34, 0.98) 0%, rgba(16, 31, 26, 0.96) 100%);
}

.phoenix-khatm-root.pk-theme-dark .pk-audio-badge[data-state="playing"] {
	background: linear-gradient(180deg, rgba(21, 56, 45, 0.98) 0%, rgba(17, 47, 38, 0.96) 100%);
	border-color: rgba(104, 205, 172, 0.28);
	box-shadow:
		0 16px 30px rgba(0, 0, 0, 0.28),
		0 0 0 1px rgba(104, 205, 172, 0.12);
}

.phoenix-khatm-root.pk-theme-dark .pk-btn-inline-next {
	background: rgba(20, 31, 23, 0.88);
	border-color: rgba(118, 201, 158, 0.2);
	color: #bdf0d0;
}

.phoenix-khatm-root.pk-theme-dark .pk-btn-inline-next:hover:not(:disabled) {
	background: rgba(24, 37, 28, 0.96);
	border-color: rgba(118, 201, 158, 0.32);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.phoenix-khatm-root.pk-theme-dark .pk-helper-text-action.pk-helper-text-error {
	color: #ffb8a7;
}

.phoenix-khatm-root.pk-theme-dark .pk-surah-translation-wrap.is-collapsed::after {
	background: linear-gradient(180deg, rgba(22, 32, 24, 0) 0%, rgba(22, 32, 24, 0.82) 52%, rgba(22, 32, 24, 0.98) 100%);
}

.phoenix-khatm-root.pk-theme-dark .pk-surah-translation-toggle {
	background: rgba(20, 30, 22, 0.92);
	border-color: rgba(120, 200, 130, 0.18);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
	color: #a7e3af;
}

.phoenix-khatm-root.pk-theme-dark .pk-surah-translation-toggle:hover,
.phoenix-khatm-root.pk-theme-dark .pk-surah-translation-toggle:focus-visible {
	background: rgba(24, 37, 27, 0.98);
}

.phoenix-khatm-root.pk-theme-dark .pk-arabic {
	background: #141c15;
	border-color: rgba(120, 200, 130, 0.28);
	color: var(--pk-focal);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.04) inset,
		0 8px 28px rgba(0, 0, 0, 0.35);
}

.phoenix-khatm-root.pk-theme-dark .pk-ayah-endmark-inner {
	color: #8fd498;
}

.pk-reduced-motion .pk-card::before,
.pk-reduced-motion .pk-card::after,
.pk-reduced-motion .pk-progress-fill::after,
.pk-reduced-motion .pk-btn-next-icon,
.pk-reduced-motion .pk-map-reserved,
.pk-reduced-motion .pk-map-current,
.pk-reduced-motion .pk-confetti,
.pk-reduced-motion .pk-check,
.pk-reduced-motion .pk-pulse::after {
	animation: none !important;
	transition: none !important;
}

@keyframes pk-progress-sheen {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(160%);
	}
}

@keyframes pk-skeleton-sheen {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(170%);
	}
}

@keyframes pk-next-arrow {
	0%,
	100% {
		transform: translateX(0);
		opacity: 0.9;
	}
	50% {
		transform: translateX(-6px);
		opacity: 1;
	}
}

@keyframes pk-map-reserved-blink {
	0%,
	100% {
		opacity: 0.92;
		box-shadow: 0 0 0 0 rgba(199, 156, 53, 0.16);
	}
	50% {
		opacity: 1;
		box-shadow: 0 0 0 3px rgba(199, 156, 53, 0.24);
	}
}

@keyframes pk-map-current-blink {
	0%,
	100% {
		transform: scale(1);
		box-shadow:
			0 0 0 2px rgba(199, 156, 53, 0.26),
			0 0 0 6px rgba(199, 156, 53, 0.08);
	}
	50% {
		transform: scale(1.06);
		box-shadow:
			0 0 0 2px rgba(199, 156, 53, 0.34),
			0 0 0 12px rgba(199, 156, 53, 0.16);
	}
}

@keyframes pk-pop {
	0% {
		transform: scale(0.6);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes pk-float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pk-card::before,
	.pk-card::after,
	.pk-progress-fill::after,
	.pk-btn-next-icon,
	.pk-map-reserved,
	.pk-map-current,
	.pk-confetti,
	.pk-check,
	.pk-pulse::after,
	.pk-audio-visualizer {
		animation: none !important;
		transition: none !important;
	}
}

@media (min-width: 700px) {
	.pk-hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	}

	.pk-hero-grid > :only-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.phoenix-khatm-root {
		padding: 0 0.55rem;
	}

	.pk-card {
		padding-bottom: calc(6.9rem + env(safe-area-inset-bottom, 0px));
	}

	.pk-kicker {
		display: none;
	}

	.pk-title {
		margin-top: 0;
	}

	.pk-mode-dialog {
		padding: 0.9rem;
	}

	.pk-mode-dialog-card {
		padding: 1.05rem 0.9rem 0.95rem;
		border-radius: 24px;
	}

	.pk-mode-dialog-actions {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}

	.pk-mode-choice {
		min-height: 84px;
		padding: 0.95rem 0.85rem;
		border-radius: 18px;
	}

	.pk-hero,
	.pk-card-inner,
	.pk-map-wrap {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.pk-map-wrap {
		margin: 0 0.9rem 1rem;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.pk-reading-head {
		gap: 0.55rem;
	}

	.pk-surah-arabic-full {
		padding: 1rem 0.9rem 0.95rem;
		line-height: 2.25;
	}

	.pk-map-header {
		margin-bottom: 0.5rem;
		gap: 0.45rem;
	}

	.pk-map-title {
		font-size: 0.82rem;
	}

	.pk-map-caption {
		font-size: 0.68rem;
	}

	.pk-map {
		grid-template-columns: repeat(10, minmax(0, 1fr));
		gap: 0.24rem;
	}

	.pk-map-cell {
		border-radius: 9px;
		font-size: 0.62rem;
		aspect-ratio: 1 / 0.86;
	}

	.pk-map-legend {
		margin-top: 0.55rem;
		gap: 0.38rem;
		font-size: 0.68rem;
	}

	.pk-map-legend span {
		padding: 0.26rem 0.45rem;
	}

	.pk-actions {
		position: fixed;
		left: 0.75rem;
		right: 0.75rem;
		bottom: calc(env(safe-area-inset-bottom, 0px) + 0.85rem);
		z-index: 40;
		align-items: stretch;
		gap: 0.6rem;
		padding: 0.75rem 0.85rem;
		border: 1px solid var(--pk-mobile-actions-border);
		border-radius: 22px;
		background: var(--pk-mobile-actions-bg);
		box-shadow: var(--pk-mobile-actions-shadow);
		backdrop-filter: blur(14px);
	}

	.pk-helper-text-action {
		max-width: none;
		font-size: 0.74rem;
	}

	.pk-btn {
		width: 100%;
	}

	.pk-actions-row {
		width: 100%;
	}

	.pk-actions-row--dual .pk-btn-confirm {
		flex: 1 1 auto;
	}

	.pk-actions-row--dual {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0.55rem;
		align-items: stretch;
	}

	.pk-btn-inline-next {
		min-width: 0;
		width: 100%;
		padding-inline: 0.75rem;
	}
}

@media (max-width: 480px) {
	.pk-card {
		border-radius: 24px;
	}

	.pk-mode-dialog {
		padding: 0.7rem;
	}

	.pk-mode-dialog-title {
		font-size: 1.05rem;
	}

	.pk-mode-dialog-copy,
	.pk-mode-dialog-foot {
		font-size: 0.84rem;
	}

	.pk-title {
		font-size: 1.35rem;
	}

	.pk-hero-subtitle {
		font-size: 0.88rem;
	}

	.pk-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.pk-stat-box {
		padding: 0.55rem 0.65rem;
		border-radius: 16px;
	}

	.pk-stat-icon {
		width: 1.4rem;
		height: 1.4rem;
		font-size: 0.72rem;
		border-radius: 9px;
	}

	.pk-stat-label {
		font-size: 0.72rem;
		line-height: 1.35;
	}

	.pk-stat-unit {
		font-size: 0.98rem;
	}

	.pk-stat-value {
		font-size: 1.1rem;
	}

	.pk-reading-panel {
		padding: 0.75rem;
		border-radius: 22px;
	}

	.pk-reading-head {
		align-items: stretch;
	}

	.pk-reading-head .pk-stage-tag {
		display: none;
	}

	.pk-audio-inline {
		display: grid;
		width: 100%;
		margin-inline-start: 0;
	}

	.pk-audio-inline--single {
		grid-template-columns: minmax(0, 1fr);
	}

	.pk-audio-inline--dual {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

.pk-audio-badge {
	width: 100%;
	min-width: 0;
}

	.pk-audio-badge {
		min-height: 2.35rem;
		padding: 0.52rem 0.82rem;
		font-size: 0.78rem;
	}

.pk-reading-panel-full {
	padding-top: 0.9rem;
}

	.pk-arabic {
		padding: 1rem 0.85rem 0.9rem;
		line-height: 2;
	}

	.pk-actions {
		padding-bottom: 1.1rem;
	}

	.pk-btn {
		width: 100%;
		min-height: 54px;
		font-size: 0.97rem;
	}

	.pk-actions-row--dual {
		grid-template-columns: 1fr;
	}

	.pk-map-wrap {
		margin: 0 0.75rem 0.95rem;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
	}

	.pk-map {
		grid-template-columns: repeat(10, minmax(0, 1fr));
		gap: 0.18rem;
	}

	.pk-map-cell {
		border-radius: 8px;
		font-size: 0.58rem;
	}

	.pk-surah-arabic-full {
		padding: 0.95rem 0.82rem 0.9rem;
		line-height: 2.18;
	}

	.pk-map-legend {
		gap: 0.34rem;
		font-size: 0.68rem;
	}

	.pk-map-legend span {
		padding: 0.26rem 0.42rem;
	}

	.pk-check,
	.pk-state-orb {
		width: 68px;
		height: 68px;
		font-size: 1.55rem;
		border-radius: 21px;
	}

	.pk-thanks,
	.pk-celebrate-title,
	.pk-message-title {
		font-size: 1rem;
	}
}
