/* ───────── RESET ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0e14;
  color: #e6edf3;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }

/* ─────────────────────────────────────────────
   AUTH (LOGIN PAGE)
   ───────────────────────────────────────────── */
.auth-bg {
  background: radial-gradient(ellipse at top, #1a1f2e 0%, #0a0e14 60%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-shell {
  display: grid;
  grid-template-columns: 440px 360px;
  gap: 48px;
  align-items: center;
  padding: 32px;
}
.auth-card {
  background: linear-gradient(180deg, #161b22 0%, #0f141b 100%);
  border: 1px solid #30363d;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.logo-mark {
  display: inline-flex; width: 56px; height: 56px;
  align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #f6c343 0%, #e3531c 100%);
  color: #0a0e14;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(243, 156, 18, 0.35);
}
.logo-mark.sm {
  width: 36px; height: 36px; font-size: 18px;
  border-radius: 9px; margin-bottom: 0;
}
.auth-brand h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #f6c343, #ff6e2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-sub {
  color: #7d8590;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #0a0e14;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid #30363d;
}
.tab-btn {
  flex: 1; padding: 10px; background: transparent;
  color: #7d8590; font-weight: 600; font-size: 13px;
  border-radius: 7px; transition: all 0.15s;
}
.tab-btn.active {
  background: #21262d;
  color: #f0f6fc;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #7d8590;
  margin-top: 4px;
}
.auth-form input, .auth-form textarea {
  background: #0a0e14;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px 14px;
  color: #e6edf3;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input:focus, .auth-form textarea:focus {
  border-color: #f6c343;
  box-shadow: 0 0 0 3px rgba(243, 196, 67, 0.15);
}
.btn-primary {
  background: linear-gradient(135deg, #f6c343 0%, #e3531c 100%);
  color: #0a0e14;
  font-weight: 700; font-size: 14px;
  padding: 13px;
  border-radius: 9px;
  margin-top: 10px;
  letter-spacing: 0.3px;
  transition: transform 0.1s, box-shadow 0.15s;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(243, 196, 67, 0.25);
}
.btn-primary:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.auth-foot {
  text-align: center;
  font-size: 12px;
  color: #6e7681;
  margin-top: 18px;
}
.auth-side { display: flex; flex-direction: column; gap: 22px; }
.feature {
  background: rgba(22, 27, 34, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(48, 54, 61, 0.5);
  border-radius: 12px;
  padding: 18px;
}
.feature-ico { font-size: 28px; margin-bottom: 8px; }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 13px; color: #8b949e; }

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.alert code { background: rgba(0,0,0,0.3); padding: 2px 6px; border-radius: 4px; }
.alert-warn { background: rgba(246, 195, 67, 0.1); border: 1px solid rgba(246, 195, 67, 0.3); color: #f6c343; }
.alert-error { background: rgba(255, 99, 99, 0.1); border: 1px solid rgba(255, 99, 99, 0.3); color: #ff8585; }

/* ─────────────────────────────────────────────
   DASHBOARD
   ───────────────────────────────────────────── */
.dash-bg { background: #0a0e14; min-height: 100vh; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: linear-gradient(180deg, #161b22 0%, #0f141b 100%);
  border-bottom: 1px solid #30363d;
  position: sticky; top: 0; z-index: 10;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand-line {
  font-weight: 800; font-size: 14px; letter-spacing: 3px;
  color: #f6c343;
}
.brand-sub { font-size: 11px; color: #6e7681; letter-spacing: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-chip {
  background: #21262d; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; color: #c9d1d9;
}
.btn-ghost {
  background: transparent; color: #7d8590;
  padding: 8px 14px; border: 1px solid #30363d;
  border-radius: 7px; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.btn-ghost:hover { color: #f0f6fc; border-color: #f6c343; }

.dash-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 14px;
  padding: 22px;
}
.card-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.card-h h2 { font-size: 17px; font-weight: 700; color: #f0f6fc; }
.badge {
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.badge-muted { background: #21262d; color: #7d8590; }
.badge-ok { background: rgba(46, 160, 67, 0.15); color: #3fb950; }
.badge-warn { background: rgba(246, 195, 67, 0.15); color: #f6c343; }
.badge-err { background: rgba(255, 99, 99, 0.15); color: #ff8585; }

.token-tabs {
  display: flex; gap: 4px;
  background: #0a0e14; padding: 4px;
  border-radius: 9px; margin-bottom: 16px;
  border: 1px solid #30363d; width: fit-content;
}
.t-btn {
  background: transparent; color: #7d8590;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border-radius: 6px;
}
.t-btn.active { background: #21262d; color: #f6c343; }
.t-pane { display: none; }
.t-pane.active { display: flex; flex-direction: column; gap: 8px; }
.t-pane label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #7d8590;
  margin-top: 6px;
}
.t-pane .hint { color: #6e7681; font-weight: 400; text-transform: none; letter-spacing: 0; }
.t-pane input, .t-pane textarea {
  background: #0a0e14;
  border: 1px solid #30363d;
  border-radius: 7px;
  padding: 10px 12px;
  color: #e6edf3;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  resize: vertical;
}
.t-pane input:focus, .t-pane textarea:focus { border-color: #f6c343; }
.t-pane button { margin-top: 10px; align-self: flex-start; padding: 11px 22px; }
.howto { padding-left: 22px; color: #c9d1d9; font-size: 14px; line-height: 1.85; }
.howto code {
  background: #0a0e14; padding: 2px 7px; border-radius: 4px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: #f6c343; border: 1px solid #30363d;
}
.howto strong { color: #f6c343; }
.inline-msg { font-size: 12px; min-height: 18px; margin-top: 4px; }
.inline-msg.ok  { color: #3fb950; }
.inline-msg.err { color: #ff8585; }

/* ─── OAuth provider buttons ──────────────────────────── */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.provider-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #11161d;
  border: 1px solid #2a3140;
  border-radius: 9px;
  color: #e6edf3;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
  text-align: left;
  margin-top: 0 !important;     /* override .t-pane button margin-top */
  align-self: stretch !important;
}
.provider-btn:hover { background: #181f29; transform: translateY(-1px); }
.provider-btn:active { transform: translateY(0); }
.provider-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.provider-ico {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  font-weight: 800; font-size: 15px;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}
.provider-label { flex: 1; line-height: 1.2; }

.provider-steam .provider-ico { background: linear-gradient(135deg,#1b2838,#2a475e); color:#66c0f4; border:1px solid #3a6a93; }
.provider-steam:hover           { border-color:#3a6a93; }

.provider-epic  .provider-ico { background:#0e1015; border:1px solid #555; color:#fff; font-style:italic; }
.provider-epic:hover            { border-color:#7a7a7a; }

.provider-xbox  .provider-ico { background:#107c10; color:#fff; border:1px solid #1aa01a; }
.provider-xbox:hover            { border-color:#1aa01a; }

.provider-psn   .provider-ico { background:#003791; color:#fff; border:1px solid #0070d1; font-size:13px; }
.provider-psn:hover             { border-color:#0070d1; }

.row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.row input[type="text"] {
  flex: 1; max-width: 320px;
  background: #0a0e14; border: 1px solid #30363d;
  border-radius: 7px; padding: 9px 12px;
  color: #e6edf3; font-size: 13px; outline: none;
}
.row select {
  background: #0a0e14; border: 1px solid #30363d;
  border-radius: 7px; padding: 9px 12px;
  color: #e6edf3; font-size: 13px; outline: none;
}
.btn-ghost-sm {
  background: #21262d; color: #c9d1d9;
  padding: 8px 13px; font-size: 12px; font-weight: 600;
  border-radius: 7px; border: 1px solid #30363d;
}
.btn-ghost-sm:hover:not(:disabled) { border-color: #f6c343; color: #f6c343; }
.btn-ghost-sm:disabled { opacity: 0.4; cursor: not-allowed; }
.select-actions { display: flex; gap: 6px; margin-left: auto; }

/* Bigger, brighter siblings of the ghost buttons — these sit directly
   under "Fetch Inventory" so they need to read at a glance. Select is
   blue/cyan to invite action; Clear is muted red to signal "destructive
   but reversible". Both keep the ghost-sm sizing rhythm so they don't
   tower over the filter row. */
.inv-quickselect { gap: 10px; margin-top: 8px; }
.btn-select, .btn-clear {
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  border-radius: 8px; border: 1px solid transparent;
  letter-spacing: 0.3px; cursor: pointer; transition: all 0.15s ease;
}
.btn-select {
  background: linear-gradient(180deg, #1f6feb 0%, #1158c7 100%);
  color: #ffffff; border-color: #388bfd;
  box-shadow: 0 1px 0 rgba(255,255,255,0.10) inset,
              0 1px 3px rgba(31,111,235,0.35);
}
.btn-select:hover:not(:disabled) {
  background: linear-gradient(180deg, #388bfd 0%, #1f6feb 100%);
  box-shadow: 0 0 0 3px rgba(56,139,253,0.25);
}
.btn-clear {
  background: #2b1416; color: #ff8a8a;
  border-color: #5a1e22;
}
.btn-clear:hover:not(:disabled) {
  background: #3a191c; color: #ffb1b1;
  border-color: #ff6b6b;
}
.btn-select:disabled, .btn-clear:disabled {
  opacity: 0.45; cursor: not-allowed; box-shadow: none;
}

.sort-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.4px; color: #ff3b8b;
  margin-left: 6px;
}
.inv-summary { font-size: 13px; color: #8b949e; margin-bottom: 10px; }
.inv-summary strong { color: #f6c343; font-family: 'JetBrains Mono', monospace; }

.inv-scroll {
  max-height: 560px; overflow-y: auto;
  background: #0a0e14; border-radius: 9px;
  border: 1px solid #30363d;
}
.inv-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.inv-table th {
  text-align: left;
  padding: 11px 14px;
  background: #0a0e14;
  position: sticky; top: 0;
  border-bottom: 1px solid #30363d;
  font-weight: 700; font-size: 10px;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: #ff3b8b;
  font-family: 'JetBrains Mono', monospace;
  z-index: 1;
}
.inv-table th.th-num { text-align: right; }
.inv-table th.th-icon { text-align: center; padding-left: 6px; padding-right: 6px; }
.inv-table td {
  padding: 7px 14px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.4);
  vertical-align: middle;
}
.inv-table tbody tr {
  transition: background 0.12s;
}
.inv-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.012); }
.inv-table tbody tr:hover { background: rgba(33, 38, 45, 0.55); }
.inv-table tbody tr.selected { background: rgba(246, 195, 67, 0.08); }
.inv-table input[type="checkbox"] { cursor: pointer; width: 15px; height: 15px; }
.inv-table .empty {
  text-align: center; padding: 40px;
  color: #6e7681;
}
.td-cb { width: 36px; text-align: center; padding: 6px; }
.td-icon {
  width: 46px; padding: 4px 6px; text-align: center;
}
.item-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.05);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 2px;
}
.item-icon-fallback {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: #21262d;
  border: 1px dashed #30363d;
  color: #555568;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  margin: 0 auto;
}
.td-name { min-width: 200px; }
.iname {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.rar-c-LEGENDARY { color: #ffa600; }
.rar-c-EPIC      { color: #c284f5; }
.rar-c-RARE      { color: #6daff5; }
.rar-c-UNCOMMON  { color: #6df58a; }
.rar-c-COMMON    { color: #cfd6dd; }
.rar-c-UNKNOWN   { color: #6e7681; }
.td-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  color: #b48cff;
  text-transform: uppercase;
}
.td-num { text-align: right; font-family: 'JetBrains Mono', monospace; }
.td-amt { color: #c9d1d9; font-weight: 600; }
.td-val { color: #f6c343; font-weight: 600; }

.rar {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px;
  font-family: 'JetBrains Mono', monospace;
}
.rar.LEGENDARY, .rar-LEGENDARY { background: rgba(255, 154, 0, 0.18); color: #ff9a00; }
.rar.EPIC,      .rar-EPIC      { background: rgba(173, 76, 232, 0.18); color: #c284f5; }
.rar.RARE,      .rar-RARE      { background: rgba(76, 142, 232, 0.18); color: #6daff5; }
.rar.UNCOMMON,  .rar-UNCOMMON  { background: rgba(76, 232, 100, 0.15); color: #6df58a; }
.rar.COMMON,    .rar-COMMON    { background: rgba(150, 150, 150, 0.15); color: #aaa; }
.rar-UNKNOWN                   { background: rgba(110, 118, 129, 0.15); color: #7d8590; }

/* per-row status pill */
.td-status { white-space: nowrap; }
.st-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.6px;
}
.st-att { opacity: 0.7; font-weight: 500; }
.st-pill.st-idle     { background: transparent; color: #4b5563; }
.st-pill.st-queued   { background: #21262d; color: #7d8590; }
.st-pill.st-working  { background: rgba(76, 142, 232, 0.18); color: #6daff5; }
.st-pill.st-retrying { background: rgba(246, 195, 67, 0.18); color: #f6c343; }
.st-pill.st-done     { background: rgba(46, 160, 67, 0.18); color: #3fb950; }
.st-pill.st-failed   { background: rgba(255, 99, 99, 0.18); color: #ff8585; }

/* per-row Refresh button */
.td-act { text-align: right; padding-right: 12px; }
.btn-row-refresh {
  background: transparent;
  color: #ff3b8b;
  border: 1px solid rgba(255, 59, 139, 0.35);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.12s;
}
.btn-row-refresh:hover:not(:disabled) {
  background: rgba(255, 59, 139, 0.12);
  border-color: #ff3b8b;
  color: #ff66a3;
  transform: translateY(-1px);
}
.btn-row-refresh:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-success {
  background: linear-gradient(135deg, #2ea043 0%, #238636 100%);
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 8px;
  transition: transform 0.1s, box-shadow 0.15s;
}
.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(46, 160, 67, 0.3);
}
.btn-success:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-warn {
  background: #da3633; color: #fff;
  font-weight: 700; font-size: 13px;
  padding: 11px 18px; border-radius: 8px;
}

/* RECYCLE — irreversible destructive action, distinct from the
   red Cancel/btn-warn so the user can tell them apart at a glance.
   Deep crimson gradient + recycle glyph + soft glow on hover. */
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c01818 0%, #8a0e0e 100%);
  color: #fff;
  border: 1px solid #ff4848;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 72, 72, 0.25),
              0 4px 12px rgba(192, 24, 24, 0.35);
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-danger:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 72, 72, 0.5),
              0 6px 18px rgba(255, 60, 60, 0.5);
}
.btn-danger:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.95);
}
.btn-danger:disabled {
  background: #2a3140;
  color: #6b7689;
  border-color: #3a414f;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}
.recycle-ico {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  display: inline-block;
  vertical-align: middle;
}

/* ─── Top-bar user chip: maskable license key + eye toggle ─── */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 320px;
}
.user-chip-ico { font-size: 13px; line-height: 1; flex: 0 0 auto; }
.user-chip-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #e7edf5;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
  transition: filter 0.15s ease;
}
.user-chip-name.user-chip-masked {
  filter: blur(6px);
  user-select: none;
}
.user-chip-eye {
  background: transparent;
  border: 1px solid rgba(125, 133, 144, 0.35);
  color: #c9d1d9;
  width: 24px;
  height: 22px;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  border-radius: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.user-chip-eye:hover {
  color: #f6c343;
  background: rgba(246, 195, 67, 0.08);
  border-color: rgba(246, 195, 67, 0.45);
}
.job-stats {
  margin-left: auto;
  font-size: 13px; color: #8b949e;
  font-family: 'JetBrains Mono', monospace;
}
.job-stats strong { color: #f6c343; }

.progress-bar {
  height: 6px; background: #0a0e14;
  border-radius: 3px; overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid #30363d;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #f6c343, #2ea043);
  transition: width 0.4s ease;
}

.job-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
.job-items, .job-log {
  background: #0a0e14;
  border: 1px solid #30363d;
  border-radius: 9px;
  padding: 12px;
  height: 360px;
  display: flex; flex-direction: column;
}
.job-items h4, .job-log h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #7d8590; margin-bottom: 10px;
}
#job-items-list { flex: 1; overflow-y: auto; font-size: 12px; }
.ji {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px; align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  border-bottom: 1px solid rgba(48,54,61,0.3);
}
.ji-icon       { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.ji-icon .item-icon,
.ji-icon .item-icon-fallback { width: 36px; height: 36px; }
.ji-meta       { min-width: 0; }
.ji-name       { color: #c9d1d9; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ji-name .iname { font-weight: 600; }
.ji-cat        { color: #6e7681; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.ji-att        { color: #7d8590; font-family: 'JetBrains Mono', monospace; font-size: 10px; margin-right: 4px; }
.ji-msg        { color: #6e7681; font-size: 11px; margin-top: 2px; }
.ji-st {
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.ji-st.queued   { background: #21262d; color: #7d8590; }
.ji-st.working  { background: rgba(76, 142, 232, 0.18); color: #6daff5; }
.ji-st.retrying { background: rgba(246, 195, 67, 0.18); color: #f6c343; }
.ji-st.done     { background: rgba(46, 160, 67, 0.18); color: #3fb950; }
.ji-st.failed   { background: rgba(255, 99, 99, 0.18); color: #ff8585; }

#log-box {
  flex: 1; overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; line-height: 1.55;
  color: #8b949e;
  white-space: pre-wrap;
  word-break: break-word;
}
#log-box .line.ok  { color: #3fb950; }
#log-box .line.err { color: #ff8585; }

@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; gap: 24px; }
  .auth-side { display: none; }
  .job-grid { grid-template-columns: 1fr; }
  .job-stats { margin-left: 0; width: 100%; }
}

.oauth-step-title{
  font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:#7c8aa3; font-weight:600; margin:4px 0 6px;
}
#oauth-pasted-url{
  width:100%; padding:10px 12px; margin:4px 0 10px;
  background:#0a0e14; color:#e7edf5;
  border:1px solid #2a3140; border-radius:6px;
  font-family:'SF Mono', Menlo, Consolas, monospace; font-size:12px;
}
#oauth-pasted-url:focus{ outline:none; border-color:#4a8fdb; }
#btn-oauth-exchange{ width:100%; }

/* OVER STASH — gold/secret button (mirrors the legacy desktop tool's
   hero "SECRET" element: warm amber gradient, faint glow on hover,
   muted/grey when disabled). */
.btn-gold {
  background: linear-gradient(135deg, #e8b339 0%, #b8860b 55%, #8b6508 100%);
  color: #1a1209;
  border: 1px solid #d4a017;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(212,160,23,0.25),
              0 2px 8px rgba(212,160,23,0.18);
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gold:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 0 0 1px rgba(212,160,23,0.45),
              0 4px 14px rgba(212,160,23,0.35);
  transform: translateY(-1px);
}
.btn-gold:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.95);
}
.btn-gold:disabled {
  background: #2a3140;
  color: #6b7689;
  border-color: #2a3140;
  text-shadow: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   SAYED's ARC RAIDERS DUPE TOOL — additions
   ═══════════════════════════════════════════════════════════
   APPEND THIS FILE TO THE END OF static/style.css.
   It introduces the new logo + effect, brand title,
   discord button, and the subscription / countdown card.
   It also re-styles .logo-wrap/.logo-img which replace the old
   text-only .logo-mark element.
   ═══════════════════════════════════════════════════════════ */

/* ─── New logo (image + animated rings) ─────────────────── */
/* !important is used on size rules so the existing style.css can never
   accidentally inflate the logo or icons via a generic `img { width:
   100% }` rule. */
.logo-wrap {
  position: relative !important;
  width: 124px !important;
  height: 124px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  isolation: isolate;
  flex: 0 0 124px;
}
.logo-wrap.sm {
  width: 46px !important;
  height: 46px !important;
  margin: 0;
  flex: 0 0 46px;
}

.logo-img {
  position: relative !important;
  z-index: 4;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: 50%;
  object-fit: cover;
  background: #0a0e14;
  box-shadow:
    0 0 0 2px rgba(246, 195, 67, 0.45),
    0 0 22px rgba(246, 195, 67, 0.35),
    0 8px 28px rgba(227, 83, 28, 0.35);
  animation: logo-bob 4.5s ease-in-out infinite;
  display: block;
}
.logo-wrap.sm .logo-img {
  box-shadow:
    0 0 0 1.5px rgba(246, 195, 67, 0.45),
    0 0 12px rgba(246, 195, 67, 0.35);
  animation: none;
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Soft conic-gradient halo behind the image */
.logo-glow {
  position: absolute;
  inset: -10%;
  z-index: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    #f6c343, #ff6e2c, #b48cff, #6daff5, #3fb950, #f6c343);
  filter: blur(18px);
  opacity: 0.55;
  animation: logo-rotate 9s linear infinite;
}
.logo-wrap.sm .logo-glow {
  inset: -15%;
  filter: blur(8px);
  opacity: 0.45;
  animation-duration: 12s;
}

/* Three concentric rotating rings */
.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  z-index: 2;
}
.logo-ring.ring-1 {
  inset: -4%;
  border-top-color: rgba(246, 195, 67, 0.85);
  border-right-color: rgba(246, 195, 67, 0.25);
  animation: logo-rotate 6s linear infinite;
}
.logo-ring.ring-2 {
  inset: -10%;
  border-bottom-color: rgba(255, 110, 44, 0.75);
  border-left-color: rgba(255, 110, 44, 0.15);
  animation: logo-rotate 9s linear infinite reverse;
}
.logo-ring.ring-3 {
  inset: -16%;
  border-top-color: rgba(180, 140, 255, 0.55);
  border-right-color: rgba(180, 140, 255, 0.10);
  animation: logo-rotate 14s linear infinite;
}
.logo-wrap.sm .logo-ring.ring-1 { inset: -6%; }
.logo-wrap.sm .logo-ring.ring-2 { inset: -12%; animation-duration: 12s; }

@keyframes logo-rotate {
  to { transform: rotate(360deg); }
}

/* ─── Brand title (login) ───────────────────────────────── */
.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2.5px;
  line-height: 1.25;
  color: #f0f6fc;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(246, 195, 67, 0.18);
}
.brand-title .brand-accent {
  background: linear-gradient(90deg, #f6c343, #ff6e2c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Discord button ────────────────────────────────────── */
.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #5865F2 0%, #4752c4 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 4px 14px rgba(88, 101, 242, 0.35),
    0 0 0 1px rgba(88, 101, 242, 0.2) inset;
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.discord-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 8px 22px rgba(88, 101, 242, 0.5),
    0 0 0 1px rgba(88, 101, 242, 0.4) inset;
}
.discord-btn:active { transform: translateY(0); filter: brightness(0.95); }
.discord-ico {
  width: 22px !important;
  height: 22px !important;
  flex: 0 0 22px;
  display: inline-block;
}
.discord-btn-label { line-height: 1; }

/* Compact variant for the dashboard top-bar */
.discord-btn-sm {
  width: auto;
  margin-top: 0;
  padding: 8px 14px;
  font-size: 12.5px;
  border-radius: 8px;
  gap: 8px;
}
.discord-btn-sm .discord-ico {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
}

/* Inline "contact the seller" link inside auth-foot */
.discord-link {
  color: #8c9bff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(140, 155, 255, 0.45);
  transition: color 0.12s, border-color 0.12s;
}
.discord-link:hover {
  color: #c0c8ff;
  border-bottom-color: #c0c8ff;
}

/* ─── License-key input row (with eye toggle) ───────────── */
.key-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.key-input-wrap input {
  flex: 1;
  padding-right: 44px;        /* space for the eye button */
}
.key-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  font-size: 16px;
  color: #7d8590;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}
.key-eye:hover { color: #f6c343; background: rgba(246, 195, 67, 0.06); }

/* The hidden username field still has to exist in the DOM so the
   browser's password manager treats the form as a real credential
   pair, but it must be invisible and unreachable by tab. */
.hidden-username {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  opacity: 0; pointer-events: none;
}

/* ─── Top-bar tweaks (dashboard) ────────────────────────── */
.topbar-right {
  gap: 14px;
  flex-wrap: wrap;
}
.user-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
}
.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0e1219;
  border: 1px solid #30363d;
  color: #c9d1d9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sub-chip-ico { font-size: 12px; }
.sub-chip.sub-chip-warn {
  border-color: rgba(246, 195, 67, 0.5);
  color: #f6c343;
  background: rgba(246, 195, 67, 0.08);
}
.sub-chip.sub-chip-expired {
  border-color: rgba(255, 99, 99, 0.55);
  color: #ff8585;
  background: rgba(255, 99, 99, 0.08);
}

/* ─── Subscription card + countdown ─────────────────────── */
.sub-card {
  background:
    radial-gradient(circle at top right,
      rgba(246, 195, 67, 0.10), transparent 55%),
    linear-gradient(180deg, #161b22 0%, #11161d 100%);
  border-color: rgba(246, 195, 67, 0.28);
}
.sub-card.sub-card-warn {
  border-color: rgba(246, 195, 67, 0.55);
  box-shadow: 0 0 0 1px rgba(246, 195, 67, 0.25),
              0 8px 24px rgba(246, 195, 67, 0.10);
}
.sub-card.sub-card-expired {
  border-color: rgba(255, 99, 99, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 99, 99, 0.25),
              0 8px 24px rgba(255, 99, 99, 0.10);
  background:
    radial-gradient(circle at top right,
      rgba(255, 99, 99, 0.10), transparent 55%),
    linear-gradient(180deg, #1d1417 0%, #14101 0%, #14101 100%);
}

.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 14px;
  align-items: stretch;
}
.sub-cell {
  background: #0a0e14;
  border: 1px solid #1f2630;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sub-cell-wide { grid-column: span 1; }
.sub-cell-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7d8590;
}
.sub-cell-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #f0f6fc;
  font-weight: 600;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #161b22 0%, #0a0e14 100%);
  border: 1px solid #2a3140;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 52px;
}
.cd-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1.5px;
  color: #f6c343;
  text-shadow: 0 0 12px rgba(246, 195, 67, 0.35);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cd-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #6e7681;
  margin-top: 4px;
}
.cd-sep {
  font-size: 22px;
  font-weight: 800;
  color: #30363d;
  font-family: 'JetBrains Mono', monospace;
  padding-bottom: 12px;
}

.sub-card-warn .cd-num {
  color: #ffa600;
  text-shadow: 0 0 14px rgba(255, 166, 0, 0.45);
}
.sub-card-expired .cd-num {
  color: #ff8585;
  text-shadow: 0 0 14px rgba(255, 99, 99, 0.45);
}

@media (max-width: 880px) {
  .sub-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sub-cell-wide { grid-column: 1 / -1; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .discord-btn-sm .discord-btn-label { display: none; }
}

