/* ==========================================================================
   SP Transaction Hub Technology Pvt. Ltd.
   Digital Employee Card - Ultra-Premium White Studio Edition
   Clean Alabaster White • Executive Sapphire & Slate • Apple/Stripe Precision
   ========================================================================== */

:root {
  /* Ultra-Premium White & Executive Slate Palette */
  --bg-core: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% -5%, #ffffff 0%, #f1f5f9 55%, #e2e8f0 100%);

  /* Card Surfaces */
  --card-bg: #ffffff;
  --card-border: rgba(226, 232, 240, 0.85);
  --card-border-hover: rgba(37, 99, 235, 0.45);
  --card-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.12), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  --card-shadow-hover: 0 35px 75px -15px rgba(15, 23, 42, 0.13), 0 0 1px rgba(37, 99, 235, 0.25), 0 12px 30px -4px rgba(15, 23, 42, 0.06);

  /* Primary Executive Colors */
  --text-main: #0f172a;       /* Deep obsidian ink */
  --text-body: #1e293b;       /* Dark slate body */
  --text-sub: #475569;        /* Medium slate */
  --text-muted: #64748b;      /* Cool slate */
  --text-light: #94a3b8;

  --primary: #2563eb;         /* Executive Sapphire */
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-soft-bg: #eff6ff;
  --primary-soft-border: #bfdbfe;

  --emerald: #10b981;
  --emerald-hover: #059669;
  --emerald-soft-bg: #ecfdf5;
  --emerald-soft-border: #a7f3d0;

  --surface-1: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;

  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-core);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Studio Ambient Lighting Reflections */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(130px);
}

.glow-top {
  width: 650px;
  height: 650px;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 70%);
}

.glow-bottom {
  width: 550px;
  height: 550px;
  bottom: -200px;
  right: 10%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, rgba(6, 182, 212, 0.03) 50%, transparent 70%);
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 590px;
  padding: 26px 18px 46px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   Company Header & Official Logo
   ========================================================================== */

.company-header {
  text-align: center;
  padding: 10px 10px 2px;
  animation: fadeInDown 0.6s var(--transition-smooth) both;
}

.company-logo-wrap {
  display: inline-block;
  margin-bottom: 12px;
  transition: transform var(--transition-smooth);
}

.company-logo-wrap:hover {
  transform: scale(1.02);
}

.company-logo {
  height: 54px;
  max-width: 100%;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.08));
}

.brand-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.brand-trust-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
}

/* Top Toolbar */
.top-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.top-action-bar .status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.admin-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-soft-bg);
  border: 1px solid var(--primary-soft-border);
  color: var(--primary);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-trigger-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.admin-trigger-btn:hover svg {
  fill: #ffffff;
}

/* Quick Demo Route Selector Pills */
.demo-switcher-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.demo-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-pill {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-display);
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.demo-pill:hover, .demo-pill.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.demo-pill.error-pill {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.demo-pill.error-pill:hover, .demo-pill.error-pill.active {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.25);
}

/* ==========================================================================
   Ultra-Premium White Ceramic Visiting Card
   ========================================================================== */

.employee-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 38px 28px 30px;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.7s var(--transition-smooth) both;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.employee-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* Top Vibrant Gradient Accent Ribbon */
.card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 45%, #06b6d4 80%, #10b981 100%);
}

/* Card Decorative Brushed Platinum EMV Smart Chip */
.card-emv-chip {
  position: absolute;
  top: 24px;
  left: 26px;
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 55%, #cbd5e1 100%);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08), inset 0 1px 1px #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-emv-chip::after {
  content: '';
  width: 22px;
  height: 16px;
  border: 1px solid rgba(100, 116, 139, 0.4);
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent 4px, rgba(100, 116, 139, 0.2) 4px, rgba(100, 116, 139, 0.2) 5px);
}

/* Contactless Smart Card Waves */
.card-nfc-icon {
  position: absolute;
  top: 26px;
  right: 120px;
  opacity: 0.65;
  line-height: 0;
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.card-nfc-icon:hover {
  opacity: 1;
}

.card-nfc-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary);
}

/* Profile Header Section */
.card-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: 26px;
}

