/* ═══════════════════════════════════════════════
   QRShift — Design System
   ═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Custom Properties ── */
:root {
  --surface-950: #08090d;
  --surface-900: #0d0f14;
  --surface-800: #12151c;
  --surface-700: #1a1e28;
  --surface-600: #232836;
  --accent-400: #34d399;
  --accent-500: #10b981;
  --accent-600: #059669;
  --neon-cyan: #22d3ee;
  --neon-emerald: #34d399;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --glow: 0 0 20px rgba(16,185,129,0.15);
  --glow-lg: 0 0 40px rgba(16,185,129,0.2);
  --glow-cyan: 0 0 25px rgba(34,211,238,0.12);
}

/* ── Base ── */
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background-color: var(--surface-950);
  color: var(--slate-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }
code { font-family: 'JetBrains Mono', monospace; }

::selection { background: rgba(16,185,129,0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-900); }
::-webkit-scrollbar-thumb { background: var(--surface-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-400); }

/* ── Typography ── */
h1, h2, h3, h4 { color: #fff; line-height: 1.15; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 1024px; margin: 0 auto; padding: 0 1rem; }
.container-xs { max-width: 24rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.text-center { text-align: center; }
.hidden { display: none; }
.relative { position: relative; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all { word-break: break-all; }

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(26,30,40,0.5);
  background: rgba(8,9,13,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3.5rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.nav-brand:hover .nav-logo { border-color: rgba(16,185,129,0.5); }
.nav-logo {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  border-radius: 4px;
  background: var(--surface-800);
  border: 1px solid var(--surface-600);
  transition: border-color 0.2s;
}
.nav-logo-cell { border-radius: 1px; }
.nav-logo-cell.on { background: var(--accent-400); }
.nav-logo-cell.off { background: var(--surface-600); }
.nav-brand-text { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.025em; color: #fff; }
.nav-brand-text span { color: var(--accent-400); }
.nav-links { display: flex; align-items: center; gap: 0.75rem; }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.2s;
  padding: 0.25rem 0;
}
.nav-link:hover { color: #fff; }
.nav-link-accent:hover { color: var(--accent-400); }
.nav-divider { width: 1px; height: 1rem; background: var(--surface-600); }
.nav-user { font-size: 0.875rem; color: var(--slate-500); font-family: 'JetBrains Mono', monospace; }
.nav-logout { font-size: 0.875rem; font-weight: 500; color: var(--slate-500); transition: color 0.2s; }
.nav-logout:hover { color: var(--red-400); }

/* Mobile nav */
.nav-menu-btn {
  display: none;
  padding: 0.25rem;
  color: var(--slate-400);
}
.nav-menu-btn svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 639px) {
  .nav-menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface-900);
    border-bottom: 1px solid var(--surface-700);
    padding: 1rem;
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .nav-divider { display: none; }
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
}
.btn-primary {
  color: var(--surface-950);
  background: var(--accent-400);
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--accent-500); box-shadow: var(--glow-lg); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
  color: var(--slate-300);
  border: 1px solid var(--surface-600);
}
.btn-secondary:hover { border-color: var(--slate-500); color: #fff; }
.btn-ghost {
  color: var(--accent-400);
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
}
.btn-ghost:hover { background: rgba(52,211,153,0.12); }
.btn-danger {
  color: #fff;
  background: var(--red-600);
}
.btn-danger:hover { background: var(--red-500); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; border-radius: 0.5rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-disabled {
  color: var(--slate-500);
  background: var(--surface-800);
  border: 1px solid var(--surface-700);
  cursor: not-allowed;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-icon-accent {
  color: var(--accent-400);
  background: rgba(52,211,153,0.06);
  border-color: rgba(52,211,153,0.2);
}
.btn-icon-accent:hover { background: rgba(52,211,153,0.12); }
.btn-icon-yellow {
  color: var(--yellow-500);
  background: rgba(234,179,8,0.06);
  border-color: rgba(234,179,8,0.2);
}
.btn-icon-yellow:hover { background: rgba(234,179,8,0.12); }
.btn-icon-muted {
  color: var(--slate-400);
  background: rgba(26,30,40,0.4);
  border-color: rgba(35,40,54,0.6);
}
.btn-icon-muted:hover { background: var(--surface-700); }
.btn-icon-danger {
  color: rgba(248,113,113,0.6);
  background: transparent;
}
.btn-icon-danger:hover {
  color: var(--red-400);
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.2);
}
.btn-icon svg { width: 0.875rem; height: 0.875rem; }

/* ══════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--slate-400);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface-800);
  border: 1px solid var(--surface-600);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  transition: all 0.2s;
}
.form-input::placeholder { color: var(--surface-600); }
.form-input:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 1px var(--accent-400);
}
.form-input-mono { font-family: 'JetBrains Mono', monospace; }
.form-error { margin-top: 0.25rem; font-size: 0.75rem; color: var(--red-400); }
.form-hint { margin-top: 0.375rem; font-size: 0.75rem; color: var(--slate-600); }

.error-box {
  padding: 0.75rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.error-box p { font-size: 0.875rem; color: var(--red-400); }

/* ══════════════════════════════════════
   AUTH CARD (Login / Register)
   ══════════════════════════════════════ */
.auth-page {
  min-height: calc(100vh - 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-card {
  width: 100%;
  max-width: 24rem;
  padding: 1.5rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--surface-700);
  background: rgba(13,15,20,0.6);
  backdrop-filter: blur(12px);
}
.auth-title { font-size: 1.25rem; font-weight: 700; text-align: center; }
.auth-subtitle {
  font-size: 0.875rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}
.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 1.5rem;
}
.auth-footer a { color: var(--accent-400); font-weight: 500; }
.auth-footer a:hover { color: var(--accent-500); }

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}
.modal {
  position: relative;
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem 1rem 0 0;
  border: 1px solid rgba(26,30,40,0.6);
  background: var(--surface-900);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  animation: modal-up 0.2s ease-out;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
}
.modal-title { font-size: 1.125rem; font-weight: 600; }
.modal-subtitle { font-size: 0.75rem; color: var(--slate-500); margin-top: 0.125rem; }
.modal-close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: var(--slate-500);
  transition: all 0.2s;
}
.modal-close:hover { color: #fff; background: var(--surface-700); }
.modal-close svg { width: 1rem; height: 1rem; }
.modal-body { padding: 1.25rem; }
.modal-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.modal-actions .btn { flex: 1; }

@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 1rem; }
  .modal { border-radius: 1rem; }
}

@keyframes modal-up {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════ */
.dash-bg {
  min-height: calc(100vh - 3.5rem);
  position: relative;
}
.dash-dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, rgb(52 211 153) 1px, transparent 0);
  background-size: 32px 32px;
}
.dash-header { margin-bottom: 2rem; }
.dash-user { font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; color: var(--slate-600); margin-bottom: 0.25rem; }
.dash-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.stat-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(26,30,40,0.6);
  background: rgba(13,15,20,0.6);
  padding: 1rem;
}
.stat-card.span-full { grid-column: 1 / -1; }
.stat-label {
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
}
.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}
.stat-sub {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(234,179,8,0.7);
  margin-left: 0.5rem;
}
.stat-sub-views { color: var(--slate-600); }

