:root {
  --gold: #D4AF37;
  --gold-soft: #E9CE7F;
  --gold-deep: #B08E2E;
  --black: #090909;
  --panel: #151515;
  --panel-2: #1E1D1A;
  --card: #171717;
  --blue: #8FA8C9;
  --text: #F2EEE6;
  --muted: #BDBDBD;
  --danger: #C0563F;
  --hair-gold: rgba(212, 175, 55, 0.28);
  --hair-faint: rgba(255, 255, 255, 0.08);
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }

::selection { background: rgba(212, 175, 55, 0.3); }

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(11, 11, 11, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair-gold);
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.brand-icon { color: var(--gold); flex-shrink: 0; }

.brand-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.topbar nav a {
  color: var(--muted);
  margin-left: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}

.topbar nav a:hover { color: var(--gold-soft); }

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-left: 22px;
  border: 1px solid var(--hair-gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-soft);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
  vertical-align: middle;
  font: inherit;
}

.music-toggle:hover { border-color: var(--gold); color: var(--gold-soft); }

.music-toggle .music-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.music-toggle .note-ico { display: block; }

.music-toggle .eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.music-toggle.on .note-ico { display: none; }
.music-toggle.on .eq { display: inline-flex; }

.music-toggle .eq i {
  width: 3px;
  background: var(--gold);
  animation: eq 1s ease-in-out infinite;
}

.music-toggle .eq i:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-toggle .eq i:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.music-toggle .eq i:nth-child(3) { height: 6px; animation-delay: 0.4s; }

.music-toggle .music-label { font-size: 0.78rem; letter-spacing: 0.06em; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle .eq i { animation: none; }
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 108px 22px 60px;
}

/* ---------- landing: the day leaf ---------- */

.day-leaf {
  position: relative;
  margin: -108px calc(50% - 50vw) 0;
  padding: 128px calc(50vw - 50%) 60px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(720px 420px at 50% -120px, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(560px 300px at 12% 118%, rgba(143, 168, 201, 0.05), transparent 70%),
    var(--black);
  border-bottom: 1px solid var(--hair-gold);
}

.day-leaf-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  animation: leafIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes leafIn {
  from { opacity: 0; filter: blur(6px); clip-path: inset(0 0 14% 0); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); clip-path: inset(0); transform: translateY(0); }
}

.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue);
}

.kicker.small { font-size: 0.66rem; color: var(--muted); }

.rule-hair {
  width: 72px;
  height: 1px;
  margin: 20px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.day-label {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.day-num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(4.5rem, 18vw, 8.5rem);
  line-height: 1.04;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.28);
}

.reading-entry { margin-top: 6px; }

.entry-head {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold-soft);
}

.entry-line {
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 400;
}

.reading-entry.center { text-align: center; }

.reading-entry.center .book-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-soft);
  font-size: 1.35rem;
  margin-top: 10px;
}

.reading-entry.center .book-author { color: var(--muted); margin-top: 2px; }

.price-line {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.price-line strong { color: var(--gold-soft); font-weight: 600; }

.day-actions { margin-top: 28px; }

.day-links { margin-top: 20px; font-size: 0.9rem; }

.day-links a {
  color: var(--muted);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.day-links a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- month strip ---------- */

.month-strip-wrap {
  margin-top: 46px;
  text-align: center;
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin: 16px auto 0;
  max-width: 560px;
}

.mcell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  font-family: var(--serif);
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--hair-faint);
  border-radius: 6px;
}

.mcell.today {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0B0B;
  font-weight: 700;
}

.mcell.done {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--gold-soft);
}

/* ---------- almanac entries ---------- */

.almanac {
  margin-top: 46px;
  border-top: 1px solid var(--hair-faint);
}

.entry {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 22px 4px;
  border-bottom: 1px solid var(--hair-faint);
}

.entry-mark {
  flex: 0 0 76px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
}

.entry-body h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.entry-body p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 56ch;
}

/* ---------- library carousel ---------- */

.lib-sec {
  max-width: 1100px;
  margin: 72px auto 0;
  padding: 0 22px;
}

.lib-head { max-width: 620px; margin: 0 auto 36px; text-align: center; }

.lib-title {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 1.9rem;
  font-weight: 600;
  margin-top: 10px;
}

.lib-sub { color: var(--muted); margin-top: 10px; }

.lib-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.lib-track {
  display: flex;
  width: max-content;
  animation: lib-scroll linear infinite;
  will-change: transform;
}

.lib-copy { display: flex; gap: 22px; padding-right: 22px; }

.lib-carousel:hover .lib-track { animation-play-state: paused; }

@keyframes lib-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lib-cover {
  position: relative;
  flex-shrink: 0;
  width: 168px;
  height: 236px;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 6px 6px 12px 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background-color: #1E1C1A;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 32%, transparent 46%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, transparent 55%);
}

