		.button-container {
			display: flex;
			justify-content: center;
			gap: 15px;
			margin-top: 20px;
		}

/* SEO Content Styles Refined - Same as Book Selection Page */
.book-features-seo {
    margin: 4rem auto 2rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.05);
}

.features-title {
    color: #0f172a;
    font-size: clamp(1.3rem, 4vw, 1.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.01em;
}

.features-intro {
    max-width: 850px;
    margin: 0 auto 2.5rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

.feature-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 14px;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: #3b82f6;
    transform: rotate(8deg) scale(1.1);
}

.feature-text {
    text-align: left;
}

.feature-text strong {
    display: block;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-text p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.seo-answer-section,
.seo-faq-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.seo-answer-section h3,
.seo-faq-section h3 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.35rem;
    text-align: center;
}

.seo-answer-section p {
    max-width: 900px;
    margin: 0 auto;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.seo-long-form {
    max-width: 960px;
    margin: 3rem auto 0;
    text-align: left;
}

.seo-content-section {
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.seo-content-section h3 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.3rem;
    line-height: 1.4;
}

.seo-content-section p {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
}

.seo-content-section p:last-child {
    margin-bottom: 0;
}

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

.faq-item {
    padding: 1.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.faq-item h4 {
    margin: 0 0 0.65rem;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.4;
}

.faq-item p {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .book-features-seo {
        padding: 2rem 1.25rem;
        margin-top: 3rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .feature-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .feature-text {
        text-align: center;
    }
}
		body {
			font-family: Arial, sans-serif;
			background-color: #f4f4f4;
			text-align: center;
		}
		.chapter-container {
			max-width: 80%;	
			margin: auto;
            margin-top: 10%;
			padding: 20px;
			background: white;
			border-radius: 8px;
			box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            margin-top: 20%;
		}
		.chapter-box {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 16px 18px;
			margin: 12px 0;
			background: linear-gradient(180deg, #0a7bff 0%, #086bdc 100%);
			color: white;
			border-radius: 10px;
			cursor: pointer;
			font-size: 16px;
			transition: transform 0.2s ease, box-shadow 0.2s ease;
		}
		.chapter-box:hover {
			transform: translateY(-1px);
			box-shadow: 0 6px 14px rgba(0,0,0,0.15);
			background-color: #0056b3;
		}
		input[type="checkbox"] {
			display: none;
		}
		input[type="checkbox"]:checked + .chapter-box {
			background: linear-gradient(180deg, #2ab74b 0%, #239a3f 100%);
		}
		button {
			padding: 12px 20px;
			font-size: 16px;
			margin-top: 15px;
			border: none;
			background: #28a745;
			color: white;
			border-radius: 8px;
			cursor: pointer;
			transition: background 0.3s, transform 0.1s;
		}
		/* button:hover { background: #218838; }
		button:active { transform: translateY(1px); } */
		.add-chapter-form { margin-top: 30px; padding: 20px; background-color: #f8f9fa; border: 1px solid #ccc; border-radius: 8px; }
		.add-chapter-form input[type="text"] { padding: 10px; width: 80%; margin-bottom: 10px; border-radius: 5px; border: 1px solid #ccc; }
		input{ padding: 12px; width: 110px; margin-right: 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.4); }
		.chapter-box input { background: rgba(255,255,255,0.15); color:#fff; }
		.chapter-box input::placeholder { color: rgba(255,255,255,0.9); }
		.chapter-box input:focus { outline: none; background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.6); }
		.chapter-title {
			flex: 1 1 260px;
			min-width: 0;
			padding-right: 18px;
			text-align: left;
			font-weight: 700;
			line-height: 1.35;
		}
		.chapter-question-controls {
			flex: 0 1 390px;
			width: min(100%, 390px);
			display: grid;
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 8px;
			align-items: start;
		}
		.chapter-question-field {
			min-width: 0;
			display: flex;
			flex-direction: column;
			align-items: center;
			gap: 5px;
		}
		.chapter-question-field span {
			color: #fff;
			font-size: 11px;
			font-weight: 700;
			line-height: 1.2;
		}
		.chapter-question-field input[type="number"] {
			width: 100%;
			min-width: 0;
			height: 42px;
			margin: 0;
			padding: 7px;
			text-align: center;
			font-size: 15px;
			font-weight: 700;
			box-sizing: border-box;
		}
		.chapter-question-controls .long-placement {
			grid-column: 1 / -1;
			text-align: left;
		}
		.pattern-toggle { background: #fff7e6; border: 1px solid #ffd9a8; border-radius: 10px; padding: 14px 16px; text-align: left; margin-bottom: 16px; }
		.pattern-toggle label { margin-right: 16px; font-weight: 600; }
		.pattern-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
		.pattern-controls .qcount { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #ffd9a8; border-radius: 6px; padding: 6px 10px; }
		.pattern-controls select { padding: 6px; }
		.placement-row { display: flex; align-items: center; gap: 8px; }
		.placement-row input[type="number"] { width: 80px; }
		.placement-row select { min-width: 85px; }
		/* Status bar */
		.status-bar { display:flex; gap:10px; flex-wrap:wrap; margin: 12px 0 18px 0; }
		.status-bar .stat { flex: 1 1 180px; background:#f6f8ff; border:1px solid #d9e2ff; border-radius:8px; padding:10px 12px; text-align:left; }
		.status-bar .stat strong { font-size: 16px; }
		.status-bar .ok { border-color:#bfe7c6; background:#f2fbf4; }
		.status-bar .warn { border-color:#ffd4cc; background:#fff5f2; }
		.status-bar .over { border-color:#ff4d4f; background:#fff1f0; color:#a8071a; }
		input.over-field { border-color:#ff4d4f !important; background:#fff1f0 !important; color:#a8071a !important; }
		@media (max-width: 768px) {
			.chapter-container { 
				width: 95%;
				min-width: 95%;
				padding: 15px;
                margin-top: 10%;
			}
			.chapter-box { flex-direction: column; align-items: stretch; }
			.chapter-title {
				flex: none;
				width: 100%;
				padding: 0 0 12px;
			}
			.chapter-question-controls {
				flex: none;
				width: 100%;
				max-width: none;
				gap: 6px;
			}
			.chapter-question-field input[type="number"] {
				width: 100%;
				margin: 0;
				padding-left: 5px;
				padding-right: 5px;
			}
			button { width: 100%; }
		}

        /* Style only for radio inputs */
input[type="radio"] {
  appearance: none; /* remove default look */
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #007bff;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
input[type="radio"]:hover {
  border-color: #0056b3;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.6);
}

/* Checked state */
input[type="radio"]:checked {
  border-color: #007bff;
  background-color: #007bff;
}

input[type="radio"]:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  margin-left: auto;
  margin-right: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}

.selection-mode-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
	background:
		radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.28), transparent 38%),
		rgba(8, 18, 43, 0.72);
	opacity: 0;
	visibility: hidden;
	overflow-x: hidden;
	overflow-y: auto;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.selection-mode-popup.is-visible {
	opacity: 1;
	visibility: visible;
}

.selection-mode-dialog {
	position: relative;
	width: min(100%, 480px);
	margin: auto;
	padding: 34px;
	overflow: hidden;
	text-align: center;
	background: linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
	border: 1px solid rgba(255,255,255,0.75);
	border-radius: 26px;
	box-shadow: 0 22px 48px rgba(2, 12, 34, 0.32);
	transform: translateY(16px);
	transition: transform 0.22s ease;
}

.selection-mode-dialog::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 6px;
	background: linear-gradient(90deg, #2563eb, #0ea5e9, #7c3aed);
}

.selection-mode-popup.is-visible .selection-mode-dialog {
	transform: translateY(0);
}

.selection-mode-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 25px;
	background: linear-gradient(135deg, #2563eb, #0ea5e9);
	border-radius: 19px;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
	transform: rotate(-4deg);
}

.selection-mode-kicker {
	display: block;
	margin-bottom: 7px;
	color: #2563eb;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.selection-mode-dialog h2 {
	margin: 0 0 10px;
	color: #0f172a;
	font-size: clamp(22px, 5vw, 28px);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.selection-mode-dialog p {
	max-width: 390px;
	margin: 0 auto 24px;
	color: #3f4f65;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.selection-mode-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.selection-mode-actions .selection-mode-btn {
	width: 100%;
	min-height: 92px;
	margin: 0;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 11px;
	text-align: left;
	border: 1px solid transparent;
	border-radius: 16px;
	font-size: 14px;
	font-weight: 700;
	box-shadow: none;
	transition: transform 0.18s ease, background-color 0.18s ease;
}

.selection-mode-btn > i {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 11px;
}

.selection-mode-btn span {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.selection-mode-btn strong {
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

.selection-mode-btn small {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.selection-mode-btn--manual {
	background: #f1f5f9;
	color: #1e293b;
	border-color: #dbe4ef !important;
}

.selection-mode-btn--manual strong {
	color: #0f172a;
}

.selection-mode-btn--manual small {
	color: #475569;
}

.selection-mode-btn--manual > i {
	color: #2563eb;
	background: #dbeafe;
}

.selection-mode-btn--auto {
	background: linear-gradient(135deg, #2563eb, #087bff);
	color: #fff;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
}

.selection-mode-btn--auto strong,
.selection-mode-btn--auto small {
	color: #fff;
}

.selection-mode-btn--auto > i {
	color: #fff;
	background: rgba(255,255,255,0.17);
}

.selection-mode-btn--manual:hover {
	background: #e7eef7;
	transform: translateY(-2px);
}

.selection-mode-btn--auto:hover {
	background: linear-gradient(135deg, #1d4ed8, #0369d8);
	transform: translateY(-2px);
}

.selection-mode-btn:focus-visible {
	outline: 3px solid rgba(14, 165, 233, 0.4);
	outline-offset: 3px;
}

.selection-mode-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.selection-mode-note i {
	color: #10b981;
}

.chapter-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	margin: 24px 0 18px;
	padding: 10px;
}

.chapter-actions .chapter-back-link,
.chapter-actions .btn-wrapper,
.chapter-actions .Btn-Container {
	flex: 0 0 190px;
	width: 190px;
	height: 50px;
	margin: 0;
}

.chapter-actions .chapter-back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	box-sizing: border-box;
	border-radius: 25px;
}

.chapter-actions .btn-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.chapter-actions .auto-fill-btn {
	width: 190px;
	height: 50px;
	margin: 0;
	box-sizing: border-box;
}

.chapter-actions .Btn-Container {
	margin: 0;
	padding: 0 5px 0 0;
	box-sizing: border-box;
}

.chapter-actions .Btn-Container .text {
	flex: 1;
	width: auto;
}

@media (max-width: 480px) {
	.selection-mode-popup {
		align-items: flex-end;
		padding: 12px 10px max(10px, env(safe-area-inset-bottom));
	}

	.selection-mode-dialog {
		width: 100%;
		max-height: calc(100dvh - 22px);
		padding: 25px 16px 18px;
		overflow-y: auto;
		border-radius: 22px 22px 16px 16px;
	}

	.selection-mode-icon {
		width: 52px;
		height: 52px;
		margin-bottom: 12px;
		font-size: 21px;
		border-radius: 15px;
	}

	.selection-mode-dialog h2 {
		margin-bottom: 7px;
		font-size: 22px;
	}

	.selection-mode-dialog p {
		margin-bottom: 17px;
		font-size: 14px;
		line-height: 1.5;
	}

	.selection-mode-actions {
		grid-template-columns: 1fr;
		gap: 9px;
	}

	.selection-mode-actions .selection-mode-btn {
		min-height: 67px;
		padding: 11px 13px;
		border-radius: 14px;
	}

	.selection-mode-btn strong {
		font-size: 14px;
	}

	.selection-mode-btn small {
		font-size: 12px;
	}

	.selection-mode-note {
		margin-top: 13px;
		font-size: 11px;
	}

	.chapter-actions {
		flex-direction: column;
		gap: 12px;
		padding: 8px 0;
	}

	.chapter-actions .chapter-back-link,
	.chapter-actions .btn-wrapper,
	.chapter-actions .Btn-Container,
	.chapter-actions .auto-fill-btn {
		flex: none;
		width: min(100%, 280px) !important;
		height: 50px;
		margin: 0 !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.selection-mode-popup,
	.selection-mode-dialog,
	.selection-mode-actions .selection-mode-btn {
		transition: none;
	}
}
