/* Alif Kitab -- futuristic homepage (ports alif-kitab-futuristic-concept.html
   into real, data-driven markup). Reuses the --ak-* variables from reader.css. */

/* The theme's content-width rule (theme.json) caps direct children of the
   content area to ~645px unless they're alignwide/alignfull blocks -- our
   shortcode output isn't a block, so it gets caught by that rule too.
   Force it back to full width; the inner .ak-home-shell still applies its
   own comfortable 1180px reading measure on top of this. */
.ak-home {
	position: relative;
	direction: rtl;
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.ak-home-shell { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 8px 4px 40px; }

/* Fallback in case the active theme doesn't already define this utility --
   used for the single, real (but visually silent) H1 at the top of the
   homepage so search engines/screen readers get one clear page heading
   without duplicating the hero slider's own visible heading. */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* The static front page still uses the theme's generic page template --
   hide its title/entry-header chrome so the hero slider reads as the true
   top of the page instead of sitting under a redundant "Home" heading. */
body.home .wp-block-post-title,
body.home .entry-header,
body.home > .wp-site-blocks > main > .wp-block-group > h1:first-child,
body.ak-library-page .wp-block-post-title,
body.ak-library-page .entry-header,
body.ak-library-page > .wp-site-blocks > main > .wp-block-group > h1:first-child {
	display: none;
}
body.home main, body.ak-library-page main, body.ak-account-page main, body.ak-contact-page main { padding-top: 0; }

/* The theme's default single/page template wraps content in a "group" block
   that carries a large top padding (70px) meant to clear a sticky header,
   plus the standard block-gap margin (~19px) above the entry-content --
   neither applies here since our nav isn't sticky, so on our custom
   shortcode pages this just reads as an oversized, unintentional-looking
   gap between the header and the actual page content. Zero both out. */
body.home main, body.ak-library-page main, body.ak-account-page main, body.ak-contact-page main {
	margin-top: 0 !important;
}
body.home main > .wp-block-group,
body.ak-library-page main > .wp-block-group,
body.ak-account-page main > .wp-block-group,
body.ak-contact-page main > .wp-block-group {
	padding-top: 0 !important;
}
body.home .entry-content,
body.ak-library-page .entry-content,
body.ak-account-page .entry-content,
body.ak-contact-page .entry-content {
	margin-top: 0 !important;
}

/* ---- stats row ---- */
.ak-home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 30px; }
.ak-home-stat { background: var(--ak-panel); border: 1px solid var(--ak-line); border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.ak-home-stat-icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.ak-home-stat-icon.cy { background: rgba(94,234,212,0.12); color: var(--ak-cyan); }
.ak-home-stat-icon.vi { background: rgba(167,139,250,0.14); color: var(--ak-violet); }
.ak-home-stat-icon.pk { background: rgba(244,114,182,0.14); color: var(--ak-pink); }
.ak-home-stat-num { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 19px; font-weight: 700; line-height: 1.1; color: var(--ak-text-0); }
.ak-home-stat-label { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; color: var(--ak-text-2); margin-top: 2px; }

/* ---- hero slider ---- */
.ak-home-hero { position: relative; margin-bottom: 40px; border-radius: 24px; overflow: hidden; min-height: 300px; }
.ak-home-slide {
	display: none; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
	background: linear-gradient(135deg, rgba(94,234,212,0.08), rgba(167,139,250,0.06)), var(--ak-panel);
	border: 1px solid var(--ak-line); border-radius: 24px; padding: 34px; position: relative; overflow: hidden;
}
.ak-home-slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(244,114,182,0.14), transparent 55%); pointer-events: none; }
.ak-home-slide.active { display: grid; animation: ak-home-fade .5s ease; }
@keyframes ak-home-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ak-home-eyebrow { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--ak-cyan); text-transform: uppercase; margin-bottom: 10px; }
.ak-home-hero-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 40px; margin: 0 0 8px; line-height: 1.4; color: var(--ak-text-0); }
.ak-home-hero-author { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12.5px; color: var(--ak-text-1); margin-bottom: 14px; }
.ak-home-hero-excerpt { font-family: "Noto Nastaliq Urdu", serif; color: var(--ak-text-1); font-size: 15.5px; line-height: 2; max-width: 480px; margin: 0 0 20px; }
.ak-home-cta {
	display: inline-block; font-family: 'Space Grotesk', Arial, sans-serif; text-decoration: none; font-weight: 700;
	padding: 12px 24px; border-radius: 999px; background: linear-gradient(135deg, var(--ak-cyan), var(--ak-violet));
	color: #05060a; box-shadow: 0 0 24px rgba(94,234,212,0.3); transition: transform .15s ease;
}
.ak-home-cta:hover { transform: translateY(-2px); }
.ak-home-hero-visual { display: flex; justify-content: center; }
.ak-home-hero-cover, .ak-home-hero-cover.ak-home-cover-blank {
	width: 100%; max-width: 260px; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
	background: linear-gradient(160deg, #241b4d, #0f1a33);
	box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
}
.ak-home-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-home-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ak-home-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--ak-line-strong); cursor: pointer; padding: 0; }
.ak-home-dot.active { background: var(--ak-cyan); width: 22px; border-radius: 999px; transition: width .2s ease; }

