/* ===== Variables ===== */
:root {
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme (default) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #fdfbf7;
  --bg-gradient: linear-gradient(165deg, #fff8ee 0%, #fdfbf7 35%, #f3eeff 70%, #eef8ff 100%);
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-solid: #ffffff;
  --text: #1a1528;
  --text-muted: #6a6280;
  --gold: #e0940f;
  --gold-light: #c47a00;
  --gold-glow: rgba(224, 148, 15, 0.4);
  --saffron: #ff5a1f;
  --indigo: #6b5ce7;
  --violet: #9b7fe8;
  --teal: #0d9488;
  --rose: #e84393;
  --border: rgba(26, 21, 40, 0.1);
  --header-scrolled: rgba(255, 255, 255, 0.9);
  --surface-1: rgba(26, 21, 40, 0.04);
  --surface-2: rgba(26, 21, 40, 0.07);
  --surface-gold: rgba(224, 148, 15, 0.12);
  --surface-gold-border: rgba(224, 148, 15, 0.35);
  --surface-teal: rgba(13, 148, 136, 0.12);
  --shadow-sm: 0 2px 16px rgba(26, 21, 40, 0.07);
  --shadow-md: 0 10px 40px rgba(26, 21, 40, 0.1);
  --shadow-lg: 0 24px 64px rgba(26, 21, 40, 0.14);
  --orb-1: rgba(107, 92, 231, 0.28);
  --orb-2: rgba(255, 170, 40, 0.35);
  --orb-3: rgba(232, 67, 147, 0.22);
  --grain-opacity: 0.03;
  --progress-bg: linear-gradient(135deg, rgba(107, 92, 231, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
  --cta-bg: linear-gradient(135deg, rgba(107, 92, 231, 0.12) 0%, rgba(255, 170, 40, 0.1) 100%);
  --donate-accent-bg: linear-gradient(135deg, rgba(255, 170, 40, 0.18), rgba(255, 90, 31, 0.1));
  --nav-mobile-bg: rgba(255, 255, 255, 0.97);
  --lang-mobile-bg: rgba(255, 255, 255, 0.96);
  --btn-primary-text: #1a1528;
  --lang-active-text: #1a1528;
  --badge-text: #b86e00;
  --book-shadow: 4px 14px 44px rgba(26, 21, 40, 0.2);
  --progress-bar-bg: rgba(26, 21, 40, 0.06);
  --book-badge-bg: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-deep: #0a0b1a;
  --bg-gradient: none;
  --bg-card: rgba(18, 20, 42, 0.75);
  --bg-card-solid: #12142a;
  --text: #e8e6f0;
  --text-muted: #9b97b8;
  --gold: #e8b84a;
  --gold-light: #f5d078;
  --gold-glow: rgba(232, 184, 74, 0.35);
  --saffron: #ff6b35;
  --indigo: #4a3f8f;
  --violet: #7c5cbf;
  --teal: #2dd4bf;
  --rose: #f472b6;
  --border: rgba(255, 255, 255, 0.08);
  --header-scrolled: rgba(10, 11, 26, 0.85);
  --surface-1: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-gold: rgba(232, 184, 74, 0.1);
  --surface-gold-border: rgba(232, 184, 74, 0.3);
  --surface-teal: rgba(45, 212, 191, 0.15);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --orb-1: var(--indigo);
  --orb-2: var(--gold-glow);
  --orb-3: rgba(124, 92, 191, 0.4);
  --grain-opacity: 0.04;
  --progress-bg: linear-gradient(135deg, rgba(74, 63, 143, 0.3) 0%, rgba(18, 20, 42, 0.9) 100%);
  --cta-bg: linear-gradient(135deg, rgba(74, 63, 143, 0.4) 0%, rgba(232, 184, 74, 0.08) 100%);
  --donate-accent-bg: linear-gradient(135deg, rgba(232, 184, 74, 0.1), rgba(255, 107, 53, 0.08));
  --nav-mobile-bg: rgba(10, 11, 26, 0.95);
  --lang-mobile-bg: rgba(10, 11, 26, 0.92);
  --btn-primary-text: #0a0b1a;
  --lang-active-text: #0a0b1a;
  --badge-text: #f5d078;
  --book-shadow: 4px 8px 32px rgba(0, 0, 0, 0.4);
  --progress-bar-bg: rgba(255, 255, 255, 0.06);
  --book-badge-bg: rgba(0, 0, 0, 0.4);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  background-image: var(--bg-gradient);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* ===== Background effects ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 12s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
  top: -10%; right: -10%;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
  bottom: 20%; left: -15%;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--orb-3) 0%, transparent 70%);
  top: 50%; right: 20%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: var(--header-scrolled);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  font-size: 1.15rem;
  line-height: 1;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-gold);
  border-color: var(--surface-gold-border);
  transform: scale(1.05);
}

