/* ==========================================================================
   ARIXON TECHNOLOGY — Digital Business Card Platform
   A premium product surface, not a website.
   Inspired by Apple Wallet, Linear, Stripe Dashboard, Arc, Raycast.
   ========================================================================== */

:root {
  --bg: #05080f;
  --bg-radial-1: #101b32;
  --bg-radial-2: #0b1220;

  --accent: #3b82f6;
  --accent-2: #6366f1;
  --accent-light: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.14);

  --text-primary: #f6f8fc;
  --text-secondary: #a6b0c3;
  --text-muted: #6b7385;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.065);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.14);

  --radius-2xl: 30px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-ambient: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(59, 130, 246, 0.08),
    0 24px 70px -24px rgba(59, 130, 246, 0.4), var(--shadow-ambient);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 160ms var(--ease-standard);
  --t-med: 320ms var(--ease-standard);
  --t-slow: 560ms var(--ease-out);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Söhne Mono", Menlo, Consolas, monospace;

  --bottom-bar-h: 76px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

/* ==========================================================================
   Ambient background
   ========================================================================== */

.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 1200px 800px at 20% -10%, var(--bg-radial-1) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 900px at 90% 110%, var(--bg-radial-2) 0%, transparent 55%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite;
}

.orb-1 {
  width: 460px;
  height: 460px;
  top: -160px;
  left: -140px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.orb-2 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  top: 45%;
  left: 55%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.16;
  animation-delay: -3.5s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(26px, -24px) scale(1.05); }
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0;
  animation: particleFloat 16s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.4; }
  88% { opacity: 0.4; }
  100% { transform: translateY(-140px) scale(0.8); opacity: 0; }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   App shell / layout grid
   ========================================================================== */

.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 20px calc(var(--bottom-bar-h) + 28px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  flex: 1 0 auto;
  align-content: center;
}

/* ==========================================================================
   Reveal-on-load / reveal-on-scroll animation primitive
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in-view {
  animation: fadeUp var(--t-slow) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hero stage + wallet card
   ========================================================================== */

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58svh;
  padding: 12px 0 4px;
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 65%);
  filter: blur(20px);
  animation: pulseGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.wallet-float {
  width: 100%;
  max-width: 420px;
  animation: floatCard 6.5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.wallet-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-2xl);
  padding: 1.5px;
  background: linear-gradient(115deg, rgba(96, 165, 250, 0.75), rgba(99, 102, 241, 0.25) 35%, rgba(59, 130, 246, 0.15) 55%, rgba(96, 165, 250, 0.75) 100%);
  background-size: 240% 240%;
  animation: borderShift 7s linear infinite;
  --shadow-x: 0px;
  --shadow-y: 26px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08),
    var(--shadow-x) var(--shadow-y) 70px -24px rgba(59, 130, 246, 0.42),
    var(--shadow-ambient);
  transition: box-shadow var(--t-med);
}

@keyframes borderShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.wallet-card-inner {
  position: relative;
  border-radius: calc(var(--radius-2xl) - 1.5px);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 35%, transparent 60%),
    radial-gradient(130% 100% at 100% 100%, rgba(0, 0, 0, 0.38), transparent 60%),
    rgba(13, 20, 35, 0.72);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -30px 50px -32px rgba(0, 0, 0, 0.55);
  padding: 30px;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow var(--t-med);
}

/* faint watermark logo texture */
.wallet-card-inner::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

/* glass sheen sweep on hover — bold, hover-triggered accent */
.wallet-card-inner::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-40%) rotate(12deg);
  transition: transform 900ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.wallet-card:hover .wallet-card-inner::after {
  transform: translateX(220%) rotate(12deg);
}

.wallet-card:hover .wallet-card-inner {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -30px 50px -32px rgba(0, 0, 0, 0.6);
}

/* continuous slow-moving glass highlight — always on, subtle */
.card-sheen {
  position: absolute;
  top: -60%;
  left: -70%;
  width: 46%;
  height: 220%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: translateX(-10%) rotate(12deg);
  animation: sheenDrift 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sheenDrift {
  0%, 100% { transform: translateX(-10%) rotate(12deg); opacity: 0.5; }
  50% { transform: translateX(260%) rotate(12deg); opacity: 0.85; }
}

.card-row-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  z-index: 1;
}