.lib-cover > *:not(.cover-overlay) {
  position: relative;
  z-index: 2;
}

.lib-cover::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 3px;
  pointer-events: none;
}

.lib-cover:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.6), 0 0 26px rgba(212, 175, 55, 0.12);
}

.cov-0 { background: linear-gradient(165deg, #1E1C1A 0%, #2A1F12 100%); }
.cov-1 { background: linear-gradient(165deg, #141A1C 0%, #1B2730 100%); }
.cov-2 { background: linear-gradient(165deg, #1C1418 0%, #2B1620 100%); }
.cov-3 { background: linear-gradient(165deg, #161C14 0%, #202B16 100%); }
.cov-4 { background: linear-gradient(165deg, #1A1A22 0%, #262238 100%); }

.cover-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.cover-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 14px 0 8px;
  color: #fff;
}

.cover-desc {
  font-size: 0.66rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-author {
  margin-top: auto;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.85;
}

/* ---------- seal ---------- */

.seal {
  margin-top: 60px;
  padding: 42px 26px 38px;
  text-align: center;
  border: 1px solid var(--hair-gold);
  border-radius: 16px;
  background:
    radial-gradient(560px 240px at 50% -80px, rgba(212, 175, 55, 0.09), transparent 70%),
    var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.seal-line {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-top: 6px;
}

.seal-sub { color: var(--muted); margin: 12px 0 26px; font-size: 1rem; }
.seal-sub strong { color: var(--gold-soft); font-weight: 600; }

.seal-cta { margin-top: 24px; }

.stamp {
  display: inline-block;
  margin-top: 26px;
  padding: 5px 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  transform: rotate(-2deg);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #E9CE7F 0%, var(--gold) 55%, #C19A2E 100%);
  color: #0B0B0B;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.btn.full { width: 100%; text-align: center; }
.btn.small { padding: 8px 16px; font-size: 0.84rem; box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #D97A63, var(--danger)); color: #fff; }

/* ---------- forms ---------- */

.form-box {
  max-width: 440px;
  margin: 44px auto;
  background: var(--panel);
  border: 1px solid var(--hair-gold);
  padding: 34px 32px;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.form-box h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--gold-soft);
}

.form-box .muted { margin-top: 6px; }

label { display: block; margin-top: 18px; font-size: 0.86rem; color: var(--gold-soft); font-weight: 600; letter-spacing: 0.02em; }

input, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: #121212;
  border: 1px solid #2C2B27;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

input::placeholder, textarea::placeholder { color: #6E6A64; }

.form-box .btn { margin-top: 24px; }

.flash {
  padding: 13px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  border: 1px solid var(--hair-faint);
}

.flash.error { background: rgba(192, 86, 63, 0.12); color: #E79B86; border-color: rgba(192, 86, 63, 0.4); }
.flash.ok { background: rgba(212, 175, 55, 0.1); color: var(--gold-soft); border-color: rgba(212, 175, 55, 0.35); }

.dev-note {
  margin-top: 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--gold-soft);
}

.dev-note code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; color: var(--blue); }

/* ---------- pay section (premium cards) ---------- */

.form-box.pay { max-width: 560px; }

.pay-section {
  margin-top: 26px;
  padding: 30px 26px 24px;
  border-radius: 28px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  background:
    radial-gradient(3px 3px at 20% 16%, rgba(212, 175, 55, 0.45), transparent 80%),
    radial-gradient(2px 2px at 66% 10%, rgba(212, 175, 55, 0.35), transparent 80%),
    radial-gradient(2px 2px at 84% 74%, rgba(212, 175, 55, 0.3), transparent 80%),
    radial-gradient(2px 2px at 10% 80%, rgba(212, 175, 55, 0.28), transparent 80%),
    linear-gradient(160deg, #15110D 0%, #221A12 100%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pay-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 24px;
}

.pay-divider-line { flex: 1; height: 1px; }
.pay-divider-line:first-child { background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5)); }
.pay-divider-line:last-child { background: linear-gradient(90deg, rgba(212, 175, 55, 0.5), transparent); }

.pay-divider-diamond {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: rgba(212, 175, 55, 0.15);
}

.pay-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 128px;
  padding: 22px 24px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid #2F2C26;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.pay-card:first-of-type { margin-top: 0; }

.pay-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.pay-card.selected {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.015));
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.22), 0 10px 34px rgba(212, 175, 55, 0.12);
}

.pay-card:has(input:focus-visible) { outline: 2px solid rgba(212, 175, 55, 0.55); outline-offset: 2px; }

.pay-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #5A554B;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pay-radio:checked {
  border-color: var(--gold);
  background: radial-gradient(circle, #E8C877 0 40%, transparent 46%);
}

.pay-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #9A9286;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.pay-card.selected .pay-icon {
  background: linear-gradient(160deg, #E8C877, var(--gold));
  color: #221A12;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.pay-text { display: flex; flex-direction: column; gap: 6px; }

.pay-name { font-size: 1.08rem; font-weight: 600; color: #fff; letter-spacing: -0.01em; }

.pay-desc { margin: 0; color: #B8B8B8; font-size: 0.9rem; line-height: 1.5; }

.pay-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  color: #B8B8B8;
  font-size: 0.86rem;
}

.pay-trust svg { color: var(--gold); flex-shrink: 0; }

.transfer-box {
  margin-top: 14px; padding: 16px; border-radius: 10px;
  border: 1px solid rgba(143, 168, 201, 0.35); background: rgba(143, 168, 201, 0.06);
}
.transfer-box p { margin: 4px 0; color: var(--text); }
.mono { font-family: var(--serif); letter-spacing: 0.5px; color: var(--gold-soft); }

/* ---------- dashboard ---------- */

.dash-head {
  margin: -22px 0 34px;
  text-align: center;
}

.dash-stamp {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-soft);
  transform: rotate(-2deg);
}

.dash-day {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 14vw, 6.4rem);
  line-height: 1.04;
  color: var(--gold);
  margin-top: 14px;
}

.dash-sub { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

.month-strip.dash { margin-top: 20px; }

.book-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.book-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--hair-faint);
  padding: 15px 18px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

a.book-row:hover {
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateX(3px);
}

.book-row .book-title { font-weight: 600; }
.book-row .book-author, .book-row .book-date { color: var(--muted); font-size: 0.85rem; }

.search-form { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.search-form input {
  flex: 1;
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--hair-faint);
  color: var(--ink);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}
.search-form input:focus { outline: none; border-color: rgba(212, 175, 55, 0.5); }

.pager { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pager .muted { margin: 0; }

/* ---------- admin ---------- */

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.admin-head h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-soft); }
.admin-head nav a { margin-left: 8px; }

.admin-lock {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  color: var(--gold);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.18);
}

.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- admin: premium dashboard ---------- */

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

body.page-admin main { max-width: 1120px; }

.admin-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  animation: adminUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-hero-badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 30% 0%, rgba(212, 175, 55, 0.16), transparent 70%),
    var(--panel);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.12);
}

.admin-hero-text .admin-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
}

.admin-hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 700;
  color: var(--gold-soft);
  line-height: 1.2;
  margin: 4px 0 6px;
}

.admin-subtitle { color: var(--muted); font-size: 0.95rem; max-width: 560px; }

/* quick actions */

.admin-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(212, 175, 55, 0.07), transparent 55%),
    var(--panel);
  border: 1px solid var(--hair-faint);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  animation: adminUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.action-card:nth-child(2) { animation-delay: 0.06s; }
