* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #0a1628;
  --bg-card: #0f1e35;
  --bg-dark: #050d1a;
  --bg-hover: #142745;
  --accent: #00d9ff;
  --accent2: #00ffa3;
  --silver: #c0c8d4;
  --text: #e6ecf5;
  --muted: #8892a6;
  --border: #1a2942;
  --danger: #ef4444;
  --gold: #ffb800;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.5);
  --glow: 0 0 24px rgba(0, 217, 255, 0.35);
}

html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; padding-top: env(safe-area-inset-top); background-image: radial-gradient(circle at 15% 0%, rgba(0, 217, 255, 0.08), transparent 45%), radial-gradient(circle at 85% 100%, rgba(0, 255, 163, 0.06), transparent 45%); background-attachment: fixed; overflow-x: hidden; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
button { font-family: inherit; }

/* ============ HEADER ============ */
.main-header { position: sticky; top: 0; z-index: 100; background: rgba(5, 13, 26, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 10px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; cursor: pointer; letter-spacing: 3px; flex-shrink: 0; }
.logo-mark { font-size: 24px; color: var(--accent); text-shadow: 0 0 16px var(--accent); }
.logo-text { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.header-nav { display: flex; gap: 4px; }
.nav-item { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 8px 12px; border-radius: 10px; color: var(--text); transition: 0.2s; }
.nav-item span:first-child { font-size: 20px; line-height: 1; }
.nav-item small { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.nav-item:hover { background: var(--bg-card); color: var(--accent); }
.nav-item:hover small { color: var(--accent); }

/* ============ PAGES ============ */
main { min-height: 60vh; padding-bottom: 60px; }
.page { display: none; }
.page.active { display: block; }
.page-title { font-size: 26px; font-weight: 800; margin: 30px 0 20px; }

/* ============ HERO ============ */
.hero-banner { margin-top: 24px; border-radius: 20px; overflow: hidden; position: relative; padding: 40px 30px; background: linear-gradient(135deg, #050d1a 0%, #0a1e3d 50%, #0f2a4a 100%); border: 1px solid var(--border); }
.hero-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 75% 30%, rgba(0, 217, 255, 0.4), transparent 70%), radial-gradient(ellipse 50% 50% at 25% 70%, rgba(0, 255, 163, 0.25), transparent 70%); filter: blur(3px); }
.hero-content { position: relative; z-index: 1; }
.hero-tag { display: inline-block; background: rgba(0, 217, 255, 0.15); border: 1px solid rgba(0, 217, 255, 0.4); padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.hero-content h1 { font-size: 32px; font-weight: 900; margin-bottom: 10px; letter-spacing: -0.5px; background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 15px; color: var(--silver); }
.essay-hero { background: linear-gradient(135deg, #0a1e3d, #1a3a5c, #2a4a6c) !important; }

/* ============ FORM CARD ============ */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px; margin-top: 24px; }
.form-card h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.form-card input, .form-card select { width: 100%; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 16px; font-family: inherit; background: var(--bg); color: var(--text); }
.form-card input:focus, .form-card select:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.form-card input::placeholder { color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

.photos-toggle { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; cursor: pointer; font-size: 15px; }
.photos-toggle input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }

.tips-card { background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 255, 163, 0.05)); border: 1px solid rgba(0, 217, 255, 0.3); border-radius: 14px; padding: 18px; margin-top: 20px; font-size: 14px; }
.tips-card b { display: block; margin-bottom: 8px; color: var(--accent); }
.tips-card p { color: var(--silver); line-height: 1.6; }

/* ============ 🎨 ГАЛЕРЕЯ 20 ПРЕСЕТОВ ============ */
.selected-style-name {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #001a26;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.style-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.style-categories::-webkit-scrollbar { height: 4px; }
.style-categories::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.style-cat-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
  flex-shrink: 0;
}

.style-cat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.style-cat-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #001a26;
  border-color: transparent;
  font-weight: 800;
}

.style-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.style-gallery::-webkit-scrollbar { width: 6px; }
.style-gallery::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.style-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.style-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 217, 255, 0.25);
}

.style-card.selected {
  border-color: var(--accent2);
  box-shadow: 0 0 0 2px var(--accent2), 0 6px 20px rgba(0, 255, 163, 0.4);
}

