        @font-face {
          font-family: 'Eacologica';
          src: url('/eacologica-round-slab-regular-wfont.woff2') format('woff2');
          font-weight: normal;
          font-style: normal;
          font-display: swap;
        }

        :root:not([data-theme="dark"]) {
            --header-bg: #FFF2FA; /* Light for light mode */
            --footer-bg: #E9F4FF;
            --main-bg: #fff;
          }

          [data-theme="dark"] {
            --header-bg: #390023; /* Dark for dark mode */
            --footer-bg: #001339;
            --main-bg: #000;
          }

          @media (prefers-color-scheme: dark) {
            :root:not([data-theme="light"]) {
              --header-bg: #390023;
              --footer-bg: #001339;
              --main-bg: #000;
            }
          }

          .bghead {
            background: var(--header-bg);
          }

          .bgfoot {
            background: var(--footer-bg);
          }

          .bgmain {
            background: var(--main-bg);
          }

        .container {max-width:640px;}
        .avatar {width: 120px; height: 120px; border-radius: 50%; cursor: pointer;border:6px solid #fff;box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);margin:10px 0 14px}
        .avatarBtn {border: none; padding: 0; background: none; cursor: pointer;}
        h1 {font-family:Eacologica}
        .bcard {text-align:center;}
        .cologo {max-width: 150px; height: auto;margin:10px 0 20px;}
        .coheart {max-width: 60px; height: auto;margin:10px 0 20px;}
        .titlemin {font-size:1.1rem;}
        .social-icons {margin:5px 0 20px;}
        .protitle {font-family:Eacologica;font-size:1.3rem;}
        #newsletter-heading {font-family:Eacologica;font-size:1.45rem;margin-top:25px;}
        
        .lang-switcher {
          position: absolute;
          top: 1rem;
          right: 1rem;
          display: flex;
          gap: 0.5rem;
        }
        
        .lang-switcher a {
          padding: 0.25rem 0.5rem;
          text-decoration: none;
          border-radius: 0.25rem;
          font-size: 0.875rem;
        }
        
        .lang-switcher a.active {
          background: var(--primary);
          color: var(--primary-inverse);
        }

        .sr-only:not(:focus):not(:active) {
          clip: rect(0 0 0 0); 
          clip-path: inset(50%);
          height: 1px;
          overflow: hidden;
          position: absolute;
          white-space: nowrap; 
          width: 1px;
        }

        .toast {
          position: fixed;
          top: 1rem;
          left: 50%;
          transform: translateX(-50%);
          padding: 1rem 1.5rem;
          background: var(--pico-primary-background, #1095c1);
          color: #fff;
          border-radius: var(--pico-border-radius, 0.25rem);
          box-shadow: var(--pico-card-box-shadow, 0 4px 6px rgba(0, 0, 0, 0.3));
          opacity: 0;
          visibility: hidden;
          transition: opacity 0.3s ease, visibility 0.3s ease;
          z-index: 9999;
          max-width: 90%;
          text-align: center;
          font-weight: 500;
        }

        dialog .toast {
          position: absolute;
        }

        .toast.show {
          opacity: 1;
          visibility: visible;
        }

        .toast.success {
          background: #43a047;
          color: #fff;
        }

        .toast.error {
          background: #e53935;
          color: #fff;
        }

        /* Heart button */
        .heart-button {
          border: none;
          background: none;
          padding: 0;
          cursor: pointer;
          transition: transform 0.2s ease;
        }

        .heart-button:hover {
          transform: scale(1.1);
        }

        .heart-button:active {
          transform: scale(0.95);
        }

        .coheart {
          max-width: 60px;
          height: auto;
          margin: 10px 0 20px;
        }

        /* Pulsating animation */
        .pulsating-heart {
          animation: heartbeat 2s ease-in-out infinite;
        }

        @keyframes heartbeat {
          0%, 100% {
            transform: scale(1);
          }
          50% {
            transform: scale(1.05);
          }
        }

        /* Respect reduced motion preference */
        @media (prefers-reduced-motion: reduce) {
          .pulsating-heart {
            animation: none;
          }
          .falling-heart {
            animation: none !important;
            opacity: 0 !important;
          }
        }

        /* Falling hearts */
        .falling-heart {
          position: fixed;
          pointer-events: none;
          z-index: 10000;
          animation: fall linear forwards;
          opacity: 1;
        }

        @keyframes fall {
          0% {
            transform: translateY(0) rotate(0deg);
            opacity: 1;
          }
          100% {
            transform: translateY(100vh) rotate(360deg);
            opacity: 0;
          }
        }

        /* Social icon buttons */
.social-icons {
  margin: 5px 0 20px;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-icon {
  width: 44px;
  height: 44px;
  min-width: 44px; /* Ensures accessibility touch target size */
  padding: 0;
  border: 2px solid var(--primary);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--primary);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--primary-inverse);
  transform: scale(1.1);
}

.social-icon:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.social-icon:active {
  transform: scale(0.95);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Ensure 6 buttons fit on mobile */
@media (max-width: 480px) {
  .social-icons {
    gap: 0.4rem;
  }
  
  .social-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  
  .social-icon svg {
    width: 18px;
    height: 18px;
  }
}