.action-card:nth-child(3) { animation-delay: 0.12s; }

.action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.action-card:hover .action-arrow { transform: translateX(4px); color: var(--gold-soft); }

.action-card:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.action-ico {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.07);
}

.action-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.action-body strong { font-size: 0.98rem; font-weight: 600; color: var(--text); }
.action-body small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }

.action-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* stats */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  position: relative;
  padding: 20px;
  background:
    radial-gradient(130% 130% at 100% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
    var(--panel);
  border: 1px solid var(--hair-faint);
  border-radius: 14px;
  overflow: hidden;
  animation: adminUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }

.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.stat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.06);
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label { margin-top: 8px; color: var(--muted); font-size: 0.85rem; }

/* subscribers panel */

.admin-panel {
  background:
    radial-gradient(140% 90% at 50% 0%, rgba(212, 175, 55, 0.05), transparent 60%),
    var(--panel);
  border: 1px solid var(--hair-faint);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: adminUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--hair-faint);
}

.panel-title-row { display: flex; align-items: center; gap: 14px; }

.panel-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 11px;
  background: rgba(212, 175, 55, 0.06);
}

.panel-title-row h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--gold-soft);
  line-height: 1.15;
}

.panel-sub { color: var(--muted); font-size: 0.84rem; }

.panel-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  width: 240px;
  margin: 0;
  padding: 9px 12px 9px 34px;
  background: #12110F;
  border-color: #2C2B27;
  border-radius: 9px;
  font-size: 0.88rem;
}

.admin-select {
  padding: 9px 12px;
  background: #12110F;
  border: 1px solid #2C2B27;
  border-radius: 9px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.admin-select:focus,
.search-wrap input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* admin table */

body.page-admin .table-wrap { overflow-x: visible; }

.admin-panel table {
  width: 100%;
  border: none;
  background: transparent;
}

.admin-panel th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 1px solid var(--hair-faint);
}

.admin-panel td {
  padding: 13px 16px;
  font-size: 0.88rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--hair-faint);
}

.admin-panel tbody tr { transition: background 0.25s ease; }
.admin-panel tbody tr:hover { background: rgba(212, 175, 55, 0.035); }
.admin-panel tbody tr:last-child td { border-bottom: none; }

