.popup-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: #00000099;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 999999999;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .popup-overlay.show {
      opacity: 1;
    }

    /* Popup Box */
    .popup-box {
      background: #fff;
      border-radius: var(--border-radius);
      width: 90%;
      max-width: 600px;
      padding: 50px 30px;
      text-align: center;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
      transform: scale(0.9);
      transition: transform 0.3s ease;
      position: relative;
      margin: 0 auto;
    top: 200px;
    }
    .popup-overlay.show .popup-box {
      transform: scale(1);
    }

    .popup-box h2 {
      font-size: 2em;
      margin-bottom: 40px;
      color: var(--red);
    }

    /* Button container */
    .popup-options {
      display: flex;
      justify-content: center;
      gap: 25px;
      flex-wrap: wrap;
    }

    /* Buttons with dark overlay */
    .popup-option {
      position: relative;
      padding: 20px 28px;
      border: none;
      border-radius: var(--border-radius);
      font-size: 1.4em;
      cursor: pointer;
      flex: 1 1 45%;
      max-width: 250px;
      text-align: center;
      color: #fff;
      font-weight: bold;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      overflow: hidden;
      transition: transform 0.25s ease;
    }

    .popup-option::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.4); /* dark overlay */
      z-index: 1;
      transition: background 0.3s ease;
    }

    .popup-option span {
      position: relative;
      z-index: 2;
    }

    .popup-option:hover {
      transform: scale(1.08);
    }
    .popup-option:hover::before {
      background: rgba(0, 0, 0, 0.5); /* darker on hover */
    }

    /* Background images for buttons */
    .option-red {
      background-image: url('/images/popup_bg_1.jpg');
    }
    .option-gold {
      background-image: url('/images/popup_bg_2.jpg');
    }

    /* Close button */
    .popup-close {
      position: absolute;
      top: 18px;
      right: 18px;
      font-size: 1.6em;
      color: var(--gold);
      cursor: pointer;
      transition: color 0.2s ease;
      z-index: 3;
    }
    .popup-close:hover {
      color: var(--red);
    }

    /* Container for the tabs */
  .side-tabs {
    position: fixed;
    top: 170px; /* 200px down from the top */
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
  }

  /* Each tab */
  .side-tab {
    writing-mode: vertical-rl;     /* vertical text flow */
    transform: rotate(180deg);     /* make text upright */
    background-color: #333333b8;
    color: #fff;
    padding: 10px 8px;             /* widen slightly for better touch/click area */
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 6px 0 0 6px;    /* <- curves moved to the left side */
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: inline-block;
  }

  .side-tab:hover,
  .side-tab:focus {
    background-color: #555;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    outline: none;
    color: white !important;
  }

  /* small responsive tweak so tabs do not overlap on very small screens */
  @media (max-height: 360px) {
    .side-tabs { top: 40px; gap:6px; }
    .side-tab { padding: 8px 6px; font-size:13px; }
  }

    /* Responsive tweak for small screens */
  @media (max-width: 500px) {
      .popup-options {
        flex-direction: column;
        gap: 20px;
      }
      .popup-option {
        max-width: 100%;
        font-size: 1.3em;
      }
      .popup-box {
        top: 50px;
      }  
      .side-tabs {
        top: 327px; /* 200px down from the top */
      }
  }