/* === Twilight Palette — Design System === */
:root {
  /* Surface */
  --surface: #fcf9f8;
  --surface-milky: #ffffff;
  --surface-container: #f0eded;
  --surface-container-low: #f6f3f2;
  --background: #fcf9f8;
  --background-warm: #FFFDF5;

  /* Primary — Plum-Bordeaux */
  --primary: #6D213C;
  --primary-hover: #500926;
  --primary-light: rgba(109, 33, 60, 0.08);
  --on-primary: #ffffff;

  /* Secondary — Gold */
  --secondary: #FFD700;
  --secondary-container: #fcd400;
  --secondary-light: rgba(255, 215, 0, 0.12);

  /* Text */
  --text: #1A1A1A;
  --text-soft: #534246;
  --text-muted: #867276;

  /* Outline */
  --outline: #867276;
  --outline-variant: #d9c1c5;
  --outline-light: rgba(217, 193, 197, 0.4);

  /* Accent */
  --accent-peach: #FFFAF0;
  --calm-beige: #F5F1E9;
  --glow-gold: rgba(255, 215, 0, 0.4);

  /* State colors */
  --error: #ba1a1a;
  --success: #347150;
  --success-light: #eaf7ef;

  /* Radius */
  --radius-card: 24px;
  --radius-btn: 16px;
  --radius-input: 16px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(26, 26, 26, 0.05);
  --shadow-card-hover: 0 12px 34px rgba(26, 26, 26, 0.10);
  --shadow-header: 0 1px 3px rgba(26, 26, 26, 0.06);

  /* Transitions */
  --trans: 0.2s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background-warm);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: 48px; line-height: 1.2; margin: 0 0 16px; max-width: 860px; }
h2 { font-size: 32px; line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; }

p { max-width: 820px; margin: 0 0 14px; }

.lead {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 720px;
}

/* === Layout === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-light);
  box-shadow: var(--shadow-header);
}

.topbar-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-icon {
  display: inline-block;
  font-size: 26px;
  margin-right: 6px;
  animation: bookGlow 3s ease-in-out infinite;
}

@keyframes bookGlow {
  0%, 100% { filter: drop-shadow(0 0 2px var(--glow-gold)); }
  50% { filter: drop-shadow(0 0 8px var(--glow-gold)); }
}

.brand:hover { text-decoration: none; opacity: 0.85; }

.nav-shell {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--outline-light);
  border-radius: 14px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

body.nav-open {
  overflow: hidden;
}

.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background var(--trans), color var(--trans);
}

.nav a:hover {
  background: var(--primary-light);
  color: var(--primary);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 12px rgba(109, 33, 60, 0.25);
}

/* Account nav — sidebar */
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-nav a {
  width: 100%;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--surface-container-low);
}

.account-nav a:hover {
  border-color: rgba(109, 33, 60, 0.16);
}

.account-nav a[aria-current="page"] {
  border-color: rgba(109, 33, 60, 0.18);
}

.account-menu-header {
  margin-bottom: 18px;
}

.account-menu-heading {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--primary);
}

.account-menu-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

/* === Main content === */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 64px;
  min-height: 60vh;
}

.main:has(.account-menu) {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}

.content { min-width: 0; }

.account-page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.account-page-shell > :first-child {
  margin-top: 0;
}

.account-page-shell-wide {
  max-width: 1280px;
}

/* === Account sidebar === */
.account-menu {
  position: sticky;
  top: 88px;
  align-self: start;
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
}

.menu-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--outline-light);
}

/* === Footer === */
.footer {
  background: #3d3836;
  color: #e4e3db;
  padding: 64px 40px 40px;
  margin-top: 80px;
  border-top: 4px solid var(--primary);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: Georgia, "Times New Roman", "Noto Serif", serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: #c8c7bf;
  max-width: 360px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c8c7bf;
  margin: 0 0 16px;
}

.footer a {
  display: block;
  color: #e4e3db;
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
}

.footer a:hover { color: var(--secondary); text-decoration: none; }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #a9a8a1;
}

/* === Buttons === */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
  background: var(--surface-milky);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.button:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}

.button.primary, button.primary {
  background: var(--primary);
  color: var(--on-primary);
}

.button.primary:hover, button.primary:hover {
  background: var(--primary-hover);
}

.button.secondary {
  background: var(--primary-light);
  color: var(--primary);
}