/* Progress bar */
.progress-bar {
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--surface-700);
  overflow: hidden;
  margin-top: 0.625rem;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s ease-out;
}
.progress-fill.green { background: var(--accent-400); }
.progress-fill.yellow { background: var(--yellow-400); }
.progress-fill.red { background: var(--red-400); }
.progress-note { font-size: 0.625rem; color: rgba(248,113,113,0.8); margin-top: 0.375rem; }

/* ── QR Card ── */
.qr-list { display: flex; flex-direction: column; gap: 0.875rem; }

.qr-card {
  position: relative;
  border-radius: 0.75rem;
  background: var(--surface-900);
  border: 1px solid var(--surface-700);
  transition: border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.qr-card:hover {
  border-color: var(--surface-600);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.qr-card.paused { opacity: 0.55; }
.qr-card.paused:hover { opacity: 0.7; }

/* ── Card header: label + status + meta chips ── */
.qr-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem 0;
}
.qr-card-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.qr-card-status.active {
  background: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.15);
}
.qr-card-status.paused {
  background: var(--yellow-400);
  box-shadow: 0 0 0 3px rgba(250,204,21,0.12);
}
.qr-card-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-200);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.qr-card-badge {
  font-size: 0.5625rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1875rem 0.4375rem;
  border-radius: 9999px;
  flex-shrink: 0;
  line-height: 1;
}
.qr-card-badge.badge-paused {
  color: var(--yellow-400);
  background: rgba(250,204,21,0.08);
  border: 1px solid rgba(250,204,21,0.15);
}
.qr-card-badge.badge-live {
  color: var(--accent-400);
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.12);
}

