/* Plan Estimator — modern professional UI */

:root {
  --bg: #070b14;
  --bg-elevated: #0c1220;
  --card: rgba(18, 26, 43, 0.82);
  --card-solid: #121a2b;
  --card2: #0f172a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #3b82f6;
  --accent-h: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.35);
  --ok: #22c55e;
  --ok-h: #16a34a;
  --ok-soft: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.12);
  --danger: #f87171;
  --pro: #a78bfa;
  --pro-soft: rgba(167, 139, 250, 0.14);
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --drop: rgba(15, 23, 42, 0.65);
  --drop-on: rgba(30, 58, 95, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(700px 400px at 90% 0%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(600px 400px at 50% 100%, rgba(14, 165, 233, 0.08), transparent 45%),
    linear-gradient(180deg, #070b14 0%, #0a1020 50%, #070b14 100%);
}

a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: #bfdbfe; text-decoration: underline; }

/* ── App shell ───────────────────────────────────── */
.app {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 40px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: rgba(12, 18, 32, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.top h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.sub {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.top-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

/* Brand logo (graffiti wordmark — replaces old blue TT box) */
.brand-logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.brand-logo-sm {
  width: 148px;
  max-width: 36vw;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Badges */
.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.badge.ok {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
  background: var(--ok-soft);
}

.badge.warn {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
  background: var(--warn-soft);
}

.badge.pro {
  color: #ddd6fe;
  border-color: rgba(167, 139, 250, 0.4);
  background: var(--pro-soft);
}

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(380px, 1.38fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .top-btns {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card-results {
  min-height: 480px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 1rem;
  flex-shrink: 0;
}

.card-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: #e2e8f0;
  font-weight: 600;
}

.mt { margin-top: 26px; }
.mt-sm { margin-top: 12px; }

/* Forms */
.form { display: grid; gap: 12px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

label.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-template-columns: none;
}

input, select, textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input::placeholder { color: var(--muted-2); }

input:hover, select:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #0b1220;
}

.full { width: 100%; margin-bottom: 10px; }

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.hint.ok-text { color: var(--ok); }

.status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-family: var(--mono);
  min-height: 1.4em;
  line-height: 1.4;
}

/* Drop zone */
.drop {
  border: 1.5px dashed rgba(100, 116, 139, 0.55);
  background:
    linear-gradient(180deg, rgba(30, 58, 95, 0.12), transparent 60%),
    var(--drop);
  border-radius: 14px;
  padding: 32px 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.drop-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: #93c5fd;
  font-size: 1.15rem;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.drop:hover, .drop.active {
  background: var(--drop-on);
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 12px 32px rgba(37, 99, 235, 0.12);
}

.drop p { margin: 4px 0; }
.drop strong { color: #e2e8f0; }

/* File list */
.file-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-height: 150px;
  overflow: auto;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-family: var(--mono);
}

.file-list button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
}

.file-list button:hover {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
}

/* Buttons */
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.gap { gap: 10px; margin-top: 12px; }
.grow { flex: 1; }

.actions-bar { margin-top: 14px; }
.results-head { gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.results-actions { margin-top: 0; flex-wrap: wrap; }
.toolbar-row { margin-top: 14px; flex-wrap: wrap; gap: 10px; }
.quote-status { margin: 8px 0 12px; }
.chip-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
}

.btn {
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(180deg, #4f8ff7 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #60a5fa 0%, var(--accent-h) 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn.ok {
  background: linear-gradient(180deg, #34d399 0%, var(--ok) 100%);
  color: #052e16;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}

.btn.ok:hover:not(:disabled) {
  background: linear-gradient(180deg, #4ade80 0%, var(--ok-h) 100%);
  color: #fff;
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-strong);
  color: #e2e8f0;
}

.btn.ghost:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.85);
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.btn.danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.1);
}

/* History */
.history {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.hist-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.hist-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(20, 30, 50, 0.85);
}

.hist-item h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hist-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hist-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hist-actions .btn {
  padding: 7px 12px;
  font-size: 0.8rem;
}

/* Summary + table */
.summary {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  white-space: pre-wrap;
  color: #cbd5e1;
  font-size: 0.9rem;
  min-height: 60px;
  line-height: 1.55;
}

.summary.small {
  min-height: 72px;
  max-height: 150px;
  overflow: auto;
  font-size: 0.86rem;
  font-family: var(--mono);
}

.table-wrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  max-height: min(52vh, 540px);
  background: rgba(8, 12, 22, 0.5);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #1a2740 0%, #152033 100%);
  color: #94a3b8;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-strong);
  z-index: 1;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(36, 49, 73, 0.55);
  vertical-align: top;
}

tr:hover td { background: rgba(59, 130, 246, 0.04); }
tr:nth-child(even) td { background: rgba(15, 23, 42, 0.35); }
tr:nth-child(even):hover td { background: rgba(59, 130, 246, 0.06); }

td.empty {
  text-align: center;
  color: var(--muted-2);
  padding: 40px 20px;
  font-size: 0.9rem;
}

.bld {
  color: #93c5fd;
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.conf-high { color: #86efac; font-weight: 600; }
.conf-medium { color: #fcd34d; font-weight: 600; }
.conf-low { color: #fdba74; font-weight: 600; }

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 50;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.hidden { display: none; }

.modal-card {
  width: min(460px, 100%);
  background: linear-gradient(180deg, #141d30 0%, #0f172a 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-card h2 { margin: 0; font-size: 1.2rem; letter-spacing: -0.02em; }
.modal-head h2 { margin: 0; }
.modal-head .hint { margin: 4px 0 0; }

.account-meta {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
}

.meta-line {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.meta-line:last-child { margin-bottom: 0; }
.meta-line.muted { color: var(--muted); font-size: 0.84rem; }

.admin-block {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: var(--accent-soft);
}

/* Auth */
.auth-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-shell {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--card-solid);
}

@media (max-width: 780px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

.auth-brand {
  padding: 32px 28px 28px;
  background:
    radial-gradient(500px 300px at 20% 10%, rgba(59, 130, 246, 0.25), transparent 60%),
    linear-gradient(160deg, #0f1a33 0%, #0b1224 50%, #111827 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  overflow: auto;
}

/* Photo cards on login */
.photo-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.photo-card {
  margin: 0;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  background: #0b1220;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 10px;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.92));
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.photo-card figcaption strong {
  color: #f8fafc;
  font-size: 0.92rem;
}

.photo-card figcaption span {
  color: #94a3b8;
  font-size: 0.75rem;
}

.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-tile {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
  text-align: center;
}

.mini-tile img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

.mini-tile span {
  display: block;
  padding: 7px 6px 9px;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* In-app hero strip */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .app-hero { grid-template-columns: 1fr; }
}

.hero-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  min-height: 140px;
  background: #0b1220;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.hero-card:hover img { transform: scale(1.06); }

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(7, 11, 20, 0.9));
}

.hero-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 4px;
}

.hero-overlay p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 600;
}

.trade-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 4px;
}

.trade-preview-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.trade-preview-item img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.trade-preview-item span {
  display: block;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.trade-preview-item.active {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.brand-title {
  margin: 16px 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  margin: 14px 0 0;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 28ch;
}

.brand-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.brand-points li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  color: #cbd5e1;
  font-size: 0.88rem;
}

.brand-points li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.brand-foot {
  margin: 28px 0 0;
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-card {
  padding: 36px 32px 28px;
  background: linear-gradient(180deg, #121a2b 0%, #0f172a 100%);
}

.auth-card-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.auth-card-head .sub { margin-top: 6px; }

.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 16px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.65);
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--accent-soft);
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.auth-form { display: grid; gap: 13px; }

.auth-error {
  color: #fca5a5;
  font-size: 0.86rem;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.auth-error.hidden { display: none; }

.plan-blurb {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.plan-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}

.plan-pill strong { color: #e2e8f0; }

.plan-pill-pro {
  border-color: rgba(167, 139, 250, 0.3);
  background: var(--pro-soft);
}

.plan-pill-pro strong { color: #ddd6fe; }

.upgrade-box {
  margin-top: 4px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), rgba(15, 23, 42, 0.6));
}

.upgrade-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #e9d5ff;
}

.pro-features {
  margin: 8px 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pro-features li { margin: 5px 0; }

.app-footer {
  margin-top: 28px;
  padding: 16px 8px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.78rem;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-footer .dot { opacity: 0.5; }

.hidden { display: none !important; }

/* Scrollbars */
.table-wrap::-webkit-scrollbar,
.history::-webkit-scrollbar,
.file-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb,
.history::-webkit-scrollbar-thumb,
.file-list::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 8px;
}

.table-wrap::-webkit-scrollbar-track,
.history::-webkit-scrollbar-track {
  background: transparent;
}