/* Avatar Circle */
.avatar-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.avatar-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px var(--border-light), 0 10px 25px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.avatar-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.avatar-badge svg {
  width: 15px;
  height: 15px;
  fill: #ffffff;
}

/* Employee Name & Titles */
.employee-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.employee-designation {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.employee-department-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-soft-bg);
  border: 1px solid var(--primary-soft-border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-hover);
  letter-spacing: 0.02em;
}

/* Employee ID Tag */
.employee-id-pill {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  padding: 3px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Primary Action CTA Buttons
   ========================================================================== */

.contact-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 80px;
}

.action-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.action-btn:hover {
  transform: translateY(-2px);
}

.action-btn:hover svg {
  transform: scale(1.12);
}

.action-btn:active {
  transform: translateY(0);
}

/* [📞 Call Now]: Crisp Fresh Emerald */
.btn-call-now {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}
.btn-call-now:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.38);
}

/* [✉ Email]: Clean Pearl Surface with Indigo Hover */
.btn-email-now {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.btn-email-now:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.16);
}

/* [💾 Save Contact]: Premium Executive Slate/Obsidian */
.btn-save-contact {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}
.btn-save-contact:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.32);
}

/* Secondary Actions Bar */
.secondary-actions-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.sub-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-sub);
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.sub-action-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sub-action-btn:hover {
  background: #f8fafc;
  border-color: var(--border-subtle);
  color: var(--text-main);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.sub-action-btn.btn-wa:hover {
  color: #16a34a;
  border-color: #86efac;
  background: #f0fdf4;
}

/* ==========================================================================
   Details List (Clean Minimalist Metadata)
   ========================================================================== */

.details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  margin-bottom: 22px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.detail-item.interactive:hover {
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.detail-icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.detail-item.interactive:hover .detail-icon-wrap {
  transform: scale(1.05);
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.detail-icon-wrap svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.detail-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.detail-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1px;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

.detail-arrow {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.detail-item.interactive:hover .detail-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* Card Footnote */
.card-company-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footnote-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-sub);
}

.footnote-verify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--emerald);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================================================
   Invalid / Not Found State View
   ========================================================================== */

.not-found-card {
  display: none;
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  padding: 42px 24px;
  text-align: center;
  animation: cardEntrance 0.5s var(--transition-smooth) both;
}

.not-found-icon-wrap {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
}

.not-found-icon-wrap svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.not-found-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.not-found-msg {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.not-found-id-box {
  display: inline-block;
  font-family: var(--font-mono);
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
  padding: 2px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.not-found-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
}

.btn-company-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-main);
  border: 1px solid var(--text-main);
  color: #ffffff;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-company-site:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-try-another {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-try-another:hover {
  background: #f8fafc;
  border-color: var(--border-subtle);
}

/* ==========================================================================
   Admin QR Code Studio Modal & Generator Panel
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 690px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScale 0.35s var(--transition-smooth) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  background: #f8fafc;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-header-title svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Quick Presets */
.admin-preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.preset-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-chip {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

.domain-chip {
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.domain-chip:hover, .domain-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Admin Form Grid */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-body);
}

.form-label span.req {
  color: #ef4444;
}

.form-input {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* URL Preview Box */
.url-preview-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.url-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.url-preview-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  word-break: break-all;
  border: 1px dashed var(--border-subtle);
}

/* QR Code Preview & Action Box */
.admin-qr-preview-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.qr-canvas-holder {
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  display: inline-block;
  line-height: 0;
  border: 1px solid var(--border-light);
}

.qr-canvas-holder canvas {
  width: 200px;
  height: 200px;
  display: block;
}

.qr-download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.btn-qr-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.btn-qr-action svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn-generate-main {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-generate-main:hover {
  background: var(--primary-hover);
  transform: translateY(-1.5px);
}

.btn-download-hq {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.btn-download-hq:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1.5px);
}

.btn-print-badge {
  background: var(--text-main);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}
.btn-print-badge:hover {
  background: #1e293b;
  transform: translateY(-1.5px);
}

.btn-test-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}
.btn-test-card:hover {
  background: #f1f5f9;
  border-color: var(--border-subtle);
}

/* In-Card QR Quick-View Modal */
.qr-card-modal-content {
  text-align: center;
  padding: 30px 24px;
}