.theme-toggle__icon { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }

.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.lang-btn {
  padding: 6px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.lang-btn.active {
  color: var(--lang-active-text);
  background: linear-gradient(135deg, var(--gold), var(--saffron));
  box-shadow: 0 2px 12px var(--gold-glow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo__text strong,
.logo__name {
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.logo__text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--saffron) 100%);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 24px var(--gold-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-glow);
}
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-1);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--surface-gold);
}
.btn--lg { padding: 18px 36px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  z-index: 1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: var(--surface-gold);
  border: 1px solid var(--surface-gold-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--badge-text);
  margin-bottom: 24px;
}
.badge__dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--saffron));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
}
.hero__subtitle .ky {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.85;
}

.hero__stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Book stack */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.book-stack {
  position: relative;
  width: 280px;
  height: 380px;
  perspective: 800px;
}
.book-card {
  position: absolute;
  width: 200px;
  height: 280px;
  border-radius: 4px 12px 12px 4px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}
.book-card--1 {
  top: 0; left: 0;
  transform: rotateY(-8deg) rotateZ(-6deg);
  z-index: 3;
}
.book-card--2 {
  top: 30px; left: 50px;
  transform: rotateY(-4deg) rotateZ(2deg);
  z-index: 2;
}
.book-card--3 {
  top: 60px; left: 100px;
  transform: rotateY(0deg) rotateZ(8deg);
  z-index: 1;
}
.book-stack:hover .book-card--1 { transform: rotateY(-12deg) rotateZ(-10deg) translateY(-10px); }
.book-stack:hover .book-card--2 { transform: rotateY(-6deg) rotateZ(0deg) translateY(-5px); }
.book-stack:hover .book-card--3 { transform: rotateY(4deg) rotateZ(12deg) translateY(0); }