/* ---- continue-reading hero (logged-in users with saved progress) ---- */
.ak-home-hero-continue .ak-home-slide { display: grid; }
.ak-home-hero-progress { margin: 4px 0 22px; max-width: 420px; }
.ak-home-prog-track { height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ak-home-prog-fill { height: 100%; background: linear-gradient(90deg, var(--ak-cyan), var(--ak-violet)); transition: width .3s ease; }
.ak-home-prog-label { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; color: var(--ak-text-2); margin-top: 8px; }

/* ---- exclusive showcase ---- */
.ak-home-exclusive { position: relative; margin-bottom: 46px; border-radius: 26px; padding: 2px; background: linear-gradient(135deg, rgba(240,198,117,0.55), rgba(240,198,117,0.05) 40%, rgba(240,198,117,0.35)); }
.ak-home-exclusive-inner {
	border-radius: 24px; padding: 30px; position: relative; overflow: hidden;
	background: radial-gradient(circle at 88% -10%, rgba(240,198,117,0.16), transparent 55%), linear-gradient(160deg, #171307, #0e0d17 55%, #0b0d16);
	border: 1px solid rgba(240,198,117,0.25);
}
.ak-home-exclusive-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }
.ak-home-exclusive-eyebrow { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--ak-gold); text-transform: uppercase; }
.ak-home-exclusive-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 32px; margin: 8px 0 6px; color: var(--ak-text-0); }
.ak-home-exclusive-sub { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; color: var(--ak-text-1); max-width: 520px; line-height: 1.9; margin-bottom: 22px; }
.ak-home-exclusive-medallion { display: flex; align-items: center; gap: 12px; background: rgba(240,198,117,0.08); border: 1px solid rgba(240,198,117,0.3); border-radius: 16px; padding: 10px 16px; flex-shrink: 0; }
.ak-home-exclusive-medallion img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; object-position: 50% 6%; background: #e9edee; display: block; }
.ak-home-exclusive-medallion-text { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; color: var(--ak-text-1); line-height: 1.5; }
.ak-home-exclusive-medallion-text b { color: var(--ak-gold); display: block; font-size: 12.5px; }
.ak-home-exclusive-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 700px) { .ak-home-exclusive-grid { grid-template-columns: repeat(1, 1fr); } }
.ak-home-ex-card {
	position: relative; display: block; text-decoration: none; background: rgba(255,255,255,0.02);
	border: 1px solid rgba(240,198,117,0.22); border-radius: 16px; padding: 14px; transition: transform .2s ease, border-color .2s ease;
}
.ak-home-ex-card:hover { transform: translateY(-4px); border-color: var(--ak-gold); }
.ak-home-ex-cover { height: 120px; border-radius: 10px; margin-bottom: 12px; background: linear-gradient(155deg, #2c2410, #0b0f1c); position: relative; overflow: hidden; }
.ak-home-ex-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-home-ex-crown { position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(240,198,117,0.16); border: 1px solid rgba(240,198,117,0.4); display: flex; align-items: center; justify-content: center; color: var(--ak-gold); font-size: 12px; }
.ak-home-ex-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; color: var(--ak-text-0); }
.ak-home-ex-meta { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; color: var(--ak-gold); margin-top: 3px; }
.ak-home-ex-more { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.ak-home-ex-more-icon { font-size: 22px; color: var(--ak-gold); line-height: 1; }

/* ---- library grid ----
   Fixed (not auto-fill) column counts so rows always divide evenly instead
   of leaving a ragged short last row -- e.g. 10 homepage picks = 5+5, not
   6+4; 8 kids items = 4+4; 24 archive items = 4x6. ---- */
.ak-home-section-title {
	font-family: 'Space Grotesk', Arial, sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 1.5px;
	text-transform: uppercase; color: var(--ak-text-1); margin: 0 0 18px; padding-bottom: 12px;
	border-bottom: 1px solid var(--ak-line);
}
.ak-home-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 20px; }
.ak-archive-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
	.ak-home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.ak-home-grid { grid-template-columns: repeat(1, 1fr); }
}
.ak-home-lib-card {
	position: relative; display: block; text-decoration: none; background: var(--ak-panel); border: 1px solid var(--ak-line);
	border-radius: 16px; padding: 14px; transition: transform .2s ease, border-color .2s ease;
}
.ak-home-lib-card:hover { transform: translateY(-4px); border-color: var(--ak-cyan); }
.ak-home-lib-cover, .ak-home-lib-cover.ak-home-cover-blank { height: 150px; border-radius: 10px; margin-bottom: 12px; background: linear-gradient(155deg, #1c2740, #0b0f1c); overflow: hidden; }
.ak-home-lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-home-lib-lock { position: absolute; top: 22px; left: 22px; font-size: 10.5px; background: rgba(0,0,0,0.55); border: 1px solid var(--ak-line-strong); padding: 3px 8px; border-radius: 999px; color: var(--ak-pink); z-index: 2; font-family: 'Space Grotesk', Arial, sans-serif; }
.ak-home-lib-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; color: var(--ak-text-0); }
.ak-home-lib-author { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; color: var(--ak-text-2); margin-top: 3px; }

.ak-home-more-link { display: inline-block; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 13px; color: var(--ak-cyan); text-decoration: none; margin-bottom: 30px; }
.ak-home-more-link:hover { text-decoration: underline; }

/* ---- شاعری (poetry) section -- one unified box: "poem of the day"
   featured on the right (RTL-first side), scrollable list of more poems
   with thumbnails on the left. ---- */
.ak-poetry-box {
	display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 0; margin-bottom: 14px;
	background: linear-gradient(160deg, rgba(167,139,250,0.06), rgba(240,198,117,0.03)), var(--ak-panel);
	border: 1px solid var(--ak-line); border-radius: 20px; overflow: hidden;
}
.ak-poetry-list { padding: 22px 20px; border-inline-start: 1px solid var(--ak-line); max-height: 380px; overflow-y: auto; }
.ak-poetry-list-label { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ak-text-2); margin-bottom: 14px; }
.ak-poetry-list-item {
	display: flex; align-items: center; gap: 8px; padding: 12px 6px;
	border-radius: 12px; border-bottom: 1px solid var(--ak-line); transition: background .15s ease;
}
.ak-poetry-list-item:last-child { border-bottom: none; }
.ak-poetry-list-item:hover { background: rgba(255,255,255,0.04); }
.ak-poetry-list-item .ak-wtr-btn-inline { flex: 0 0 auto; padding: 5px 10px; }
.ak-poetry-list-item .ak-wtr-btn-inline .ak-wtr-icon { font-size: 13px; }
.ak-poetry-list-item-link {
	display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 1 1 auto; min-width: 0;
}
.ak-poetry-list-thumb-img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; overflow: hidden; background: linear-gradient(155deg, #241a3a, #0b0f1c); }
.ak-poetry-list-thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-poetry-list-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; color: var(--ak-text-0); line-height: 1.6; }
.ak-poetry-featured { position: relative; padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
.ak-poetry-featured-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ak-violet); margin-bottom: 14px; }
.ak-poetry-featured-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 28px; color: var(--ak-text-0); margin-bottom: 12px; }
.ak-poetry-featured-body { font-family: "Noto Nastaliq Urdu", serif; font-size: 15px; color: var(--ak-text-1); line-height: 2.1; margin: 0 0 16px; }
.ak-poetry-featured-link { align-self: flex-start; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 13px; color: var(--ak-violet); text-decoration: none; font-weight: 600; }
.ak-poetry-featured-link:hover { text-decoration: underline; }
@media (max-width: 720px) {
	.ak-poetry-box { grid-template-columns: 1fr; }
	.ak-poetry-list { border-inline-start: none; border-top: 1px solid var(--ak-line); max-height: 300px; }
}