.th-actions { text-align: right; }
.admin-panel td:last-child { text-align: right; }

.cell-user { display: flex; align-items: center; gap: 12px; }

.avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-soft);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(212, 175, 55, 0.28), transparent 65%),
    #1A1915;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.06);
}

.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-name { font-weight: 600; color: var(--text); white-space: nowrap; }
.user-email { font-size: 0.78rem; color: var(--muted); word-break: break-all; }

/* badges: estado */

.badge { white-space: nowrap; }

.badge.st-authorized {
  background: rgba(127, 191, 143, 0.1);
  color: #8FD4A1;
  border-color: rgba(127, 191, 143, 0.4);
}
.badge.st-pending {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.4);
}
.badge.st-cancelled {
  background: rgba(138, 135, 128, 0.1);
  color: #B8B3AC;
  border-color: rgba(138, 135, 128, 0.4);
}
.badge.st-paused {
  background: rgba(169, 154, 200, 0.1);
  color: #B9AEE0;
  border-color: rgba(169, 154, 200, 0.4);
}
.badge.st-finished {
  background: rgba(192, 86, 63, 0.12);
  color: #E79B86;
  border-color: rgba(192, 86, 63, 0.4);
}

/* badges: plan */

.badge.plan-premium {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.4);
}
.badge.plan-basico {
  background: rgba(143, 168, 201, 0.1);
  color: #AAC3DE;
  border-color: rgba(143, 168, 201, 0.4);
}
.badge.plan-lite {
  background: rgba(138, 135, 128, 0.1);
  color: #B8B3AC;
  border-color: rgba(138, 135, 128, 0.4);
}
.badge.plan-plus {
  background: rgba(169, 154, 200, 0.1);
  color: #B9AEE0;
  border-color: rgba(169, 154, 200, 0.4);
}

.badge.pay-mp {
  background: rgba(212, 175, 55, 0.06);
  color: var(--muted);
  border-color: rgba(212, 175, 55, 0.22);
}
.badge.pay-manual {
  background: rgba(143, 168, 201, 0.07);
  color: #9FB4CE;
  border-color: rgba(143, 168, 201, 0.28);
}

.badge.days-ok {
  background: rgba(127, 191, 143, 0.1);
  color: #8FD4A1;
  border-color: rgba(127, 191, 143, 0.38);
}
.badge.days-warn {
  background: rgba(192, 86, 63, 0.14);
  color: #E79B86;
  border-color: rgba(192, 86, 63, 0.42);
  font-weight: 600;
}

/* inline plan switcher */

.admin-panel .inline-form { display: inline-block; margin-left: 6px; vertical-align: middle; }
.admin-panel .inline-form select {
  padding: 3px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.admin-panel .inline-form select:hover { border-color: rgba(212, 175, 55, 0.35); color: var(--text); }
.admin-panel .inline-form select:focus { outline: none; border-color: var(--gold); color: var(--text); }

.lib-count { font-variant-numeric: tabular-nums; }
.lib-count strong { color: var(--text); }
.lib-sep { color: var(--muted); font-size: 0.8rem; }

.cell-muted { color: var(--muted); font-size: 0.85rem; }

.cell-actions { display: inline-flex; gap: 8px; justify-content: flex-end; }
.admin-panel .inline-action { display: inline-block; }

.btn-activate,
.btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-activate {
  background: rgba(127, 191, 143, 0.12);
  color: #8FD4A1;
  border-color: rgba(127, 191, 143, 0.35);
}
.btn-activate:hover {
  transform: translateY(-1px);
  background: rgba(127, 191, 143, 0.2);
  border-color: rgba(127, 191, 143, 0.55);
}

.btn-cancel {
  background: rgba(192, 86, 63, 0.1);
  color: #E79B86;
  border-color: rgba(192, 86, 63, 0.32);
}
.btn-cancel:hover {
  transform: translateY(-1px);
  background: rgba(192, 86, 63, 0.18);
  border-color: rgba(192, 86, 63, 0.55);
}

.btn-activate:focus-visible,
.btn-cancel:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.panel-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes adminUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-hero,
  .action-card,
  .stat-card,
  .admin-panel {
    animation: none;
  }
  .action-card,
  .action-card:hover,
  .action-arrow,
  .action-card:hover .action-arrow,
  .btn-activate,
  .btn-activate:hover,
  .btn-cancel,
  .btn-cancel:hover,
  .admin-panel tbody tr {
    transform: none;
    transition: none;
  }
}

/* responsive: tabla → tarjetas */

