/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --bg: #0B0E11;
  --bg-card: #141820;
  --bg-card-hover: #1A2030;
  --bg-input: #0F1318;
  --border: #1E2733;
  --border-hover: #2A3447;
  --yellow: #F0B90B;
  --yellow-dim: rgba(240, 185, 11, 0.12);
  --yellow-glow: rgba(240, 185, 11, 0.25);
  --yellow-text: #F0B90B;
  --green: #03A66D;
  --green-dim: rgba(3, 166, 109, 0.12);
  --red: #CF304A;
  --red-dim: rgba(207, 48, 74, 0.12);
  --blue: #1890FF;
  --text: #E8EAED;
  --text-muted: #7F8596;
  --text-dim: #4A5168;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.18s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Background grid pattern ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 185, 11, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 185, 11, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo svg {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(240, 185, 11, 0.35));
}
.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 1px;
}
.logo-text span { color: var(--text); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}
.nav-link.active {
  color: var(--yellow);
  background: var(--yellow-dim);
  border-color: rgba(240, 185, 11, 0.2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Wallet connect button ───────────────────────────────────────── */
.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--yellow);
  color: #0B0E11;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-connect:hover:not(:disabled) {
  background: #f5c535;
  box-shadow: 0 0 14px var(--yellow-glow);
}
.btn-connect:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ── Connected wallet pill ───────────────────────────────────────── */
.wallet-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: var(--bg-card);
  border: 1px solid rgba(240, 185, 11, 0.3);
  border-radius: 20px;
  font-size: 13px;
}
.wallet-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow-glow);
  flex-shrink: 0;
}
.wallet-pill-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--yellow);
}
.wallet-pill-disconnect {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1;
  padding: 1px 3px;
  cursor: pointer;
  transition: color var(--transition);
  border-radius: 3px;
}
.wallet-pill-disconnect:hover { color: var(--red); }

.network-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.network-dot.disconnected {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Page Layout ─────────────────────────────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 48px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--yellow-dim);
  border: 1px solid rgba(240, 185, 11, 0.25);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Wallet Banner ───────────────────────────────────────────────── */
.wallet-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 13px;
  flex-wrap: wrap;
}
.wallet-banner.connected { border-color: rgba(3, 166, 109, 0.3); }
.wallet-banner.error { border-color: rgba(207, 48, 74, 0.3); }
.wallet-info { display: flex; align-items: center; gap: 10px; }
.wallet-label { color: var(--text-muted); }
.wallet-addr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg-input);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.wallet-error { color: var(--red); font-size: 12px; }
.wallet-links { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-links a {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all var(--transition);
}
.wallet-links a:hover {
  color: var(--yellow);
  border-color: rgba(240, 185, 11, 0.3);
  text-decoration: none;
}

/* ── Upload Form ─────────────────────────────────────────────────── */
.upload-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin: 24px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--bg-input);
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--yellow);
  background: var(--yellow-dim);
  box-shadow: 0 0 0 4px var(--yellow-glow), inset 0 0 24px rgba(240, 185, 11, 0.05);
}
.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
/* ── Drop zone icon — three states ──────────────────────────────── */
.dz-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.dz-icon svg {
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Uploading: pulsing yellow glow */
.dz-icon.uploading svg {
  animation: dz-pulse 1.3s ease-in-out infinite;
}
@keyframes dz-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(240, 185, 11, 0.5));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(240, 185, 11, 1)) drop-shadow(0 0 40px rgba(240, 185, 11, 0.5));
    transform: scale(1.1);
  }
}