/* ---- بچوں کا کونہ (kids' corner) -- stays inside the same dark/cosmic
   palette as the rest of the site (same panel + jewel-tone accents) but
   reads as its own "corner" via a warm amber undertone, gold glow orbs,
   and softer rounded/playful cards -- differentiated, not out of theme. ---- */
.ak-kids {
	position: relative; width: 100vw; margin: 46px calc(50% - 50vw) 0; padding: 54px 24px 60px;
	background: linear-gradient(160deg, #150f08 0%, #0b0f1c 55%, #170c14 100%);
	overflow: hidden;
}
.ak-kids::before, .ak-kids::after {
	content: ""; position: absolute; border-radius: 50%; opacity: 0.35; pointer-events: none;
}
.ak-kids::before { width: 300px; height: 300px; background: radial-gradient(circle, var(--ak-gold), transparent 70%); top: -100px; left: -70px; }
.ak-kids::after { width: 260px; height: 260px; background: radial-gradient(circle, var(--ak-pink), transparent 70%); bottom: -80px; right: -60px; }
.ak-kids-shell { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; direction: rtl; }
.ak-kids-head { text-align: center; margin-bottom: 30px; }
.ak-kids-eyebrow { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; letter-spacing: 1.5px; color: var(--ak-gold); text-transform: uppercase; margin-bottom: 8px; }
.ak-kids-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 38px; color: var(--ak-text-0); margin-bottom: 8px; }
.ak-kids-sub { font-family: "Noto Nastaliq Urdu", serif; font-size: 14.5px; color: var(--ak-text-1); }
.ak-kids-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
@media (max-width: 700px) { .ak-kids-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .ak-kids-grid { grid-template-columns: repeat(1, 1fr); } }
.ak-kids-card {
	display: block; text-decoration: none; background: var(--ak-panel); border-radius: 18px; padding: 12px;
	box-shadow: 0 14px 30px -18px rgba(0,0,0,0.5); border: 1px solid rgba(240,198,117,0.22);
	transition: transform .2s ease, border-color .2s ease;
}
.ak-kids-card:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--ak-gold); }
.ak-kids-cover { height: 120px; border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: linear-gradient(155deg, #2c2410, #0b0f1c); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.ak-kids-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ak-kids-card-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 13.5px; color: var(--ak-text-0); text-align: center; }
.ak-kids-more { display: block; text-align: center; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 13px; color: var(--ak-gold); text-decoration: none; font-weight: 600; }
.ak-kids-more:hover { text-decoration: underline; }

/* ---- book/category archive (/library/, [ak_library]) ---- */
.ak-archive-head { padding: 10px 0 26px; }
.ak-archive-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 38px; margin: 0 0 8px; color: var(--ak-text-0); }
.ak-archive-count { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12.5px; color: var(--ak-cyan); }
.ak-archive-desc { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; color: var(--ak-text-1); margin-top: 8px; max-width: 640px; line-height: 1.9; }
.ak-archive-grid { margin-top: 4px; }
.ak-archive-card-chapters { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 10.5px; color: var(--ak-text-2); margin-top: 5px; }
.ak-archive-empty { font-family: "Noto Nastaliq Urdu", serif; color: var(--ak-text-1); padding: 30px 0; }
.ak-archive-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 34px 0 20px; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 13px; }
.ak-archive-page-link { color: var(--ak-cyan); text-decoration: none; padding: 8px 16px; border: 1px solid var(--ak-line-strong); border-radius: 999px; transition: border-color .15s ease; }
.ak-archive-page-link:hover { border-color: var(--ak-cyan); }
.ak-archive-page-current { color: var(--ak-text-2); }