.button.secondary:hover {
  background: rgba(109, 33, 60, 0.14);
}

.button.subtle {
  background: var(--surface-container-low);
  color: var(--text-soft);
  box-shadow: none;
}

.button.subtle:hover {
  background: var(--surface-container);
  box-shadow: none;
}

.button.danger {
  background: rgba(186, 26, 26, 0.08);
  color: var(--error);
  box-shadow: none;
}

.button.danger:hover {
  background: rgba(186, 26, 26, 0.14);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--primary-light);
  box-shadow: none;
}

.cta-pulse {
  animation: ctaPulse 2.5s infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-gold); }
  50% { box-shadow: 0 0 28px 6px var(--glow-gold); }
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* === Cards & Grids === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.card, .panel {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 32px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans), transform var(--trans);
}

.card:hover, .panel:hover {
  box-shadow: var(--shadow-card-hover);
}

.account-orders-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.account-orders-filter-copy h3,
.account-orders-filter-copy p {
  margin-left: 0;
  margin-right: 0;
}

.account-orders-filter-copy p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.account-orders-filter-actions {
  justify-content: flex-start;
}

.account-order-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.account-order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.account-order-copy {
  min-width: 0;
}

.account-order-label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.account-order-title {
  margin: 0 0 6px;
}

.account-order-meta,
.account-order-date {
  margin: 0;
  color: var(--text-soft);
}

.account-order-status-pill {
  flex: 0 0 auto;
}

.account-order-actions {
  display: flex;
  justify-content: flex-end;
}

.order-success-shell {
  max-width: 760px;
  margin: 0 auto 40px;
  display: grid;
  gap: 20px;
}

.order-success-summary-card {
  text-align: center;
}

.order-success-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.order-success-id {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.order-success-status {
  margin: 10px 0 0;
  color: var(--text-soft);
}

.order-success-access-value {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-container-low);
  font-family: "Courier New", monospace;
  overflow-wrap: anywhere;
}

.order-success-next-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--primary);
}

.order-success-actions {
  justify-content: flex-start;
}

/* === Dashboard cards === */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.dashboard-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans), transform var(--trans);
}

.dashboard-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 6px 0 4px;
}

.card-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* Accent card colors */
.card-accent-mint { border-left: 4px solid var(--success); }
.card-accent-lavender { border-left: 4px solid #6b5b9e; }
.card-accent-peach { border-left: 4px solid #e8945a; }
.card-accent-rose { border-left: 4px solid var(--primary); }

/* === Balance cards === */
.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.balance-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.balance-card .card-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.balance-card .card-value {
  font-size: 36px;
}

.balance-section {
  margin: 32px 0 20px;
}

.balance-section h2 {
  font-size: 22px;
  margin: 0 0 16px;
}

/* === Tables === */
.scroll-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.orders-table, .payments-table, .support-history-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.orders-table th, .payments-table th, .support-history-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--outline-light);
  white-space: nowrap;
}

.orders-table td, .payments-table td, .support-history-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--outline-light);
}

.orders-table tr:hover td,
.payments-table tr:hover td,
.support-history-table tr:hover td {
  background: rgba(109, 33, 60, 0.03);
}

.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-actions a { font-size: 13px; }

/* === State pills === */
.state-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.state-pending { background: var(--secondary-light); color: var(--on-secondary-container); }
.state-active { background: var(--primary-light); color: var(--primary); }
.state-ready { background: var(--success-light); color: var(--success); }

/* === Forms === */
.form-grid {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-input);
  background: var(--calm-beige);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--trans), box-shadow var(--trans);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 33, 60, 0.12);
}

.form-grid textarea { min-height: 100px; resize: vertical; }

/* === Toggle switch === */
.toggle-switch {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-weight: 400 !important;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: var(--radius-pill);
  background: var(--outline-variant);
  position: relative;
  cursor: pointer;
  transition: background var(--trans);
}

.toggle-switch input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform var(--trans);
}

.toggle-switch input[type="checkbox"]:checked {
  background: var(--primary);
}

.toggle-switch input[type="checkbox"]:checked::after {
  transform: translateX(20px);
}

.toggle-switch input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === Order form groups === */
.order-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 40px;
}

.order-form-column,
.order-side-column,
.content {
  min-width: 0;
}