@media (max-width: 900px) {
  .admin-actions { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body.page-admin .table-wrap { overflow-x: visible; }

  .admin-panel thead { display: none; }

  .admin-panel tbody { display: block; }
  .admin-panel tbody tr {
    display: block;
    padding: 14px 16px;
    margin: 0 12px;
    border-bottom: 1px solid var(--hair-faint);
  }
  .admin-panel tbody tr:last-child { border-bottom: none; }
  .admin-panel tbody tr:hover { background: transparent; }

  .admin-panel tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    border: none;
    text-align: left;
  }
  .admin-panel td:last-child { text-align: left; }
  .admin-panel tbody td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .admin-panel tbody td:first-child { padding-top: 2px; }
  .admin-panel tbody td:last-child { padding-bottom: 2px; }
  .admin-panel tbody td:first-child::before { display: none; }

  .cell-user { justify-content: space-between; }
  .cell-actions { justify-content: flex-start; }
  .th-actions { text-align: left; }
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--hair-faint);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--hair-faint); font-size: 0.9rem; }
th { background: var(--panel-2); color: var(--gold-soft); font-weight: 600; letter-spacing: 0.02em; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.3s ease; }
tbody tr:hover { background: #1B1A17; }

.badge { padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; border: 1px solid transparent; }
.badge.authorized { background: rgba(143, 168, 201, 0.12); color: #AAC3DE; border-color: rgba(143, 168, 201, 0.4); }
.badge.pending { background: rgba(212, 175, 55, 0.1); color: var(--gold-soft); border-color: rgba(212, 175, 55, 0.35); }
.badge.cancelled, .badge.paused { background: rgba(192, 86, 63, 0.12); color: #E79B86; border-color: rgba(192, 86, 63, 0.4); }
.badge.manual { background: rgba(143, 168, 201, 0.08); color: #9FB4CE; border-color: rgba(143, 168, 201, 0.3); }
.badge.days-ok { background: rgba(143, 168, 201, 0.1); color: #AAC3DE; border-color: rgba(143, 168, 201, 0.35); }
.badge.days-warn { background: rgba(192, 86, 63, 0.14); color: #E79B86; border-color: rgba(192, 86, 63, 0.4); font-weight: 600; }

.inline-form select {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--hair-faint);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}
.inline-form select:focus { outline: none; border-color: rgba(212, 175, 55, 0.5); }

/* ---------- generic ---------- */

h2, h3 { margin: 30px 0 12px; color: var(--gold-soft); }
h2 { font-family: var(--serif); font-size: 1.6rem; }
h3 { font-family: var(--serif); font-size: 1.12rem; }

.muted { color: var(--muted); font-size: 0.9rem; }
.muted.center { text-align: center; margin-top: 18px; }

/* ---------- footer ---------- */

.footer {
  margin-top: 90px;
  padding: 64px 28px 34px;
  border-top: 1px solid var(--hair-gold);
  background: linear-gradient(180deg, #0B0A09, #090909);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.f-col { display: flex; flex-direction: column; gap: 11px; }

.f-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.f-logo .brand-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.f-tag { color: var(--muted); font-size: 0.9rem; line-height: 1.7; margin-top: 4px; }

.f-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.f-col a { color: var(--muted); font-size: 0.92rem; transition: color 0.3s ease; }
.f-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  max-width: 1100px;
  margin: 52px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #7d7a74;
  font-size: 0.8rem;
}

.footer-lines { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4)); }
.footer-lines:last-child { background: linear-gradient(90deg, rgba(212, 175, 55, 0.4), transparent); }

/* ---------- motion ---------- */

.reveal-slow {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-slow.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .day-leaf-inner { animation: none; }
  .reveal-slow { opacity: 1; transform: none; transition: none; }
  .lib-track { animation: none; width: auto; }
  .lib-carousel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .lib-copy:nth-child(2) { display: none; }
  .lib-copy { flex-wrap: wrap; justify-content: center; padding-right: 0; gap: 18px; }
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; }
  .topbar nav a { margin-left: 14px; font-size: 0.84rem; }
  .music-toggle { margin-left: 14px; padding: 6px 10px; }
  .music-toggle .music-label { display: none; }
  .topbar .brand { font-size: 0.98rem; }
  .day-leaf { padding: 118px 8vw 56px; margin: -108px -20px 0; }
  .month-strip { grid-template-columns: repeat(6, 1fr); }
  .entry { gap: 14px; }
  .entry-mark { flex: 0 0 62px; }
  .admin-head nav { width: 100%; }
  .admin-head nav a { margin-left: 0; margin-right: 8px; }
  .pay-section { padding: 24px 18px 20px; border-radius: 22px; }
  .pay-card { gap: 14px; padding: 18px 16px; min-height: 118px; }
  .pay-icon { width: 48px; height: 48px; border-radius: 13px; }
  .pay-icon svg { width: 22px; height: 22px; }
  .pay-title { font-size: 1.3rem; }
  .lib-sec { margin-top: 52px; padding: 0 12px; }
  .lib-title { font-size: 1.5rem; }
  .lib-copy { gap: 16px; padding-right: 16px; }
  .lib-cover { width: 140px; height: 200px; padding: 18px 13px 14px; }
  .cover-title { font-size: 0.9rem; }
}

/* ---------- landing premium ---------- */

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 40px 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 620px at 72% -8%, rgba(212, 175, 55, 0.12), transparent 60%),
    radial-gradient(820px 520px at 12% 12%, rgba(122, 92, 42, 0.10), transparent 62%),
    radial-gradient(700px 700px at 50% 110%, rgba(212, 175, 55, 0.05), transparent 60%),
    linear-gradient(180deg, #0D0C0A 0%, #090909 58%, #0A0806 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 255, 255, 0.012) 118px 120px);
}

.ray {
  position: absolute;
  top: -12%;
  height: 135%;
  width: 42%;
  pointer-events: none;
  filter: blur(26px);
  opacity: 0.55;
}

.ray.r1 {
  left: 26%;
  transform: rotate(9deg);
  background: linear-gradient(90deg, transparent, rgba(255, 240, 205, 0.045) 45%, rgba(255, 244, 214, 0.075) 50%, transparent 60%);
}

.ray.r2 {
  left: 52%;
  transform: rotate(-7deg);
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.04) 40%, rgba(255, 240, 205, 0.055) 50%, transparent 62%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.58) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero-left { display: flex; flex-direction: column; align-items: flex-start; }

.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.7rem, 4.6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 20px 0 22px;
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
  max-width: 34ch;
  margin-bottom: 32px;
}

