/* =========================================================================
   Daedalus — share.css
   Styles for the shared "Share with a QR code" modal (window.DaedalusShare).
   Loaded by any page that calls DaedalusShare.open().
   ========================================================================= */
.dx-share-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8,9,12,0.74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: dxShareFade 0.18s ease;
}
@keyframes dxShareFade { from { opacity: 0; } to { opacity: 1; } }

.dx-share-card {
  position: relative; width: min(380px, 100%);
  background: var(--surface-1); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 30px 30px 26px;
  box-shadow: var(--e2); text-align: center;
  animation: dxSharePop 0.2s cubic-bezier(0.2, 0.7, 0.3, 1.1);
}
@keyframes dxSharePop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

.dx-share-x {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--fg-3); cursor: pointer; border-radius: var(--radius-sm);
  background: transparent; border: 0; transition: color 0.15s ease, background 0.15s ease;
}
.dx-share-x:hover { color: var(--fg-1); background: var(--surface-2); }

.dx-share-eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-cyan);
}
.dx-share-title { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-top: 6px; }
.dx-share-sub { font-size: 13px; color: var(--fg-3); line-height: 1.5; margin: 8px auto 0; max-width: 32ch; text-wrap: pretty; }

.dx-share-qr {
  margin: 22px auto 0; width: max-content; padding: 14px;
  background: #FFFFFF; border-radius: var(--radius-md);
  box-shadow: 0 1px 0 var(--border-subtle), var(--e1);
}
.dx-share-qr canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }

.dx-share-url {
  margin-top: 16px; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--fg-2); word-break: break-all; line-height: 1.4;
  padding: 9px 12px; background: var(--surface-2);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
}
.dx-share-actions { margin-top: 18px; display: flex; gap: 10px; }
.dx-share-actions .dx-btn { flex: 1; justify-content: center; }
.dx-share-hint {
  margin-top: 14px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3);
}
