/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0f0f14;
  --bg-card:     #1a1a24;
  --bg-card-2:   #22222f;
  --bg-input:    #12121a;
  --border:      #2a2a3a;
  --border-lite: #1e1e2c;
  --accent:      #6c63ff;
  --accent-dim:  rgba(108, 99, 255, 0.15);
  --accent-hover:#8179ff;
  --text:        #e8e8f0;
  --text-muted:  #7a7a9a;
  --text-dim:    #4a4a6a;
  --positive:    #00e676;
  --positive-bg: rgba(0, 230, 118, 0.1);
  --negative:    #ff4560;
  --negative-bg: rgba(255, 69, 96, 0.1);
  --warn:        #ffab40;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --transition:  0.18s ease;
  --font:        'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  flex: 1;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  font-size: 22px;
  line-height: 1;
}

.nav-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-card-2);
}

.btn-nav {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(108,99,255,0.3);
}

.btn-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── Mobile hamburger & dropdown ───────────────────────────────────────── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--bg-card-2); }

.nav-dropdown {
  position: fixed;
  top: 64px;
  right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  min-width: 180px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown.hidden { display: none; }

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-item:hover { background: var(--bg-card-2); color: var(--text); }
.nav-dropdown-logout { color: var(--negative); }
.nav-dropdown-logout:hover { background: var(--negative-bg); color: var(--negative); }

/* ─── Page header ───────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.live-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #00e676;
  letter-spacing: 0.5px;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Alerts ────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.alert-error {
  background: var(--negative-bg);
  border: 1px solid rgba(255, 69, 96, 0.3);
  color: var(--negative);
}

.alert-success {
  background: var(--positive-bg);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--positive);
}

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ─── Summary Grid ──────────────────────────────────────────────────────── */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .summary-grid { grid-template-columns: 1fr; }
}

.summary-card {
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  opacity: 0;
  transition: opacity var(--transition);
}

.summary-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.summary-card:hover::before { opacity: 1; }

.card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.card-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.card-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Dashboard Grid ────────────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ─── Table Card ────────────────────────────────────────────────────────── */
.table-card {
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
  padding-bottom: 4px;
}

.assets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 16px;
}

.assets-table thead tr {
  border-bottom: 1px solid var(--border);
}

.assets-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.assets-table th.num,
.assets-table td.num {
  text-align: right;
}

.assets-table tbody tr {
  border-bottom: 1px solid var(--border-lite);
  transition: background var(--transition);
}

.assets-table tbody tr:last-child { border-bottom: none; }
.assets-table tbody tr:hover { background: var(--bg-card-2); }

.assets-table td {
  padding: 12px 14px;
  color: var(--text);
  white-space: nowrap;
}

.assets-table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius); }
.assets-table tbody tr:last-child td:last-child  { border-radius: 0 0 var(--radius) 0; }