.order-sidebar-card {
  position: sticky;
  top: 88px;
}

.auth-card-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto 28px;
}

.auth-card {
  max-width: none;
  margin: 0;
}

.auth-provider-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-provider-buttons {
  display: grid;
  gap: 12px;
  margin: 18px 0 14px;
}

.provider-google,
.provider-yandex {
  width: 100%;
}

.field-help,
.provider-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}


.auth-code-meta {
  padding: 16px 18px;
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-input);
  background: linear-gradient(135deg, rgba(109, 33, 60, 0.08), rgba(255, 215, 0, 0.10));
}

.auth-code-timer {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.auth-code-timer.is-expired {
  color: var(--error);
}

.button[disabled],
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.account-entry-shell,
.account-access-card,
.auth-page-shell {
  max-width: 100%;
}

.order-group {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--surface-milky);
}

.order-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline-light);
}

/* === Review card === */
.review-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.review-section {
  padding: 20px 28px;
  border-bottom: 1px solid var(--outline-light);
}

.review-section:last-child { border-bottom: none; }

.review-section h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-items { display: grid; gap: 8px; }

.review-item {
  display: flex;
  gap: 12px;
  font-size: 15px;
}

.review-label {
  min-width: 120px;
  color: var(--text-soft);
  font-weight: 600;
}

.review-value {
  color: var(--text);
}

/* === Voice page === */
.voice-page {
  max-width: 760px;
  margin: 0 auto;
}

.voice-hero {
  text-align: center;
  padding: 10px 0 24px;
}

.voice-stepper {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.voice-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
}

.voice-step .step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
}

.voice-step.active { color: var(--primary); }
.voice-step.active .step-num {
  background: var(--primary);
  color: var(--on-primary);
}

.voice-prompter {
  max-width: 760px;
  margin: 20px auto;
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  font-size: 20px;
  line-height: 1.75;
}

.voice-prompter p {
  max-width: 100%;
  margin: 14px 0;
}

.voice-prompter .intonation {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--calm-beige);
  border-radius: 4px;
  padding: 1px 8px;
  margin-right: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.voice-record-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 40px;
  font-size: 18px;
  border-radius: var(--radius-pill);
  margin: 16px auto;
}

/* === Voice cards (account) === */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.voice-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
}

.voice-state { font-size: 14px; font-weight: 700; margin: 4px 0; }

.voice-state-accepted { color: var(--success); }

.voice-state-rerecord { color: #c95d1a; }

.voice-state-pending { color: var(--text-muted); }

/* === Archive grid === */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.archive-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans), transform var(--trans);
}

.archive-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.archive-card.is-hidden,
.voice-card.is-hidden {
  background: var(--surface-container-low);
  border-style: dashed;
}

.card-cover {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.card-cover-mint { background: var(--success-light); }
.card-cover-lavender { background: #eee8ff; }
.card-cover-peach { background: #ffe3d0; }

.card-body { padding: 20px 24px 24px; }

.card-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0;
}

/* === Pricing cards === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.pricing-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow var(--trans), transform var(--trans);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.pricing-featured {
  border-color: var(--primary);
  box-shadow: 0 14px 34px rgba(109, 33, 60, 0.18);
}

.pricing-featured::after {
  content: "Популярный";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--on-secondary-container);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

.pricing-amount {
  font-size: 44px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 4px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(217, 193, 197, 0.3);
  font-size: 14px;
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

/* === Hero === */
.hero {
  padding: 20px 0 40px;
}

.hero-animated {
  animation: heroFadeIn 0.8s ease-out;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px 0 20px;
}

/* === Steps grid === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.step-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow var(--trans), transform var(--trans);
}

.step-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.step-num-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* === Stats bar === */
.stats-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

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

/* === FAQ === */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans);
}

details:hover { box-shadow: var(--shadow-card-hover); }

details[open] { background: #ffffff; }

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}

/* === Settings blocks === */
.settings-block {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 28px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  margin: 0 0 20px;
  max-width: 640px;
}

.settings-block h2 {
  font-size: 20px;
  margin: 0 0 18px;
}

/* === Support form === */
.support-form {
  display: grid;
  gap: 18px;
  max-width: none;
  margin: 0;
}

.support-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.support-form input, .support-form select, .support-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-input);
  background: var(--calm-beige);
  font-size: 16px;
  font-family: inherit;
}

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

