:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e8eef8;
  background: #08111f;
  font-synthesis: none;
  --bg: #08111f;
  --panel: #101d30;
  --panel-light: #14243a;
  --muted: #91a1b7;
  --line: #22344e;
  --cyan: #54d6d2;
  --lime: #d7f277;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 73% 0%, #153255 0, transparent 33rem), var(--bg); }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100% - 40px, 960px); margin: auto; min-height: 100vh; padding: 28px 0 36px; }
.topbar, footer, .card-heading, .progress-label, .connection-note { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #08111f; background: var(--lime); font-size: 12px; font-weight: 900; transform: rotate(-7deg); }
.privacy-pill { color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #68e0b2; box-shadow: 0 0 0 4px #68e0b21a; }
.status-dot.amber { background: #f2bd6c; box-shadow: 0 0 0 4px #f2bd6c1a; }
.hero { max-width: 650px; padding: 105px 0 46px; }
.eyebrow, .card-label { margin: 0 0 15px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; color: #f7f9fd; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.075em; }
h1 em { color: var(--lime); font-style: normal; }
.hero-copy { max-width: 500px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.workspace, .torrent-card { border: 1px solid var(--line); border-radius: 22px; background: #0d1a2bdb; box-shadow: 0 24px 80px #0000001c; }
.workspace { padding: 12px; }
.drop-zone { padding: 48px 20px 42px; border: 1px dashed #3a5373; border-radius: 15px; text-align: center; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--cyan); background: #54d6d20b; }
.upload-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 15px; color: var(--cyan); background: #54d6d21a; font-size: 25px; }
.drop-zone h2 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.03em; }
.drop-zone p { margin: 0; color: var(--muted); font-size: 14px; }
.text-button { padding: 0; border: 0; color: var(--cyan); background: none; text-decoration: underline; }
.file-hint { display: block; margin-top: 18px; color: #63758d; font-size: 11px; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 24px 12px; color: #718198; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.or-divider::before, .or-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.magnet-form { display: flex; gap: 9px; padding: 0 2px 2px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: none; color: #e8eef8; background: #091523; padding: 13px 14px; font-size: 13px; transition: border .2s; }
input:focus { border-color: var(--cyan); }
.primary-button, .download-button { border: 0; border-radius: 11px; padding: 0 19px; color: #08111f; background: var(--lime); font-weight: 800; white-space: nowrap; }
.primary-button span, .download-button span { margin-left: 10px; font-size: 18px; }
.torrent-card { margin-top: 16px; padding: 24px; }
.card-heading { justify-content: flex-start; gap: 13px; }
.torrent-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--lime); background: #d7f27718; font-size: 23px; }
.torrent-title-wrap { min-width: 0; flex: 1; }.card-label { margin: 0 0 4px; font-size: 10px; }.torrent-title-wrap h2 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; }
.icon-button { align-self: flex-start; border: 0; color: var(--muted); background: none; font-size: 25px; line-height: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.stats-grid div { display: grid; gap: 4px; }.stats-grid span { color: #718198; font-size: 11px; }.stats-grid strong { font-size: 14px; }
.file-preview { display: grid; gap: 7px; max-height: 160px; overflow: auto; margin-bottom: 18px; }.file-row { display: flex; justify-content: space-between; gap: 16px; color: #b5c1d2; font-size: 12px; }.file-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-row span:last-child { color: #718198; white-space: nowrap; }
.download-button { width: 100%; height: 49px; margin-top: 18px; font-size: 14px; }.small-note { margin: 14px 0 0; color: #718198; text-align: center; font-size: 11px; }
.progress-wrap { padding: 17px 0 0; }.progress-label { color: #aebbd0; font-size: 12px; }.progress-label strong { color: var(--cyan); }.progress-track { height: 7px; margin: 10px 0 11px; overflow: hidden; border-radius: 99px; background: #203149; }.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--lime)); transition: width .3s ease; }.connection-note { justify-content: flex-start; color: #718198; font-size: 11px; }
.advanced { margin: 20px 4px 0; color: #7e8da3; font-size: 12px; }.advanced summary { cursor: pointer; }.advanced-body { max-width: 550px; padding: 16px 0 0; }.advanced-body label { display: block; margin-bottom: 7px; font-size: 11px; }.advanced-body p { line-height: 1.5; }
footer { margin-top: 78px; color: #53647b; font-size: 11px; }footer span:first-child { color: #8d9bb0; font-weight: 700; }
.hidden { display: none !important; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }.toast { position: fixed; right: 20px; bottom: 20px; max-width: 340px; padding: 12px 15px; border: 1px solid #284261; border-radius: 10px; color: #e8eef8; background: #14243a; box-shadow: 0 10px 30px #0005; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; font-size: 12px; }.toast.show { opacity: 1; transform: none; }
@media (max-width: 620px) { .app-shell { width: min(100% - 24px, 960px); padding-top: 18px; }.hero { padding: 76px 0 34px; }.magnet-form { display: grid; }.primary-button { height: 45px; }.stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }.torrent-card { padding: 18px; }footer { margin-top: 50px; align-items: flex-start; gap: 12px; flex-direction: column; } }
