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

:root {
  --bg-primary: #0f0f1e;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-primary: #f5f5f5;
  --text-secondary: #b8b8c8;
  --text-tertiary: #8888a0;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.2);
  --accent-light: rgba(99, 102, 241, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.05);
  --success: #10b981;
  --vh: 1vh;
  --header-height: 70px;
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === THEMES =================================================== */

/* Оригинальная тема (по сути то, что уже есть) */
html[data-theme="original"] body {
  background: linear-gradient(135deg, #0f0f1e 0%, #1a0f2e 50%, #1a2e3e 100%);
  color: var(--text-primary);
}

html[data-theme="dark"] {
  --bg-primary: #0b0d10;
  --bg-secondary: #121417;
  --bg-tertiary: #181b20;
  --bg-glass: rgba(18, 20, 23, 0.78);

  --text-primary: #f5f7fa;
  --text-secondary: #c5c8d0;
  --text-tertiary: #8e92a0;

  --accent: #e5e7eb;            /* ❗ Кнопки теперь светло-серые, НЕ фиолетовые */
  --accent-hover: #d4d7dd;
  --accent-text: #0b0d10;

  --accent-glow: rgba(139, 92, 246, 0.22); /* фиолетовый glow, мягкий */
  --accent-subtle: rgba(139, 92, 246, 0.06);

  --border: rgba(255, 255, 255, 0.10);
  --border-light: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.09) 0%, transparent 40%),
    linear-gradient(135deg, #0b0d10 0%, #121417 100%);
  color: var(--text-primary);
}
html[data-theme="dark"] header {
  background: rgba(18, 20, 23, 0.78);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border-light);
}

html[data-theme="dark"] footer {
  background: rgba(18, 20, 23, 0.78);
  border-top-color: var(--border-light);
}
html[data-theme="dark"] #sendBtn,
html[data-theme="dark"] .send-btn,
html[data-theme="dark"] .welcome-send-btn {
  background: var(--accent) !important;
  color: var(--accent-text) !important;
  box-shadow: 0 0 14px var(--accent-subtle);
}

html[data-theme="dark"] #sendBtn:hover,
html[data-theme="dark"] .send-btn:hover {
  background: var(--accent-hover) !important;
}

html[data-theme="dark"] #sendBtn svg,
html[data-theme="dark"] .send-btn svg {
  fill: var(--accent-text) !important;
}
html[data-theme="dark"] .message.user > div {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  color: #f5f7fa !important;
}
html[data-theme="dark"] .message.assistant > div {
  background: #121417 !important;
  border: 1px solid rgba(255,255,255,0.05);
}
html[data-theme="dark"] .input-area textarea {
  background: #121417 !important;
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-primary);
}


/* ✨ Мягкий светлый Stillvoice */
html[data-theme="light"] {
  --bg-primary: #f9fafb;          /* общий фон */
  --bg-secondary: #ffffff;        /* карточки / чат */
  --bg-tertiary: #eef2ff;         /* лёгкий фиолетовый оттенок */
  --bg-glass: rgba(255, 255, 255, 0.92);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;

  --accent: #1f2937;           /* глубокий тёмно-серый */
  --accent-light: rgba(31, 41, 55, 0.08);
  --accent-glow: rgba(31, 41, 55, 0.15);

  --border: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.04);
}
html[data-theme="light"] .menu-subscription {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
html[data-theme="light"] .menu-subscription-btn {
  background: #1f2937 !important;
  color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at top, #eef2ff 0%, #f9fafb 45%, #ffffff 100%);
}
html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] footer {
  background: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .welcome-input-wrapper textarea,
html[data-theme="light"] .input-area textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111827;
}

html[data-theme="light"] .welcome-send-btn,
html[data-theme="light"] .send-btn {
  background: #1f2937 !important;     /* тёмная кнопка */
  color: #ffffff !important;
}

html[data-theme="light"] .welcome-send-btn svg,
html[data-theme="light"] .send-btn svg {
  fill: #ffffff !important;
}
html[data-theme="light"] .bible-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #1f2937 !important;
}

html[data-theme="light"] .bible-btn:hover {
  background: #f3f4f6 !important;
}
html[data-theme="light"] .input-area {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .input-area textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #111827 !important;
}

html[data-theme="light"] #sendBtn {
  background: #1f2937 !important;
}

html[data-theme="light"] #sendBtn svg {
  fill: #ffffff !important;
}
/* сбрасываем фон контейнера сообщения в светлой теме */
html[data-theme="light"] .message.user {
  background: transparent !important;
  box-shadow: none !important;
}