.card-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-brand img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.card-brand span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.85;
}

.card-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.28);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.card-identity {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  z-index: 1;
}

.avatar-ring {
  position: relative;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(140deg, var(--accent-light), rgba(99, 102, 241, 0.4));
  animation: avatarGlow 4.5s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 10px 26px -10px rgba(59, 130, 246, 0.6), 0 0 0 0 rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.72), 0 0 0 5px rgba(59, 130, 246, 0.1); }
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-radial-2);
}

.avatar-initials {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--bg-radial-2) 0%, var(--accent) 55%, var(--accent-2) 100%);
}

.avatar-initials::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.4), transparent 55%);
  mix-blend-mode: overlay;
}

.avatar-ring.avatar-fallback-active .avatar-initials {
  display: flex;
}

.card-name-block {
  min-width: 0;
}

.card-name {
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 26px rgba(59, 130, 246, 0.28);
}

.card-position {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.card-position svg {
  width: 11px;
  height: 11px;
  flex: none;
}

.card-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-strong) 15%, var(--glass-border-strong) 85%, transparent);
  margin-bottom: 16px;
  z-index: 1;
}

.card-row-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.card-issuer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-issuer-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-issuer-name {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.card-official {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  animation: officialGlow 4.5s ease-in-out infinite;
}

.card-official svg {
  width: 11px;
  height: 11px;
  flex: none;
}

@keyframes officialGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.25); }
  50% { box-shadow: 0 0 10px 1px rgba(59, 130, 246, 0.32); }
}

/* ==========================================================================
   Panel (right column): quick actions + contact
   ========================================================================== */

.panel {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.panel-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Quick actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  color: var(--text-primary);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px -16px rgba(0, 0, 0, 0.6);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.action-pill svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.action-pill:hover {
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-color: var(--glass-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 30px -16px rgba(0, 0, 0, 0.65);
}

.action-pill:active {
  transform: translateY(-1px);
}

.action-pill.is-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 30px -12px rgba(59, 130, 246, 0.65);
}

.action-pill.is-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 38px -12px rgba(59, 130, 246, 0.8);
}

.action-pill.copied {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.action-pill.copied svg,
.contact-card-action.copied svg {
  animation: copyPop 380ms var(--ease-out);
}

@keyframes copyPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: rippleAnim 620ms var(--ease-out);
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.contact-card:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-strong);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 40px -20px rgba(59, 130, 246, 0.5);
}

.contact-card-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-light);
}

.contact-card-icon svg {
  width: 21px;
  height: 21px;
}

.contact-card-text {
  flex: 1;
  min-width: 0;
}

.contact-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  opacity: 0.85;
  margin-bottom: 3px;
}

.contact-card-value {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  cursor: pointer;
}

.contact-card-value:hover {
  color: var(--accent-light);
}

.contact-card-action {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.contact-card-action svg {
  width: 15px;
  height: 15px;
}

.contact-card-action:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.contact-card-action.copied {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

/* Footer — page-level, mobile-first: centered, sits just above the sticky
   bottom bar. Repositioned to the true bottom of the page at >= 768px. */
.page-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  text-align: center;
  padding: 20px 20px calc(var(--bottom-bar-h) + 22px + env(safe-area-inset-bottom));
}

.page-footer .copyright {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   QR fullscreen modal
   ========================================================================== */

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t-med), visibility 0s linear var(--t-med);
}

.qr-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--t-med), visibility 0s;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.qr-modal-panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 40%),
    rgba(13, 20, 35, 0.86);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  padding: 44px 36px 36px;
  text-align: center;
  transform: scale(0.9) translateY(18px);
  opacity: 0;
  transition: transform var(--t-slow), opacity var(--t-slow);
}

.qr-modal.is-open .qr-modal-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.qr-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--t-fast);
}

.qr-modal-close svg {
  width: 18px;
  height: 18px;
}

.qr-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.qr-modal-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.qr-modal-brand img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
}

