    /* ==================== GLOBAL RESET & BASE ==================== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      overflow: hidden;
    }

    .glossary-panel {
      position: fixed;
      top: 0;
      right: 0;
      width: 100vw;
      height: 100vh;
      z-index: 1000;
      transform: translateX(100%);
      transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
      display: block;
      overflow: hidden;
      font-family: 'Montserrat Alternates', sans-serif;
      color: #fff;
      background: #000;
    }
    .glossary-panel.active {
      transform: translateX(0);
    }

    .glossary-panel .main-container {
      position: relative;
      width: 100vw;
      height: 100vh;
      min-height: 100vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
    }

    /* ==================== BACKGROUND & WATERMARK ==================== */
    .glossary-panel .background-layer {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 700px; /* fixed width for desktop */
      height: 220px; /* Adjust as needed */
      background: transparent url('../images/glossarybg.png') no-repeat center bottom;
      background-size: contain;
      z-index: -2;
      pointer-events: none;
      transform: translateX(-50%);
    }
    .glossary-panel .watermark-kanji {
      position: absolute;
      left: 0;
      top: 0;
      width: 100vw;
      height: 100vh;
      background: none;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      z-index: -1;
    }
    .glossary-panel .watermark-kanji img {
      width: 30vw;
      height: auto;
      opacity: 0.3;
      display: block;
      pointer-events: none;
      user-select: none;
    }

    /* ==================== HEADER & LOGO ==================== */
    .glossary-panel .header {
      text-align: center;
      padding: 2.5rem 0 1.2rem 0;
      z-index: 10;
      position: relative;
      width: 100%;
      margin: 0 auto;
      display: block;
    }
    .glossary-panel .logo {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
    }
    .glossary-panel .sei-logo {
      margin: 0 auto;
      display: block;
      height: 120px;
      width: auto;
      animation: subtlePulseSVG 1.5s infinite ease-in-out;
      left: unset !important;
      transform: unset !important;
      position: static !important;
    }
    @keyframes subtlePulseSVG {
      0% { transform: scale(1); opacity: 0.95; }
      50% { transform: scale(2.05); opacity: 1; }
      100% { transform: scale(1); opacity: 0.95; }
    }

    /* ==================== FILTERS SECTION ==================== */
    .glossary-panel .filters-section {
      background: transparent;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      margin-top: 0.5rem;
      margin-bottom: 0;
      user-select: none;
      width: 100%;
      position: static;
    }
    .glossary-panel .filter-main-bar {
      display: flex;
      align-items: flex-end;
      gap: 1.2rem;
      flex-wrap: wrap;
      justify-content: center;
      width: 100%;
      margin: 0 auto;
      position: static;
    }
    .glossary-panel .filter-group {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      /* Ensure proper pointer events for hover interactions */
      pointer-events: auto;
    }
    .glossary-panel .filter-btn,
    .glossary-panel .subfilter-btn,
    .glossary-panel .clear-all-btn {
      font-family: 'Montserrat Alternates', sans-serif;
    }
    .glossary-panel .filter-btn {
      white-space: nowrap;
      font-size: 1.1rem;
      font-weight: 200;
      letter-spacing: 0.08em;
      background: none;
      border: none;
      cursor: pointer;
      margin: 0;
      padding: 0 0.2em;
      line-height: 1.1;
      color: #fff;
      transition: color 0.2s, font-weight 0.2s;
      /* Ensure pointer events work properly */
      pointer-events: auto;
    }
    .glossary-panel .filter-btn:hover,
    .glossary-panel .filter-btn:focus,
    .glossary-panel .filter-btn:focus-visible,
    .glossary-panel .filter-btn.parent-hover {
      color: #aee3f7;
      font-weight: 400;
      transform: scale(1.05);
      transform-origin: bottom center;
      position: relative;
    }
    .glossary-panel .subfilter-row {
      display: flex;
      position: absolute;
      top: 100%;
      left: 50%;
      transform: translateX(-50%);
      padding: 0.8em 1.2em;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 1000;
      min-width: max-content;
      gap: 0.4rem;
      font-weight: 300;
      white-space: nowrap;
      background-color: rgba(0,0,0,0.9);
      border-radius: 8px;
      /* Ensure proper stacking context */
      will-change: opacity;
      /* Ensure only one is visible at a time */
      visibility: hidden;
    }
    .glossary-panel .filter-group.active .subfilter-row {
      opacity: 1;
      pointer-events: auto;
      visibility: visible;
    }
    .glossary-panel .subfilter-btn {
      background: none;
      border: none;
      color: #fff;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 200;
      letter-spacing: 0.12em;
      border-radius: 1.5em;
      padding: 0.4em 1.2em;
      transition: background 0.2s, color 0.2s, font-weight 0.2s;
      cursor: pointer;
      /* Ensure pointer events work properly */
      pointer-events: auto;
    }
    .glossary-panel .subfilter-btn:hover,
    .glossary-panel .subfilter-btn:focus {
      background: rgba(174, 227, 247, 0.2);
      color: #aee3f7;
      font-weight: 600;
    }
    .glossary-panel .subfilter-btn.selected {
      background: #aee3f7;
      color: #222;
      font-weight: 700;
    }
    .glossary-panel .clear-all-btn {
      background: none;
      border: none;
      color: #aee3f7;
      font-size: 1.2rem;
      font-weight: 300;
      letter-spacing: 0.03em;
      padding: 0 0.5em;
      line-height: 1.1;
      cursor: pointer;
      text-transform: lowercase;
      transition: color 0.2s;
      white-space: nowrap;
      align-self: flex-end;
    }
    .glossary-panel .clear-all-btn:hover,
    .glossary-panel .clear-all-btn:focus {
      color: #fff;
      background: none;
      outline: none;
    }

    /* ==================== CONTENT PANELS ==================== */
    .glossary-panel .description-panel {
      flex: 0 0 auto;
      position: relative;
      top: 15vh;
      left: 0;
      right: 0;
      text-align: center;
      z-index: 10;
      margin: 1.5rem auto 0 auto;
    }
    .glossary-panel .description-container {
      width: 100%;
      max-width: 700px;
      margin: 0 auto;
    }
    .glossary-panel .description-content {
      font-size: 1.6rem;
      font-weight: 200;
      line-height: 3.1rem;
      letter-spacing: 0.03em;
      text-align: center;
      margin: 0 auto;
      max-width: 900px;
      opacity: 0;
      transition: opacity 0.6s cubic-bezier(0.1,0,0.4,1);
    }
    .glossary-panel .description-content.visible {
      opacity: 1;
    }
    .glossary-panel .ingredients-list-container {
      position: absolute;
      right: 2rem;
      top: 25vh;
      width: 250px;
      max-height: 45vh;
      z-index: 100;
    }
    .glossary-panel .ingredients-list {
      max-height: 45vh;
      overflow-y: auto;
      text-align: right;
      font-size: 1.1rem;
      font-weight: 200;
      line-height: 2.1rem;
      letter-spacing: 0.03em;
      padding-right: 0.5rem;
      box-sizing: border-box;
      color: rgba(255,255,255,0.6);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      z-index: 1;
      background: rgba(255, 255, 255, 0.034);
      position: relative;
    }
    .glossary-panel .ingredient-item {
      padding: 0.75rem;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, font-weight 0.2s;
    }
    .glossary-panel .ingredient-item:hover,
    .glossary-panel .ingredient-item.selected {
      color: #aee3f7;
      font-weight: 400;
    }
    .glossary-panel .ingredient-title,
    .glossary-panel .description-title {
      color: #aee3f7;
      font-weight: 100;
      margin-top: 0;
      margin-bottom: 0.5em;
      font-size: 1.8em;
    }
    .glossary-panel .ingredients-fade {
      position: absolute;
      left: 0;
      width: 100%;
      height: 130px;
      pointer-events: none;
      z-index: 10;
    }
    .glossary-panel .ingredients-fade-top {
      top: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.8) 25%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.2) 80%,
        rgba(0,0,0,0.0) 100%
      );
    }
    .glossary-panel .ingredients-fade-bottom {
      bottom: 0;
      background: linear-gradient(
        to top,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.8) 25%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.2) 80%,
        rgba(0,0,0,0.0) 100%
      );
    }

    /* ==================== COMEDOGENY DROPS ==================== */
    .glossary-panel .drops-container {
      display: flex;
      gap: 0.05rem;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: auto;
    }
    .glossary-panel .drop {
      background: none;
      border: none;
      padding: 0;
      margin: 0 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      flex-shrink: 0;
    }
    .glossary-panel .drop svg {
      width: 18px;
      height: 18px;
      display: block;
      fill:rgba(255,255,255,0.8);
      transition: fill 0.2s, opacity 0.2s;
    }
    .glossary-panel .drop svg path {
      fill: rgba(255,255,255,0.6);
      opacity: 0.3;
      transition: fill 0.2s, opacity 0.2s;
    }
    .glossary-panel .drop.active svg path,
    .glossary-panel .drop:hover svg path {
      opacity: 1;
      fill: #aee3f7;
    }

    /* ==================== RESPONSIVE DESIGN ==================== */
    @media (max-width: 768px) {
      .glossary-panel .filter-main-bar {
        flex-wrap: wrap;
        gap: 1rem;
      }
      .glossary-panel .subfilter-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
      }
      .glossary-panel .ingredients-list-container {
        position: static;
        width: 100%;
        margin: 0 auto;
        max-width: 100vw;
        top: unset;
        right: unset;
      }
      .glossary-panel .watermark-kanji img {
        width: 50vw;
      }
    }

    @media (max-width: 900px) {
      .glossary-panel .background-layer {
        width: 100vw;
        left: 0;
        transform: none;
      }
    }

    /* Chrome, Edge, Safari */
    .glossary-panel .ingredients-list::-webkit-scrollbar {
      width: 8px;
      background: transparent;
    }
    .glossary-panel .ingredients-list::-webkit-scrollbar-thumb {
      background: #aee3f7;
      border-radius: 6px;
      border: 2px solid #222;
    }
    .glossary-panel .ingredients-list::-webkit-scrollbar-track {
      background: rgba(0,0,0,0.1);
      border-radius: 6px;
    }

    /* Firefox */
    .glossary-panel .ingredients-list {
      scrollbar-width: thin;
      scrollbar-color: #aee3f7 #222;
    }
    .glossary-close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: none;
      border: none;
      color: #fff;
      padding: 10px;
      cursor: pointer;
      z-index: 2000;
      border-radius: 50%;
      transition: background 0.2s;
    }
    .glossary-close-btn:hover {
      background: rgba(255,255,255,0.1);
    }
    .glossary-close-btn svg {
      width: 24px;
      height: 24px;
      display: block;
    }
    /* ==================== BOTTLES ==================== */
    .glossary-bottles-holder {
      position: fixed;
      bottom: 5px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 20;
      display: flex;
      gap: 24px; /* smaller gap if you want */
      pointer-events: none;
    }

    .bottle {
      width: 70px;   /* adjust as needed */
      height: auto;
      transition: transform 1.3s cubic-bezier(.4,2,.6,1);
      pointer-events: auto;
    }

    .bottle-1 {
      transform: rotate(-7deg) translateY(12px);
    }
    .bottle-3 {
      transform: rotate(7deg) translateY(12px);
    }

    /* On hover, combine all transforms */
    .bottle-1:hover {
      transform: rotate(-7deg) translate(-8px, 2px) scale(1.08);
    }
    .bottle-2:hover {
      transform: translateY(-12px) scale(1.08);
    }
    .bottle-3:hover {
      transform: rotate(7deg) translate(8px, 2px) scale(1.08);
    }

    /* Overlay on top of bottles */
    .glossary-bottles-overlay {
      position: fixed;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      z-index: 30; /* must be higher than bottles-holder */
      pointer-events: none;
    }

    .glossary-bottles-overlay img {
      width: 700px; /* or match your background image width */
      max-width: 90vw;
      display: block;
    }