/* сама капсула юзера */
html[data-theme="light"] .message.user > div {
  background: #1f2937 !important;          /* тёмная капсула */
  color: #ffffff !important;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18) !important;
  border: none !important;
}
/* ТЁМНАЯ ТЕМА – карточки и фон plans */
html[data-theme="dark"] .subscription-page {
  background: transparent; /* фон уже задаёт body */
}

html[data-theme="dark"] .pricing-card {
  background: var(--bg-glass);
  border-color: var(--border);
}
/* …у тебя уже есть: */
html[data-theme="dark"] .message.assistant > div {
  background: #121417 !important;
  border: 1px solid rgba(255,255,255,0.05);
  /* 👇 новая строка — именно она рисует белую полоску слева */
  border-left: 3px solid #ffffff;
}

    сохрани -<br>
html[data-theme="dark"] .pricing-card-featured {
  background: radial-gradient(circle at top,
    rgba(139, 92, 246, 0.10) 0%, rgba(18, 20, 23, 0.98) 55%);
}

/* СВЕТЛАЯ ТЕМА – более воздушные карточки */
html[data-theme="light"] .subscription-page {
  background: transparent;
}

html[data-theme="light"] .pricing-card {
  background: var(--bg-secondary);
  border-color: var(--border);
}

html[data-theme="light"] .pricing-card-featured {
  background: linear-gradient(
    135deg,
    rgba(238, 242, 255, 0.9) 0%,
    rgba(249, 250, 251, 1) 60%
  );
}

html {
  height: 100%;
  height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  height: 100%;
  min-height: calc(100 * var(--vh));
  min-height: -webkit-fill-available;
  background: linear-gradient(135deg, #0f0f1e 0%, #1a0f2e 50%, #1a2e3e 100%);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: manipulation;
  position: relative;
  width: 100%;
}

/* header */
header {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition-base);
}

header.scrolled {
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.logo:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.logo:active {
  transform: scale(0.95);
}

.logo-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-right: 2.7rem; /* место под гамбургер справа */
}


/* Scripture button */
.bible-btn {
  background: var(--accent-light);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-base);
  font-family: "Outfit", sans-serif;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.bible-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bible-btn:active::before {
  width: 300px;
  height: 300px;
}

.bible-btn:active {
  transform: scale(0.98);
}

@media (hover: hover) {
  .bible-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
  }
}

/* hamburger button – pinned to the right edge of header */
.menu-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

/* hamburger icon */
.menu-icon {
  width: 22px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon-line {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: var(--transition-base);
}

/* optional text label "Menu" */
.menu-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .menu-label {
    display: none;
  }
}

@media (hover: hover) {
  .menu-btn:hover .menu-icon-line {
    background: #8b5cf6;
  }
}

main {
  position: relative;
  margin-top: var(--header-height);
  left: 0;
  right: 0;
  min-height: calc(100 * var(--vh) - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  z-index: 1;
}

/* welcome */
#welcome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 1rem;
  pointer-events: auto;
}

#welcome.hidden {
  opacity: 0;
  transform: translateY(-30px) scale(0.95);
  pointer-events: none;
}

.welcome-decoration {
  position: absolute;
  width: 400px;
  height: 400px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: float 30s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) translateY(-50px) rotate(5deg);
  }
  50% {
    transform: translateX(-50%) translateY(-80px) rotate(0);
  }
  75% {
    transform: translateX(-50%) translateY(-50px) rotate(-5deg);
  }
}

