:root {
  --bg: #0f1117;
  --bg2: #1a1d27;
  --bg3: #22263a;
  --border: rgba(255,255,255,0.07);
  --text: #f0f2ff;
  --text2: #8b90a7;
  --text3: #5a5f78;
  --primary: #6366f1;
  --primary-hover: #4f52d9;
  --green: #25d366;
  --green-dark: #128c7e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --sidebar-w: 240px;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow: hidden; }

/* ── Layout ── */
body { display: flex; }
.sidebar { width: var(--sidebar-w); background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; overflow: hidden; }
.main { flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ── Sidebar ── */
.sidebar-header { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: .75rem; }
.logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--green), var(--green-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.logo-icon svg { width: 20px; height: 20px; }
.logo-text { display: block; font-weight: 700; font-size: .95rem; color: var(--text); letter-spacing: .5px; }
.logo-sub { display: block; font-size: .68rem; color: var(--text3); }

/* WA Status Card */
.wa-status-card { margin: .75rem; background: var(--bg3); border-radius: 10px; padding: .6rem .75rem; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--border); }
.wa-status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex-shrink: 0; transition: background .3s; }
.wa-status-indicator.connected { background: var(--green); box-shadow: 0 0 6px var(--green); }
.wa-status-indicator.qr { background: var(--yellow); animation: pulse 1.2s infinite; }
.wa-status-info { flex: 1; min-width: 0; }
.wa-status-label { font-size: .72rem; font-weight: 600; color: var(--text2); display: block; }
.wa-status-phone { font-size: .65rem; color: var(--text3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-connect-btn { font-size: .65rem; font-weight: 600; background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: .25rem .55rem; cursor: pointer; white-space: nowrap; transition: background .2s; }
.wa-connect-btn:hover { background: var(--primary-hover); }
.wa-connect-btn.danger { background: var(--red); }

/* Nav */
.nav { padding: .5rem; flex: 1; }
.nav-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .85rem; border-radius: 9px; border: none; background: transparent; color: var(--text2); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .2s; text-align: left; position: relative; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(99,102,241,.15); color: var(--primary); }
.badge { margin-left: auto; background: var(--red); color: #fff; font-size: .6rem; font-weight: 700; padding: .15rem .4rem; border-radius: 20px; }
.sidebar-footer { padding: .75rem 1rem; border-top: 1px solid var(--border); }
.sidebar-footer-text { font-size: .65rem; color: var(--text3); }

/* ── Views ── */
.view { display: none; flex-direction: column; height: 100vh; overflow-y: auto; }
.view.active { display: flex; }
.view-header { padding: 1.75rem 2rem 1rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.view-header h1 { font-size: 1.5rem; font-weight: 700; }
.view-subtitle { color: var(--text2); font-size: .85rem; margin-left: .75rem; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 0 2rem; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon svg { width: 22px; height: 22px; color: #fff; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: .75rem; color: var(--text2); margin-top: .2rem; }
.stat-trend { margin-left: auto; font-size: .65rem; font-weight: 600; color: var(--text3); }
.stat-trend.up { color: var(--green); }
.stat-trend.down { color: var(--red); }

/* Pipeline */
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2rem .75rem; }
.section-header h2 { font-size: 1rem; font-weight: 600; }
.pipeline-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; padding: 0 2rem; }
.pipeline-col { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.pipeline-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.pipeline-col-title { font-size: .8rem; font-weight: 600; }
.pipeline-col-count { font-size: .7rem; background: var(--bg3); border-radius: 20px; padding: .15rem .5rem; color: var(--text2); }
.pipeline-card { background: var(--bg3); border-radius: 8px; padding: .65rem; margin-bottom: .5rem; cursor: pointer; }
.pipeline-card:hover { border-left: 2px solid var(--primary); }
.pipeline-card-name { font-size: .78rem; font-weight: 500; }
.pipeline-card-phone { font-size: .68rem; color: var(--text3); }

/* Recent list */
.recent-list { padding: 0 2rem 2rem; display: flex; flex-direction: column; gap: .5rem; }
.recent-item { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem; display: flex; align-items: center; gap: .75rem; cursor: pointer; transition: background .15s; }
.recent-item:hover { background: var(--bg3); }

/* ── Inbox ── */
.inbox-layout { display: flex; flex: 1; overflow: hidden; }
.contact-list-panel { width: 300px; border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.contact-list-header { padding: 1rem; border-bottom: 1px solid var(--border); }
.contact-list-header h2 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.filter-row { display: flex; gap: .4rem; margin-top: .5rem; flex-wrap: wrap; }
.filter-btn { font-size: .7rem; font-weight: 500; padding: .25rem .6rem; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text2); cursor: pointer; transition: all .15s; }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.contact-list { flex: 1; overflow-y: auto; }
.contact-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s; position: relative; }
.contact-item:hover, .contact-item.active { background: var(--bg3); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #fff; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.contact-item-info { flex: 1; min-width: 0; }
.contact-item-name { font-size: .83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-item-preview { font-size: .72rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-item-meta { text-align: right; flex-shrink: 0; }
.contact-item-time { font-size: .65rem; color: var(--text3); }
.contact-item-unread { background: var(--green); color: #fff; font-size: .6rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: .25rem; margin-left: auto; }

/* Chat */
.chat-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.chat-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; color: var(--text3); gap: 1rem; }
.chat-empty-icon svg { width: 60px; height: 60px; }
.chat-empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--text2); }
.chat-empty-state p { font-size: .82rem; }
.chat-active { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--bg2); flex-shrink: 0; }
.chat-header-info { flex: 1; }
.chat-header-name { font-size: .9rem; font-weight: 700; }
.chat-header-phone { font-size: .72rem; color: var(--text3); }
.chat-header-actions { display: flex; gap: .5rem; }
.messages-container { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; background: var(--bg); }
.message { max-width: 72%; padding: .6rem .9rem; border-radius: 12px; font-size: .83rem; line-height: 1.5; position: relative; }
.message.in { align-self: flex-start; background: var(--bg3); border-radius: 12px 12px 12px 2px; }
.message.out { align-self: flex-end; background: linear-gradient(135deg, #25424e, #1a3340); border-radius: 12px 12px 2px 12px; }
.message-time { font-size: .6rem; color: var(--text3); margin-top: .25rem; display: flex; align-items: center; gap: .3rem; justify-content: flex-end; }
.message-status { font-size: .65rem; }
.message-date-divider { text-align: center; font-size: .68rem; color: var(--text3); margin: .75rem 0; }
.message-input-area { padding: .75rem 1rem; border-top: 1px solid var(--border); display: flex; align-items: flex-end; gap: .75rem; background: var(--bg2); position: relative; flex-shrink: 0; }
#messageInput { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: .65rem 1rem; color: var(--text); font-family: inherit; font-size: .83rem; resize: none; max-height: 120px; outline: none; transition: border .2s; }
#messageInput:focus { border-color: var(--primary); }
.send-btn { width: 40px; height: 40px; background: var(--green); border: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.send-btn:hover { background: var(--green-dark); }
.send-btn svg { width: 16px; height: 16px; color: #fff; }
.quick-reply-btn { width: 36px; height: 36px; background: transparent; border: 1px solid var(--border); border-radius: 9px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); transition: all .2s; flex-shrink: 0; }
.quick-reply-btn:hover { background: var(--bg3); color: var(--primary); }
.quick-reply-btn svg { width: 16px; height: 16px; }
.quick-replies-popup { position: absolute; bottom: 70px; left: 1rem; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: .5rem; min-width: 280px; max-height: 220px; overflow-y: auto; box-shadow: var(--shadow); z-index: 50; }
.quick-reply-item { padding: .5rem .75rem; border-radius: 8px; cursor: pointer; transition: background .15s; }
.quick-reply-item:hover { background: var(--bg3); }
.quick-reply-item-title { font-size: .75rem; font-weight: 600; color: var(--primary); }
.quick-reply-item-body { font-size: .72rem; color: var(--text2); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Detail panel */
.detail-panel { width: 280px; border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; background: var(--bg2); }
.detail-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border); }
.detail-header h3 { font-size: .9rem; font-weight: 600; }
.detail-body { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.detail-section { }
.detail-section-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: .5rem; }
.detail-field { margin-bottom: .5rem; }
.detail-field label { font-size: .7rem; color: var(--text3); display: block; margin-bottom: .15rem; }
.detail-field span { font-size: .8rem; }
.detail-field input, .detail-field select, .detail-field textarea { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 7px; padding: .45rem .65rem; color: var(--text); font-family: inherit; font-size: .78rem; outline: none; }
.detail-field input:focus, .detail-field select:focus, .detail-field textarea:focus { border-color: var(--primary); }
.tags-wrap { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { font-size: .65rem; font-weight: 600; padding: .2rem .5rem; border-radius: 20px; }
.note-item { background: var(--bg3); border-radius: 8px; padding: .6rem; margin-bottom: .4rem; }
.note-item-body { font-size: .78rem; }
.note-item-time { font-size: .63rem; color: var(--text3); margin-top: .25rem; }
.note-input-row { display: flex; gap: .5rem; }
.note-input-row input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 7px; padding: .4rem .6rem; color: var(--text); font-family: inherit; font-size: .78rem; outline: none; }
.note-input-row button { background: var(--primary); border: none; border-radius: 7px; padding: .4rem .65rem; color: #fff; font-size: .72rem; cursor: pointer; }

/* ── Contacts Table ── */
.contacts-toolbar { display: flex; align-items: center; gap: 1rem; padding: .5rem 2rem 1rem; }
.contacts-table-wrap { flex: 1; overflow: auto; padding: 0 2rem 2rem; }
.contacts-table { width: 100%; border-collapse: collapse; }
.contacts-table th { text-align: left; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); padding: .65rem 1rem; border-bottom: 1px solid var(--border); }
.contacts-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .82rem; }
.contacts-table tr:hover td { background: var(--bg2); }
.table-empty { text-align: center; color: var(--text3); padding: 2rem; }
.status-chip { font-size: .65rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; text-transform: capitalize; }
.status-chip.lead { background: rgba(99,102,241,.15); color: #818cf8; }
.status-chip.prospect { background: rgba(245,158,11,.15); color: #fbbf24; }
.status-chip.customer { background: rgba(16,185,129,.15); color: #34d399; }
.status-chip.churned { background: rgba(239,68,68,.15); color: #f87171; }

/* ── Settings ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 0 2rem 2rem; }
.settings-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.settings-card.full-width { grid-column: 1 / -1; }
.settings-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.settings-card-header h3 { font-size: .9rem; font-weight: 600; }
.qr-reply-item { display: flex; align-items: flex-start; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--border); gap: .5rem; }
.qr-reply-title { font-size: .75rem; font-weight: 600; color: var(--primary); }
.qr-reply-body { font-size: .72rem; color: var(--text2); }
.label-item { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.label-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.label-name { font-size: .8rem; flex: 1; }

/* WA Connection Area */
.wa-connect-area { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.wa-disconnected-info { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.wa-disconnected-icon svg { width: 56px; height: 56px; color: var(--green); }
.wa-disconnected-info h4 { font-size: 1.1rem; font-weight: 700; }
.wa-disconnected-info p { font-size: .83rem; color: var(--text2); max-width: 360px; }
.qr-container { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.qr-instructions { font-size: .8rem; color: var(--text2); max-width: 300px; }
#qrImage { border-radius: 12px; border: 4px solid #fff; }
.qr-scanning-anim { width: 280px; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.qr-scanning-anim div { width: 60px; height: 100%; background: var(--green); border-radius: 2px; animation: scan 1.5s ease-in-out infinite; }
.wa-connected-info { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.wa-connected-icon { font-size: 3rem; color: var(--green); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem; border-radius: 9px; border: none; font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .35rem .75rem; font-size: .75rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: .9rem; }
.icon-btn { background: transparent; border: none; color: var(--text2); cursor: pointer; font-size: 1rem; padding: .25rem; border-radius: 6px; transition: color .15s; }
.icon-btn:hover { color: var(--text); }

/* ── Forms / Modals ── */
.search-bar { display: flex; align-items: center; gap: .5rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 9px; padding: .45rem .75rem; }
.search-bar svg { width: 14px; height: 14px; color: var(--text3); flex-shrink: 0; }
.search-bar input { background: transparent; border: none; color: var(--text); font-family: inherit; font-size: .8rem; outline: none; width: 100%; }
.select-input { background: var(--bg3); border: 1px solid var(--border); border-radius: 9px; color: var(--text); padding: .45rem .75rem; font-family: inherit; font-size: .8rem; outline: none; cursor: pointer; }
.form-input { width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: 9px; padding: .6rem .85rem; color: var(--text); font-family: inherit; font-size: .83rem; outline: none; transition: border .2s; }
.form-input:focus { border-color: var(--primary); }
.color-input { height: 42px; padding: .3rem; cursor: pointer; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .75rem; font-weight: 600; color: var(--text2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 100; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); width: 480px; max-width: 95vw; z-index: 101; box-shadow: var(--shadow); animation: slideUp .2s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-body { padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .65rem; }

/* Toast */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1.1rem; font-size: .8rem; box-shadow: var(--shadow); animation: slideUp .25s ease; display: flex; align-items: center; gap: .5rem; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--primary); }
.empty-state-sm { text-align: center; color: var(--text3); padding: 2rem; font-size: .82rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 4px; }

/* Animations */
/* ── QR Scan Modal ── */
.qr-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); backdrop-filter: blur(8px); z-index: 300; display: flex; align-items: center; justify-content: center; animation: fadeIn .2s ease; }
.qr-modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem 2rem; width: 420px; max-width: 95vw; position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.qr-modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--bg3); border: none; color: var(--text2); width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: .9rem; transition: all .2s; }
.qr-modal-close:hover { background: var(--red); color: #fff; }
.qr-modal-logo { width: 52px; height: 52px; background: linear-gradient(135deg, #25d366, #128c7e); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.qr-modal-logo svg { width: 30px; height: 30px; }
.qr-modal h2 { font-size: 1.15rem; font-weight: 700; text-align: center; }

/* Steps */
.qr-step { display: flex; flex-direction: column; align-items: center; gap: .75rem; width: 100%; text-align: center; }
.qr-step p { font-size: .9rem; color: var(--text2); }
.qr-hint { font-size: .75rem; color: var(--text3); }

/* Spinner */
.qr-spinner { width: 48px; height: 48px; border: 3px solid var(--bg3); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.qr-spinner.green { border-top-color: var(--green); }

/* QR Frame */
.qr-frame { position: relative; width: 260px; height: 260px; padding: 4px; background: #fff; border-radius: 12px; }
.qr-frame img { width: 100%; height: 100%; border-radius: 8px; display: block; }
.qr-corner { position: absolute; width: 22px; height: 22px; border-color: var(--primary); border-style: solid; }
.qr-corner-tl { top: -3px; left: -3px; border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.qr-corner-tr { top: -3px; right: -3px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.qr-corner-bl { bottom: -3px; left: -3px; border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.qr-corner-br { bottom: -3px; right: -3px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }
.qr-scan-line { position: absolute; left: 4px; right: 4px; height: 2px; background: linear-gradient(90deg, transparent, var(--green), transparent); animation: qrScan 2s ease-in-out infinite; top: 10%; }

/* Steps list */
.qr-steps-list { display: flex; flex-direction: column; gap: .5rem; width: 100%; background: var(--bg3); border-radius: 10px; padding: .85rem 1rem; }
.qr-step-item { display: flex; align-items: center; gap: .65rem; font-size: .8rem; color: var(--text2); text-align: left; }
.qr-step-item strong { color: var(--text); }
.qr-step-num { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.qr-expires { font-size: .72rem; color: var(--text3); }

/* Success */
.qr-success-icon { width: 64px; height: 64px; background: linear-gradient(135deg, #25d366, #128c7e); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; animation: popIn .4s cubic-bezier(.17,.67,.29,1.3); }
.qr-step h3 { font-size: 1.3rem; font-weight: 700; color: var(--green); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes qrScan { 0%,100% { top: 10%; } 50% { top: 85%; } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