.asset-name {
  font-weight: 500;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Badges ────────────────────────────────────────────────────────────── */
.ticker-badge {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-card-2);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.type-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.type-stock  { background: rgba(0,176,255,0.12); color: #00b0ff; border: 1px solid rgba(0,176,255,0.2); }
.type-etf    { background: rgba(255,145,0,0.12);  color: #ff9100; border: 1px solid rgba(255,145,0,0.2); }
.type-crypto { background: rgba(108,99,255,0.15); color: #a78bfa; border: 1px solid rgba(108,99,255,0.25); }

/* ─── Return colors ─────────────────────────────────────────────────────── */
.positive { color: var(--positive); }
.negative { color: var(--negative); }

/* ─── Updated time ──────────────────────────────────────────────────────── */
.updated-time {
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ─── Action column (delete + edit) ─────────────────────────────────────── */
.action-col {
  display: flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.btn-delete, .btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-delete {
  background: rgba(255, 69, 96, 0.1);
  border: 1px solid rgba(255, 69, 96, 0.3);
  color: var(--negative);
}
.btn-delete:hover {
  background: var(--negative-bg);
  border-color: var(--negative);
}

.btn-edit {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
}
.btn-edit:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: var(--accent);
}

/* ─── Wallets Section ───────────────────────────────────────────────────── */
.wallets-section {
  margin-top: 24px;
}
.wallet-add-form {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.wallet-add-form.hidden { display: none; }
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-form .form-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  height: 38px;
}
.wallet-addr {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}
.wallet-empty {
  padding: 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Chart Card ────────────────────────────────────────────────────────── */
.chart-card {
  padding-bottom: 24px;
}

.chart-wrapper {
  padding: 20px 24px 8px;
  display: flex;
  justify-content: center;
}

.chart-wrapper canvas {
  max-width: 220px;
  max-height: 220px;
}

.chart-legend {
  list-style: none;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.legend-pct {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 72px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.empty-icon {
  font-size: 56px;
  line-height: 1;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  font-family: var(--font);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-card-2);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 13px 32px;
  font-size: 15px;
}

.btn-icon {
  font-size: 16px;
  line-height: 1;
}

/* ─── Form ──────────────────────────────────────────────────────────────── */
.form-container {
  max-width: 780px;
}

.form-card {
  padding: 32px;
}

.asset-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required {
  color: var(--accent);
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a9a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.ticker-input {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  z-index: 1;
}

.form-input.has-prefix {
  padding-left: 28px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Form Cost Basis Summary ───────────────────────────────────────────── */
.form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--accent-dim);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.form-summary-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-summary-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

/* ─── Form Actions ──────────────────────────────────────────────────────── */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── input[type=date] color fix ────────────────────────────────────────── */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.5);
  cursor: pointer;
}

/* ─── Number inputs ─────────────────────────────────────────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.4;
}

/* ─── Auth pages ────────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* ─── Navbar user / logout ──────────────────────────────────────────────── */
.nav-user {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0 8px;
}


.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  border-color: var(--negative);
  color: var(--negative);
}

/* ─── Profile avatar in navbar ──────────────────────────────────────────── */
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.btn-profile {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card-2);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
  flex-shrink: 0;
}

.btn-profile:hover { border-color: var(--accent); }

.btn-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-profile-initial {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ─── Profile / settings modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover { color: var(--text); background: var(--bg-card-2); }

.modal-form { display: flex; flex-direction: column; gap: 20px; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ─── Mobile responsiveness ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Navbar */
  .navbar { padding: 0 12px; height: 56px; }
  .nav-title { font-size: 15px; }
  .nav-logo { font-size: 18px; }
  .nav-links .nav-link, .nav-links .btn-profile, .nav-links .btn-logout { display: none; }
  .nav-hamburger { display: block; }
  .nav-dropdown { top: 56px; }
  .btn-logout { padding: 5px 10px; font-size: 12px; }

  /* Container */
  .container { padding: 16px 12px 48px; }

  /* Page header */
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .page-title { font-size: 20px; }

  /* Summary cards */
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .summary-card { padding: 14px 16px; }
  .card-value { font-size: 18px; }
  .card-label { font-size: 10px; }

  /* Dashboard grid */
  .dashboard-grid { gap: 14px; }

  /* Tables: make them scrollable */
  .table-wrapper { -webkit-overflow-scrolling: touch; }
  .assets-table { font-size: 12px; }
  .assets-table th, .assets-table td { padding: 10px 10px; }

  /* Wallet form */
  .inline-form { flex-direction: column; }
  .inline-form .form-input { width: 100%; }
  .inline-form .btn { width: 100%; justify-content: center; }

  /* Forms */
  .form-card { padding: 20px 16px; }
  .asset-form { gap: 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 12px 24px; font-size: 14px; }

  /* Chart */
  .chart-wrapper canvas { max-width: 160px; max-height: 160px; }

  /* Auth */
  .auth-card { padding: 28px 20px; }

  /* Modal */
  .modal-card { padding: 20px 16px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .summary-grid { grid-template-columns: 1fr; }
}

/* ─── Upload row (URL input + upload button side by side) ───────────────── */
.upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.upload-row .form-input { flex: 1; }

/* ─── Navbar SVG logo ───────────────────────────────────────────────────── */
.nav-logo-img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);   /* renders white on the dark navbar */
}

/* ─── Wallet view modes ─────────────────────────────────────────────────── */
[data-wallet-mode="btc"] .col-wallet-usd { display: none; }
[data-wallet-mode="usd"] .col-btc-balance,
[data-wallet-mode="usd"] .col-btc-unconfirmed { display: none; }

/* ─── Auto BTC asset badges ─────────────────────────────────────────────── */
.auto-btc-badge {
  font-size: 10px;
  background: rgba(108, 99, 255, 0.18);
  color: var(--accent);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
}
.set-cost-link {
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}
.set-cost-link:hover { color: var(--accent-hover); }
.upload-label { cursor: pointer; flex-shrink: 0; }