.title {
  font-family: "Crimson Text", serif;
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.1;
  position: relative;
  z-index: 5;
  max-width: 900px;
  letter-spacing: -0.02em;
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-accent {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

.subtitle {
  font-family: "Crimson Text", serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.8;
  font-style: italic;
  position: relative;
  z-index: 5;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.welcome-input-wrapper {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  position: relative;
  z-index: 5;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

#welcomeInput {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  resize: none;
  outline: none;
  box-sizing: border-box;
  min-height: 48px;
  max-height: 120px;
  transition: var(--transition-base);
}

#welcomeInput::placeholder {
  color: var(--text-tertiary);
}

#welcomeInput:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 20px var(--accent-glow);
}

.welcome-send-btn {
  padding: 0.75rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  min-width: 48px;
  min-height: 48px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.welcome-send-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.welcome-send-btn:active:not(:disabled)::before {
  opacity: 1;
}

.welcome-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.welcome-send-btn:active:not(:disabled) {
  transform: scale(0.93);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

@media (hover: hover) {
  .welcome-send-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
  }
}

/* chat */
.chat {
  position: absolute;
  inset: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 900px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  pointer-events: none;
  z-index: 20;
  transition: var(--transition-slow);
}

.chat.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.messages::-webkit-scrollbar {
  width: 6px;
}

.messages::-webkit-scrollbar-track {
  background: transparent;
}

.messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.message {
  line-height: 1.6;
  font-size: 0.9rem;
  animation: fadeInMessage 0.4s ease-out;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

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

.message.user {
  justify-content: flex-end;
}

.message.user > div {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: var(--transition-base);
}

.message.user > div:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.message.assistant {
  justify-content: flex-start;
}

.message.assistant > div {
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  max-width: 80%;
  border-left: 3px solid var(--accent);
  transition: var(--transition-base);
}

.message.assistant > div:hover {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #ec4899;
}

.input-area {
  border-top: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
  transition: var(--transition-base);
}

.input-area:focus-within {
  border-top-color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
}

textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  resize: none;
  outline: none;
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  max-height: 150px;
  min-height: 44px;
  height: 44px;
  overflow-y: hidden;
  transition: var(--transition-base);
  box-sizing: border-box;
  caret-color: var(--accent);
  -webkit-appearance: none;
}

textarea::-webkit-scrollbar {
  width: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

textarea::placeholder {
  color: var(--text-tertiary);
}

textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.send-btn {
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: 12px;
  flex-shrink: 0;
  min-height: 44px;
  letter-spacing: 0.05em;
  font-family: "Outfit", sans-serif;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
}

.send-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.send-btn:active:not(:disabled)::after {
  transform: scaleX(1);
  transform-origin: left;
}

.send-btn:active:not(:disabled) {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

@media (hover: hover) {
  .send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
  }
}

.send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Bible panel — плавающая и масштабируемая --------------------------- */
.bible-panel {
  position: fixed;                         /* остаётся fixed, но не на весь экран */
  top: var(--header-height);
  right: 2rem;
  left: auto;                              /* важно: убираем левую привязку */
  width: 400px;
  height: 60vh;                            /* можно менять */
  background: var(--bg-secondary);
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  resize: both;                            /* тянем за угол */
  overflow: auto;                          /* скролл, если текст длинный */
  z-index: 200;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: var(--transition-base);
}

.bible-panel.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.bible-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  cursor: move;                           /* тащим за шапку */
}


.bible-panel-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.bible-close {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
  transition: var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  padding: 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bible-close:active {
  color: var(--text-primary);
  transform: scale(0.9);
}

@media (hover: hover) {
  .bible-close:hover {
    color: var(--text-primary);
  }
}

.bible-selects {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bible-selects select {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  transition: var(--transition-base);
  min-height: 44px;
}

.bible-selects select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.bible-text {
  font-family: "Crimson Text", serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bible-text::-webkit-scrollbar {
  width: 4px;
}

.bible-text::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.bible-text p {
  margin: 0 0 0.8rem;
}

.bible-ref {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  z-index: 10;
  letter-spacing: 0.1em;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transition: var(--transition-base);
}

/* auth modal */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-overlay.open {
  display: flex;
  opacity: 1;
}

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-glass);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  animation: slideUp 0.4s ease-out;
  transform: translateY(0);
}

.auth-overlay:not(.open) .auth-modal {
  animation: slideDown 0.4s ease-out forwards;
}

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

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

.auth-title {
  font-family: "Crimson Text", serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.auth-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.auth-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.auth-actions-centered {
  justify-content: center;
}

.auth-btn {
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border: none;
  cursor: pointer;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
  font-family: "Outfit", sans-serif;
  white-space: nowrap;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.auth-btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

@media (hover: hover) {
  .auth-btn-primary:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
  }
}

.auth-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: var(--transition-base);
}

.auth-btn-ghost:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.96);
}

@media (hover: hover) {
  .auth-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
  }
}

.auth-btn-full {
  width: 100%;
}

/* round provider icons */
.auth-provider-circle {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

.auth-provider-circle-telegram {
  border: none;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #fff;
}

@media (hover: hover) {
  .auth-provider-circle:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  }
}