.style-card.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.style-card.locked:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.style-card-preview {
  padding: 14px 12px;
  height: 84px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  position: relative;
}

.style-card-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
}

.style-card-line {
  height: 5px;
  border-radius: 3px;
  width: 80%;
}

.style-card-line.short {
  width: 55%;
  height: 3px;
}

.style-card-info {
  padding: 8px 10px 10px;
  background: var(--bg-card);
}

.style-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  flex-wrap: wrap;
}

.style-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffb800, #ff6b00);
  color: #001a26;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.style-card-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.6);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.style-card-check {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent2);
  color: #001a26;
  font-size: 14px;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 12px var(--accent2);
}

/* ============ BUTTONS ============ */
.btn { padding: 14px 20px; border-radius: 12px; border: none; cursor: pointer; font-size: 15px; font-weight: 700; font-family: inherit; transition: 0.2s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #001a26; box-shadow: 0 4px 14px rgba(0, 217, 255, 0.3); }
.btn-block { width: 100%; padding: 16px; font-size: 16px; margin-top: 8px; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-back { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 10px 18px; border-radius: 10px; cursor: pointer; font-size: 14px; margin: 20px 0; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.4); }

/* ============ RESULT ============ */
.result-header { text-align: center; margin: 10px 0 24px; }
.result-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.result-header p { color: var(--muted); font-size: 14px; }
.result-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 26px; }
.result-actions .btn { padding: 14px; font-size: 14px; }

.slides-list { display: flex; flex-direction: column; gap: 16px; }
.slide-preview { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; position: relative; }
.slide-number { position: absolute; top: 12px; right: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #001a26; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 8px; z-index: 2; }
.slide-preview h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--accent); padding-right: 60px; }
.slide-photo { margin: 14px 0; border-radius: 12px; overflow: hidden; background: var(--bg); }
.slide-photo img { width: 100%; height: auto; max-height: 240px; object-fit: cover; display: block; }
.slide-text { color: var(--silver); font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

.slide-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.slide-actions .btn { padding: 8px 14px; font-size: 13px; }

.slide-emoji { font-size: 120px; text-align: center; padding: 30px 0; background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 255, 163, 0.05)); border-radius: 16px; margin: 14px 0; border: 1px dashed rgba(0, 217, 255, 0.3); line-height: 1; }

.slide-chart-container { background: #fff; border-radius: 12px; margin: 14px 0; padding: 10px; overflow-x: auto; }
.slide-chart-container canvas { display: block; margin: 0 auto; max-width: 100%; height: auto; }

.slide-text.size-compact { font-size: 12px; line-height: 1.5; }
.slide-text.size-normal  { font-size: 14px; line-height: 1.7; }
.slide-text.size-expanded { font-size: 16px; line-height: 1.9; }

.result-bottom-actions { margin-top: 26px; }

/* ============ ❤️ FEEDBACK ============ */
.slide-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  flex-wrap: wrap;
}

.feedback-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.feedback-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}

.feedback-btn:hover {
  transform: scale(1.1);
  border-color: var(--accent);
}

.feedback-btn.active {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 255, 163, 0.15));
  border-color: var(--accent2);
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.4);
}

.feedback-up.active {
  border-color: var(--accent2);
  box-shadow: 0 0 12px rgba(0, 255, 163, 0.5);
}

.feedback-down.active {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

/* ============ SPEECH ============ */
.speech-header { text-align: center; margin: 10px 0 24px; }
.speech-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.speech-header p { color: var(--muted); font-size: 14px; }
.speech-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 26px; }
.speech-actions .btn { padding: 14px; font-size: 14px; }
.speech-list { display: flex; flex-direction: column; gap: 20px; }
.speech-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; overflow: hidden; }
.speech-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.speech-slide-num { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #001a26; font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 10px; letter-spacing: 0.5px; }
.speech-slide-title { font-size: 17px; font-weight: 700; color: var(--accent); }
.speech-on-slide, .speech-voice { margin-bottom: 16px; }
.speech-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.speech-slide-text { color: var(--silver); font-size: 14px; line-height: 1.7; white-space: pre-wrap; padding: 14px 16px; background: rgba(0, 217, 255, 0.04); border-radius: 10px; border-left: 3px solid var(--accent); }
.speech-voice-text { color: var(--text); font-size: 15px; line-height: 1.8; white-space: pre-wrap; padding: 16px 18px; background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 255, 163, 0.05)); border-radius: 12px; border-left: 3px solid var(--accent2); font-style: italic; }

