/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Premium Dark Theme Color Palette */
  --bg-dark: #0a0c10;
  --bg-mesh-1: #1a0f30;
  --bg-mesh-2: #05192d;
  
  --primary: #8b5cf6; /* Vibrant violet */
  --primary-hover: #7c3aed;
  --primary-rgb: 139, 92, 246;
  
  --secondary: #06b6d4; /* Neon cyan */
  --secondary-hover: #0891b2;
  
  --success: #10b981; /* Emerald green */
  
  /* Glassmorphism Specs */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-focus: rgba(255, 255, 255, 0.25);
  --glass-blur: 24px;
  
  /* Text Colors */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  /* Shadows & Glows */
  --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --neon-glow: 0 0 30px rgba(139, 92, 246, 0.25);
  --inset-glow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  
  /* Border Radii */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .name {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   AMBIENT GRADIENT BACKGROUND
   ========================================================================== */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: radial-gradient(circle at 10% 20%, var(--bg-mesh-1) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, var(--bg-mesh-2) 0%, transparent 40%);
  overflow: hidden;
  pointer-events: none;
}

.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: floatAround 25s infinite alternate ease-in-out;
}

.spot-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  left: 30%;
}

.spot-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(0,0,0,0) 70%);
  bottom: -15%;
  right: 20%;
  animation-duration: 35s;
  animation-delay: -5s;
}

.spot-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899 0%, rgba(0,0,0,0) 70%); /* hot pink */
  top: 40%;
  left: -10%;
  animation-duration: 20s;
  animation-delay: -2s;
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -50px) scale(1.1);
  }
  100% {
    transform: translate(-40px, 60px) scale(0.9);
  }
}

/* ==========================================================================
   MAIN LAYOUT & CARD CONTROLLER
   ========================================================================== */
.app-container {
  width: 100%;
  max-width: 1200px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  perspective: 1500px;
}

.card-wrapper {
  width: 100%;
  max-width: 880px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow), var(--inset-glow);
  overflow: hidden;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  position: relative;
}

.card-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 50%, rgba(139, 92, 246, 0.1) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 480px;
  position: relative;
}

.card-panel {
  padding: 48px;
  display: flex;
  flex-direction: column;
}

/* Left Panel: Profile Info */
.left-panel {
  border-right: 1px solid var(--glass-border);
}

/* Right Panel: Call to Action & QR */
.right-panel {
  background: rgba(0, 0, 0, 0.15);
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   LEFT PANEL - PROFILE DETAILS
   ========================================================================== */
.avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
}

.avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--neon-glow);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 20%;
  border-radius: 50%;
  background-color: #1e293b;
  border: 2px solid rgba(10, 12, 16, 0.8);
}

.status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--success);
  border: 3px solid #0f121a;
  box-shadow: 0 0 10px var(--success);
}

.identity-header {
  margin-bottom: 32px;
}

.name {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(to right, var(--text-main) 40%, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Contact Details Rows */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: auto; /* Pushes social button to the bottom */
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0; /* Ensures overflow text ellipsis works if values are too long */
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-val {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-val:hover {
  color: var(--primary);
}

/* Quick Action Copy Button */
.action-btn-mini {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition-fast);
}

.action-btn-mini:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.mini-icon {
  width: 16px;
  height: 16px;
}

/* Tooltip standard configuration */
.tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #0f172a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.action-btn-mini:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Primary Social CTA button */
.social-wrapper {
  margin-top: 36px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.linkedin-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--neon-glow);
}

.linkedin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.45);
  filter: brightness(1.1);
}

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

/* ==========================================================================
   RIGHT PANEL - QR SCANNER & SAVE CONTROLLER
   ========================================================================== */
.section-title {
  font-size: 1.35rem;
  margin-bottom: 24px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.qr-scanner-frame {
  position: relative;
  padding: 20px;
  margin-bottom: 20px;
  display: inline-block;
}

/* Camera scan corners styling */
.scanner-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid var(--secondary);
  pointer-events: none;
}

.top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 12px;
}

.top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 12px;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 12px;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 12px;
}

/* Sweeping scanner laser line */
.scanner-line {
  position: absolute;
  left: 10px;
  width: calc(100% - 20px);
  height: 3px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  box-shadow: 0 0 10px var(--secondary);
  animation: sweep 3s infinite ease-in-out;
  z-index: 1;
  pointer-events: none;
}

@keyframes sweep {
  0% { top: 10px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 13px); opacity: 0; }
}

.qr-code-box {
  width: 172px;
  height: 172px;
  background: white;
  padding: 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

/* Canvas output overrides to align perfectly */
.qr-code-box canvas, .qr-code-box img {
  width: 152px !important;
  height: 152px !important;
}

/* Ensure the hidden canvas/image fallback doesn't occupy layout space in the flex container */
.qr-code-box canvas[style*="display: none"],
.qr-code-box img[style*="display: none"] {
  display: none !important;
}

.qr-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 220px;
  margin: 0 auto 36px;
  line-height: 1.4;
}

/* Action button configurations */
.action-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.primary-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.primary-action:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.secondary-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  transform: translateY(-2px);
}

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

/* ==========================================================================
   DYNAMIC CUSTOMIZER PANEL
   ========================================================================== */
