/* ============================================================
   VIVID ATOM — Secure File Drop
   Neon orange on void black — matches vividatom.com
   ============================================================ */

:root {
  --bg: #050505;
  --bg-2: #0a0a0b;
  --panel: #0e0e10;
  --panel-2: #121214;
  --line: rgba(255, 111, 15, 0.16);
  --line-soft: rgba(255, 255, 255, 0.06);

  --orange: #ff5f0f;
  --orange-hot: #ff7a1a;
  --orange-soft: #ffb066;
  --orange-dim: #b34a0b;

  --ink: #f6f4ef;
  --ink-muted: #a39f96;
  --ink-faint: #6b676b;

  --ok: #7ee787;
  --err: #ff5f5f;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  --glow: 0 0 18px rgba(255, 95, 15, 0.55), 0 0 60px rgba(255, 95, 15, 0.18);
  --glow-soft: 0 0 10px rgba(255, 95, 15, 0.35);
  --radius: 4px;

  --maxw: 1180px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
b { font-weight: 700; }

::selection { background: var(--orange); color: #0a0a0a; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #2a2018; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dim); }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 95, 15, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 15, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -5%, rgba(255, 95, 15, 0.16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 95, 15, 0.06), transparent 60%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 50; }
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 4px; }
.brand-name { font-weight: 600; letter-spacing: .4px; font-size: 19px; }
.brand-name em { font-style: normal; color: var(--orange); }
.brand-sub { font-size: 13px; color: var(--ink-faint); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links-simple { gap: 22px; }
.nav-link { color: var(--ink-muted); font-size: 15px; transition: color .15s; }
.nav-link:hover { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  text-align: center;
}
.btn-primary { background: var(--orange); color: #0a0a0a; box-shadow: var(--glow-soft); }
.btn-primary:hover { background: var(--orange-hot); box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); box-shadow: var(--glow-soft); }
.btn-danger { border-color: rgba(255, 95, 95, .4); color: var(--err); background: transparent; }
.btn-danger:hover { border-color: var(--err); background: rgba(255, 95, 95, .08); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* ---------- Alerts ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-ok { border-color: rgba(126, 231, 135, .35); color: var(--ok); background: rgba(126, 231, 135, .06); }
.alert-err { border-color: rgba(255, 95, 95, .35); color: var(--err); background: rgba(255, 95, 95, .06); }
.hidden { display: none !important; }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 34px;
  box-shadow: 0 0 40px rgba(255, 95, 15, .06);
}
.auth-mark { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 5px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-soft);
}
.kicker::before { content: "▸"; color: var(--orange); }
.auth-title { font-size: 30px; margin: 8px 0 4px; line-height: 1.15; }
.glow-text { color: var(--orange); text-shadow: var(--glow-soft); }
.auth-sub { color: var(--ink-faint); font-size: 14px; margin-bottom: 24px; }
.auth-foot { text-align: center; padding: 20px; color: var(--ink-faint); font-size: 12px; }
.kickerish { letter-spacing: 2px; text-transform: uppercase; color: var(--orange-soft); font-size: 12px; }

/* ---------- Fields ---------- */
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field textarea:focus {
  border-color: var(--orange);
  box-shadow: var(--glow-soft);
}

/* ---------- Portal ---------- */
.portal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.portal-title { font-size: 34px; line-height: 1.15; margin: 6px 0 0; }
.portal-head-note { color: var(--ink-faint); font-size: 13px; text-align: right; line-height: 1.7; }
.portal-head-note b { color: var(--orange-soft); }

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head h2 { font-size: 16px; letter-spacing: .5px; }
.panel-hint { color: var(--ink-faint); font-size: 12px; }
.panel-narrow { max-width: 560px; margin: 0 auto 20px; }
.panel-recipient { margin-bottom: 0; }
.recipient-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; }
@media (max-width: 720px) { .recipient-grid { grid-template-columns: 1fr; } }

/* ---------- Dropzone ---------- */
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  outline: none;
}
.dropzone:hover, .dropzone:focus, .dropzone.dragging {
  border-color: var(--orange);
  background: rgba(255, 95, 15, .04);
  box-shadow: var(--glow-soft);
}
.dz-icon { margin: 0 auto 10px; color: var(--orange); }
.dz-main { font-size: 16px; }
.dz-link { color: var(--orange); }
.dz-sub { color: var(--ink-faint); font-size: 12px; margin-top: 8px; }
.dz-progress-text { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

/* ---------- File list ---------- */
.file-list { margin-top: 14px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg-2);
}
.file-row.progressing { border-color: var(--orange); }
.file-info { flex: 1; min-width: 0; }
.file-name {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.file-remove {
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink-faint);
  width: 28px; height: 28px;
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1;
}
.file-remove:hover { color: var(--err); border-color: var(--err); }

/* progress bar */
.progress-track { height: 4px; background: #1c1c1f; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--orange); border-radius: 3px; transition: width .15s; }

/* ---------- Inbox ---------- */
.inbox-meta { color: var(--ink-faint); font-size: 12px; margin-bottom: 10px; }
.file-tick input { position: absolute; opacity: 0; pointer-events: none; }
.file-tick .tick {
  display: inline-flex;
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all .12s;
  cursor: pointer;
}
.file-tick input:checked + .tick {
  background: var(--orange);
  border-color: var(--orange);
  color: #0a0a0a;
  box-shadow: var(--glow-soft);
}
.file-tick input:checked + .tick::after { content: "✓"; font-weight: 700; font-size: 13px; }
.file-tick input:focus-visible + .tick { outline: 2px solid var(--orange); outline-offset: 2px; }

.empty-state { text-align: center; padding: 34px 16px; color: var(--ink-faint); font-size: 14px; }
.empty-state .mono { color: var(--orange-dim); margin-bottom: 8px; }

/* ---------- Send bar ---------- */
.send-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.send-note { color: var(--ink-faint); font-size: 13px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.ta-r { text-align: right; }
.td-sub { font-size: 12px; color: var(--ink-faint); }
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid transparent;
}
.badge-ok { color: var(--ok); border-color: rgba(126, 231, 135, .35); background: rgba(126, 231, 135, .07); }
.badge-muted { color: var(--ink-faint); border-color: var(--line-soft); }

/* ---------- Download page ---------- */
.dl-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}
.dl-brand { font-size: 21px; }
.dl-secure { margin-left: auto; color: var(--ink-faint); font-size: 12px; letter-spacing: 2px; }
.dl-card { margin-bottom: 20px; }
.dl-sub { color: var(--ink-muted); font-size: 15px; margin-top: 8px; }
.dl-card .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); margin-top: 60px; }
.footer-slim { margin-top: 48px; }
.footer-slim .wrap { display: flex; justify-content: center; padding-top: 22px; padding-bottom: 22px; color: var(--ink-faint); font-size: 12px; }
.footer-slim a { color: var(--orange-soft); }

.mono { font-family: var(--font-mono); }