/* ---- Author byline links (see AK_Homepage::author_badge()) ---- */
.ak-author-link { cursor: pointer; transition: color .15s ease; }
.ak-author-link:hover, .ak-author-link:focus-visible { color: var(--ak-cyan); text-decoration: underline; outline: none; }

/* ---- Author profile page (AK_Authors::render_author_page()) ---- */
.ak-author-head {
	display: flex; align-items: center; gap: 22px; padding: 28px 30px; margin-bottom: 30px;
	background: linear-gradient(135deg, rgba(94,234,212,0.08), rgba(167,139,250,0.06)), var(--ak-panel);
	border: 1px solid var(--ak-line); border-radius: 24px;
}
.ak-author-avatar {
	flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-family: "Noto Nastaliq Urdu", serif; font-size: 30px; color: var(--ak-text-0);
	background: linear-gradient(135deg, var(--ak-cyan), var(--ak-violet));
}
.ak-author-eyebrow { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; letter-spacing: 2px; color: var(--ak-cyan); text-transform: uppercase; margin-bottom: 4px; }
.ak-author-name { font-family: "Noto Nastaliq Urdu", serif; font-size: 32px; margin: 0 0 6px; color: var(--ak-text-0); }
.ak-author-count { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12.5px; color: var(--ak-text-2); }
.ak-author-bio { font-family: "Noto Nastaliq Urdu", serif; font-size: 14px; color: var(--ak-text-1); line-height: 1.9; max-width: 640px; margin: 10px 0 0; }
.ak-author-section { margin-bottom: 34px; }
@media (max-width: 640px) {
	.ak-author-head { flex-direction: column; text-align: center; padding: 24px 20px; }
}

