:root {
  --bg-start: #262C6B;
  --bg-end: #1B2050;
  --text: #F1F5FF;
  --text-dim: #A9AFDE;
  --accent: #D8C99B;       /* gold - Assevi's brand accent, replacing Buvio's teal */
  --accent-deep: #8B7355;
  --accent-glow: rgba(216,201,155,.55);
  --card-bg: rgba(255,255,255,.06);
  --card-border: #454C99;
  --danger: #ff8a8a;
  --danger-bg: rgba(255,80,80,.14);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --font-display: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
  background-attachment: fixed;
  font-size: 15.5px;
  line-height: 1.55;
  padding-bottom: 200px;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--text); margin: 0 0 8px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 8px; }

.container { width: 100%; max-width: 640px; margin: 0 auto; padding: 24px 20px; }
.container.narrow { max-width: 420px; }
.container.wide { max-width: 960px; }

/* ---- two-column upload layout (spec: main col max 480px + sticky sidebar) ---- */
.upload-grid { display: block; }
.upload-grid .col-main { max-width: 480px; }
.upload-grid .col-side { margin-top: 18px; }
@media (min-width: 900px) {
  .upload-grid { display: grid; grid-template-columns: 480px 1fr; gap: 32px; align-items: start; }
  .upload-grid .col-side { margin-top: 0; position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
}

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,56,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 640px; margin: 0 auto; height: 100%; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-chip {
  background: #fff; border-radius: 8px; padding: 5px 9px; display: flex; align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-logo-img { height: 18px; width: auto; display: block; }
.nav-logo-sub { font-size: 10px; color: var(--text-dim); letter-spacing: .03em; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  font-size: 11.5px; font-weight: 700; color: var(--text-dim); padding: 4px 8px;
  border-radius: var(--radius-sm); text-decoration: none; letter-spacing: .02em;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a.active { background: var(--accent); color: var(--bg-end); }
.nav-signout {
  font-size: 13px; color: var(--text-dim); font-weight: 600;
  background: none; border: none; cursor: pointer; font-family: var(--font-body);
}
.nav-signout:hover { color: var(--accent); text-decoration: underline; }

/* ---- cards ---- */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 20px; margin-bottom: 18px;
}
.card h2 { font-size: 16px; margin-bottom: 4px; color: var(--text); }
.card .hint { color: var(--text-dim); font-size: 13.5px; margin-bottom: 14px; }

/* ---- hero number / quota ---- */
.hero-number {
  font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 22px var(--accent-glow);
}
.hero-number .of { font-size: 18px; color: var(--text-dim); font-weight: 600; text-shadow: none; }
.progress-track {
  height: 6px; border-radius: var(--radius-full); background: rgba(255,255,255,.12); margin-top: 12px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; padding: 14px 22px;
  border-radius: var(--radius-md); border: none; cursor: pointer;
  font-family: var(--font-body); transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--accent); color: var(--bg-end);
  box-shadow: 0 8px 20px rgba(216,201,155,.25);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: rgba(216,201,155,.1); }
.btn-danger { background: #ff6b6b; color: var(--bg-end); }
.btn-danger:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- forms ---- */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=file], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; padding: 12px 13px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--card-border); background: rgba(255,255,255,.06);
  color: var(--text); margin-bottom: 14px;
}
input::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(216,201,155,.18);
}
select option { color: #000; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; font-size: 13.5px; color: var(--text-dim); }
.checkbox-row input { width: auto; margin: 3px 0 0; }
.field-note { font-size: 12.5px; color: var(--text-dim); margin: -10px 0 14px; }

/* honeypot - hidden from real users, catches naive bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- boxes ---- */
.error-box {
  background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(255,80,80,.4); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.success-box {
  background: rgba(216,201,155,.12); color: var(--accent); border: 1px solid rgba(216,201,155,.35); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.empty-state { color: var(--text-dim); font-size: 14px; padding: 8px 0; }

/* ---- divider ---- */
.divider { height: 2px; background: var(--accent); border: none; border-radius: 2px; margin: 32px 0; opacity: .5; box-shadow: 0 0 12px var(--accent-glow); }

/* ---- upload rows ---- */
.upload-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; gap: 12px; }
.upload-row:last-child { border-bottom: none; }
.upload-row .name { color: var(--text); }
.upload-row .name.pending { color: var(--text-dim); font-style: italic; }
.upload-row .meta { color: var(--text-dim); font-size: 12.5px; white-space: nowrap; }
.status-chip { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: .03em; }
.status-chip.success { background: rgba(216,201,155,.15); color: var(--accent); }
.status-chip.warning { background: var(--danger-bg); color: var(--danger); }
.status-chip.neutral { background: rgba(255,255,255,.08); color: var(--text-dim); }

/* ---- link footer ---- */
.form-foot { text-align: center; font-size: 13.5px; color: var(--text-dim); margin-top: 18px; }

/* ---- bottom nav (mobile) - big, unmissable tiles, on purpose ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; gap: 10px; padding: 14px; background: rgba(11,13,45,.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--card-border);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 88px; padding: 10px 4px; border-radius: var(--radius-lg); border: 2px solid var(--card-border);
  color: var(--text-dim); font-size: 12px; font-weight: 700; text-decoration: none;
  background: var(--card-bg);
}
.bottom-nav a.active {
  background: var(--accent); color: var(--bg-end); border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}
.bottom-nav svg { width: 26px; height: 26px; }

@media (min-width: 600px) {
  .bottom-nav a { min-height: 110px; }
}