.support-history { margin-top: 36px; }

/* === Note banner === */
.note-banner {
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  background: var(--secondary-light);
  color: #6e5c00;
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0;
}

.note-banner-success {
  border-color: rgba(33, 140, 93, 0.24);
  background: rgba(33, 140, 93, 0.12);
  color: #1f6a47;
}

.note-banner-error {
  border-color: rgba(186, 26, 26, 0.22);
  background: rgba(186, 26, 26, 0.10);
  color: #8f1d1d;
}

/* === Example categories === */
.example-category { margin: 28px 0 14px; }

.example-category h2 {
  font-size: 20px;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--outline-light);
}

/* === Legal page === */
.legal-page { max-width: 760px; }

.legal-page .panel { margin-bottom: 20px; }

/* === Clean list === */
.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
}

/* === Animations === */
@keyframes cardAppear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-card, .card, .trust-card, .archive-card, .voice-card, .pricing-card, .step-card, .settings-block {
  animation: cardAppear 0.5s ease-out both;
}

.home-card:nth-child(2), .card:nth-child(2), .trust-card:nth-child(2) { animation-delay: 0.05s; }
.home-card:nth-child(3), .card:nth-child(3), .trust-card:nth-child(3) { animation-delay: 0.1s; }
.home-card:nth-child(4), .card:nth-child(4), .trust-card:nth-child(4) { animation-delay: 0.15s; }
.home-card:nth-child(5) { animation-delay: 0.2s; }
.home-card:nth-child(6) { animation-delay: 0.22s; }
.home-card:nth-child(7) { animation-delay: 0.24s; }
.home-card:nth-child(8) { animation-delay: 0.26s; }

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.state-pill.state-active {
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes voiceWave {
  0%, 100% { transform: scaleY(1); }
  25% { transform: scaleY(1.3); }
  50% { transform: scaleY(0.8); }
  75% { transform: scaleY(1.2); }
}

.voice-wave {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  height: 24px;
}

.voice-wave-bar {
  width: 3px;
  height: 12px;
  background: var(--primary);
  border-radius: 2px;
  animation: voiceWave 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-wave-bar:nth-child(5) { animation-delay: 0.4s; }

/* === Output / answer box === */
.output-box {
  min-height: 90px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-sm);
  background: var(--calm-beige);
  white-space: pre-wrap;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 13px;
}

/* === Landing page === */
.home-hero {
  background: linear-gradient(180deg, var(--accent-peach) 0%, var(--surface) 60%);
  padding: 60px 0 80px;
  margin: -48px -40px 0;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-left { text-align: left; }
.hero-left h1 { font-size: 48px; }

.hero-right { display: flex; align-items: center; justify-content: center; }

.hero-visual {
  text-align: center;
  padding: 40px;
  background: radial-gradient(ellipse, var(--glow-gold) 0%, transparent 70%);
  border-radius: var(--radius-card);
}

.hero-book-glow {
  font-size: 100px;
  line-height: 1;
  animation: heroFadeIn 1.2s ease-out;
}

.hero-stars {
  font-size: 20px;
  color: var(--secondary);
  margin: 8px 0;
  letter-spacing: 12px;
}

.hero-mood {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 8px 0 0;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* Landing sections */
.home-section {
  padding: 80px 0;
  margin: 0 -40px;
}

.home-section:nth-child(even) {
  background: var(--surface-milky);
}

.home-section-title {
  text-align: center;
  font-size: 36px;
  color: var(--primary);
  margin: 0 auto 16px;
  max-width: 1200px;
  padding: 0 40px;
}

.home-section-sub {
  text-align: center;
  font-size: 18px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 40px;
}

.home-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-card {
  background: var(--surface-milky);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans), transform var(--trans);
}

.home-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.home-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  background: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 16px;
}

.home-card h3 { font-size: 18px; color: var(--primary); margin: 0 0 8px; }
.home-card p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* Steps */
.home-step {
  text-align: center;
  padding: 24px 16px;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.step-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.home-grid-4 .home-step:last-child .step-circle::after { display: none; }

.home-step h3 { font-size: 20px; margin: 0 0 8px; }
.home-step p { font-size: 14px; color: var(--text-soft); max-width: 200px; margin: 0 auto; }

/* Voice block */
.home-voice-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 0 40px;
}

.home-voice-left, .home-voice-right {
  background: var(--surface-milky);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
}

.home-voice-block ul { margin: 12px 0 0; padding-left: 20px; }
.home-voice-block li { margin-bottom: 8px; font-size: 15px; color: var(--text-soft); }

.home-voice-prompter {
  max-width: 760px;
  margin: 0 auto 32px;
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
  font-size: 20px;
  line-height: 1.75;
}

.voice-step-shell .home-voice-block,
.voice-step-shell .voice-compat-grid {
  max-width: 1100px;
}

.voice-step-shell .home-voice-left,
.voice-step-shell .home-voice-right,
.voice-step-shell .home-voice-prompter,
.voice-step-shell .voice-compat-card {
  width: 100%;
  box-sizing: border-box;
}

.voice-compat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto 28px;
  padding: 0 40px;
}