.auth-error {
  font-size: 0.78rem;
  color: #f97373;
  margin-top: 0.2rem;
  min-height: 1em;
  text-align: center;
  animation: shake 0.4s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.auth-divider {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0.5rem 0;
}

/* menu – затемнённый фон + выдвижная панель справа */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  justify-content: flex-end;
  align-items: stretch;
  z-index: 160;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.open {
  display: flex;
  opacity: 1;
}

/* сама панель меню */
.menu-modal {
  width: min(420px, 100vw);
  max-width: 420px;
  height: 100vh;
  background: var(--bg-glass);
  border-radius: 0;
  border-left: 1px solid var(--border);
  border-top: none;
  border-bottom: none;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.open .menu-modal {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .menu-modal {
    width: 100vw;
  }
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.menu-title {
  font-family: "Crimson Text", serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-close {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 300;
  padding: 0.3rem;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close:active {
  color: var(--text-primary);
  transform: scale(0.9);
}

@media (hover: hover) {
  .menu-close:hover {
    color: var(--text-primary);
  }
}

.menu-status {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  min-height: 1.3rem;
}

.menu-profile {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  animation: fadeInDown 0.3s ease-out;
}

.menu-profile.visible {
  display: flex;
}

.menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.menu-profile-text {
  display: flex;
  flex-direction: column;
}

.menu-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.menu-provider {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* subscription block in menu */
.menu-subscription {
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.75rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
}

.menu-subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.menu-sub-status-label {
  color: var(--text-primary);
  font-weight: 500;
}

.menu-sub-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.menu-sub-tag-free {
  color: var(--text-tertiary);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.menu-sub-tag-active {
  color: var(--success);
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.14);
}

.menu-subscription-desc {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.menu-subscription-btn {
  margin-top: 0.1rem;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-base);
  font-weight: 600;
}

.menu-subscription-btn:active {
  transform: scale(0.96);
  background: rgba(99, 102, 241, 0.18);
}

@media (hover: hover) {
  .menu-subscription-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 16px var(--accent-glow);
  }
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.menu-auth-actions {
  margin-bottom: 0.25rem;
  display: flex;
  justify-content: flex-start;
  min-height: 40px;
}

.menu-dialogs {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.25rem;
}

.menu-dialogs::-webkit-scrollbar {
  width: 4px;
}

.menu-dialogs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.menu-dialogs::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-dialog {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-base);
  border-radius: 8px;
  margin: 0.2rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.menu-dialog:last-child {
  border-bottom: none;
}

.menu-dialog:active {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(2px);
}

@media (hover: hover) {
  .menu-dialog:hover {
    background: rgba(99, 102, 241, 0.08);
    padding-left: 0.75rem;
  }
}

.menu-dialog-body {
  flex: 1;
  min-width: 0;
}

.menu-dialog-delete {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem;
  border-radius: 999px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-base);
}

.menu-dialog-delete:active {
  transform: scale(0.9);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
  .menu-dialog-delete:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
  }
}

.menu-dialog-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.menu-dialog-meta {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.menu-empty {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.menu-error {
  font-size: 0.85rem;
  color: #f97373;
  margin-top: 0.25rem;
}

.menu-footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

.menu-new-dialog-btn {
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-base);
  font-weight: 600;
}

.menu-new-dialog-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
  .menu-new-dialog-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
  }
}

/* subscription widget overlay */
.menu-sub-widget-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 170;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-sub-widget-overlay.open {
  display: flex;
  opacity: 1;
}

.menu-sub-widget-modal {
  width: 100%;
  max-width: 430px;
  max-height: 90vh;
  background: var(--bg-glass);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.menu-sub-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.menu-sub-widget-body {
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.menu-sub-widget-body iframe {
  border-radius: 12px;
  background: #000;
}

#menuSubWidgetClose {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.2rem;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-base);
}

#menuSubWidgetClose:active {
  transform: scale(0.9);
  color: var(--text-primary);
}

@media (min-width: 769px) {
  :root {
    --header-height: 78px;
  }

  header {
    padding: 1.25rem 2rem;
  }

  .logo {
    font-size: 1.3rem;
    gap: 0.8rem;
  }

  .bible-btn {
    font-size: 0.8rem;
  }

  main {
    padding: 2rem;
  }

  .title {
    font-size: 3.8rem;
  }

  .subtitle {
    font-size: 1.2rem;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.8;
  }

  .welcome-decoration {
    width: 500px;
    height: 500px;
    top: -150px;
  }

  .chat {
    height: calc(100% - 40px);
  }

  .messages {
    padding: 2rem;
  }

  .message {
    font-size: 0.95rem;
  }

  .message.user > div,
  .message.assistant > div {
    max-width: 65%;
  }

  .input-area {
    padding: 1.5rem;
    gap: 1rem;
  }

  textarea {
    font-size: 0.95rem;
    padding: 0.9rem 1.1rem;
    min-height: 50px;
    height: 50px;
    max-height: 200px;
  }

  .send-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    height: 50px;
  }

  .bible-panel {
    position: fixed;
    top: var(--header-height);
    right: 2rem;
    left: auto;
    bottom: 2rem;
    width: 400px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    transition: var(--transition-base);
  }

  .bible-panel.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .bible-panel-title {
    font-size: 1.2rem;
  }

  .bible-selects {
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }

  .bible-selects select {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .logo {
    font-size: 1rem;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .menu-sub-widget-modal {
    max-width: 100%;
  }

  .menu-sub-widget-body iframe {
    width: 100%;
  }
}

@media (max-width: 768px) {
  footer {
    display: none;
  }
}

.icon-svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subscription-page {
  position: relative;
  margin-top: var(--header-height);
  left: 0;
  right: 0;
  min-height: calc(100 * var(--vh) - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow: hidden;
  z-index: 1;
}

.subscription-container {
  width: 100%;
  max-width: 1200px;
  animation: fadeInUp 0.6s ease-out;
}

.subscription-header {
  text-align: center;
  margin-bottom: 3rem;
}

.subscription-title {
  font-family: "Crimson Text", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.subscription-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.pricing-card {
  position: relative;
  background: var(--bg-glass);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.6s ease-out;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
  transform: translateY(-8px);
}

.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .pricing-card-featured {
    transform: scale(1);
  }
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.pricing-badge-featured {
  background: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
  box-shadow: 0 8px 16px rgba(236, 72, 153, 0.4);
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem 0;
  margin-top: 0.5rem;
}

.pricing-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.pricing-price-value {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-price-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-feature-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-btn {
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-base);
  font-family: "Outfit", sans-serif;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  position: relative;
  overflow: hidden;
}

.pricing-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.pricing-btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

@media (hover: hover) {
  .pricing-btn-primary:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
  }
}

.pricing-btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.pricing-btn-secondary:active {
  background: rgba(255, 255, 255, 0.04);
  transform: scale(0.98);
}

@media (hover: hover) {
  .pricing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    color: var(--text-primary);
  }
}

.subscription-faq {
  text-align: center;
}

.faq-title {
  font-family: "Crimson Text", serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

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

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  background: var(--bg-glass);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: left;
  backdrop-filter: blur(20px);
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bible-panel-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ВЕРСИЯ: нормальная пилюля, как кнопка */
.bible-version-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: "Outfit", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  min-height: 32px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-base);
}

.bible-version-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

@media (hover: hover) {
  .bible-version-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    color: var(--text-primary);
  }
}

/* язык: выпадающий список флагов */
.bible-lang-dropdown {
  position: relative;
}

.bible-lang-current {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: var(--transition-base);
}

.bible-lang-current:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.bible-lang-list {
  position: absolute;
  top: 120%;
  right: 0;
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 300;
}

.bible-lang-list.open {
  display: flex;
}

.bible-lang-list button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}

.bible-lang-list button:hover {
  transform: scale(1.2);
  opacity: 1;
}

@media (max-width: 768px) {
  .menu-modal {
    height: auto;
    max-height: calc(var(--vh, 1vh) * 100);
    overflow-y: auto;
    padding-bottom: 5rem; /* запас под кнопку */
  }

  .menu-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--border);
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    padding: 0.9rem 1rem;
    justify-content: center;
    z-index: 999;
  }
}


