:root {
  --bg-primary: #F8FAFC;
  --bg-secondary: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #E2E8F0;
  --accent-blue: #0055CC;
  --accent-blue-hover: #0044AA;
  --blueprint-accent: #0055CC;
  --signal-gold: #B7791F;
  --evidence-green: #0F766E;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --detail-bg: #F8FAFC;
  --detail-border: #E2E8F0;
  --detail-hover: #F1F5F9;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 14px;
  overflow-x: hidden;
  position: relative;
}

/* Background Soft Glows */
.background-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.sphere-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-blue);
  top: -100px;
  left: -100px;
}

.sphere-2 {
  width: 380px;
  height: 380px;
  background: #3B82F6;
  bottom: -100px;
  right: -100px;
}

/* Container */
.card-container {
  width: 100%;
  max-width: 430px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

/* Header & Avatar */
.card-header {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* Indented / Debossed Header Banner Concept (Matching Website Footer) */
.header-banner.indented-header {
  position: absolute;
  top: -26px;
  left: -20px;
  right: -20px;
  height: 110px;
  background: #182232; /* Lightened Anthracite Slate Navy */
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    inset 0 5px 14px rgba(0, 0, 0, 0.65),
    inset 0 -2px 6px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.indented-watermark-text {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 6.2rem; /* Massive size to overflow top, bottom, & sides */
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: #0E1522;
  text-shadow: 
    -2px -2px 4px rgba(0, 0, 0, 0.85),
    1px 2px 3px rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  width: 120%;
  text-align: center;
}

.watermark-bracket {
  color: #0E1522;
  text-shadow: 
    -2px -2px 4px rgba(0, 0, 0, 0.85),
    1px 2px 3px rgba(0, 85, 204, 0.4);
}

.watermark-able {
  color: #0E1522;
}

/* Headshot Photo in Avatar Circle & Brand Overlay Badge */
.avatar-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 24px;
}

.avatar-img.headshot-avatar {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  box-shadow: 
    0 12px 28px rgba(15, 23, 42, 0.22),
    0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease;
}

.avatar-img.headshot-avatar:hover {
  transform: scale(1.04);
}

.avatar-brand-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #0055CC;
  box-shadow: 0 4px 12px rgba(0, 85, 204, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.avatar-brand-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.avatar-img.stacked-logo-avatar:hover {
  transform: scale(1.05);
}

/* Profile Info & Inline Brand Logo */
.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand-logo-inline-wrapper {
  margin: 6px 0 4px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo-inline {
  height: 24px;
  max-width: 200px;
  object-fit: contain;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: rgba(0, 85, 204, 0.08);
  border: 1px solid rgba(0, 85, 204, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.user-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.user-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.user-company {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.user-bio {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0 8px;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 85, 204, 0.25);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 85, 204, 0.35);
}

.btn-secondary {
  background: #F1F5F9;
  color: var(--text-primary);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: #E2E8F0;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.8rem;
}

.btn-danger {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

/* Contact Details */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--detail-bg);
  border: 1px solid var(--detail-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.detail-item:hover {
  background: var(--detail-hover);
  border-color: rgba(0, 85, 204, 0.3);
  transform: translateX(3px);
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 85, 204, 0.08);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-right: 14px;
}

.detail-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Social Grid */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--detail-bg);
  border: 1px solid var(--detail-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 85, 204, 0.3);
}

/* Wallet & QR Buttons */
.wallet-qr-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wallet-card-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 85, 204, 0.06);
  border: 1px dashed rgba(0, 85, 204, 0.3);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.wallet-card-btn:hover {
  background: rgba(0, 85, 204, 0.12);
}

/* Footer */
.card-footer {
  text-align: center;
  margin: 14px -20px -26px -20px;
  padding: 16px 20px 22px 20px;
  background: #0B1014; /* Dark Anthracite Ink Bar */
  border-top: 1px solid rgba(0, 85, 204, 0.2);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mono-footer {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #94A3B8;
}

.admin-lead-link {
  background: none;
  border: none;
  color: #38BDF8;
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 410px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-card.wide {
  max-width: 540px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--text-primary);
}

/* Form */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: 11px 14px;
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  background: #FFFFFF;
}

/* QR Code */
.qr-container {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin: 12px auto;
  width: max-content;
}

.qr-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Leads List */
.leads-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.leads-list-wrapper {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead-card-item {
  padding: 12px;
  background: #F8FAFC;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-name {
  font-weight: 700;
  color: var(--accent-blue);
}

.lead-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

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