.voice-compat-card {
  min-width: 0;
}

.voice-runtime-shell {
  max-width: 1100px;
}

.voice-order-status-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.voice-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.voice-upload-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.voice-order-switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-order-switch select,
.voice-file-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-input);
  background: var(--surface-milky);
  color: var(--text);
}

.voice-status-banner {
  padding: 14px 16px;
  border-radius: var(--radius-input);
  background: var(--surface-container-low);
  border: 1px solid var(--outline-light);
}

.voice-status-success {
  background: var(--success-light);
  border-color: rgba(52, 113, 80, 0.25);
}

.voice-upload-meta {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.voice-explainer {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.voice-recorder-controls,
.voice-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.voice-reading-card {
  border: 1px solid rgba(109, 33, 60, 0.12);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(255, 249, 235, 0.9), rgba(255, 253, 245, 0.96));
  box-shadow: var(--shadow-card);
  font-size: 18px;
  line-height: 1.7;
}

.voice-reading-card p {
  margin: 0 0 14px;
}

.voice-reading-card p:last-child {
  margin-bottom: 0;
}

.voice-reading-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.voice-reading-help {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.voice-local-warning {
  padding: 12px 14px;
  border: 1px dashed rgba(109, 33, 60, 0.18);
  border-radius: var(--radius-input);
  background: rgba(255, 249, 235, 0.72);
}

.voice-preview-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice-preview-shell[hidden] {
  display: none;
}

.voice-preview {
  width: 100%;
  margin-top: 8px;
}

.voice-upload-success[hidden],
.voice-runtime-note[hidden],
.voice-upload-diagnostics[hidden] {
  display: none;
}

.voice-upload-diagnostics {
  margin-top: 0;
}

.voice-upload-diagnostics-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.voice-upload-diagnostics-list {
  gap: 8px;
}

.voice-upload-diagnostics-list strong {
  overflow-wrap: anywhere;
}

.voice-diagnostics-list {
  margin-top: 14px;
}

.home-voice-prompter .intonation {
  display: inline-block;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--calm-beige);
  border-radius: 4px;
  padding: 1px 8px;
  margin-right: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.home-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

.pill-badge {
  display: inline-block;
  background: var(--calm-beige);
  color: #6e5c00;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.3);
  margin-bottom: 24px;
}

/* === Trust section === */
.section-title {
  text-align: center;
  font-size: 36px;
  margin: 0 0 40px;
  color: var(--primary);
}

.trust-section {
  padding: 80px 0 60px;
  background: var(--surface-milky);
  margin: 0 -40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.trust-card {
  background: var(--surface-milky);
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--trans), transform var(--trans);
}

.trust-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  background: var(--primary-light);
  border-radius: 50%;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 18px;
  color: var(--primary);
  margin: 0 0 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
}

/* === Features & Steps sections === */
.features-section, .steps-section {
  padding: 80px 0 60px;
}

.steps-section { background: var(--surface-milky); margin: 0 -40px; }
.steps-section .section-title, .steps-section .steps-grid, .steps-section .hero-actions {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.steps-section .hero-actions { justify-content: center; margin-top: 28px; }

/* === LK: bento quick actions === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}

.bento-card {
  border-radius: var(--radius-card);
  padding: 28px 24px;
  color: var(--on-primary);
  text-align: left;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}

.bento-card.primary-action {
  background: var(--primary);
  box-shadow: 0 4px 20px rgba(109, 33, 60, 0.2);
}

.bento-card.secondary-action {
  background: var(--surface-milky);
  color: var(--text);
  border: 1px solid var(--outline-light);
  box-shadow: var(--shadow-card);
}

.bento-icon { font-size: 36px; margin-bottom: 16px; }

.bento-label { font-size: 15px; font-weight: 700; }

.bento-glow {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

/* === LK: stat row === */
.stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}

.stat-card {
  border: 1px solid var(--outline-light);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  background: var(--surface-milky);
  box-shadow: var(--shadow-card);
}

.stat-card.bg-warm { background: var(--calm-beige); border-color: transparent; }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

/* === LK: asymmetric layout === */
.asymmetric-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin: 0 0 48px;
}