/* ---- Authors directory ([ak_authors]) ---- */
.ak-authors-search-wrap { margin: 6px 0 24px; }
.ak-authors-search {
	width: 100%; max-width: 420px; padding: 12px 18px; border-radius: 999px;
	background: var(--ak-panel); border: 1px solid var(--ak-line-strong); color: var(--ak-text-0);
	font-family: "Noto Nastaliq Urdu", serif; font-size: 14px;
}
.ak-authors-search:focus { outline: none; border-color: var(--ak-cyan); }
.ak-authors-search::placeholder { color: var(--ak-text-2); }
.ak-authors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ak-author-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
	text-decoration: none; background: var(--ak-panel); border: 1px solid var(--ak-line); border-radius: 18px;
	padding: 26px 16px; transition: all .15s ease;
}
.ak-author-card:hover { transform: translateY(-4px); border-color: var(--ak-cyan); }
.ak-author-card-avatar {
	width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-family: "Noto Nastaliq Urdu", serif; font-size: 22px; color: var(--ak-text-0);
	background: linear-gradient(135deg, var(--ak-cyan), var(--ak-violet));
}
.ak-author-card-name { font-family: "Noto Nastaliq Urdu", serif; font-size: 15px; color: var(--ak-text-0); }
.ak-author-card-count { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; color: var(--ak-text-2); }
@media (max-width: 900px) {
	.ak-authors-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ak-authors-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.ak-home-slide { grid-template-columns: 1fr; }
	.ak-home-hero-visual { order: -1; }
	.ak-home-hero-cover { max-width: 180px; margin: 0 auto; }
	.ak-home-stats { grid-template-columns: 1fr; }
}