/* ── Card body: flow layout ── */
.qr-card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
}

/* QR image with ring */
.qr-card-img {
  position: relative;
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-card-ring {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  border: 2px solid var(--surface-700);
  transition: border-color 0.3s;
}
.qr-card:hover .qr-card-ring { border-color: var(--surface-600); }
.qr-card-img img {
  width: 4rem;
  height: 4rem;
  border-radius: 0.5rem;
  display: block;
  position: relative;
  z-index: 1;
}
.qr-card.paused .qr-card-img img { opacity: 0.3; filter: grayscale(1); }
.qr-card-pause-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.qr-card-pause-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--yellow-400);
  opacity: 0.9;
}

/* Flow connector: arrow between QR and destination */
.qr-card-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
  color: var(--surface-600);
}
.qr-card-flow .flow-line {
  width: 1px;
  height: 0.75rem;
  background: var(--surface-700);
}
.qr-card-flow svg { width: 1rem; height: 1rem; }
.qr-card:hover .qr-card-flow { color: var(--accent-400); }
.qr-card:hover .qr-card-flow .flow-line { background: rgba(52,211,153,0.3); }

/* Destination info */
.qr-card-dest {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.qr-card-url {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--slate-300);
  background: var(--surface-800);
  border: 1px solid var(--surface-700);
  border-radius: 0.375rem;
  padding: 0.4375rem 0.625rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color 0.25s;
}
.qr-card:hover .qr-card-url { border-color: var(--surface-600); }
.qr-card-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.qr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--slate-500);
  background: var(--surface-800);
  padding: 0.1875rem 0.4375rem;
  border-radius: 0.25rem;
  line-height: 1.3;
  white-space: nowrap;
}
.qr-chip svg { width: 0.6875rem; height: 0.6875rem; flex-shrink: 0; }
.qr-chip-id { color: var(--neon-cyan); }
.qr-chip-views { color: var(--accent-400); }
.qr-chip-time { color: var(--slate-600); background: none; padding: 0; }
/* Copy link chip */
.qr-chip-copy {
  color: var(--neon-cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.18);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.qr-chip-copy:hover {
  background: rgba(34,211,238,0.14);
  border-color: rgba(34,211,238,0.35);
  color: #fff;
}
.qr-chip-copy svg { color: var(--neon-cyan); }

/* ── Card footer: actions ── */
.qr-card-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 1rem 0.75rem;
}
.qr-act {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.6875rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: var(--surface-800);
  color: var(--slate-400);
  cursor: pointer;
  transition: all 0.2s;
}
.qr-act:hover { background: var(--surface-700); color: var(--slate-200); }
.qr-act svg { width: 0.8125rem; height: 0.8125rem; flex-shrink: 0; }
.qr-act-swap { color: var(--accent-400); }
.qr-act-swap:hover { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.15); color: var(--accent-400); }
.qr-act-pause { color: var(--yellow-400); }
.qr-act-pause:hover { background: rgba(250,204,21,0.06); border-color: rgba(250,204,21,0.12); color: var(--yellow-400); }
.qr-act-resume { color: var(--accent-400); }
.qr-act-resume:hover { background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.15); color: var(--accent-400); }
.qr-act-spacer { flex: 1; }
.qr-act-delete { color: var(--red-400); }
.qr-act-delete:hover { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.15); color: var(--red-400); }

@media (min-width: 640px) {
  .stat-card.span-full { grid-column: auto; }
}
@media (min-width: 768px) {
  .qr-card-body { gap: 1.25rem; }
  .qr-card-img { width: 6rem; height: 6rem; }
  .qr-card-img img { width: 4.5rem; height: 4.5rem; }
  .qr-card-url { font-size: 0.8125rem; }
}

