/* === App Navigation === */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.app-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-light); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #1A1A1A; }
.btn-gold:hover { background: #c99a3f; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* === App Layout === */
.app-page { min-height: 100vh; background: var(--bg); }
.app-container { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.app-container-wide { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }

/* === Page Headers === */
.page-header { margin-bottom: 40px; }
.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0F5F1;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-sub { font-size: 17px; color: var(--muted); line-height: 1.6; }

/* === Cards === */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.card + .card { margin-top: 20px; }
.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--fg);
}

/* === Forms === */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 28px; }

/* === Alerts === */
.alert { padding: 14px 18px; border-radius: 8px; font-size: 14px; margin-bottom: 24px; }
.alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; }
.alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.alert-info { background: #F0F5F1; border: 1px solid #BBD8C8; color: var(--accent); }
.alert-warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }

/* === Status Badges === */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.status-pending { background: #FEF9C3; color: #854D0E; }
.status-in_escrow { background: #DBEAFE; color: #1E40AF; }
.status-shipped { background: #F3E8FF; color: #6B21A8; }
.status-complete { background: #DCFCE7; color: #166534; }
.status-disputed { background: #FEE2E2; color: #991B1B; }

/* === Trade Table === */
.trade-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.trade-table th {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
}
.trade-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.trade-table tr:last-child td { border-bottom: none; }
.trade-table tr:hover td { background: #f9f7f4; }
.trade-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
}
.trade-link:hover { text-decoration: underline; }

/* === Trade Detail === */
.trade-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.meta-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.meta-value { font-size: 16px; color: var(--fg); font-weight: 500; }

/* === Timeline === */
.timeline { display: flex; flex-direction: column; }
.timeline-step {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-step:last-child { border-bottom: none; }
.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
}
.dot-done { background: var(--accent); color: #fff; }
.dot-active { background: var(--gold); color: #1A1A1A; }
.dot-todo { background: var(--border); color: var(--muted); }
.timeline-content { flex: 1; padding-top: 3px; }
.timeline-label {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.timeline-desc { font-size: 13px; color: var(--muted); }

/* === Price Display === */
.price-display {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.price-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* === Empty State === */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 20px; }
.empty-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.empty-sub { color: var(--muted); margin-bottom: 28px; }

/* === Hero CTA (landing page) === */
.hero-cta { display: flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

/* === Sections divider === */
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* === Responsive app === */
@media (max-width: 768px) {
  .trade-meta { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .nav-links { gap: 12px; }
}