.book-card__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  border-radius: 4px 0 0 4px;
  background: rgba(0, 0, 0, 0.3);
}
.book-card__cover {
  position: absolute;
  inset: 0 0 0 14px;
  border-radius: 0 12px 12px 0;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--book-shadow);
}
.book-card__cover.book-card__cover--photo {
  padding: 0;
  border-radius: 0;
}
.book-card--1 .book-card__cover {
  background: linear-gradient(160deg, #c45c26 0%, #8b2e0a 50%, #4a1505 100%);
}
.book-card--2 .book-card__cover {
  background: linear-gradient(160deg, #2d6a8f 0%, #1a3d5c 50%, #0d2035 100%);
}
.book-card--3 .book-card__cover {
  background: linear-gradient(160deg, #6b4fa0 0%, #3d2868 50%, #1e1238 100%);
}
.book-card__icon {
  position: absolute;
  top: 24px; right: 20px;
  font-size: 2rem;
  opacity: 0.6;
}
.book-card__cover h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.book-card__cover p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__glow {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glow-pulse 4s ease infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-line 2s ease infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== Sections ===== */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-gold-border);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Progress ===== */
.progress-section { padding: 0 0 100px; }
.progress-card {
  background: var(--progress-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}
.progress-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.progress-card__header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.progress-card__amount {
  text-align: right;
}
.progress-card__current {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}
.progress-card__goal {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.progress-bar {
  height: 12px;
  background: var(--progress-bar-bg);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--rose));
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.progress-bar__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-card__footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.progress-card__footer span:first-child {
  color: var(--gold);
  font-weight: 700;
}

/* ===== Books ===== */
.books__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.book-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.book-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.book-item__cover {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-item--karma .book-item__cover {
  background: linear-gradient(135deg, #e87830 0%, #8b2e0a 100%);
}
.book-item--reincarnation .book-item__cover {
  background: linear-gradient(135deg, #3d8fbd 0%, #1a3d5c 100%);
}
.book-item--consciousness .book-item__cover {
  background: linear-gradient(135deg, #8b6fd4 0%, #3d2868 100%);
}

.book-card__cover--photo {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
}

.book-card--1 .book-card__cover--photo,
.book-card--2 .book-card__cover--photo,
.book-card--3 .book-card__cover--photo {
  background: #fff;
  border-radius: 0;
}

.book-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
}

.book-item__cover--photo {
  padding: 0;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 0;
  display: block;
  position: relative;
}

.book-item--karma .book-item__cover--photo,
.book-item--reincarnation .book-item__cover--photo,
.book-item--consciousness .book-item__cover--photo {
  background: #f5f5f5;
}

.book-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  border-radius: 0;
}

.book-item__symbol {
  font-size: 4rem;
  opacity: 0.35;
  color: #fff;
}
.book-item__badge {
  position: absolute;
  top: 16px; right: 16px;
  padding: 6px 12px;
  background: var(--book-badge-bg);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal);
}
.book-item__body {
  padding: 28px;
}
.book-item__body h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.book-item__original {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}
.book-item__body > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.book-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.book-item__tags li {
  padding: 4px 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* ===== Author ===== */
.author__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.author__frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.author__avatar {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 60px rgba(124, 92, 191, 0.4);
}

.author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author__rings span {
  position: absolute;
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-radius: 50%;
  animation: ring-pulse 4s ease infinite;
}
.author__rings span:nth-child(1) {
  width: 260px; height: 260px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.author__rings span:nth-child(2) {
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -1.3s;
}
.author__rings span:nth-child(3) {
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -2.6s;
}
@keyframes ring-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.03); }
}
.author__quote {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}
.author__info h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.author__name-alt {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.author__info > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1rem;
}
.author__achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.author__achievements li {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.author__achievements strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
}
.author__achievements span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Donate ===== */
.donate__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.currency-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}

.currency-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.currency-block__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.currency-block__flag {
  font-size: 2rem;
  line-height: 1;
}

.currency-block__head h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
}

.currency-block__head p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.currency-block__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 100%;
}

.currency-block__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.currency-block__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.currency-block__value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
}

.currency-block__action {
  flex: 1;
  display: flex;
  align-items: center;
}

.currency-block__action--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.currency-block__pay-url {
  font-size: 0.75rem;
  color: var(--gold);
  text-align: center;
  word-break: break-all;
  line-height: 1.4;
}

.currency-block__pay-url:hover {
  text-decoration: underline;
}

.currency-block--kzt .currency-block__action--stack {
  min-height: 0;
}

.btn--block {
  width: 100%;
  text-align: center;
}

.mono {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.copy-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}
.copy-btn:hover {
  background: var(--surface-gold);
  border-color: var(--gold);
  color: var(--gold);
}
.copy-btn.copied {
  background: var(--surface-teal);
  border-color: var(--teal);
  color: var(--teal);
}

.donate-thanks {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.donate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.donate-card--accent {
  background: var(--donate-accent-bg);
  border-color: var(--surface-gold-border);
}
.donate-card__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.donate-card--accent p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta { padding-bottom: 120px; }
.cta__card {
  text-align: center;
  padding: 64px 40px;
  background: var(--cta-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cta__card::before {
  content: 'ॐ';
  position: absolute;
  top: -20px; right: -10px;
  font-size: 12rem;
  opacity: 0.03;
  color: var(--gold);
}
.cta__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}
.cta__card > p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer__brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-top: 8px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  background: var(--bg-card-solid);
  border: 1px solid var(--teal);
  border-radius: 100px;
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Animations on scroll ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { min-height: 340px; margin-top: 20px; }
  .about__grid { grid-template-columns: repeat(2, 1fr); }
  .books__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .author__grid { grid-template-columns: 1fr; }
  .currency-blocks { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lang-switcher {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
    box-shadow: var(--shadow-md);
    background: var(--lang-mobile-bg);
    backdrop-filter: blur(16px);
  }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }
  .burger { display: flex; }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .about__grid { grid-template-columns: 1fr; }
  .author__achievements { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .progress-card { padding: 24px; }
  .progress-card__header { flex-direction: column; align-items: flex-start; }
  .progress-card__amount { text-align: left; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.2rem; }
  .book-stack { transform: scale(0.85); }
  .cta__card { padding: 40px 24px; }
}
