:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-sub: #1a243d;
  --border-color: #23314f;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --wa-green: #25d366;
  --wa-dark-green: #075e54;
  --wa-chat-bg: #efeae2;
  --wa-bot-bubble: #ffffff;
  --wa-user-bubble: #d9fdd3;
  --accent-purple: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Layout */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-info h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(11, 15, 25, 0.6);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

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

/* Main Content */
.main-content {
  flex: 1;
  padding: 1.75rem 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-tag-live {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.card-tag-email {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.3);
}

/* Simulator Grid */
.simulator-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
}

/* Phone Device Mockup */
.phone-mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-device {
  width: 390px;
  height: 680px;
  background: #0f172a;
  border: 12px solid #1e293b;
  border-radius: 44px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 140px;
  height: 20px;
  background: #1e293b;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.speaker {
  width: 44px;
  height: 4px;
  background: #334155;
  border-radius: 4px;
}

.camera {
  width: 8px;
  height: 8px;
  background: #0f172a;
  border-radius: 50%;
  border: 1px solid #334155;
}

/* WhatsApp Screen */
.wa-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--wa-chat-bg);
  color: #111827;
  padding-top: 20px;
  position: relative;
}

.wa-header {
  background: var(--wa-dark-green);
  color: white;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wa-contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
}

.wa-contact-info {
  flex: 1;
}

.wa-name {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.wa-status {
  font-size: 0.72rem;
  color: #a7f3d0;
}

.wa-header-actions {
  display: flex;
  gap: 0.4rem;
}

.wa-action-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
}

.wa-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Chat Area */
.wa-chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 16px 16px;
}

.wa-day-badge {
  align-self: center;
  background: #e2e8f0;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: #475569;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wa-bubble {
  max-width: 80%;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  position: relative;
  word-break: break-word;
  animation: bubblePop 0.2s ease-out;
}

@keyframes bubblePop {
  from { opacity: 0; transform: scale(0.96) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-bubble-bot {
  align-self: flex-start;
  background: var(--wa-bot-bubble);
  border-top-left-radius: 0;
  color: #1f2937;
}

.wa-bubble-user {
  align-self: flex-end;
  background: var(--wa-user-bubble);
  border-top-right-radius: 0;
  color: #111827;
}

.wa-bubble-time {
  font-size: 0.65rem;
  color: #64748b;
  text-align: right;
  margin-top: 0.2rem;
  margin-bottom: -0.1rem;
}

/* Typing Bar */
.wa-typing-bar {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-top: 1px solid #e2e8f0;
}

.typing-dot {
  width: 5px;
  height: 5px;
  background: #059669;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

/* Quick Prompts Bar */
.quick-prompts-bar {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.6rem;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  overflow-x: auto;
  white-space: nowrap;
}

.quick-prompts-bar::-webkit-scrollbar {
  display: none;
}

.chip {
  background: white;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

/* Input Form */
.wa-input-form {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.6rem;
  background: #f0f2f5;
  gap: 0.4rem;
}

.wa-input-form input {
  flex: 1;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.wa-input-form input:focus {
  border-color: #128c7e;
}

.wa-input-form button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #128c7e;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.wa-input-form button:hover {
  background: #075e54;
}

/* Intel Column */
.intel-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-box {
  background: var(--bg-card-sub);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.text-success {
  color: #34d399 !important;
}

.metric-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* Lead Card Body */
.lead-intel-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lead-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card-sub);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.lead-field-row.full-width {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.field-name {
  color: var(--text-muted);
  font-weight: 500;
}

.field-val {
  font-weight: 600;
  color: var(--text-main);
}

.field-val.highlight {
  color: #38bdf8;
}

.field-summary {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.2rem;
}

.badge-normal {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.badge-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.badge-red {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* Info Card */
.info-card h4 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 0.75rem;
}

.info-card ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.info-card strong {
  color: var(--text-main);
}

/* Email Grid */
.email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .email-grid {
    grid-template-columns: 1fr;
  }
}

.email-presets {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.preset-btn {
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn:hover {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

/* Forms */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-sub);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #23314f;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  background: var(--bg-card-sub);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Email Preview */
.email-preview-container {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.email-meta-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.email-meta-header strong {
  color: var(--text-main);
  display: inline-block;
  width: 70px;
}

.email-body-content {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
  min-height: 180px;
}

.email-lead-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card-sub);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.intel-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.intel-pill strong {
  color: var(--text-muted);
}

/* Leads Table */
.table-actions {
  display: flex;
  gap: 0.5rem;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 1rem;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.leads-table th {
  background: var(--bg-card-sub);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leads-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.leads-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.text-center {
  text-align: center;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.card-section-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
}

.settings-card h4 {
  font-size: 0.95rem;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.webhook-info-block {
  margin-bottom: 1.5rem;
}

.webhook-info-block label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.copy-box {
  display: flex;
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.copy-box code {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #38bdf8;
  overflow-x: auto;
}

.btn-copy {
  background: var(--bg-card-sub);
  border: none;
  border-left: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  background: var(--primary);
  color: white;
}

.cpanel-guide-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.cpanel-guide-box h4 {
  font-size: 0.95rem;
  color: #60a5fa;
  margin-bottom: 0.75rem;
}

.cpanel-guide-box ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cpanel-guide-box strong {
  color: var(--text-main);
}

/* ================= WHATSAPP WEB QR CODE TAB ================= */
.qr-panel-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .qr-panel-grid {
    grid-template-columns: 1fr;
  }
}

.qr-box-card {
  display: flex;
  flex-direction: column;
}

.qr-display-container {
  min-height: 340px;
  background: #080c14;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.qr-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  width: 100%;
}

.qr-state-box h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.qr-state-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
}

.qr-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.quick-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* QR Code Image Wrapper */
.qr-image-wrapper {
  position: relative;
  background: white;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: inline-block;
  overflow: hidden;
}

.qr-image-wrapper img {
  display: block;
  border-radius: 6px;
  width: 250px;
  height: 250px;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #25d366, transparent);
  box-shadow: 0 0 12px #25d366;
  animation: scanLine 2.5s ease-in-out infinite;
}

@keyframes scanLine {
  0% { top: 10px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 12px); opacity: 0; }
}

.qr-timer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Connected State */
.qr-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(37, 211, 102, 0.4);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.25);
}

.qr-success-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #25d366;
}

.qr-phone-pill {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  background: rgba(37, 211, 102, 0.12);
  color: #86efac;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.qr-success-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.5;
}

.qr-connected-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.qr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.qr-last-sync {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* 3-Step Guide */
.connection-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.conn-step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.conn-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.conn-step-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.conn-step-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}

.conn-step-content code {
  display: block;
  background: #0b0f19;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #38bdf8;
  margin: 0.35rem 0;
  word-break: break-all;
}

.conn-step-content small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.bridge-info-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.bridge-info-box h4 {
  font-size: 0.92rem;
  color: #34d399;
  margin-bottom: 0.65rem;
}

.clean-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.clean-bullet-list li {
  position: relative;
  padding-left: 1.1rem;
}

.clean-bullet-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #34d399;
  font-size: 0.75rem;
}

.clean-bullet-list a {
  color: #60a5fa;
  text-decoration: none;
}

.clean-bullet-list a:hover {
  text-decoration: underline;
}