/* Toggle settings gear float button */
.customizer-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3), var(--inset-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: var(--transition-smooth);
}

.customizer-toggle-btn:hover {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.5);
}

.customizer-toggle-btn:active {
  transform: rotate(45deg) scale(0.95);
}

.gear-icon {
  width: 24px;
  height: 24px;
}

/* Slide-out Drawer customizer interface */
.customizer-panel {
  position: fixed;
  top: 0;
  right: -380px; /* Hidden default position */
  width: 380px;
  height: 100%;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.customizer-panel.open {
  transform: translateX(-380px); /* Slide in */
}

.customizer-header {
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customizer-header h3 {
  font-size: 1.25rem;
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.customizer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.customizer-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Customizer Form Fields styling */
.form-group-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.form-group-row .form-group {
  margin-bottom: 0;
  flex: 1;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-group input {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.customizer-notice {
  margin-top: 32px;
  padding: 16px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.customizer-notice strong {
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   TOAST ALERT NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-success svg {
  color: var(--success);
}

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

@keyframes fadeOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-10px);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE LAYOUT STYLES (MOBILE-FIRST PRINCIPLE)
   ========================================================================== */
@media (max-width: 820px) {
  body {
    padding: 16px 12px;
    align-items: center; /* Center the card vertically on mobile viewport */
    justify-content: center;
    min-height: 100vh;
  }

  .app-container {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 440px; /* Constrain card width on mobile to look like a physical card */
    display: flex;
    justify-content: center;
  }

  .card-wrapper {
    border-radius: var(--radius-lg);
    width: 100%;
  }

  .card-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 24px 20px; /* Compact padding */
  }

  .avatar-container {
    width: 80px; /* Smaller avatar on mobile */
    height: 80px;
    margin: 0 auto 16px; /* Center the profile avatar horizontally */
  }

  .identity-header {
    text-align: center; /* Center name and title text */
    margin-bottom: 20px;
  }

  .name {
    font-size: 1.6rem; /* Scaled down heading */
    margin-bottom: 4px;
  }

  .title {
    font-size: 0.95rem;
  }

  .contact-list {
    gap: 10px; /* Compact spacing */
  }

  .contact-item {
    padding: 10px 14px;
  }

  .contact-val {
    font-size: 0.88rem;
  }

  .social-wrapper {
    margin-top: 20px;
  }

  .social-btn {
    padding: 12px;
    font-size: 0.95rem;
  }

  /* Right Panel */
  .right-panel {
    padding: 24px 20px; /* Compact padding */
  }

  .section-title {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }

  .qr-scanner-frame {
    padding: 12px;
    margin-bottom: 12px;
  }

  .qr-code-box {
    width: 132px; /* Scaled down QR code box */
    height: 132px;
    padding: 8px;
  }

  .qr-code-box canvas, .qr-code-box img {
    width: 116px !important;
    height: 116px !important;
  }

  .qr-hint {
    font-size: 0.78rem;
    margin-bottom: 20px;
    max-width: 180px;
  }

  .action-grid {
    gap: 10px;
  }

  .action-btn {
    padding: 12px;
    font-size: 0.88rem;
  }

  .toast-container {
    bottom: auto;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 380px;
  }
  
  .toast {
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
  }
  
  @keyframes slideDown {
    from {
      transform: translateY(-20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* ==========================================================================
   THEME TOGGLE BUTTON STYLING
   ========================================================================== */
.theme-toggle-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(120%);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--card-shadow), var(--inset-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-focus);
}

body.light-theme .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   LIGHT THEME DESIGN SYSTEM OVERRIDES
   ========================================================================== */
body.light-theme {
  --bg-dark: #f8fafc; /* Slate 50 */
  --bg-mesh-1: #cbd5e1; /* Slate 300 */
  --bg-mesh-2: #bae6fd; /* Sky 200 */
  
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-border-focus: rgba(15, 23, 42, 0.18);
  
  --text-main: #0f172a; /* Slate 900 */
  --text-secondary: #334155; /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
  
  --card-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.08), 0 0 30px rgba(139, 92, 246, 0.05);
  --neon-glow: 0 0 30px rgba(139, 92, 246, 0.08);
  --inset-glow: inset 0 1px 1px rgba(255, 255, 255, 0.75);
}

body.light-theme .card-wrapper::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1) 50%, rgba(139, 92, 246, 0.05) 100%);
}

body.light-theme .right-panel {
  background: rgba(15, 23, 42, 0.015);
}

body.light-theme .contact-item {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.03);
}

body.light-theme .contact-item:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .primary-action {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}

body.light-theme .primary-action:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.16);
}

body.light-theme .secondary-action {
  border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .secondary-action:hover {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.12);
}

body.light-theme .customizer-panel {
  background: rgba(248, 250, 252, 0.85);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.1);
}

body.light-theme .close-btn {
  background: rgba(15, 23, 42, 0.05);
}

body.light-theme .close-btn:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--text-main);
}

body.light-theme .form-group input {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text-main);
}

body.light-theme .form-group input:focus {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--primary);
}

body.light-theme .toast {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

@media (max-width: 820px) {
  .theme-toggle-btn {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
