:root {
  --bg-base: #080808;
  --bg-surface: #101010;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --bg-hover: #1f1f1f;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(108, 71, 255, 0.5);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #808080;
  --text-inverse: #080808;
  --accent: #6C47FF;
  --accent-hover: #7C5AFF;
  --accent-muted: rgba(108, 71, 255, 0.15);
  --accent-glow: rgba(108, 71, 255, 0.25);
  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.12);
  --error: #ef4444;
  --error-muted: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 350ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent-muted);
  color: var(--text-primary);
}

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

#main-content {
  min-height: calc(100vh - 72px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 var(--space-4);
  background: rgba(8, 8, 8, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.nav.scrolled {
  border-bottom-color: var(--border-default);
}

.nav-app {
  position: sticky;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.wordmark-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nav-links {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  background: rgba(8, 8, 8, 0.96);
}

.nav-links.open {
  display: flex;
}

.nav-toggle {
  position: relative;
  z-index: 60;
  display: inline-grid;
  place-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
}

.btn-primary,
.btn-ghost,
.primary,
.secondary,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.btn-primary,
.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:active,
.primary:active,
.btn-ghost:active,
.secondary:active,
.small-btn:active {
  transform: scale(0.98);
}

.btn-primary:disabled,
.primary:disabled,
.btn-ghost:disabled,
.secondary:disabled,
.small-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary.loading,
.primary.loading,
.btn-loading {
  pointer-events: none;
  opacity: 0.72;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 42;
  stroke-dashoffset: 14;
}

.btn-ghost,
.secondary,
.small-btn {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-default);
}

.btn-ghost:hover,
.secondary:hover,
.small-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-full {
  width: 100%;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.input.error,
.input.is-error {
  border-color: var(--error);
}

.input::placeholder {
  color: var(--text-muted);
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.field-group {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.field-label {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

.field-help,
.field-hint {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.field-error,
.error {
  min-height: 18px;
  color: #ff8585;
  font-size: 13px;
}

.form-message,
.status {
  min-height: 20px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.status.error-text,
.form-message.error-text {
  color: #ff8585;
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 48px;
}

.toggle-pw {
  position: absolute;
  right: 6px;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.toggle-pw:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.toggle-pw svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.flash-container {
  position: fixed;
  top: 84px;
  right: var(--space-4);
  z-index: 80;
  display: grid;
  gap: var(--space-2);
  width: min(360px, calc(100% - 32px));
}

.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: opacity var(--t-base), transform var(--t-base);
}

.flash-error,
.flash-danger {
  background: var(--error-muted);
  border-color: rgba(239, 68, 68, 0.35);
}

.flash-success {
  background: var(--success-muted);
  border-color: rgba(34, 197, 94, 0.35);
}

.flash-dismiss {
  min-width: 28px;
  min-height: 28px;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  cursor: pointer;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-4);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.footer-wordmark {
  margin-bottom: var(--space-2);
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.landing-hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: var(--space-16) var(--space-4);
  overflow: hidden;
  text-align: center;
}

.hero-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(108, 71, 255, 0.12), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  margin: 0;
  background: var(--accent-muted);
  color: #d8d0ff;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 840px;
  margin: 0;
  color: var(--text-primary);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: var(--space-3);
}

.microcopy {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.section-heading {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.eyebrow {
  margin: 0;
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.section-heading h2,
.cta-banner h2,
.page-header h1,
.auth-header h1,
.dashboard-hero h1 {
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0;
}

.section-heading h2,
.cta-banner h2 {
  font-size: 28px;
  line-height: 1.15;
}

.features-grid {
  display: grid;
  gap: var(--space-4);
}

.feature-card {
  display: grid;
  gap: var(--space-3);
  min-height: 220px;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.feature-card svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-card h3,
.step-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.feature-card p,
.step-card p,
.form-section-head p,
.page-header p,
.auth-header p,
.dashboard-hero p,
.section-head span {
  margin: 0;
  color: var(--text-secondary);
}

.steps {
  display: grid;
  gap: var(--space-4);
  position: relative;
}

.step-card {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.step-card span {
  display: block;
  color: var(--accent-muted);
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
}

.cta-banner {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
              linear-gradient(135deg, rgba(108, 71, 255, 0.75), rgba(255, 255, 255, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--space-4);
}

.auth-card {
  width: min(400px, 100%);
}

.auth-wordmark {
  display: block;
  min-height: 44px;
  margin-bottom: var(--space-6);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.auth-header {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  text-align: center;
}

.auth-header h1 {
  font-size: 28px;
  line-height: 1.25;
}

.auth-switch {
  margin: var(--space-6) 0 0;
  color: var(--text-secondary);
  text-align: center;
}

.auth-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 4px;
}

.bot-create-page,
.dashboard-page {
  padding: var(--space-8) var(--space-4) var(--space-16);
}

.bot-create-shell,
.dashboard-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.bot-create-shell {
  width: min(640px, 100%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
}

.page-header,
.dashboard-hero {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.page-header h1,
.dashboard-hero h1 {
  font-size: 32px;
  line-height: 1.15;
}

.bot-form {
  display: grid;
  gap: var(--space-8);
}

.form-section {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border-subtle);
}

.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section-head {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-3);
}

.section-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--accent-muted);
  color: #d8d0ff;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-weight: 600;
}

.form-section h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}

.bot-preview-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  padding: 6px 12px;
  color: var(--text-primary);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 13px;
}

.choice-grid,
.settings-grid {
  display: grid;
  gap: var(--space-4);
}

.swatches,
.emojis {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.swatch,
.emoji {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.swatch.active,
.emoji.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.counter {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--text-muted);
  font-size: 13px;
}

.static-field,
.range-row,
.toggle {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.static-field strong {
  font-size: 15px;
  font-weight: 500;
}

.range-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.range-row input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent);
}

.value {
  color: #d8d0ff;
  font-size: 13px;
  font-weight: 600;
}

.toggle {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.toggle small {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
}

.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

.voice-box {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
}

.file-input {
  padding: 10px;
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.record-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
}

.record-bars i {
  width: 5px;
  height: 9px;
  background: var(--accent);
  border-radius: var(--radius-full);
}

.review {
  display: grid;
  gap: var(--space-2);
}

.review-row {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.review-label {
  color: var(--text-muted);
  font-size: 13px;
}

.review-value {
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dashboard-shell {
  width: min(1120px, 100%);
}

.dashboard-hero {
  align-items: start;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.avatar,
.bot-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.bot-mark {
  background: var(--bot-color, var(--accent));
  border-radius: var(--radius-md);
}

.urdu {
  color: var(--text-secondary);
  line-height: 1.7;
}

.dashboard-user b,
.dashboard-user span {
  display: block;
}

.dashboard-user span {
  color: var(--text-secondary);
  font-size: 13px;
}

.stats,
.bots {
  display: grid;
  gap: var(--space-4);
}

.stat,
.bot-card,
.table-panel,
.skeleton,
.empty {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.stat {
  padding: var(--space-5);
}

.stat span {
  color: var(--text-secondary);
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: var(--space-2);
  font-size: 28px;
  line-height: 1.2;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-4);
}

.section-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.bot-card {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
}

.bot-top,
.bot-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #d8d0ff;
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 12px;
}

.bot-name {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.bot-org,
.last,
.muted {
  color: var(--text-secondary);
}

.call {
  min-height: 44px;
  padding: 8px 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.table-panel {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

th,
td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

th {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  padding: var(--space-8);
  color: var(--text-secondary);
  text-align: center;
}

.skeleton {
  min-height: 180px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

@media (min-width: 640px) {
  .landing-hero h1 {
    font-size: 56px;
  }

  .section-heading h2,
  .cta-banner h2,
  .page-header h1,
  .dashboard-hero h1 {
    font-size: 40px;
  }

  .nav {
    padding: 0 var(--space-8);
  }

  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    padding: 0;
    background: transparent;
  }

  .hero-actions,
  .cta-actions,
  .form-footer {
    flex-direction: row;
    width: auto;
  }

  .features-grid,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid,
  .settings-grid,
  .review-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr auto;
  }

  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-inline: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .features-grid,
  .bots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 16%;
    right: 16%;
    height: 1px;
    background: var(--border-default);
  }

  .step-card {
    background: var(--bg-base);
  }

  .cta-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding-inline: 0;
  }

  .auth-card {
    min-height: 100vh;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

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

  .btn-spinner {
    animation: spin 700ms linear infinite;
  }

  #main-content {
    animation: fadeIn 300ms ease;
  }

  .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    border-color: var(--border-default);
  }

  .record-bars.recording i {
    animation: recordBar 900ms ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 60ms);
  }

  @keyframes recordBar {
    0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
    50% { transform: scaleY(2.5); opacity: 1; }
  }

  .reveal {
    opacity: 0;
    transform: translateY(4px);
  }

  .reveal.visible {
    animation: liftIn 200ms ease forwards;
  }

  .skeleton {
    animation: fadeIn 1200ms ease-in-out infinite alternate;
  }
}