.asymmetric-left, .asymmetric-right { display: flex; flex-direction: column; gap: 24px; }

/* === Responsive additions === */

@media (max-width: 960px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .home-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .home-voice-block { grid-template-columns: 1fr; }
  .voice-compat-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .asymmetric-layout { grid-template-columns: 1fr; }
  .home-section { margin: 0 -20px; padding: 60px 0; }
  .home-hero { margin: -32px -20px 0; }
}

@media (max-width: 768px) {
  .home-grid-4 { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .home-hero { padding: 40px 0 60px; }
  .home-hero h1 { font-size: 28px; }
  .home-section-title { font-size: 26px; }
  .step-circle::after { display: none; }
}

/* === Responsive === */
@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .main:has(.account-menu) {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-menu { position: static; }

  .order-page-shell {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 0 20px;
    min-height: 68px;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
  }

  .nav-shell {
    position: absolute;
    top: calc(100% - 1px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    background: rgba(255, 253, 245, 0.98);
    border: 1px solid var(--outline-light);
    border-radius: 24px;
    box-shadow: var(--shadow-card-hover);
  }

  .nav-shell.is-open {
    display: block;
  }

  .nav-shell .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .public-nav a,
  .account-nav a,
  .hero-actions .button,
  .button-row .button,
  .button-row button {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .main { padding: 32px 20px 48px; }

  .footer { padding: 48px 20px 32px; }

  .account-page-shell {
    padding: 0 20px;
  }

  .order-page-shell {
    margin: 0 -20px 40px;
    padding: 0 10px 20px;
    gap: 16px;
    background: var(--surface-milky);
  }

  .order-form-column .card,
  .order-side-column .card {
    padding: 24px 16px;
    border-radius: 20px;
    background: var(--surface-milky);
  }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .grid, .dashboard-grid, .pricing-grid,
  .voice-grid, .archive-grid, .steps-grid,
  .order-page-shell,
  .auth-card-stack {
    grid-template-columns: 1fr;
  }

  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .account-nav a {
    flex: 1 1 180px;
    width: auto;
    max-width: none;
  }

  .account-menu {
    padding: 18px;
  }

  .account-menu-header {
    margin-bottom: 14px;
  }

  .account-order-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-order-actions,
  .order-success-actions {
    justify-content: stretch;
  }

  .balance-cards { grid-template-columns: 1fr; }

  .scroll-table-wrap { max-height: 320px; }

  .orders-table, .payments-table {
    font-size: 12px;
  }

  .orders-table th, .orders-table td,
  .payments-table th, .payments-table td {
    padding: 10px 12px;
  }

  .support-form input, .support-form select, .support-form textarea {
    font-size: 15px;
  }

  .voice-stepper {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .voice-step-shell .home-voice-block,
  .voice-step-shell .voice-compat-grid {
    padding: 0;
    gap: 16px;
  }

  .voice-step-shell .home-voice-left,
  .voice-step-shell .home-voice-right,
  .voice-step-shell .home-voice-prompter,
  .voice-step-shell .voice-compat-card {
    padding: 22px 18px;
  }

  .voice-step-shell .home-voice-prompter {
    margin-bottom: 20px;
  }

  .voice-upload-grid {
    grid-template-columns: 1fr;
  }

  .voice-recorder-controls,
  .voice-pending-actions {
    flex-direction: column;
  }

  .voice-reading-card {
    padding: 18px 16px;
    font-size: 17px;
  }

  .order-sidebar-card {
    position: static;
  }

  .order-page-shell .form-grid,
  .order-page-shell .card,
  .order-group,
  .order-group label,
  .order-group input,
  .order-group select,
  .order-group textarea {
    max-width: 100%;
  }
}