.qr-modal-brand span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.qr-modal-person {
  margin-bottom: 20px;
}

.qr-modal-person .name {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.qr-modal-person .position {
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 3px 11px;
  border-radius: var(--radius-pill);
}

.qr-modal-frame {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 22px;
  border-radius: var(--radius-xl);
  background: #fff;
  padding: 16px;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.qr-modal-frame img {
  width: 100%;
  border-radius: var(--radius-md);
}

.qr-modal-title {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
}

.qr-modal-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================================
   Mobile sticky action bar
   ========================================================================== */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(9, 14, 24, 0.82);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.6);
}

.mobile-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-bar-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 52px;
  transition: background var(--t-fast), color var(--t-fast);
}

.mobile-bar-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-bar-btn.is-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.mobile-bar-btn:active {
  transform: scale(0.96);
}

.mobile-bar-btn.copied {
  color: #4ade80;
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-bar-h) + 18px);
  transform: translate(-50%, 16px);
  background: rgba(15, 22, 38, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med), transform var(--t-med);
  z-index: 60;
  max-width: calc(100vw - 40px);
}

.toast svg {
  width: 15px;
  height: 15px;
  color: #4ade80;
  flex: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 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;
}

/* ==========================================================================
   Responsive layout
   Mobile-first base above targets 320px+: single column, sticky bottom bar,
   inline quick actions hidden. Breakpoints below layer on tablet spacing,
   the two-column desktop/laptop grid, and 4K comfort.
   ========================================================================== */

/* < 768px : mobile — sticky bar replaces inline quick actions.
   Tuned for native-app density: the card is the first thing seen,
   contact info should already be visible within the first viewport. */
@media (max-width: 767.98px) {
  .quick-actions-section {
    display: none;
  }

  .panel-eyebrow {
    display: none;
  }

  .mobile-bar {
    display: block;
  }

  .app-shell {
    padding-top: 20px;
    padding-bottom: 0;
    gap: 20px;
  }

  .hero-stage {
    min-height: 0;
    padding: 4px 0 0;
  }

  .panel {
    gap: 20px;
  }

  /* tighten the wallet card itself — ~12% shorter */
  .wallet-card-inner {
    padding: 24px 22px;
  }

  .card-row-top {
    margin-bottom: 22px;
  }

  .card-identity {
    gap: 14px;
    margin-bottom: 20px;
  }

  .avatar-ring {
    width: 64px;
    height: 64px;
  }

  .card-name {
    font-size: 22px;
  }

  .card-divider {
    margin-bottom: 12px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .wallet-card-inner {
    padding: 22px 18px;
  }

  .card-name {
    font-size: 19px;
  }

  .avatar-ring {
    width: 58px;
    height: 58px;
  }

  .avatar-initials {
    font-size: 18px;
  }
}

/* >= 768px : tablet — single column, larger touch targets, quick actions inline.
   Footer moves to the true bottom of the page: app-shell grows to fill the
   remaining space so the footer naturally lands as the final element. */
@media (min-width: 768px) {
  .app-shell {
    padding: 48px 40px;
    gap: 48px;
  }

  .action-pill {
    padding: 17px 28px;
    font-size: 14.5px;
  }

  .mobile-bar {
    display: none;
  }

  .page-footer {
    text-align: left;
    padding: 40px 40px 40px;
  }
}

/* >= 1120px : laptop / desktop — two-column grid, hero left, panel right */
@media (min-width: 1120px) {
  .app-shell {
    grid-template-columns: minmax(400px, 460px) 1fr;
    align-items: center;
    gap: 80px;
    padding: 48px 64px;
  }

  .hero-stage {
    min-height: auto;
  }

  .wallet-float {
    max-width: 440px;
  }

  .panel {
    max-width: 620px;
    margin: 0;
  }

  .page-footer {
    padding-left: 64px;
    padding-right: 64px;
  }
}

/* >= 1600px : large desktop — extra breathing room */
@media (min-width: 1600px) {
  .app-shell {
    gap: 110px;
    padding: 64px 80px;
  }

  .wallet-float {
    max-width: 460px;
  }

  .page-footer {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}
