@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #f6f0e5;
  --muted: #a39a8c;
  --surface: rgba(20, 16, 14, 0.86);
  --surface-strong: #171210;
  --line: rgba(226, 182, 79, 0.16);
  --lime: #e33a35;
  --lime-dark: #9b1f21;
  --coral: #4dd978;
  --gold: #d9b45b;
  --page: #070303;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% -22%, rgba(154, 22, 28, .48), transparent 55%),
    radial-gradient(circle at 100% 48%, rgba(88, 8, 13, .28), transparent 42%),
    linear-gradient(145deg, #070303 0%, #130507 54%, #050202 100%);
  background-attachment: fixed;
  font-family: "Manrope", system-ui, sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.ambient {
  position: fixed;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .08;
  pointer-events: none;
  z-index: -1;
}
.ambient-one { background: var(--lime); top: -180px; left: -150px; opacity: .1; }
.ambient-two { background: #6f1218; right: -180px; top: 34%; opacity: .08; }

.auth-view {
  position: relative;
  width: min(1260px, calc(100% - 40px));
  min-height: 100vh;
  margin-inline: auto;
  padding: 24px 0 54px;
}
.auth-view::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(227,58,53,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,58,53,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.auth-nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(227,58,53,.16);
}
.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a79d97;
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-secure svg { width: 17px; height: 17px; fill: var(--coral); filter: drop-shadow(0 0 8px rgba(77,217,120,.32)); }
.auth-message {
  max-width: 980px;
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}
.auth-message p { margin: 0; color: #d7d0c8; font-size: 14px; }
.auth-message strong { color: var(--ink); }
.auth-pulse { display: flex; align-items: center; gap: 2px; height: 23px; padding: 0 8px; border: 1px solid rgba(77,217,120,.25); border-radius: 8px; background: rgba(77,217,120,.05); }
.auth-pulse i { display: block; width: 2px; height: 5px; border-radius: 3px; background: var(--coral); box-shadow: 0 0 8px rgba(77,217,120,.45); }
.auth-pulse i:nth-child(2), .auth-pulse i:nth-child(4) { height: 12px; }
.auth-pulse i:nth-child(3) { height: 18px; }

.auth-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(227,58,53,.22);
  border-radius: 32px;
  background: rgba(8, 6, 7, .88);
  box-shadow: 0 38px 120px rgba(0,0,0,.62), 0 0 70px rgba(142,16,23,.09), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(18px);
}
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(227,58,53,.025);
}
.plan-panel, .auth-form-panel { position: relative; z-index: 1; }
.plan-panel {
  overflow: hidden;
  padding: 76px clamp(38px, 5vw, 74px) 54px;
  background:
    radial-gradient(circle at 12% 8%, rgba(227,58,53,.19), transparent 35%),
    linear-gradient(145deg, rgba(227,58,53,.08), rgba(16,10,11,.92) 52%, rgba(4,8,5,.96));
  border-right: 1px solid rgba(227,58,53,.16);
}
.plan-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .28;
  background-image:
    linear-gradient(rgba(227,58,53,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,58,53,.045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(135deg, black, transparent 75%);
}
.plan-glow { position: absolute; width: 280px; height: 280px; right: -100px; bottom: -120px; border-radius: 50%; background: var(--coral); filter: blur(100px); opacity: .08; }
.plan-label {
  position: relative;
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgba(217,180,91,.34);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(217,180,91,.055);
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .12em;
  box-shadow: 0 0 25px rgba(217,180,91,.05);
}
.plan-panel h1 { position: relative; margin: 25px 0 34px; font-size: clamp(48px, 5.2vw, 76px); line-height: .98; letter-spacing: -.065em; }
.plan-panel h1 em { color: var(--lime); font-style: normal; text-shadow: 0 0 34px rgba(227,58,53,.24); }
.plan-panel h1 strong { color: var(--coral); text-shadow: 0 0 34px rgba(77,217,120,.18); }
.plan-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 18px 20px;
  border: 1px solid rgba(227,58,53,.3);
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(227,58,53,.11), rgba(77,217,120,.04));
  box-shadow: inset 0 0 32px rgba(227,58,53,.025);
}
.plan-chip span { color: #aa9d97; font: 500 9px "DM Mono", monospace; letter-spacing: .12em; }
.plan-chip b { color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.benefit-list { position: relative; display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 11px; color: #cec6c0; font-size: 14px; }
.benefit-list li span { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #061109; background: var(--coral); font-weight: 800; box-shadow: 0 0 20px rgba(77,217,120,.18); }
.plan-wave { position: absolute; left: 52px; right: 52px; bottom: 31px; height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: .24; }
.plan-wave i { width: 2px; height: 8px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 10px rgba(227,58,53,.5); }
.plan-wave i:nth-child(2n) { height: 20px; }
.plan-wave i:nth-child(3n) { height: 31px; background: var(--coral); box-shadow: 0 0 10px rgba(77,217,120,.4); }

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 62px clamp(36px, 5vw, 74px);
  background: linear-gradient(160deg, rgba(255,255,255,.018), rgba(0,0,0,.12));
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 36px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.025); }
.auth-tab { min-height: 42px; border: 0; border-radius: 9px; color: #807671; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; transition: color .2s, background .2s, box-shadow .2s; }
.auth-tab.is-active { color: var(--ink); background: linear-gradient(135deg, rgba(227,58,53,.22), rgba(227,58,53,.09)); box-shadow: inset 0 0 0 1px rgba(227,58,53,.24), 0 8px 25px rgba(0,0,0,.16); }
.auth-copy h2 { margin: 8px 0 8px; font-size: clamp(29px, 3vw, 39px); letter-spacing: -.05em; }
.auth-copy p { margin: 0 0 31px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 18px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span { color: #d4cbc5; font-size: 11px; font-weight: 700; }
.input-wrap { min-height: 57px; display: flex; align-items: center; gap: 11px; padding: 0 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.025); transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap:focus-within { border-color: rgba(227,58,53,.58); background: rgba(227,58,53,.025); box-shadow: 0 0 0 3px rgba(227,58,53,.07), 0 0 30px rgba(227,58,53,.05); }
.input-wrap > svg { flex: 0 0 18px; width: 18px; fill: none; stroke: #756c67; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.input-wrap input::placeholder { color: #5f5753; }
.password-toggle { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #706763; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--ink); background: rgba(255,255,255,.045); }
.password-toggle svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.auth-error { margin: -5px 0 0; color: #ff7772; font-size: 11px; }
.auth-submit { min-height: 58px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,122,116,.38); border-radius: 13px; color: #fff8f5; background: linear-gradient(135deg, #ef4a45, #9e171d); box-shadow: 0 15px 40px rgba(167,18,25,.23), inset 0 1px 0 rgba(255,255,255,.14); cursor: pointer; font-weight: 800; transition: transform .2s, filter .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 20px 48px rgba(167,18,25,.3), 0 0 28px rgba(227,58,53,.1); }
.auth-submit:disabled, .auth-tab:disabled { cursor: wait; opacity: .68; }
.auth-submit.is-loading svg { animation: auth-arrow-pulse .8s ease-in-out infinite alternate; }
@keyframes auth-arrow-pulse { to { transform: translateX(5px); opacity: .45; } }
.auth-submit svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.auth-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; color: #796f6b; font: 400 9px "DM Mono", monospace; text-transform: uppercase; }
.auth-trust span { display: flex; align-items: center; gap: 7px; }
.auth-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 9px rgba(77,217,120,.5); }

.topbar-actions { display: flex; align-items: center; gap: 18px; }
.logout-button { border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 7px 11px; color: #9d938e; background: rgba(255,255,255,.025); cursor: pointer; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.logout-button:hover { color: var(--ink); border-color: rgba(227,58,53,.35); }

.topbar, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.04em; }
.brand > span:last-child { display: flex; align-items: baseline; gap: 9px; }
.brand small { color: var(--lime); font: 500 8px "DM Mono", monospace; letter-spacing: .12em; }
.brand-logo { width: 55px; height: 38px; object-fit: contain; object-position: center; filter: drop-shadow(0 4px 12px rgba(227,58,53,.2)); }
.privacy-pill { display: inline-flex; align-items: center; gap: 7px; color: #b9c0b4; font-family: "DM Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.privacy-pill svg { width: 16px; height: 16px; fill: var(--lime); }

.hero { padding: 85px 0 66px; max-width: 860px; }
.eyebrow, .section-kicker { color: var(--lime); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .14em; font-weight: 500; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 25px; }
.eyebrow span { width: 30px; height: 1px; background: var(--lime); }
.hero h1 { margin: 0; font-size: clamp(47px, 7vw, 88px); letter-spacing: -.075em; line-height: .95; font-weight: 700; }
.hero h1 em { color: var(--lime); font-style: normal; text-shadow: 0 0 42px rgba(227,58,53,.2); }
.hero h1 strong { color: var(--coral); font-weight: 700; text-shadow: 0 0 42px rgba(77,217,120,.14); }
.hero > p { max-width: 660px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; margin: 30px 0 0; }
.hero > p strong { display: block; margin-top: 4px; color: var(--ink); font-size: 1.08em; }

.workspace {
  padding: 38px;
  background:
    linear-gradient(140deg, rgba(226,182,79,.035), transparent 28%),
    linear-gradient(320deg, rgba(225,57,50,.035), transparent 24%),
    rgba(12, 10, 9, .88);
  border: 1px solid rgba(227,58,53,.2);
  border-radius: 30px;
  box-shadow: 0 34px 110px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter: blur(14px);
}
.workspace-heading { display: flex; justify-content: flex-end; align-items: flex-end; min-height: 18px; margin-bottom: 14px; }
.workspace-heading h2 { margin: 7px 0 0; letter-spacing: -.04em; font-size: 26px; }
.ghost-button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.ghost-button:hover { color: var(--ink); }

.upload-grid { display: grid; grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); align-items: center; }
.plus { font-family: "DM Mono", monospace; color: var(--gold); font-size: 28px; text-align: center; }
.upload-card { position: relative; min-width: 0; padding: 22px; border: 1px solid rgba(227,58,53,.22); border-radius: var(--radius); background: linear-gradient(145deg, rgba(227,58,53,.065), rgba(255,255,255,.008) 42%, rgba(0,0,0,.1)); transition: border-color .25s, transform .25s, box-shadow .25s; }
.upload-card[data-slot="two"] { border-color: rgba(77,217,120,.2); background: linear-gradient(145deg, rgba(77,217,120,.055), rgba(255,255,255,.008) 42%, rgba(0,0,0,.1)); }
.upload-card:hover { border-color: rgba(227,58,53,.45); transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.upload-card[data-slot="two"]:hover { border-color: rgba(77,217,120,.42); }
.card-topline { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: flex-end; align-items: center; pointer-events: none; }
.number { font-family: "DM Mono", monospace; font-size: 9px; color: #8b806e; letter-spacing: .08em; }
.signal { height: 20px; display: flex; gap: 3px; align-items: center; }
.signal i { display: block; width: 2px; height: 5px; background: var(--lime); border-radius: 3px; opacity: .65; }
.signal i:nth-child(2), .signal i:nth-child(5) { height: 12px; }
.signal i:nth-child(3) { height: 18px; }
.signal i:nth-child(4) { height: 9px; }
.signal-coral i { background: var(--coral); }

.drop-zone { min-height: 300px; padding: 50px 20px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed rgba(227,58,53,.3); border-radius: 15px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--lime); background: rgba(227,58,53,.045); box-shadow: inset 0 0 42px rgba(227,58,53,.035); }
[data-slot="two"] .drop-zone { border-color: rgba(77,217,120,.27); }
[data-slot="two"] .drop-zone:hover, [data-slot="two"] .drop-zone:focus-visible, [data-slot="two"] .drop-zone.is-dragging { border-color: var(--coral); background: rgba(77,217,120,.045); box-shadow: inset 0 0 42px rgba(77,217,120,.035); }
.upload-icon { display: none; }
.upload-icon.coral { background: rgba(225,57,50,.1); color: var(--coral); }
.upload-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.audio-badge { width: 52px; height: 52px; display: grid; place-items: center; margin: -8px 0 16px; border-radius: 14px; font: 500 24px "DM Mono", monospace; }
.black-badge { color: var(--lime); border: 1px solid rgba(227,58,53,.38); background: linear-gradient(145deg, rgba(227,58,53,.18), rgba(0,0,0,.12)); box-shadow: inset 0 0 24px rgba(227,58,53,.07); }
.white-badge { color: var(--coral); border: 1px solid rgba(77,217,120,.36); background: linear-gradient(145deg, rgba(77,217,120,.15), rgba(0,0,0,.12)); box-shadow: inset 0 0 24px rgba(77,217,120,.06); }
.drop-zone h3 { font-size: 22px; margin: 0 0 5px; letter-spacing: -.03em; }
.drop-zone p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.drop-zone p strong { color: var(--lime); font-weight: 700; }
[data-slot="two"] .drop-zone p strong { color: var(--coral); }
.choose-button { color: #fff7f3; background: linear-gradient(135deg, #ef504b, #a91d22); border-radius: 9px; padding: 10px 16px; font-size: 12px; font-weight: 800; box-shadow: 0 8px 26px rgba(227,58,53,.14); }
.coral-button { color: #06120a; background: linear-gradient(135deg, #67ea8e, #2ca958); box-shadow: 0 8px 26px rgba(77,217,120,.12); }
.drop-zone small { color: #747d70; font-family: "DM Mono", monospace; font-size: 9px; margin-top: 14px; text-transform: uppercase; letter-spacing: .04em; }

.file-panel { min-height: 275px; padding-top: 44px; }
.file-panel canvas { display: block; width: 100%; height: 140px; border-radius: 12px; background: rgba(0,0,0,.17); }
.file-row { display: flex; align-items: center; gap: 12px; padding: 15px 2px 0; min-width: 0; }
.file-icon { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(227,58,53,.4); color: var(--lime); border-radius: 9px; font-family: "DM Mono", monospace; font-size: 10px; }
.coral-file { border-color: rgba(77,217,120,.42); color: var(--coral); }
.file-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-copy span { margin-top: 3px; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
.remove-file { flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; }
.remove-file:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }

.action-area { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 32px; }
.rule-summary { display: flex; align-items: center; gap: 13px; }
.summary-line { width: 3px; height: 35px; background: var(--lime); border-radius: 3px; }
.rule-summary div { display: flex; flex-direction: column; gap: 2px; }
.rule-summary b { font-size: 12px; }
.rule-summary small { color: var(--muted); font-size: 11px; }
.primary-button, .download-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid rgba(255,225,155,.35); border-radius: 12px; padding: 0 22px; color: #130f09; background: linear-gradient(135deg, #f2cf77, #bd8628); font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 0 12px 34px rgba(226,182,79,.12); transition: transform .2s, opacity .2s, filter .2s; }
.primary-button:hover:not(:disabled), .download-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-button:disabled { cursor: not-allowed; opacity: .28; box-shadow: none; }
.primary-button svg, .download-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.progress-panel, .error-panel, .result-panel { margin-top: 30px; border-radius: 18px; }
.progress-panel { padding: 24px; background: #171a16; border: 1px solid var(--line); }
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.progress-head > div { display: flex; flex-direction: column; gap: 7px; }
.progress-head strong { font-size: 17px; }
.progress-head > b { color: var(--lime); font-family: "DM Mono", monospace; }
.progress-track { height: 5px; background: #2a2e27; border-radius: 8px; overflow: hidden; margin-top: 21px; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--lime-dark), var(--lime)); border-radius: inherit; transition: width .3s ease; }
.progress-panel p { color: var(--muted); font-size: 11px; margin: 11px 0 0; }
.error-panel { padding: 18px 20px; border: 1px solid rgba(227,58,53,.38); background: rgba(227,58,53,.07); }
.error-panel strong { color: var(--lime); }
.error-panel p { margin: 5px 0 0; color: #c2aca7; font-size: 13px; }

.result-panel { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 25px; background: linear-gradient(135deg, rgba(77,217,120,.075), rgba(217,180,91,.035)); border: 1px solid rgba(77,217,120,.28); }
.result-check { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #07110a; }
.result-check svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.result-main h2 { margin: 5px 0 4px; font-size: 22px; letter-spacing: -.03em; }
.result-main p { color: var(--muted); font-size: 11px; margin: 0 0 13px; }
.result-main audio { display: block; width: min(100%, 430px); height: 36px; }
.download-button { min-width: 160px; }

footer { min-height: 84px; margin-top: 78px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #776c66; font: 10px "DM Mono", monospace; text-transform: uppercase; }

[hidden] { display: none !important; }

@media (max-width: 800px) {
  .auth-view { width: min(100% - 24px, 620px); padding-top: 8px; }
  .auth-shell { grid-template-columns: 1fr; }
  .plan-panel { min-height: 590px; border-right: 0; border-bottom: 1px solid rgba(227,58,53,.16); }
  .auth-form-panel { min-height: 600px; }
  .auth-message { padding: 18px 8px; }
  .topbar, main, footer { width: min(100% - 24px, 620px); }
  .hero { padding: 65px 4px 48px; }
  .workspace { padding: 22px 14px; border-radius: 22px; }
  .upload-grid { grid-template-columns: 1fr; gap: 14px; }
  .plus { height: 24px; line-height: 20px; }
  .action-area { flex-direction: column; align-items: stretch; }
  .primary-button { width: 100%; }
  .result-panel { grid-template-columns: auto 1fr; }
  .download-button { grid-column: 1 / -1; }
  footer { gap: 20px; text-align: right; }
}

@media (max-width: 480px) {
  .auth-nav { height: 70px; }
  .auth-secure { font-size: 0; }
  .auth-secure svg { width: 20px; height: 20px; }
  .auth-message { align-items: flex-start; text-align: left; }
  .auth-message p { font-size: 12px; line-height: 1.55; }
  .auth-pulse { margin-top: 1px; }
  .auth-shell { border-radius: 22px; }
  .plan-panel, .auth-form-panel { padding: 48px 23px; }
  .plan-panel { min-height: 570px; }
  .plan-panel h1 { font-size: 49px; }
  .plan-chip { align-items: flex-start; flex-direction: column; gap: 7px; }
  .benefit-list li { align-items: flex-start; font-size: 13px; }
  .auth-form-panel { min-height: 570px; }
  .auth-trust { flex-direction: column; gap: 10px; }
  .privacy-pill { font-size: 0; }
  .privacy-pill svg { width: 20px; height: 20px; }
  .hero h1 { font-size: 45px; }
  .workspace-heading { align-items: center; }
  .drop-zone, .file-panel { min-height: 245px; }
  .result-panel { grid-template-columns: 1fr; text-align: center; }
  .result-check { margin-inline: auto; }
  .result-main audio { width: 100%; }
  footer { flex-direction: column; justify-content: center; text-align: center; }
}