/* Empty state */
.empty-state { text-align: center; padding: 4rem 0; }
.empty-grid {
  position: relative;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
}
.empty-grid-cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  opacity: 0.2;
}
.empty-cell { border-radius: 2px; background: var(--slate-500); }
.empty-plus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-plus-circle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px dashed rgba(52,211,153,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-plus-circle svg { width: 1rem; height: 1rem; color: rgba(52,211,153,0.5); }
.empty-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.375rem; }
.empty-text { font-size: 0.875rem; color: var(--slate-500); margin-bottom: 1.5rem; max-width: 20rem; margin-left: auto; margin-right: auto; }

/* Spinner */
.spinner {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
}
.spinner::before, .spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.spinner::before { border-color: var(--surface-700); }
.spinner::after { border-top-color: var(--accent-400); animation: spin 0.8s linear infinite; }

/* Confirm dialog */
.confirm-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.confirm-icon svg { width: 1.25rem; height: 1.25rem; color: var(--red-400); }
.confirm-msg { font-size: 0.875rem; color: var(--slate-400); line-height: 1.6; margin-bottom: 1.5rem; }

/* ══════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════ */
/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34,211,238,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(52,211,153,0.05) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: mesh-move 15s ease-in-out infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-gradient {
  background: linear-gradient(to right, var(--neon-emerald), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--slate-400);
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-weight: 300;
}
.hero-actions {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
}

/* QR fragments */
.qr-fragment {
  position: absolute;
  pointer-events: none;
}
.qr-frag-grid {
  display: grid;
  gap: 4px;
}
.qr-frag-cell { border-radius: 2px; }

/* Link swap diagram */
.swap-diagram {
  margin-top: 6rem;
  display: flex;
  justify-content: center;
}
.swap-diagram-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--surface-700);
  background: rgba(13,15,20,0.8);
  backdrop-filter: blur(12px);
}
.swap-qr-box {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  border: 2px dashed var(--surface-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.swap-qr-grid {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.swap-arrow { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.swap-arrow svg { width: 2rem; height: 2rem; color: var(--accent-400); }
.swap-arrow-text { font-size: 0.625rem; font-family: 'JetBrains Mono', monospace; color: var(--slate-500); text-transform: uppercase; letter-spacing: 0.05em; }
.swap-urls { display: flex; flex-direction: column; gap: 0.375rem; }
.swap-url {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}
.swap-url-old { background: rgba(26,30,40,0.5); border: 1px solid var(--surface-600); color: var(--slate-500); text-decoration: line-through; }
.swap-url-live { background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.3); color: var(--accent-400); }
.swap-url-live-dot { font-size: 0.625rem; color: var(--accent-500); margin-left: 0.5rem; }

/* Steps section */
.steps {
  position: relative;
  padding: 8rem 0;
  border-top: 1px solid var(--surface-800);
  overflow: hidden;
}
.steps-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: rgba(16,185,129,0.03);
  border-radius: 50%;
  filter: blur(100px);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.step-card-wrap { position: relative; z-index: 1; }
.step-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.5rem;
  background: rgba(13,15,20,0.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--surface-700);
  height: 100%;
  transition: background 0.5s;
}
.step-card:hover { background: rgba(18,21,28,0.7); }
/* Gradient border animation */
.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(52,211,153,0.4) 25%, rgba(34,211,238,0.4) 50%, rgba(52,211,153,0.4) 75%, transparent 100%);
  background-size: 300% 100%;
  animation: border-spin 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.step-badge {
  position: absolute;
  top: -0.875rem;
  left: 1.5rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.step-badge-green { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.4); color: var(--accent-400); }
.step-badge-cyan { background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.4); color: var(--neon-cyan); }
.step-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  animation: pulse-slow 3s cubic-bezier(0.4,0,0.6,1) infinite;
}
.step-badge-dot.green { background: var(--accent-400); }
.step-badge-dot.cyan { background: var(--neon-cyan); }
.step-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  margin: 1.5rem 0 1rem;
}
.step-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.9375rem; color: var(--slate-400); line-height: 1.6; }