.qr-card-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.qr-card-modal-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-main);
  border: 1px solid #334155;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s var(--transition-smooth);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Global Footer */
.app-footer {
  text-align: center;
  padding: 18px 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: fadeIn 0.8s ease both;
}

.app-footer a {
  color: var(--primary);
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes modalScale {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 480px) {
  .app-container {
    padding: 14px 12px 30px;
  }

  .employee-card {
    padding: 26px 16px 22px;
    border-radius: var(--radius-lg);
  }

  .employee-name {
    font-size: 1.6rem;
  }

  .employee-designation {
    font-size: 0.95rem;
  }

  .contact-actions-grid {
    gap: 8px;
  }

  .action-btn {
    padding: 12px 6px;
    font-size: 0.78rem;
    min-height: 72px;
  }

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

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) {
  .app-container {
    padding-top: 38px;
  }

  .employee-card {
    padding: 40px 32px 34px;
  }

  .employee-name {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   Admin Control Panel Dedicated Dashboard Styles
   ========================================================================== */

body.admin-page {
  background: #0b1329;
  color: #f8fafc;
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Admin Login Overlay (Password Protection) */
.admin-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 19, 41, 0.96);
  backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.admin-login-overlay.authenticated {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.admin-login-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  text-align: center;
}

.login-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-login-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.admin-login-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 20px;
  line-height: 1.4;
}

.login-field {
  margin-bottom: 14px;
}

.login-field input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 12px 14px;
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  box-sizing: border-box;
}

.login-field input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.login-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.login-error.hidden {
  display: none;
}

.login-error code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fca5a5;
}

.admin-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px;
}

/* Admin Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-logo {
  height: 38px;
  width: auto;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
}

.admin-title-wrap h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.admin-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.8);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #cbd5e1;
}

.net-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.net-dot.active {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary-sm:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Admin Grid */
.admin-grid {
  display: grid;
  grid-template-columns: 300px 1fr 340px;
  gap: 20px;
}

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

/* Sidebar List */
.admin-sidebar {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  min-height: 550px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.btn-accent-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.search-box-wrap {
  margin-bottom: 14px;
}

.admin-search-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--primary);
}

.employee-list-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.employee-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.employee-list-item:hover {
  background: #334155;
  border-color: #475569;
}

.employee-list-item.active {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
}

.emp-item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emp-item-details {
  flex: 1;
  min-width: 0;
}

.emp-item-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-item-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.emp-item-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  color: #93c5fd;
}

/* Card Panel & Form */
.card-panel {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.panel-header h2 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: #ffffff;
}