.btn-gold { position: relative; overflow: hidden; }

.btn-big {
  padding: 20px 44px;
  font-size: 1.08rem;
  border-radius: 14px;
  letter-spacing: 0.01em;
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -160%;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: shine 3.4s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -160%; }
  55%, 100% { left: 160%; }
}

.hero-social { display: flex; align-items: center; gap: 14px; margin-top: 26px; }

.stars { color: var(--gold); letter-spacing: 0.14em; font-size: 0.95rem; }

.hero-meta { color: var(--muted); font-size: 0.9rem; }

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 20px;
}

.hero-book-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.30), rgba(212, 175, 55, 0.07) 46%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-book { perspective: 1400px; }

.hero-book-motion {
  position: relative;
  width: 272px;
  height: 398px;
  transform: rotateY(-24deg) rotateX(4deg);
  transform-style: preserve-3d;
  animation: book-float 7s ease-in-out infinite;
}

@keyframes book-float {
  0%, 100% { transform: rotateY(-24deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-24deg) rotateX(4deg) translateY(-16px); }
}

.book-pages {
  position: absolute;
  top: 12px;
  left: -30px;
  right: 14px;
  bottom: -15px;
  border-radius: 4px 14px 14px 4px;
  background: linear-gradient(105deg, #F3ECD8, #E0D6BB);
  box-shadow: 0 46px 90px rgba(0, 0, 0, 0.7);
}

.book-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 26px 28px;
  border-radius: 4px 14px 14px 4px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: linear-gradient(155deg, #34200E 0%, #1B1006 55%, #241607 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 60px rgba(212, 175, 55, 0.06),
    0 34px 70px rgba(0, 0, 0, 0.6);
}

.book-inner-frame {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 2px;
  pointer-events: none;
}

.book-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
}

.book-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1.18;
  color: #fff;
  margin-top: 26px;
}

.book-author {
  margin-top: auto;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-pedestal {
  width: 440px;
  height: 30px;
  margin: 30px auto 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.06) 55%, transparent 72%);
  box-shadow: 0 0 70px rgba(212, 175, 55, 0.30);
}

.hero-plaque {
  padding: 12px 28px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 7px;
  background: linear-gradient(180deg, #221808, #151002);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.day-panel {
  width: 210px;
  padding: 30px 26px;
  border-radius: 24px;
  text-align: center;
  background: rgba(19, 19, 19, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  justify-self: end;
}

.dp-kicker {
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
}

.dp-num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 4.8rem;
  line-height: 1;
  margin: 16px 0;
  color: #fff;
}

.dp-sub { color: var(--muted); font-size: 0.84rem; line-height: 1.55; }

.dp-line {
  display: block;
  width: 42px;
  height: 1px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent);
}