/* Step visuals */
.step-qr-visual { position: relative; width: 4rem; height: 4rem; }
.step-qr-bg { position: absolute; inset: 0; border-radius: 0.5rem; background: rgba(52,211,153,0.04); border: 1px solid rgba(52,211,153,0.2); }
.step-qr-cells {
  position: absolute;
  inset: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.step-qr-cell { border-radius: 2px; }
.step-qr-cell.on { background: var(--accent-400); }
.step-qr-cell.off { background: rgba(35,40,54,0.5); }
.step-scan-line {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(52,211,153,0.6), transparent);
  animation: scan-line 2.5s ease-in-out infinite;
}
.step-corner { position: absolute; width: 0.75rem; height: 0.75rem; }
.step-corner-tl { top: -4px; left: -4px; border-top: 2px solid rgba(52,211,153,0.4); border-left: 2px solid rgba(52,211,153,0.4); border-radius: 4px 0 0 0; }
.step-corner-tr { top: -4px; right: -4px; border-top: 2px solid rgba(52,211,153,0.4); border-right: 2px solid rgba(52,211,153,0.4); border-radius: 0 4px 0 0; }
.step-corner-bl { bottom: -4px; left: -4px; border-bottom: 2px solid rgba(52,211,153,0.4); border-left: 2px solid rgba(52,211,153,0.4); border-radius: 0 0 0 4px; }
.step-corner-br { bottom: -4px; right: -4px; border-bottom: 2px solid rgba(52,211,153,0.4); border-right: 2px solid rgba(52,211,153,0.4); border-radius: 0 0 4px 0; }

.step-orbit-visual { position: relative; width: 4rem; height: 4rem; }
.step-orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34,211,238,0.2); animation: ping-slow 3s cubic-bezier(0,0,0.2,1) infinite; }
.step-orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-orbit-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-orbit-icon svg { width: 1.25rem; height: 1.25rem; color: var(--neon-cyan); }
.step-orbit-dot { position: absolute; width: 100%; height: 100%; }
.step-orbit-dot.a { animation: orbit 8s linear infinite; }
.step-orbit-dot.b { animation: orbit 12s linear infinite reverse; }
.step-orbit-dot .dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; }
.step-orbit-dot .dot-cyan { background: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.step-orbit-dot .dot-green { background: var(--accent-400); box-shadow: var(--glow); width: 0.25rem; height: 0.25rem; }

.step-swap-visual { position: relative; width: 4rem; height: 4rem; }
.step-swap-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-swap-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-swap-icon svg { width: 1.25rem; height: 1.25rem; color: var(--accent-400); }
.step-particle {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(52,211,153,0.6);
  animation: particle-rise 3s ease-out infinite;
}

/* Bento features */
.features {
  position: relative;
  padding: 8rem 0;
  border-top: 1px solid var(--surface-800);
  overflow: hidden;
}
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bento-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--surface-700);
  background: rgba(13,15,20,0.5);
  overflow: hidden;
  transition: all 0.5s;
}
.bento-card:hover { border-color: rgba(52,211,153,0.3); }
.bento-card-cyan:hover { border-color: rgba(34,211,238,0.3); }

.bento-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-visual-tall { height: 13rem; background: linear-gradient(to bottom, rgba(52,211,153,0.03), transparent); }
.bento-visual-chart { background: linear-gradient(to right, rgba(34,211,238,0.03), transparent); }
.bento-visual-sm { height: 9rem; background: linear-gradient(to bottom, rgba(52,211,153,0.02), transparent); }
.bento-visual-sm-cyan { height: 9rem; background: linear-gradient(to bottom, rgba(34,211,238,0.02), transparent); }

.bento-text { padding: 1.5rem; padding-top: 1.25rem; }
.bento-tag {
  font-size: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  display: inline-flex;
  margin-bottom: 0.75rem;
}
.bento-tag-green { color: var(--accent-400); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); }
.bento-tag-cyan { color: var(--neon-cyan); background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2); }
.bento-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.bento-desc { font-size: 0.9375rem; color: var(--slate-400); line-height: 1.6; }

