/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7C6FFF;
  --primary-dark: #6558e8;
  --primary-glow: rgba(124,111,255,0.35);
  --accent: #FF6584;
  --bg: #080810;
  --bg2: #111120;
  --bg3: #1c1c2e;
  --text: #eeeef8;
  --text-muted: #7878a0;
  --border: #252540;
  --success: #4caf50;
  --error: #f44336;
  --radius: 14px;
  --shadow: 0 8px 40px rgba(0,0,0,0.6);
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Syne', 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 26px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all .25s;
  white-space: nowrap; font-family: inherit; letter-spacing: 0.06em;
  text-transform: uppercase; position: relative; overflow: hidden;
  background: transparent; border-radius: 8px;
}
.btn::before, .btn::after {
  content: ''; position: absolute;
  width: 10px; height: 10px;
  transition: width .35s cubic-bezier(.4,0,.2,1), height .35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

/* Primary */
.btn-primary { background: #7C6FFF; color: #fff; }
.btn-primary::before {
  top: 0; left: 0;
  border-top: 3px solid #b8a9ff;
  border-left: 3px solid #b8a9ff;
  border-radius: 8px 0 0 0;
}
.btn-primary::after {
  bottom: 0; right: 0;
  border-bottom: 3px solid #b8a9ff;
  border-right: 3px solid #b8a9ff;
  border-radius: 0 0 8px 0;
}
.btn-primary:hover { background: #6a5ee8; }
.btn-primary:hover::before,
.btn-primary:hover::after { width: 100%; height: 100%; }

/* Outline */
.btn-outline { color: #eeeef8; }
.btn-outline::before {
  top: 0; left: 0;
  border-top: 3px solid #b8a9ff;
  border-left: 3px solid #b8a9ff;
  border-radius: 8px 0 0 0;
}
.btn-outline::after {
  bottom: 0; right: 0;
  border-bottom: 3px solid #b8a9ff;
  border-right: 3px solid #b8a9ff;
  border-radius: 0 0 8px 0;
}
.btn-outline:hover { color: #a89fff; }
.btn-outline:hover::before,
.btn-outline:hover::after { width: 100%; height: 100%; }

.btn-ghost { color: var(--text-muted); }
.btn-ghost::before { top: 0; left: 0; border-top: 3px solid #b8a9ff; border-left: 3px solid #b8a9ff; border-radius: 8px 0 0 0; }
.btn-ghost::after  { bottom: 0; right: 0; border-bottom: 3px solid #b8a9ff; border-right: 3px solid #b8a9ff; border-radius: 0 0 8px 0; }
.btn-ghost:hover { color: var(--text); }
.btn-ghost:hover::before, .btn-ghost:hover::after { width: 100%; height: 100%; }

.btn-danger { background: var(--error); color: #fff; padding: 4px 8px; font-size: 12px; }
.btn-lg { padding: 14px 36px; font-size: 14px; }
.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,16,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-size: 18px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo-icon { font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { color: #fff; padding: 7px 16px; font-size: 12px; }
.nav-links .btn:hover { color: #fff; text-decoration: none; }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  max-width: 760px; margin: 0 auto;
  padding: 72px 28px 64px;
  text-align: center; position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(124,111,255,0.15) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-visual { display: none; }

/* ── Hero title with equalizer ──────────────────────────── */
.hero-title-text { text-align: center; margin-bottom: 20px; }
.slogan-row {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 12px;
}

/* Main slogan — animated gradient */
.main-slogan {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 60px); font-weight: 800; line-height: 1.05;
  white-space: nowrap; margin: 0;
  background: linear-gradient(270deg, #7C6FFF, #FF6584, #c084fc, #7C6FFF);
  background-size: 300% 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sub slogan */
.sub-slogan {
  font-family: 'Syne', sans-serif;
  font-size: clamp(16px, 2.2vw, 30px); font-weight: 800;
  color: #ffffff; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Side equalizers — symmetric mirror */
.eq {
  display: flex; align-items: center; gap: 5px; height: 1em; flex-shrink: 0;
  font-size: clamp(28px, 4.5vw, 60px);
}
.eq span {
  display: block; width: 6px; border-radius: 3px;
  background: linear-gradient(180deg, rgba(124,111,255,0.8), rgba(255,101,132,0.2));
  animation: eqAnim 1.1s ease-in-out infinite;
}
.eq-left  span:nth-child(1), .eq-right span:nth-child(8) { height: 25%; animation-delay: 0s; }
.eq-left  span:nth-child(2), .eq-right span:nth-child(7) { height: 60%; animation-delay: .12s; }
.eq-left  span:nth-child(3), .eq-right span:nth-child(6) { height: 40%; animation-delay: .24s; }
.eq-left  span:nth-child(4), .eq-right span:nth-child(5) { height: 85%; animation-delay: .36s; }
.eq-left  span:nth-child(5), .eq-right span:nth-child(4) { height: 55%; animation-delay: .48s; }
.eq-left  span:nth-child(6), .eq-right span:nth-child(3) { height: 75%; animation-delay: .6s; }
.eq-left  span:nth-child(7), .eq-right span:nth-child(2) { height: 35%; animation-delay: .72s; }
.eq-left  span:nth-child(8), .eq-right span:nth-child(1) { height: 50%; animation-delay: .84s; }
@keyframes eqAnim {
  0%, 100% { transform: scaleY(0.15); opacity: 0.25; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,111,255,0.15); border: 1px solid rgba(124,111,255,0.3);
  color: #a89fff; font-size: 13px; font-weight: 600;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 24px;
}
/* h1 size handled in .hero-title-text h1 above */
.accent { background: linear-gradient(135deg, #7C6FFF, #FF6584); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 18px; color: var(--text-muted); margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 20px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 32px;
}
.hero-formats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hero-formats span {
  background: var(--bg3); color: var(--text-muted);
  padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border);
}

/* ── Stats ────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  padding: 28px 28px; border-right: 1px solid var(--border);
  transition: background .2s; text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 5px; letter-spacing: -0.02em;
}
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #4040a0; }

/* ── Section header ───────────────────────────────────── */
.section-header { margin-bottom: 64px; text-align: center; }
.section-tag {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #4040a0; margin-bottom: 18px;
}
.section-header h2 {
  font-size: clamp(30px, 4vw, 50px); font-weight: 800;
  font-family: 'Syne', sans-serif; line-height: 1.1;
  white-space: nowrap; color: #fff;
}
@media (max-width: 600px) { .section-header h2 { white-space: normal; } }
.section-header h2 em { font-style: normal; }

/* ── Features ─────────────────────────────────────────── */
.features { max-width: 1140px; margin: 0 auto; padding: 72px 28px; }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #1c1c2e;
  border: 1px solid #1c1c2e; border-radius: 16px; overflow: hidden;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #080810; padding: 36px 28px; text-align: center;
  position: relative; overflow: hidden;
}
.feature-num {
  font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--primary); margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.feature-num::before { content: ''; flex: 1; max-width: 24px; height: 1px; background: #252540; }
.feature-num::after { content: ''; flex: 1; max-width: 24px; height: 1px; background: #252540; }
.wave-icon {
  margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 28px;
}
.wave-icon span {
  display: block; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(124,111,255,0.8), rgba(124,111,255,0.15));
}
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; color: #fff; }
.feature-card p { font-size: 14px; color: #8888aa; line-height: 1.65; }
.feature-tag {
  display: block; margin-top: 20px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #5050a0;
  border-top: 1px solid #1c1c2e; padding-top: 14px;
}

/* ── How it works ─────────────────────────────────────── */
.how-it-works { max-width: 1140px; margin: 0 auto; padding: 72px 28px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #1c1c2e;
  border: 1px solid #1c1c2e; border-radius: 16px; overflow: hidden;
}
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }
.step { background: #080810; padding: 40px 32px; text-align: center; position: relative; }
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 36px; font-weight: 700;
  color: #1e1e32; line-height: 1; margin-bottom: 20px; letter-spacing: -0.02em;
  user-select: none;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13px; color: #5a5a80; line-height: 1.6; }
.step-arrow { display: none; }

/* ── Pricing ──────────────────────────────────────────── */
.pricing { max-width: 1000px; margin: 0 auto; padding: 72px 28px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #1c1c2e;
  border: 1px solid #1c1c2e; border-radius: 16px; overflow: visible;
  position: relative;
}
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: #080810; padding: 68px 32px 40px; text-align: center;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.plan-card:first-child { border-radius: 15px 0 0 15px; }
.plan-card:last-child  { border-radius: 0 15px 15px 0; }
.pricing-indicator {
  position: absolute; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #7C6FFF, #FF6584);
  transition: left .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1), opacity .25s;
  opacity: 0; pointer-events: none; z-index: 2;
}
.plan-card .plan-features { flex: 1; }
.plan-popular { background: #0a0a18; }
.plan-popular::before {
  content: 'Популярный'; position: absolute; top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #7C6FFF, #FF6584);
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center; padding: 6px; height: 28px;
}
.plan-badge { display: none; }
.plan-name {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #4040a0;
  margin-top: 0; margin-bottom: 16px;
}
.plan-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px; font-weight: 700; margin-bottom: 6px;
  line-height: 1; letter-spacing: -0.03em; color: #fff;
}
.plan-period {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #3a3a60; margin-bottom: 28px;
  min-height: 16px;
}
.plan-features { list-style: none; margin-bottom: 0; text-align: left; }
.plan-features li {
  padding: 10px 0; font-size: 13px; color: #8888aa; line-height: 1.4;
  border-bottom: 1px solid #0e0e1a; display: flex; align-items: baseline; gap: 10px;
  min-height: 40px;
}
.plan-features li::before { content: '—'; color: #3a3a60; flex-shrink: 0; }
.plan-features li:last-child { border-bottom: none; }

/* ── Plan buttons ─────────────────────────────────────── */
.btn-plan {
  display: block; width: 100%; padding: 16px;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #4040a0; position: relative; text-align: center;
  overflow: hidden; transition: color .4s;
}
.btn-plan::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,111,255,0.5) 0%, rgba(124,111,255,0) 70%);
  transform: translate(-50%, -50%);
  transition: width .6s ease, height .6s ease, opacity .4s;
  opacity: 0; z-index: 0;
}
.btn-plan:hover { color: #c0b8ff; }
.btn-plan:hover::after { width: 400px; height: 200px; opacity: 1; }
.btn-plan span { position: relative; z-index: 1; }

.btn-plan-accent { color: #7060b0; }
.btn-plan-accent::after {
  background: radial-gradient(circle, rgba(180,100,255,0.55) 0%, rgba(255,101,132,0.0) 70%);
}
.btn-plan-accent:hover { color: #e0b0ff; }
.btn-plan-accent:hover::after { width: 400px; height: 200px; opacity: 1; }

/* ── Feedback ─────────────────────────────────────────── */
.feedback-section { padding: 72px 28px; max-width: 680px; margin: 0 auto; }
.feedback-wrap { max-width: 560px; margin: 0 auto; }
.feedback-wrap textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 14px;
  resize: vertical; min-height: 100px;
}
.feedback-wrap textarea:focus { outline: none; border-color: var(--accent); }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 40px 28px; }
.footer-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer p { color: var(--text-muted); font-size: 14px; }

/* ── Modal ────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
  z-index: 1000; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 44px; width: 100%; max-width: 440px;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--bg3); border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; width: 32px; height: 32px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close:hover { color: var(--text); background: var(--border); }
.modal h2 { margin-bottom: 28px; font-size: 24px; font-weight: 800; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; letter-spacing: .3px; text-transform: uppercase; }
.form-group input {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); font-size: 15px; outline: none; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,111,255,0.15); }
.form-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.form-error { color: #ff6b6b; font-size: 14px; min-height: 20px; margin-bottom: 10px; }
.form-success {
  text-align: center; padding: 8px 0;
}
.form-success .success-icon { font-size: 52px; margin-bottom: 16px; }
.form-success h2 { color: var(--text); margin-bottom: 12px; }
.form-success p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.form-success .success-sub { font-size: 13px; margin-bottom: 24px; }
.reg-benefits {
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(124,111,255,0.07); border: 1px solid rgba(124,111,255,0.2);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 18px;
}
.reg-benefit {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
}
.reg-benefit b { color: var(--text); }

/* ── App page ─────────────────────────────────────────── */
.nav-app { gap: 16px; }
.app-page .app-main {
  max-width: 1140px; margin: 0 auto; padding: 32px 28px;
  display: grid; grid-template-columns: 1fr 360px; gap: 24px;
}
@media (max-width: 900px) {
  .app-page .app-main { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-arrow { transform: rotate(90deg); text-align: center; }
}

.upload-panel, .history-panel {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.upload-panel h2, .history-panel h3 { margin-bottom: 24px; font-weight: 700; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all .2s; margin-bottom: 16px;
}
.drop-zone:hover { border-color: rgba(124,111,255,0.5); background: rgba(124,111,255,0.04); }
.drop-zone.dragover { border-color: var(--primary); background: rgba(124,111,255,0.08); }
.drop-icon { font-size: 40px; margin-bottom: 12px; }
.drop-text { font-size: 15px; margin-bottom: 12px; color: var(--text-muted); }
.drop-formats { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* Record row */
.record-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.record-or { font-size: 12px; color: var(--text-muted); }
.btn-record {
  background: transparent; color: var(--text-muted);
  border: none; padding: 7px 18px; font-size: 13px;
}
.btn-record::before { top:0; left:0; border-top: 3px solid #b8a9ff; border-left: 3px solid #b8a9ff; border-radius: 8px 0 0 0; }
.btn-record::after  { bottom:0; right:0; border-bottom: 3px solid #b8a9ff; border-right: 3px solid #b8a9ff; border-radius: 0 0 8px 0; }
.btn-record:hover { color: var(--accent); }
.btn-record:hover::before, .btn-record:hover::after { width: 100%; height: 100%; }
.btn-record .mic-icon {
  display: inline-block;
  animation: mic-breathe 2s ease-in-out infinite;
}
.btn-record.recording {
  color: #ff6584;
  animation: pulse-record 1.2s ease-in-out infinite;
}
.btn-record.recording .mic-icon {
  animation: mic-blink 0.6s ease-in-out infinite;
}
.record-timer { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.record-viz {
  display: flex; justify-content: center; margin-top: 10px;
}
#record-canvas { border-radius: 6px; }
@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,101,132,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,101,132,0); }
}
@keyframes mic-breathe {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes mic-blink {
  0%, 100% { opacity: 1; transform: scale(1.1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* File info */
.file-info {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.file-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.file-size { font-size: 13px; color: var(--text-muted); }

/* Progress */
.progress-wrap { margin-top: 20px; }
.progress-bar { height: 6px; background: var(--bg3); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #FF6584); border-radius: 10px; width: 0; transition: width .4s; }
.progress-text { font-size: 14px; color: var(--text-muted); text-align: center; }

/* Result */
.result-wrap { margin-top: 24px; }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.result-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.result-text {
  width: 100%; min-height: 180px; padding: 14px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; line-height: 1.7; resize: vertical; font-family: inherit;
}
.result-meta { font-size: 13px; color: var(--text-muted); }

/* Error */
.error-wrap { margin-top: 16px; }
.error-msg {
  background: rgba(244,67,54,.1); border: 1px solid rgba(244,67,54,.25);
  color: #ff7070; padding: 12px 16px; border-radius: 10px; font-size: 14px;
}

/* Account trigger (inline in nav) */
.account-trigger {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  cursor: default;
}
.account-trigger:hover .account-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.account-trigger-mins {
  font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap;
}
.account-widget-bar {
  width: 56px; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden;
}
.account-widget-fill {
  height: 100%; background: #7C6FFF; border-radius: 2px;
  transition: width .4s ease;
}
.account-widget-fill.warn   { background: #ff9800; }
.account-widget-fill.danger { background: var(--error); }

/* Dropdown panel */
.account-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; min-width: 260px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.account-widget-row {
  display: flex; align-items: center; gap: 10px;
}
.account-widget-label {
  font-size: 13px; color: var(--text-muted); flex: 1;
  font-weight: 500;
}
.account-widget-mins  { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.account-widget-balance { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.account-widget-topup {
  font-size: 13px; font-weight: 600; color: #b8a9ff;
  text-decoration: none; transition: opacity .2s; white-space: nowrap;
}
.account-widget-topup:hover { opacity: 0.7; }
.user-email { font-size: 14px; color: var(--text-muted); }

/* History */
.history-list { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: calc(100vh - 200px); }
.history-empty { font-size: 14px; color: var(--text-muted); text-align: center; padding: 24px 0; }
.history-item {
  background: var(--bg3); border-radius: 10px; padding: 12px 14px;
  border: 1px solid transparent; transition: all .15s;
}
.history-item:hover { border-color: rgba(124,111,255,0.35); }
.h-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; gap: 8px; }
.h-file { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.h-preview { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.h-preview:hover { color: var(--text); }
.h-date { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.h-delete { opacity: 0.4; transition: opacity .15s; }
.history-item:hover .h-delete { opacity: 1; }
.h-meta-row { display: flex; align-items: flex-start; justify-content: space-between; margin-top: 5px; gap: 6px; flex-wrap: wrap; }
.h-date { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.h-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-chip {
  font-size: 10px; padding: 2px 7px; border-radius: 20px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-muted);
  transition: all .15s; user-select: none;
}
.tag-chip:hover { border-color: var(--primary); color: var(--primary); }
.tag-chip.tag-on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── History search ───────────────────────────────────── */
.history-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.history-head h3 { margin-bottom: 0; }
.history-search {
  flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px; font-size: 13px; color: var(--text); font-family: inherit; outline: none;
}
.history-search:focus { border-color: var(--primary); }
.history-search::placeholder { color: var(--text-muted); }

/* ── Guest banner ────────────────────────────────────── */
.guest-banner {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 12px 20px; text-align: center;
  background: linear-gradient(90deg, rgba(255,180,50,0.1), rgba(255,101,132,0.1));
  border-bottom: 1px solid rgba(255,180,50,0.2);
  font-size: 14px; color: var(--text);
}
.guest-banner b { color: #ffb432; }
.guest-banner-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 16px; cursor: pointer; padding: 0 4px; margin-left: 8px;
}
.guest-banner-close:hover { color: var(--text); }

/* ── Hero CTA row ─────────────────────────────────────── */
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* ── Result footer ───────────────────────────────────── */
.result-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; gap: 12px; min-height: 28px;
}
.result-meta { font-size: 13px; color: var(--text-muted); flex: 1; }
.save-btn { flex-shrink: 0; }

/* ── Speaker panel ────────────────────────────────────── */
.speaker-panel {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.speaker-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.speaker-inputs { display: flex; flex-wrap: wrap; gap: 10px; }
.speaker-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); padding: 6px 12px;
  border-radius: 8px; border: 1px solid var(--border);
}
.speaker-label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.speaker-arrow { color: var(--primary); font-size: 14px; }
.speaker-input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; font-family: inherit;
  width: 110px;
}
.speaker-input::placeholder { color: var(--text-muted); }