.panel-sub {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.id-badge {
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-group label .req {
  color: #ef4444;
}

.field-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.admin-input {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 0.88rem;
}

.admin-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.admin-input:disabled {
  background: #0f172a;
  color: #64748b;
  cursor: not-allowed;
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-picker-input {
  width: 40px;
  height: 38px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: none;
}

.mono-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #93c5fd;
}

.form-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

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

.btn-ghost {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 12px 14px;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Static QR Studio Panel */
.admin-qr-studio {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-static {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.qr-canvas-container {
  position: relative;
  background: #ffffff;
  padding: 16px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.qr-canvas-container canvas {
  width: 100% !important;
  max-width: 240px;
  height: auto !important;
  display: block;
}

.static-qr-callout {
  display: flex;
  gap: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.callout-icon {
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-content strong {
  color: #93c5fd;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 4px;
}

.callout-content p {
  margin: 0;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.callout-content code {
  background: #0f172a;
  color: #38bdf8;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.url-display-box {
  margin-bottom: 16px;
}

.url-display-box label {
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
}

.url-field-wrap {
  display: flex;
  gap: 8px;
}

.mono-url-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 6px;
}

.btn-icon {
  background: #334155;
  color: #ffffff;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.preset-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.preset-label {
  font-size: 0.78rem;
  color: #94a3b8;
}

.chip {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
}

.chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.qr-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-outline-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 11px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline-full:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--emerald);
  color: #ffffff;
  border: none;
  padding: 11px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary-full:hover {
  background: var(--emerald-hover);
}

.hidden {
  display: none !important;
}

/* Toast Notifications */
.admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s;
}

.admin-toast.error {
  background: #ef4444;
}

.admin-toast.hidden {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.admin-toast.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.toast-icon {
  width: 20px;
  height: 20px;
}

/* Header & Scan Links */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.nav-admin-link:hover {
  background: var(--primary);
  color: #ffffff;
}

.quick-id-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.id-link {
  background: var(--surface-3);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
}

.id-link:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Wide & Beautiful Executive Digital Card Scanner View (scan.html)
   ========================================================================== */

/* ==========================================================================
   Ultra-Premium Executive Digital Card View (scan.html & index.html)
   ========================================================================== */

/* ==========================================================================
   Ultra-Premium Executive Digital Card View (Dual-Tone Gradient Combination)
   ========================================================================== */

body.wide-scan-page {
  background: #070a12;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.3) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.2) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(15, 23, 42, 0.95) 0px, #070a12 100%);
  background-attachment: fixed;
  color: #0f172a;
  font-family: var(--font-sans);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.wide-card-wrapper {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

/* Single Main Executive Card Surface */
.wide-employee-card {
  background: #ffffff;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 35px 90px -10px rgba(0, 0, 0, 0.65), 0 0 2px rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.wide-employee-card.hidden {
  display: none !important;
}

/* 1. Top Card White Header Area for Original Logo */
.card-white-header {
  background: #ffffff;
  padding: 34px 28px 24px;
  text-align: center;
  position: relative;
}

.header-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 100%;
}

.logo-link:hover {
  transform: scale(1.02);
}

.original-logo-img {
  height: 125px;
  max-height: 135px;
  width: auto;
  max-width: 95%;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.09));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-link:hover .original-logo-img {
  filter: drop-shadow(0 10px 24px rgba(37, 99, 235, 0.22));
}

/* Clickable Company Detail Tile */
.clickable-tile {
  cursor: pointer;
}

.company-web-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0f172a !important;
  text-decoration: none;
}

.company-web-link:hover {
  color: #2563eb !important;
}

.external-link-icon {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 800;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.clickable-tile:hover .external-link-icon {
  transform: translate(2px, -2px);
}

/* 2. Hero Gradient Divider Banner & Avatar */
.wide-hero-banner {
  height: 105px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  position: relative;
  display: flex;
  justify-content: center;
  border-top: 3px solid rgba(212, 175, 55, 0.5); /* Gold Accent Line */
}

.wide-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.3;
  pointer-events: none;
}

.wide-avatar-wrapper {
  position: absolute;
  bottom: -55px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.wide-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 5px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35), 0 0 0 2px rgba(212, 175, 55, 0.7);
  text-transform: uppercase;
}

/* 3. Lower Section: Beautiful Gradient Combination for Employee Details */
.card-gradient-body {
  background: linear-gradient(155deg, #090d16 0%, #0f172a 45%, #1e3a8a 100%);
  position: relative;
}

/* Wide Identity Section */
.wide-identity {
  text-align: center;
  padding: 68px 28px 28px;
}

.wide-name {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wide-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #60a5fa;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.wide-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wide-dept-pill {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Wide 2-Column Contact Details Grid */
.wide-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 36px 36px;
}

@media (max-width: 640px) {
  .wide-details-grid {
    grid-template-columns: 1fr;
    padding: 0 20px 28px;
  }
  .original-logo-img {
    height: 85px;
    max-height: 95px;
  }
  .card-white-header {
    padding: 24px 18px 18px;
  }
  .wide-hero-banner {
    height: 90px;
  }
}

.wide-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 18px 22px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.wide-detail-item:hover {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 14px 32px -5px rgba(37, 99, 235, 0.25);
  transform: translateY(-3px);
}

.wide-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.25s ease;
}

.wide-detail-item:hover .wide-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: scale(1.06);
}

.wide-icon svg {
  width: 22px;
  height: 22px;
}

.wide-info {
  flex: 1;
  min-width: 0;
}

.wide-info .label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}

.wide-info a, .wide-info span {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  word-break: break-word;
}

.wide-info a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.wide-info a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Action Bar */
.wide-card-action {
  padding: 0 32px 32px;
}

@media (max-width: 640px) {
  .wide-card-action {
    padding: 0 20px 24px;
  }
}

.btn-wide-vcard {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  transition: all 0.25s ease;
}

.btn-wide-vcard:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 14px 30px -5px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}