/* Swap visual in bento */
.swap-visual-urls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 2rem;
}
.swap-visual-url {
  width: 100%;
  max-width: 220px;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.7s;
}
.swap-visual-url-old {
  background: var(--surface-800);
  border: 1px solid var(--surface-600);
  color: var(--slate-500);
}
.bento-card:hover .swap-visual-url-old { transform: translateX(1rem); opacity: 0.4; }
.swap-visual-url-new {
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.3);
  color: var(--accent-400);
}
.bento-card:hover .swap-visual-url-new { transform: translateX(-1rem); }
.swap-visual-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex-shrink: 0; }
.swap-visual-dot-red { background: rgba(248,113,113,0.6); }
.swap-visual-dot-green { background: var(--accent-400); animation: pulse-slow 3s cubic-bezier(0.4,0,0.6,1) infinite; }
.swap-visual-icon { position: relative; width: 2.5rem; height: 2.5rem; }
.swap-visual-icon-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(52,211,153,0.2); animation: ping-slow 3s cubic-bezier(0,0,0.2,1) infinite; }
.swap-visual-icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-400);
  transition: transform 0.7s;
}
.bento-card:hover .swap-visual-icon svg { transform: rotate(180deg); }
.swap-visual-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(52,211,153,0.2), rgba(52,211,153,0.04), transparent);
}

/* Chart visual */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 100%;
  padding: 2rem 1.5rem 1.5rem;
}
.chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  transition: all 1s;
}
.chart-scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(34,211,238,0.3), transparent);
  animation: scan-line 2.5s ease-in-out infinite;
}

/* Redirect visual */
.redirect-visual { position: relative; width: 12rem; }
.redirect-line { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--surface-600); transform: translateY(-50%); }
.redirect-start {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--surface-800);
  border: 1px solid var(--surface-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.redirect-mini-qr {
  width: 0.75rem;
  height: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}
.redirect-mini-qr span:nth-child(1), .redirect-mini-qr span:nth-child(4) { background: var(--accent-400); border-radius: 1px; }
.redirect-mini-qr span:nth-child(2), .redirect-mini-qr span:nth-child(3) { background: var(--surface-500); border-radius: 1px; }
.redirect-end {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.redirect-end svg { width: 0.875rem; height: 0.875rem; color: var(--accent-400); }
.redirect-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent-400);
  box-shadow: var(--glow);
  animation: beam-h 2s ease-in-out infinite;
}
.redirect-label {
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: rgba(52,211,153,0.6);
  letter-spacing: 0.1em;
}

/* Shield visual */
.shield-visual { position: relative; }
.shield-icon { position: relative; width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; }
.shield-icon svg { width: 3rem; height: 3rem; color: rgba(34,211,238,0.2); transition: color 0.5s; }
.bento-card:hover .shield-icon svg { color: rgba(34,211,238,0.4); }
.shield-orbit { position: absolute; }
.shield-orbit.a { inset: -8px; animation: orbit 8s linear infinite; }
.shield-orbit.b { inset: -14px; animation: orbit 12s linear infinite reverse; }
.shield-orbit .dot { border-radius: 50%; }
.shield-orbit .dot-cyan { width: 0.5rem; height: 0.5rem; background: rgba(34,211,238,0.6); box-shadow: var(--glow-cyan); }
.shield-orbit .dot-green { width: 0.375rem; height: 0.375rem; background: rgba(52,211,153,0.4); }
.shield-badge {
  position: absolute;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.5625rem;
  font-family: 'JetBrains Mono', monospace;
}
.shield-badge-https { top: -0.5rem; right: -2rem; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.2); color: var(--accent-400); animation: float 6s ease-in-out infinite; }
.shield-badge-ssrf { bottom: -0.25rem; left: -2.5rem; background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2); color: var(--neon-cyan); animation: float 6s ease-in-out 3s infinite; }

/* CTA */
.cta {
  position: relative;
  padding: 7rem 0;
  border-top: 1px solid var(--surface-800);
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16,185,129,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(34,211,238,0.06) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: mesh-move 15s ease-in-out infinite;
  opacity: 0.5;
}
.cta-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid;
  animation: ping-slow 3s cubic-bezier(0,0,0.2,1) infinite;
}
.cta-ring-lg { width: 500px; height: 500px; border-color: rgba(52,211,153,0.05); }
.cta-ring-sm { width: 300px; height: 300px; border-color: rgba(34,211,238,0.05); animation-delay: 1.5s; }
.cta h2 { font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1.25rem; }
.cta p { font-size: 1.125rem; color: var(--slate-400); margin-bottom: 3rem; font-weight: 300; }
.cta .btn-primary:hover { transform: scale(1.05); }

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--surface-800);
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-600);
}

/* Scroll reveal */
[data-reveal] { opacity: 0; }
[data-reveal].revealed {
  animation: fade-in-up 0.6s ease-out both;
}