/* ============ ESSAY ============ */
.essay-content { background: #fff; color: #000; padding: 50px 40px; border-radius: 16px; margin-top: 20px; font-family: 'Times New Roman', serif; font-size: 16px; line-height: 1.7; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.essay-title-page { text-align: center; font-weight: bold; padding: 60px 0 80px; font-size: 18px; line-height: 2; }
.essay-heading { font-size: 20px; font-weight: bold; margin: 30px 0 15px; text-align: center; color: #0a2a4a; }
.essay-paragraph { text-align: justify; text-indent: 40px; margin-bottom: 15px; white-space: pre-wrap; color: #000; }

/* ============ HISTORY ============ */
.history-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.history-tab { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 10px 18px; border-radius: 10px; cursor: pointer; font-size: 14px; transition: 0.2s; }
.history-tab.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #001a26; border-color: transparent; font-weight: 700; }
.history-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: 0.2s; }
.history-item:hover { border-color: var(--accent); }
.history-item-info { flex: 1; cursor: pointer; min-width: 0; }
.history-item-info b { display: block; font-size: 15px; margin-bottom: 4px; word-break: break-word; }
.history-item-info small { color: var(--muted); font-size: 12px; }
.history-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============ ABOUT ============ */
.about-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 14px; }
.about-card h3 { font-size: 18px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.about-card p { color: var(--silver); font-size: 15px; line-height: 1.7; }
.about-list { list-style: none; }
.about-list li { color: var(--silver); font-size: 15px; padding: 6px 0; }

/* ============ TOAST ============ */
.toast { position: fixed; bottom: 30px; right: 30px; left: 30px; max-width: 400px; margin: 0 auto; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #001a26; font-weight: 700; padding: 14px 22px; border-radius: 12px; opacity: 0; transform: translateY(20px); transition: 0.3s; z-index: 1000; pointer-events: none; text-align: center; font-size: 14px; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }

/* ============ EMPTY ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 15px; }

/* ============ FOOTER ============ */
.main-footer { background: var(--bg-dark); border-top: 1px solid var(--border); padding: 30px 0; margin-top: 60px; text-align: center; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.footer-logo { font-size: 18px; font-weight: 800; letter-spacing: 3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; margin-bottom: 6px; }
.footer-tagline { color: var(--muted); font-size: 13px; }

/* ============ SPLASH ============ */
.splash { position: fixed; inset: 0; background: linear-gradient(135deg, #050d1a 0%, #0a1e3d 50%, #0f2a4a 100%); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; transition: opacity 0.6s ease, visibility 0.6s ease; }
.splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { text-align: center; max-width: 400px; width: 100%; }
.splash-logo { font-size: 90px; color: #00d9ff; text-shadow: 0 0 40px #00d9ff, 0 0 80px rgba(0, 217, 255, 0.5); animation: splashPulse 2s ease-in-out infinite; margin-bottom: 20px; line-height: 1; }
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: 1; filter: brightness(1); } 50% { transform: scale(1.1); opacity: 0.85; filter: brightness(1.3); } }
.splash-title { font-size: 36px; font-weight: 900; letter-spacing: 4px; color: #e6ecf5; margin-bottom: 10px; }
.splash-title span { background: linear-gradient(135deg, #00d9ff, #00ffa3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.splash-sub { font-size: 14px; color: #8892a6; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 40px; }
.splash-loader { width: 100%; height: 4px; background: rgba(0, 217, 255, 0.15); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.splash-loader-bar { height: 100%; width: 30%; background: linear-gradient(90deg, #00d9ff, #00ffa3); border-radius: 2px; animation: splashLoad 1.5s ease-in-out infinite; box-shadow: 0 0 20px #00d9ff; }
@keyframes splashLoad { 0% { width: 10%; margin-left: 0; } 50% { width: 60%; margin-left: 20%; } 100% { width: 10%; margin-left: 90%; } }
.splash-hint { font-size: 13px; color: #8892a6; letter-spacing: 1px; }

/* ============ PREMIUM TAG ============ */
.premium-tag { display: inline-block; background: linear-gradient(135deg, #ffb800, #ff6b00); color: #001a26; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 6px; margin-left: 6px; letter-spacing: 0.5px; }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 40px; }
.pricing-card { background: var(--bg-card); border: 2px solid var(--border); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; transition: 0.3s; position: relative; }
.pricing-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-md), var(--glow); }
.pricing-card.popular { border-color: var(--accent); box-shadow: var(--glow); }
.pricing-card.lifetime { border-color: #ffb800; background: linear-gradient(135deg, rgba(255, 184, 0, 0.05), rgba(255, 107, 0, 0.05)); box-shadow: 0 0 30px rgba(255, 184, 0, 0.3); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #001a26; font-size: 11px; font-weight: 800; padding: 5px 14px; border-radius: 12px; letter-spacing: 0.5px; white-space: nowrap; }
.pricing-badge.gold { background: linear-gradient(135deg, #ffb800, #ff6b00); color: #001a26; }
.pricing-header { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pricing-icon { font-size: 48px; margin-bottom: 10px; line-height: 1; }
.pricing-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: var(--text); }
.pricing-price { font-size: 38px; font-weight: 900; color: var(--accent); letter-spacing: -1px; margin-bottom: 6px; }
.pricing-price small { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.pricing-sub { color: var(--muted); font-size: 13px; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 20px; }
.pricing-features li { color: var(--silver); font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(26, 41, 66, 0.5); line-height: 1.5; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li.off { color: var(--muted); opacity: 0.6; }
.lifetime-btn { background: linear-gradient(135deg, #ffb800, #ff6b00) !important; color: #001a26 !important; font-weight: 800 !important; }

/* ============ PROMO ============ */
.promo-box { background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(0, 255, 163, 0.05)); border: 1px solid rgba(0, 217, 255, 0.3); border-radius: 20px; padding: 26px 22px; margin-bottom: 20px; text-align: center; }
.promo-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.promo-box p { color: var(--silver); font-size: 14px; margin-bottom: 18px; }
.promo-input-row { display: flex; gap: 10px; max-width: 500px; margin: 0 auto; }
.promo-input-row input { flex: 1; padding: 14px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 16px; font-family: inherit; outline: none; letter-spacing: 1px; }
.promo-input-row input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.promo-input-row .btn { padding: 14px 24px; }
.active-sub { margin-top: 20px; background: rgba(0, 255, 163, 0.1); border: 1px solid rgba(0, 255, 163, 0.4); border-radius: 12px; padding: 16px; }
.active-sub-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--accent2); font-size: 14px; }
.active-sub-inner b { color: var(--accent2); font-size: 15px; }

/* ============ DONATE ============ */
.donate-box { background: linear-gradient(135deg, rgba(0, 255, 163, 0.05), rgba(0, 217, 255, 0.05)); border: 1px solid rgba(0, 255, 163, 0.3); border-radius: 20px; padding: 26px 22px; text-align: center; }
.donate-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--accent2); }
.donate-box p { color: var(--silver); font-size: 14px; margin-bottom: 18px; }

/* ============ MODAL ============ */
.custom-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.custom-modal.show { display: flex; }
.custom-modal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; animation: modalSlide 0.3s ease; }
@keyframes modalSlide { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.custom-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.custom-modal-header h3 { font-size: 20px; font-weight: 800; color: var(--text); }
.custom-modal-close { background: var(--bg); border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: 0.2s; }
.custom-modal-close:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.custom-modal-body { padding: 24px; }

/* ============ ============ ============ */
/* ============ АККАУНТ ============ */
/* ============ ============ ============ */
.account-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  margin-top: 30px;
}

.account-profile {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.account-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: #001a26;
  margin: 0 auto 16px;
}

.account-profile h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.account-email {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.account-plan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 12px;
  padding: 10px 18px;
}

.account-plan-badge {
  font-weight: 800;
  color: var(--accent);
  font-size: 15px;
}

.account-plan-days {
  color: var(--silver);
  font-size: 13px;
  padding-left: 10px;
  border-left: 1px solid rgba(0, 217, 255, 0.3);
}

.account-actions { margin-bottom: 24px; }

.account-stats {
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.account-stats h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-item {
  text-align: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 8px;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ 📊 ЭМОЦИОНАЛЬНАЯ СТАТИСТИКА ============ */
.account-insights {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(0, 255, 163, 0.05));
  border: 1px solid rgba(0, 217, 255, 0.25);
  border-radius: 18px;
  padding: 24px 20px;
  margin-bottom: 20px;
}

.account-insights h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--accent);
  text-align: center;
}

.insight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.insight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: 0.2s;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.insight-emoji {
  font-size: 28px;
  margin-bottom: 6px;
  line-height: 1;
}

.insight-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent2);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.insight-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.insight-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--silver);
  line-height: 1.5;
}

.insight-highlight b {
  color: var(--text);
}

.insight-highlight-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.insight-highlight.green {
  border-left-color: var(--accent2);
  background: rgba(0, 255, 163, 0.05);
}

/* ============ ФОРМА ВХОДА/РЕГИСТРАЦИИ ============ */
.auth-container { max-width: 420px; margin: 0 auto; }

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg);
  padding: 6px;
  border-radius: 12px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s;
  font-family: inherit;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #001a26;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.auth-form input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.auth-form input::placeholder {
  color: var(--muted);
}

.auth-note {
  margin-top: 20px;
  padding: 14px;
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

/* ============ AI BADGE ============ */
.ai-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(0, 255, 163, 0.15));
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 6px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

.ai-badge-inline {
  display: inline-block;
  font-size: 14px;
  margin-left: 4px;
}

/* ============ MOBILE ============ */
@media (max-width: 700px) {
  .container { padding: 0 14px; }
  .hero-content h1 { font-size: 24px; }
  .hero-content p { font-size: 14px; }
  .hero-banner { padding: 30px 22px; border-radius: 16px; }
  .form-card { padding: 20px 18px; border-radius: 16px; }
  .row-2, .row-3 { grid-template-columns: 1fr; gap: 0; }
  .result-actions { grid-template-columns: 1fr; }
  .nav-item { padding: 6px 8px; }
  .nav-item small { font-size: 10px; }
  .logo { font-size: 18px; }
  .page-title { font-size: 22px; }
  .history-item { flex-direction: column; align-items: stretch; }
  .history-item-actions { justify-content: stretch; }
  .history-item-actions .btn { flex: 1; }
  .speech-header h1 { font-size: 22px; }
  .speech-item { padding: 18px; }
  .speech-slide-title { font-size: 15px; }
  .speech-voice-text { font-size: 14px; padding: 14px 16px; }
  .speech-actions { grid-template-columns: 1fr; }
  .splash-logo { font-size: 70px; }
  .splash-title { font-size: 26px; letter-spacing: 3px; }
  .splash-sub { font-size: 12px; letter-spacing: 1.5px; }
  .slide-emoji { font-size: 80px; padding: 20px 0; }
  .essay-content { padding: 30px 20px; font-size: 14px; }
  .essay-title-page { padding: 40px 0 60px; font-size: 16px; }
  .essay-heading { font-size: 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-price { font-size: 32px; }
  .promo-input-row { flex-direction: column; }
  .promo-input-row .btn { width: 100%; }
  .active-sub-inner { flex-direction: column; align-items: flex-start; }

  /* Галерея пресетов — мобильная */
  .style-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    max-height: 360px;
  }
  .style-card-preview { height: 70px; padding: 10px; }
  .style-card-title { font-size: 18px; }
  .style-card-name { font-size: 11px; }

  /* Статистика — мобильная */
  .insight-cards { grid-template-columns: repeat(2, 1fr); }
  .insight-value { font-size: 18px; }
  .insight-emoji { font-size: 24px; }
  .insight-label { font-size: 10px; }
  .insight-highlight { padding: 12px 14px; font-size: 13px; }
  .insight-highlight-icon { font-size: 20px; }

  /* Аккаунт — мобильный */
  .account-box { padding: 24px 18px; }
  .account-avatar { width: 70px; height: 70px; font-size: 30px; }
  .account-profile h2 { font-size: 20px; }
  .stats-grid { gap: 8px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 10px; }

  /* Фидбек — мобильный */
  .slide-feedback { gap: 6px; }
  .feedback-btn { padding: 5px 10px; font-size: 16px; }
  .feedback-label { font-size: 11px; }
}

@media (max-width: 380px) {
  .logo-text { font-size: 16px; }
  .nav-item span:first-child { font-size: 18px; }
  .style-gallery { grid-template-columns: repeat(2, 1fr); }
  .insight-cards { grid-template-columns: 1fr; }
}