.menu-theme {
  margin: 1.3rem 0;
}

.menu-theme-header {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.menu-theme-circles {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

/* Круги */
.theme-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}

/* Цвета тем */
#themeOriginal {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

#themeDark {
  background: #1a1a1e;
}

#themeLight {
  background: #f5f5f5;
}

/* Hover */
.theme-circle:hover {
  transform: scale(1.08);
  border-color: rgba(255,255,255,0.3);
}

/* Активная тема — внутренняя точка */
.theme-circle.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 50%;
}
.chat.active .input-area {         /* чтобы точно отобразилась */
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
footer {
  background: transparent !important;   /* убираем заливку / blur */
  border-top: none !important;          /* стираем тонкую линию */
  box-shadow: none !important;          /* на всякий случай */
  backdrop-filter: none !important;     /* если был blur-эффект */
}
/* style.css */

/* теперь панель можно перетаскивать за шапку + менять размер */
.bible-panel {
  position: fixed;              /* вместо absolute — свободно плавает */
  top: var(--header-height);    /* старт – как раньше */
  right: 2rem;
  width: 400px;
  height: 60vh;                 /* на десктопе ~60 % высоты */
  resize: both;                 /* тянем за углы */
  overflow: auto;               /* скролл, если текст вылезет */
}

.bible-panel-header {
  cursor: move;                 /* подсказка, что за шапку можно тянуть */
}