/* ══════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes mesh-move {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
}

@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

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

@keyframes float-delayed {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes drift {
  0% { transform: translate(0,0) rotate(0deg); }
  25% { transform: translate(30px,-30px) rotate(90deg); }
  50% { transform: translate(0,-50px) rotate(180deg); }
  75% { transform: translate(-30px,-30px) rotate(270deg); }
  100% { transform: translate(0,0) rotate(360deg); }
}

@keyframes beam-h {
  0%, 100% { transform: translateX(-100%) translateY(-50%); opacity: 0; }
  50% { transform: translateX(100%) translateY(-50%); opacity: 1; }
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(40px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes scan-line {
  0%, 100% { transform: translateY(-4px); opacity: 0.3; }
  50% { transform: translateY(68px); opacity: 0.8; }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes border-spin {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes particle-rise {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  100% { transform: translateY(-40px) scale(0); opacity: 0; }
}

@keyframes ping-slow { 0% { transform: scale(1); opacity: 1; } 75%, 100% { transform: scale(2); opacity: 0; } }

@keyframes line-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.5; }
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVE (< 640px)
   ══════════════════════════════════════ */

@media (max-width: 639px) {

/* Touch-friendly tap targets */
.btn, .btn-icon, .nav-link, .nav-logout, .qr-copy-btn, .modal-close {
  min-height: 2.75rem;
  min-width: 2.75rem;
}
.btn-icon { min-height: 2.25rem; padding: 0.5rem 0.75rem; }

/* Hero: tighter padding, full-width buttons */
.hero { padding: 4rem 0 3rem; }
.hero h1 { font-size: 2.25rem; }
.hero-sub { font-size: 0.9375rem; margin-top: 1.25rem; }
.hero-actions { margin-top: 2rem; }
.hero-actions .btn { width: 100%; text-align: center; }

/* Hide QR fragments on mobile (visual noise) */
.qr-fragment { display: none; }

/* Swap diagram: stack vertically on mobile */
.swap-diagram { margin-top: 3rem; }
.swap-diagram-inner {
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 20rem;
}
.swap-qr-box { width: 4rem; height: 4rem; }
.swap-qr-grid { width: 2.5rem; height: 2.5rem; }
.swap-arrow { flex-direction: row; gap: 0.5rem; }
.swap-arrow svg { width: 1.5rem; height: 1.5rem; transform: rotate(90deg); }
.swap-urls { width: 100%; }
.swap-url { font-size: 0.6875rem; padding: 0.5rem 0.625rem; }

/* Steps: tighter mobile spacing */
.steps { padding: 4rem 0; }
.steps-grid { gap: 2.5rem; }
.step-card-wrap { padding: 0; }
.step-card { padding: 1.25rem; padding-top: 1.75rem; }
.step-title { font-size: 1.125rem; }
.step-desc { font-size: 0.875rem; }

/* Features bento: single col on mobile */
.features { padding: 4rem 0; }
.bento-visual-tall { height: 10rem; }
.bento-visual-sm, .bento-visual-sm-cyan { height: 8rem; }
.bento-text { padding: 1.25rem; }
.bento-title { font-size: 1.125rem; }
.bento-desc { font-size: 0.875rem; }

/* Chart bars need explicit height on mobile */
.bento-visual-chart { height: 10rem; }

/* CTA: tighter */
.cta { padding: 4rem 0; }
.cta h2 { font-size: 1.5rem; }
.cta p { font-size: 1rem; margin-bottom: 2rem; }

/* Dashboard: single col stats on mobile */
.stats-grid { grid-template-columns: 1fr; }
.stat-card.span-full { grid-column: auto; }
.dash-header { margin-bottom: 1.5rem; }
.dash-header .btn { width: 100%; margin-top: 0.75rem; }
.dash-title { font-size: 1.375rem; }

/* QR Card mobile */
.qr-card-header { padding: 0.625rem 0.75rem 0; gap: 0.5rem; }
.qr-card-label { font-size: 0.8125rem; }
.qr-card-status { width: 6px; height: 6px; }
.qr-card-badge { font-size: 0.5rem; padding: 0.125rem 0.3125rem; }

.qr-card-body {
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  align-items: stretch;
}
.qr-card-img { width: 100%; height: auto; flex-direction: row; justify-content: center; padding: 0.5rem 0; }
.qr-card-img img { width: 4.5rem; height: 4.5rem; }
.qr-card-ring { display: none; }
.qr-card-flow { display: none; }
.qr-card-url { font-size: 0.6875rem; padding: 0.375rem 0.5rem; }
.qr-card-chips { gap: 0.375rem; }
.qr-chip { font-size: 0.5625rem; padding: 0.125rem 0.3125rem; }
.qr-chip-copy svg { width: 0.625rem; height: 0.625rem; }
.qr-chip-time { font-size: 0.5625rem; }

/* Actions: icon-only on mobile */
.qr-card-actions { padding: 0 0.75rem 0.625rem; gap: 0.25rem; }
.qr-act { padding: 0.4375rem; font-size: 0; justify-content: center; flex: 1 1 0; min-height: 2.25rem; }
.qr-act svg { width: 1rem; height: 1rem; }
.qr-act-spacer { display: none; }
.hide-mobile { display: none; }

/* Auth card: touch padding */
.auth-card { padding: 1.5rem; }
.form-input { padding: 0.75rem; font-size: 1rem; }

/* Modal: safe area for iPhone */
.modal { padding-bottom: env(safe-area-inset-bottom, 0); }
.modal-body { padding: 1rem; }

/* Footer */
.site-footer { padding: 1.5rem 0; font-size: 0.8125rem; }

} /* end @media (max-width: 639px) */