.hero-fade {
  opacity: 0;
  animation: hero-fade 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.d0 { animation-delay: 0.05s; }
.d1 { animation-delay: 0.22s; }
.d2 { animation-delay: 0.42s; }
.d3 { animation-delay: 0.62s; }
.d4 { animation-delay: 0.82s; }

@keyframes hero-fade {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- sections ---------- */

.section { position: relative; padding: 100px 26px 20px; }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.sec-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  color: #fff;
  margin-top: 14px;
}

.sec-sub { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }

.steps-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  padding: 38px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, #171717, #131313);
  border: 1px solid rgba(212, 175, 55, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.step-card:nth-child(2) { transition-delay: 0.05s; }
.step-card:nth-child(3) { transition-delay: 0.1s; }

.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 42px rgba(212, 175, 55, 0.10);
}

.step-num {
  font-family: var(--display);
  font-style: italic;
  color: rgba(212, 175, 55, 0.75);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.step-icon {
  width: 58px;
  height: 58px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.step-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  margin-top: 24px;
}

.step-text { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-top: 10px; }

/* ---------- benefits ---------- */

.benefits-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-card {
  padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, #171717, #131313);
  border: 1px solid rgba(212, 175, 55, 0.18);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.08);
}

.benefit-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.benefit-title { font-weight: 600; color: #fff; font-size: 1.02rem; margin-top: 18px; }
.benefit-text { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-top: 8px; }

/* ---------- testimonials ---------- */

.testi-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.testi-card {
  padding: 40px 38px;
  border-radius: 26px;
  background: linear-gradient(180deg, #171717, #141414);
  border: 1px solid rgba(212, 175, 55, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.5), 0 0 34px rgba(212, 175, 55, 0.09);
}

.testi-head { display: flex; align-items: center; gap: 18px; }

.testi-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
  background: linear-gradient(150deg, #2A1B0E, #1A1208);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.testi-stars { color: var(--gold); letter-spacing: 0.12em; font-size: 0.9rem; }
.testi-name { color: #fff; font-weight: 600; font-size: 1rem; margin-top: 6px; }
.testi-country { color: var(--muted); font-size: 0.82rem; }

.testi-text {
  color: #E8E4DC;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-top: 24px;
  font-style: italic;
}

/* ---------- plan ---------- */

.plan {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 66px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  border-radius: 32px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(150deg, #181407 0%, #131313 62%, #141210 100%);
  box-shadow: 0 44px 96px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.plan-glow {
  position: absolute;
  top: -190px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 340px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.22), transparent 70%);
  pointer-events: none;
}

.plan-left { position: relative; }

.plan-price {
  font-family: var(--display);
  color: #fff;
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1;
  margin-top: 18px;
}

.plan-price span { font-size: 0.42em; color: var(--muted); }

.plan-note { color: var(--muted); margin-top: 16px; line-height: 1.7; }

.plan-right { position: relative; display: flex; flex-direction: column; }

.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 15px; }

.plan-feats li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #E8E4DC;
  font-size: 1.02rem;
}

.plan-feats svg { color: var(--gold); flex-shrink: 0; }

.plan-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.plan-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.plan-secure svg { color: var(--gold); }

/* ---------- landing responsive ---------- */

@media (max-width: 980px) {
  .hero { padding: 132px 24px 70px; min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero-left { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-social { justify-content: center; }
  .day-panel { justify-self: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; padding: 48px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-book-motion { transform: rotateY(-18deg) scale(0.82); animation-name: book-float-sm; }
  @keyframes book-float-sm {
    0%, 100% { transform: rotateY(-18deg) scale(0.82) translateY(0); }
    50% { transform: rotateY(-18deg) scale(0.82) translateY(-12px); }
  }
  .hero-book-glow { width: 360px; height: 360px; }
  .hero-pedestal { width: 300px; }
  .hero-plaque { padding: 10px 18px; letter-spacing: 0.24em; }
  .hero-big-btn { padding: 18px 34px; font-size: 1rem; }
  .section { padding: 78px 18px 12px; }
  .plan { border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-lines { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade { opacity: 1; animation: none; }
  .hero-book-motion { animation: none; }
  .btn-gold::after { animation: none; }
}

/* ==========================================================================
   PLANES / PRECIOS  ·  página premium (body.page-plans)
   Misma identidad que la home: negro · dorado · marfil · Cinzel/Cormorant
   ========================================================================== */

body.page-plans {
  --gold: #D4AF37;
  --gold-soft: #E9CE7F;
  --gold-deep: #B08E2E;
  --ink: #F2EEE6;
  --muted-slate: #A8A29A;
  --hair-white: rgba(212, 175, 55, 0.28);

  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
}

body.page-plans main {
  max-width: 1200px;
  padding: 132px 24px 70px;
}

/* --- fondo: resplandor dorado + grilla de puntos sutil --- */

.pricing {
  position: relative;
  z-index: 1;
}

.pricing-aurora {
  position: absolute;
  inset: -10% -8% auto -8%;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(640px 460px at 14% 4%, rgba(212, 175, 55, 0.14), transparent 70%),
    radial-gradient(720px 500px at 86% 10%, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(560px 400px at 50% 118%, rgba(212, 175, 55, 0.06), transparent 70%);
  filter: blur(2px);
}

.pricing-gridlines {
  position: absolute;
  inset: -10% -8% auto -8%;
  height: 460px;
  z-index: -1;
  background-image: radial-gradient(rgba(212, 175, 55, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 900px 420px at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 900px 420px at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

/* --- encabezado --- */

.pricing-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.pricing-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
}

.pricing-title {
  margin: 18px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
}

.pricing-title em { font-style: italic; color: var(--gold); }

.pricing-sub {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* --- grilla --- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, #171717, #131313);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 0 42px rgba(212, 175, 55, 0.10);
}

.plan-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.45rem;
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.plan-name {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.plan-desc {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 22px 0 0;
}

.plan-price b {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-daily {
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
}

.plan-feats {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #E8E4DC;
  font-size: 0.92rem;
  line-height: 1.5;
}

.plan-check {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-divider {
  height: 1px;
  margin: 24px 0 20px;
  background: rgba(212, 175, 55, 0.22);
}

.plan-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0B0B0B;
  background: linear-gradient(135deg, #E9CE7F 0%, var(--gold) 55%, #C19A2E 100%);
  border: none;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.plan-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.plan-btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* --- tarjeta Premium destacada --- */

.plan-card.premium {
  scale: 1.05;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #221A12, #15100C) padding-box,
    linear-gradient(150deg, #E9CE7F 0%, #D4AF37 45%, #B08E2E 75%, #E9CE7F 110%) border-box;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(212, 175, 55, 0.18);
}

.plan-card.premium:hover {
  box-shadow:
    0 40px 84px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(212, 175, 55, 0.28);
}

.plan-card.premium .plan-name { font-size: 1.34rem; }
.plan-card.premium .plan-price b { font-size: 2.4rem; }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0B0B0B;
  background: linear-gradient(135deg, #E9CE7F, var(--gold));
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45);
}

.plan-btn.premium-btn {
  padding: 15px 18px;
  font-size: 1rem;
  background: linear-gradient(135deg, #E9CE7F 0%, var(--gold) 55%, #C19A2E 100%);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
}

.plan-btn.premium-btn:hover {
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.55);
}

/* --- confianza --- */

.pricing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 56px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-trust svg { color: var(--gold); flex-shrink: 0; }

/* --- compra individual (alternativa, no un plan) --- */

.single-buy {
  position: relative;
  max-width: 1080px;
  margin: 64px auto 0;
  border-radius: 24px;
  background:
    radial-gradient(520px 300px at 88% -20%, rgba(212, 175, 55, 0.10), transparent 70%),
    radial-gradient(420px 260px at 0% 120%, rgba(212, 175, 55, 0.06), transparent 70%),
    linear-gradient(180deg, #1B1710, #141210);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.single-buy-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 17px;
  pointer-events: none;
}

.single-buy-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 44px 48px;
}

.single-buy-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.single-buy-copy { min-width: 0; }

.single-buy-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: #fff;
}

.single-buy-desc {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 52ch;
}

.single-buy-feats {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.single-buy-feats li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #E8E4DC;
  font-size: 0.94rem;
  line-height: 1.5;
}

.single-buy-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}

.single-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.single-buy-btn svg { transition: transform 0.25s ease; }

.single-buy-btn:hover {
  transform: translateY(-2px);
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.22);
}

.single-buy-btn:hover svg { transform: translate(2px, -2px); }

.single-buy-btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.single-buy-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 24ch;
}

/* --- FAQ --- */

.faq {
  max-width: 760px;
  margin: 96px auto 20px;
}

.faq-head { text-align: center; margin-bottom: 40px; }

.faq-title {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}

.faq-list { display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  border-radius: 16px;
  background: linear-gradient(180deg, #171717, #131313);
  border: 1px solid rgba(212, 175, 55, 0.22);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(180deg, #1B1710, #141210);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-soft);
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.32);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-a { padding: 0 22px; }

.faq-a p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-item[open] .faq-a { animation: faq-in 0.32s ease; }

/* --- responsive planes --- */

@media (max-width: 1080px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.premium { scale: 1; }
  .single-buy-inner { grid-template-columns: auto 1fr; gap: 26px; }
  .single-buy-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .single-buy-note { max-width: none; }
}

@media (max-width: 620px) {
  body.page-plans main { padding: 116px 18px 50px; }
  .pricing-head { margin-bottom: 46px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan-card.premium { scale: 1; }
  .pricing-trust { text-align: center; line-height: 1.6; }
  .faq { margin-top: 72px; }
  .single-buy { margin-top: 48px; border-radius: 20px; }
  .single-buy-inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 22px; }
  .single-buy-icon { width: 60px; height: 60px; border-radius: 18px; }
  .single-buy-icon svg { width: 26px; height: 26px; }
  .single-buy-feats { grid-template-columns: 1fr; gap: 10px; }
  .single-buy-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .single-buy-btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-plans .plan-card,
  body.page-plans .plan-card.premium { transform: none; scale: 1; }
  .plan-card, .plan-card:hover, .plan-card.premium:hover { transform: none; }
  .faq-item[open] .faq-a { animation: none; }
}