/* ---- Want to Read button -- sits on every book card + book detail header ---- */
.ak-card-wrap { position: relative; }
.ak-card-wrap > a { display: block; text-decoration: none; color: inherit; }
.ak-wtr-btn {
	position: absolute; top: 10px; left: 10px; z-index: 3; width: 30px; height: 30px; border-radius: 50%;
	background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 15px;
	cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s ease;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ak-wtr-btn:hover { border-color: var(--ak-pink); color: var(--ak-pink); }
.ak-wtr-btn.active { background: rgba(244,114,182,0.18); border-color: var(--ak-pink); color: var(--ak-pink); }
.ak-wtr-icon { font-size: 15px; line-height: 1; pointer-events: none; }
.ak-wtr-btn-inline {
	position: static; width: auto; height: auto; border-radius: 999px; padding: 4px 14px;
	font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; gap: 6px;
}
.ak-wtr-btn-inline .ak-wtr-icon { font-size: 12px; }

/* ---- account page ---- */
.ak-acc-notice { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 13px; padding: 12px 18px; border-radius: 12px; margin-bottom: 20px; background: rgba(94,234,212,0.08); border: 1px solid rgba(94,234,212,0.3); color: var(--ak-cyan); }
.ak-acc-notice-wrong_password, .ak-acc-notice-weak_password, .ak-acc-notice-mismatch, .ak-acc-notice-error { background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.3); color: var(--ak-pink); }
.ak-acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.ak-acc-card { background: var(--ak-panel); border: 1px solid var(--ak-line); border-radius: 20px; padding: 24px; }
.ak-acc-card-title { font-family: "Noto Nastaliq Urdu", serif; font-size: 20px; color: var(--ak-text-0); margin: 0 0 18px; }
.ak-acc-form { display: flex; flex-direction: column; }
.ak-acc-label { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; color: var(--ak-text-2); margin: 10px 0 6px; }
.ak-acc-input {
	background: rgba(255,255,255,0.03); border: 1px solid var(--ak-line-strong); border-radius: 10px; padding: 10px 14px;
	color: var(--ak-text-0); font-family: 'Space Grotesk', Arial, sans-serif; font-size: 14px;
}
.ak-acc-input:disabled { opacity: 0.5; }
.ak-acc-subhead { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ak-text-2); margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ak-line); }
.ak-acc-submit { align-self: flex-start; margin-top: 18px; border: none; cursor: pointer; }

.ak-acc-tier-active { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ak-acc-tier-badge { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; font-weight: 700; background: rgba(240,198,117,0.1); border: 1px solid rgba(240,198,117,0.35); color: var(--ak-gold); padding: 5px 14px; border-radius: 999px; }
.ak-acc-tier-expiry { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; color: var(--ak-text-2); }
.ak-acc-tier-none { font-family: "Noto Nastaliq Urdu", serif; color: var(--ak-text-1); margin-bottom: 16px; }
.ak-acc-pending { font-family: "Noto Nastaliq Urdu", serif; color: var(--ak-cyan); background: rgba(94,234,212,0.06); border: 1px solid rgba(94,234,212,0.25); border-radius: 12px; padding: 14px; }
.ak-acc-tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ak-acc-tier-option {
	display: grid; grid-template-columns: 20px 1fr auto; grid-template-areas: "radio name price" "radio desc desc";
	gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--ak-line-strong); border-radius: 12px; cursor: pointer;
	transition: border-color .15s ease;
}
.ak-acc-tier-option:has(input:checked) { border-color: var(--ak-gold); background: rgba(240,198,117,0.05); }
.ak-acc-tier-option input { grid-area: radio; margin-top: 3px; }
.ak-acc-tier-name { grid-area: name; font-family: "Noto Nastaliq Urdu", serif; font-size: 15px; color: var(--ak-text-0); }
.ak-acc-tier-price { grid-area: price; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12px; color: var(--ak-gold); }
.ak-acc-tier-desc { grid-area: desc; font-family: "Noto Nastaliq Urdu", serif; font-size: 12.5px; color: var(--ak-text-2); }
.ak-acc-method-tabs { display: flex; gap: 16px; margin-bottom: 14px; }
.ak-acc-method-tab { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 13px; color: var(--ak-text-1); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ak-acc-pay-details {
	background: rgba(255,255,255,0.02); border: 1px dashed var(--ak-line-strong); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
	font-family: 'Space Grotesk', Arial, sans-serif; font-size: 12.5px; color: var(--ak-text-1); line-height: 2;
}
.ak-acc-pay-details b { color: var(--ak-text-0); }
.ak-acc-pay-note { font-family: "Noto Nastaliq Urdu", serif; font-size: 12px; color: var(--ak-text-2); margin-top: 10px; }
.ak-acc-progress-card { position: relative; }
.ak-acc-progress-bar { margin-top: 10px; }
.ak-acc-wtr-card .ak-wtr-remove {
	display: block; width: 100%; margin-top: 8px; padding: 6px; border-radius: 8px; border: 1px solid var(--ak-line-strong);
	background: transparent; color: var(--ak-text-2); font-family: 'Space Grotesk', Arial, sans-serif; font-size: 11px; cursor: pointer;
}
.ak-acc-wtr-card .ak-wtr-remove:hover { border-color: var(--ak-pink); color: var(--ak-pink); }

@media (max-width: 820px) {
	.ak-acc-grid { grid-template-columns: 1fr; }
}