/* ── Small tablets (640px+) ── */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .container-sm { padding: 0 1.5rem; }

  .hero { padding: 8rem 0 5rem; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
  .hero-sub { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-top: 1.75rem; }
  .hero-actions { flex-direction: row; margin-top: 3rem; }
  .hero-actions .btn { width: auto; }

  .qr-fragment { display: block; }

  .swap-diagram { margin-top: 6rem; }
  .swap-diagram-inner { flex-direction: row; gap: 1.5rem; padding: 1.5rem; width: auto; max-width: none; }
  .swap-qr-box { width: 5rem; height: 5rem; }
  .swap-qr-grid { width: 3.5rem; height: 3.5rem; }
  .swap-arrow { flex-direction: column; }
  .swap-arrow svg { width: 2rem; height: 2rem; transform: none; }
  .swap-url { font-size: 0.75rem; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-card.span-full { grid-column: 1 / -1; }

  .dash-title { font-size: 1.875rem; }
  .dash-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
  .dash-header .btn { width: auto; margin-top: 0; }

  .auth-card { padding: 1.5rem 2rem; }
  .form-input { padding: 0.625rem 0.875rem; font-size: 0.875rem; }

  .modal-overlay { align-items: center; padding: 1rem; }
  .modal { border-radius: 1rem; padding-bottom: 0; }
  .modal-body { padding: 1.25rem; }

  .steps { padding: 8rem 0; }
  .features { padding: 8rem 0; }
  .cta { padding: 7rem 0; }
  .cta h2 { font-size: clamp(1.5rem, 5vw, 3rem); }
  .cta p { font-size: 1.125rem; margin-bottom: 3rem; }

  .bento-visual-tall { height: 13rem; }
  .bento-visual-sm, .bento-visual-sm-cyan { height: 9rem; }
  .bento-visual-chart { height: auto; }
  .bento-text { padding: 1.5rem; }
  .bento-title { font-size: 1.25rem; }
  .bento-desc { font-size: 0.9375rem; }

  .site-footer { padding: 2rem 0; font-size: 0.875rem; }
}

/* ── Tablets/Desktop (768px+) ── */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }

  .hero { padding: 10rem 0 5rem; }

  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .step-card-wrap { padding: 2rem 2.5rem; }
  .step-card { padding: 1.5rem; }
  .step-title { font-size: 1.25rem; }
  .step-desc { font-size: 0.9375rem; }

  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-tall { grid-row: span 2; }
  .bento-wide { grid-column: span 2; }
  .bento-wide-inner { display: flex; }
  .bento-wide-visual { width: 12rem; flex-shrink: 0; height: auto; }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }

  .qr-card-layout { flex-direction: row; align-items: stretch; }
  .qr-card-left { width: 280px; flex-shrink: 0; }
}