/* Complete: circle turns green, checkmark fades in */
.dz-icon.complete #dzCircle {
  fill: #03A66D;
  transition: fill 0.4s ease;
}
.dz-icon.complete svg {
  filter: drop-shadow(0 0 14px rgba(3, 166, 109, 0.6));
  animation: dz-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes dz-pop {
  from { transform: scale(0.8); }
  to   { transform: scale(1); }
}
.drop-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.drop-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.drop-sub span { color: var(--yellow); }

.file-preview {
  display: none;
  align-items: center;
  gap: 14px;
  margin: 0 24px 0;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.file-preview.visible { display: flex; }
.preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-info { flex: 1; min-width: 0; }
.preview-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.preview-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.preview-remove:hover { color: var(--red); }

.form-fields {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237F8596' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(240, 185, 11, 0.5);
  box-shadow: 0 0 0 3px var(--yellow-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: #0B0E11;
  width: 100%;
  font-size: 15px;
  padding: 14px;
  box-shadow: 0 0 20px var(--yellow-glow);
}
.btn-primary:hover:not(:disabled) {
  background: #f5c535;
  box-shadow: 0 0 32px rgba(240, 185, 11, 0.4);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--yellow-dim);
  text-decoration: none;
}
.btn-verify {
  background: transparent;
  border: 1px solid rgba(240, 185, 11, 0.3);
  color: var(--yellow);
  font-size: 13px;
  padding: 7px 14px;
}
.btn-verify:hover {
  background: var(--yellow-dim);
  border-color: var(--yellow);
}
.btn-verify.verifying { opacity: 0.6; cursor: wait; }
.btn-icon {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.btn-icon:hover { color: var(--text); border-color: var(--border-hover); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Upload Progress ─────────────────────────────────────────────── */
#progressSection {
  display: none;
  padding: 32px 24px;
  text-align: center;
}
#progressSection.visible { display: block; }
.progress-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-step {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.progress-sub { font-size: 13px; color: var(--text-muted); }
.progress-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 20px 0 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px var(--yellow-glow);
}

/* ── Storage Receipt ─────────────────────────────────────────────── */
#receiptSection {
  display: none;
  margin-top: 32px;
}
#receiptSection.visible { display: block; }
.receipt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.receipt-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
}
.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--green-dim);
  border: 1px solid rgba(3, 166, 109, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.receipt-card {
  background: var(--bg-card);
  border: 1px solid rgba(3, 166, 109, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 32px rgba(3, 166, 109, 0.05);
}
.receipt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  width: 120px;
  flex-shrink: 0;
}
.receipt-value {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
}
.receipt-value.highlight {
  color: var(--yellow);
  font-weight: 600;
}
.receipt-value a {
  color: var(--blue);
  word-break: break-all;
}
.copy-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.copy-btn:hover { color: var(--yellow); border-color: rgba(240, 185, 11, 0.4); }
.copy-btn.copied { color: var(--green); border-color: rgba(3, 166, 109, 0.4); }

.receipt-actions {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: rgba(3, 166, 109, 0.04);
  border-top: 1px solid var(--border);
}

/* ── Browse Page ─────────────────────────────────────────────────── */
.vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.vault-title { font-size: 24px; font-weight: 800; }
.vault-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 8px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-hover); }
.filter-btn.active {
  background: var(--yellow-dim);
  border-color: rgba(240, 185, 11, 0.35);
  color: var(--yellow);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.asset-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}
.asset-card:hover {
  border-color: rgba(240, 185, 11, 0.3);
  box-shadow: 0 0 24px rgba(240, 185, 11, 0.08);
  transform: translateY(-2px);
}
.asset-thumb {
  height: 160px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.asset-thumb-icon { font-size: 48px; opacity: 0.5; }
.asset-category-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(11, 14, 17, 0.85);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

.asset-body { padding: 16px; }
.asset-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.asset-cid {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.cid-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.cid-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.asset-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.asset-date { font-size: 12px; color: var(--text-dim); }
.asset-size { font-size: 12px; color: var(--text-dim); }

.asset-footer {
  display: flex;
  gap: 8px;
}

/* ── Verify Modal ─────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 16px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  padding: 2px 6px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

.verify-status {
  text-align: center;
  padding: 24px;
}
.verify-icon { font-size: 48px; margin-bottom: 12px; }
.verify-label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.verify-label.ok { color: var(--green); }
.verify-label.fail { color: var(--red); }
.verify-sub { font-size: 14px; color: var(--text-muted); }

.verify-details {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-bottom: none;
  font-size: 13px;
}
.detail-row:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.detail-row:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.detail-key {
  font-weight: 600;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 1px;
}
.detail-val {
  font-family: var(--mono);
  color: var(--text);
  word-break: break-all;
  font-size: 12px;
}
.detail-val a { color: var(--blue); }

.modal-actions { margin-top: 20px; display: flex; gap: 10px; }

/* ── Empty State ─────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 24px;
}
.empty-icon { font-size: 56px; opacity: 0.3; margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* ── Loading Skeleton ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Error Message ───────────────────────────────────────────────── */
.error-msg {
  padding: 14px 18px;
  background: var(--red-dim);
  border: 1px solid rgba(207, 48, 74, 0.3);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--red);
  margin-bottom: 16px;
  display: none;
}
.error-msg.visible { display: block; }
.error-detail {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.8;
  font-family: var(--mono);
}

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  z-index: 300;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.2s ease;
  max-width: 320px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(3, 166, 109, 0.4); color: var(--green); }
.toast.error { border-color: rgba(207, 48, 74, 0.4); color: var(--red); }

/* ── Utilities ───────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-yellow { color: var(--yellow); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mono { font-family: var(--mono); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .page-content { padding: 28px 16px 60px; }
  .form-row { grid-template-columns: 1fr; }
  .receipt-label { width: 90px; font-size: 11px; }
  .vault-header { flex-direction: column; align-items: flex-start; }
  .asset-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .receipt-actions { flex-wrap: wrap; }
}
