
    /* Force hide standard buttons so they never clash with custom UI */
    .product-info__btn, 
    button[role="addToCart"], 
    button[role="buyNow"], 
    spz-paypal { 
      display: none !important; 
    }

    .hxp-container{border:2px dashed rgba(158,234,50,0.75);border-radius:12px;padding:14px 16px;background:linear-gradient(135deg,rgba(255,255,255,0.06) 0%,rgba(158,234,50,0.03) 25%,rgba(255,255,255,0.09) 50%,rgba(158,234,50,0.02) 75%,rgba(255,255,255,0.05) 100%);box-shadow:inset 0 1px 1px rgba(255,255,255,0.15);position:relative;margin-bottom:16px;overflow:hidden;}
    .hxp-header{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:8px;}
    .hxp-label{font-size:16px;font-weight:800;color:#fff;margin:0;text-transform:uppercase;letter-spacing:0.5px;}
    .hxp-upload-row{display:flex;align-items:center;gap:15px;}
    .hxp-trigger{width:60px;height:60px;border-radius:12px;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .25s ease;flex-shrink:0;}
    .hxp-trigger:hover{background:rgba(158,234,50,0.15);border-color:rgba(158,234,50,0.4);transform:scale(1.05);}
    .hxp-trigger svg path{stroke:white;transition:stroke 0.2s;}
    .hxp-trigger:hover svg path{stroke:#9eea32;}
    .hxp-info{display:flex;flex-direction:column;gap:2px;}
    .hxp-hint{font-size:14px;color:#fff;font-weight:500;margin:0;}
    .hxp-sub{font-size:11px;color:rgba(255,255,255,0.45);margin:0;line-height:1.2;}
    .hxp-spinner-wrap{display:none;align-items:center;gap:8px;margin-top:10px;}
    .hxp-spinner-wrap:empty{display:none !important;margin:0 !important;}
    .hxp-spinner{width:22px;height:22px;animation:hxpSpin 1.2s linear infinite;}
    .hxp-spinner circle{stroke:#9eea32;stroke-dasharray:1,150;stroke-dashoffset:0;stroke-linecap:round;animation:hxpDash 1.5s ease-in-out infinite;}
    @keyframes hxpSpin{100%{transform:rotate(360deg);}}
    @keyframes hxpDash{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}
    .hxp-spinner-text{font-size:12px;color:#9eea32;font-weight:500;}
    .hxp-thumbs{display:flex;flex-wrap:wrap;gap:10px;}
    .hxp-thumbs:not(:empty){margin-top:14px;}
    .hxp-thumbs:empty{display:none !important;margin:0 !important;}
    .hxp-hint-count:empty{display:none !important;margin:0 !important;}
    .hxp-thumb{position:relative;width:72px;height:83px;}
    .hxp-thumb img{width:100%;height:100%;object-fit:cover;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);display:block;background:#1a1a2e;}
    .hxp-thumb-rm{position:absolute;top:-4px;right:-4px;width:20px;height:20px;border-radius:50%;background:#f43f5e;border:none;color:#fff;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:6;line-height:1;padding:0;}
    .hxp-thumb-rm:hover{transform:scale(1.15);background:#ff4d6a;}
    .hxp-thumb-eye{position:absolute;inset:0;width:100%;height:100%;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);background:rgba(0,0,0,0.25);border:none;color:rgba(255,255,255,0.85);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3;transition:all 0.2s ease;padding:0;}
    .hxp-thumb-eye svg{width:22px;height:22px;transition:all 0.2s ease;}
    .hxp-thumb-eye:hover{background:rgba(0,0,0,0.55);color:#9eea32;}
    .hxp-thumb-eye:hover svg{transform:scale(1.1);}
    .hxp-thumb.active .hxp-thumb-eye { display: none !important; }
    .hxp-thumb-border{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:5;}
    .hxp-thumb-border polygon{fill:none;stroke:rgba(158,234,50,0.6);stroke-width:2;stroke-linejoin:round;}
    .hxp-thumb.active .hxp-thumb-border polygon{stroke:#9eea32;stroke-width:2.5;}
    .hxp-thumb-add{position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer;clip-path:polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);background:rgba(158,234,50,0.05);width:72px;height:83px;}
    .hxp-thumb-add .hxp-thumb-border polygon{stroke:rgba(158,234,50,0.5);stroke-width:2;stroke-dasharray:4 4;}
    .hxp-thumb-add:hover{background:rgba(158,234,50,0.12);}
    .hxp-thumb-add:hover .hxp-thumb-border polygon{stroke:#9eea32;}
    .hxp-continue{width:100%;padding:15px;border:none;border-radius:60px;font-size:15px;font-weight:700;cursor:pointer;text-transform:uppercase;background:linear-gradient(135deg,#9eea32,#7bc616);color:#0b0b16;box-shadow:0 4px 20px rgba(158,234,50,0.25);transition:all .3s ease;margin-top:16px;display:none;align-items:center;justify-content:center;gap:8px;letter-spacing:0.5px;}
    .hxp-continue:hover{transform:translateY(-2px);box-shadow:0 6px 28px rgba(158,234,50,0.4);}
    .hxp-continue svg{width:18px;height:18px;}

    /* Mode selection modal */
    .hxp-mode-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.6);z-index:99998;display:none;align-items:center;justify-content:center;backdrop-filter:blur(4px);}
    .hxp-mode-overlay.active{display:flex;}
    .hxp-mode-modal{background:#1a1a2e;border:1px solid rgba(158,234,50,0.15);border-radius:16px;padding:24px;width:90%;max-width:600px;box-shadow:0 10px 40px rgba(0,0,0,0.4);}
    .hxp-mode-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;}
    .hxp-mode-title{margin:0;font-size:18px;font-weight:700;color:#9eea32;}
    .hxp-mode-close{background:none;border:none;font-size:24px;color:#999;cursor:pointer;}
    .hxp-mode-cards{display:flex;gap:16px;flex-wrap:wrap;}
    .hxp-mode-card{flex:1;min-width:220px;border:2px solid rgba(158,234,50,0.2);border-radius:12px;padding:20px;text-align:center;display:flex;flex-direction:column;align-items:center;background:rgba(158,234,50,0.03);transition:border-color 0.2s ease;}
    .hxp-mode-card:hover{border-color:#9eea32;}
    .hxp-mode-card-banner{width:100%;aspect-ratio:2 / 1;border-radius:10px;overflow:hidden;margin-bottom:16px;background:rgba(255,255,255,0.04);display:flex;align-items:center;justify-content:center;position:relative;box-sizing:border-box;}
    .hxp-mode-banner-img{width:100%;height:100%;object-fit:cover;display:block;border-radius:10px;}
    .hxp-mode-card-icon{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(158,234,50,0.15);}
    .hxp-mode-card h4{margin:0 0 8px 0;font-size:16px;font-weight:700;color:#fff;}
    .hxp-mode-card p{margin:0 0 16px 0;font-size:13px;color:rgba(255,255,255,0.5);line-height:1.4;flex:1;}
    .hxp-mode-card-btn{width:100%;padding:10px 16px;background:#9eea32;color:#0b0b16;border:none;border-radius:24px;font-size:14px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;margin-top:auto;}
    .hxp-mode-card-btn:hover{background:#8bd624;}
    .hxp-mode-card-btn svg{width:16px;height:16px;stroke:#0b0b16;}
    @media(max-width:600px){
      .hxp-mode-card{min-width:100% !important;}
    }
  
  html.hx-split-open {
    overflow: hidden !important;
  }
  body.hx-split-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  /* 1. 常规状态下，将客服插件层级固定降为 2000，介于页面内容（<=1000）与弹窗遮罩（>=100000）之间 */
  .woot-widget-holder,
  .woot--bubble-holder,
  .woot-elements--holder,
  iframe[src*="chat.metaleks.icu"],
  iframe[title*="chatwoot" i],
  iframe[src*="chatwoot" i],
  [id*="chatwoot" i] {
    z-index: 2000 !important;
  }

  /* 2. 弹窗打开时彻底隐藏客服气泡，避免在半透明黑色遮罩下透出色块 */
  html.hx-split-open .woot-widget-holder,
  html.hx-split-open .woot--bubble-holder,
  html.hx-split-open .woot-elements--holder,
  html.hx-split-open iframe[src*="chat.metaleks.icu"],
  html.hx-split-open iframe[title*="chatwoot" i],
  html.hx-split-open iframe[src*="chatwoot" i],
  html.hx-split-open [id*="chatwoot" i],
  html.hx-split-open [class*="woot" i],
  body.hx-split-open .woot-widget-holder,
  body.hx-split-open .woot--bubble-holder,
  body.hx-split-open .woot-elements--holder,
  body.hx-split-open iframe[src*="chat.metaleks.icu"],
  body.hx-split-open iframe[title*="chatwoot" i],
  body.hx-split-open iframe[src*="chatwoot" i],
  body.hx-split-open [id*="chatwoot" i],
  body.hx-split-open [class*="woot" i] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -99999 !important;
    transform: scale(0) !important;
  }

  @supports selector(:has(*)) {
    body:has(#hx-split-overlay.active) .woot-widget-holder,
    body:has(#hx-split-overlay.active) .woot--bubble-holder,
    body:has(#hx-split-overlay.active) [class*="woot" i],
    body:has(#hx-split-overlay.active) [id*="chatwoot" i] {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
      z-index: -99999 !important;
      transform: scale(0) !important;
    }
  }

  .hx-split-modal,
  .hx-split-body,
  .hx-split-toolbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  .hx-split-modal::-webkit-scrollbar,
  .hx-split-body::-webkit-scrollbar,
  .hx-split-toolbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  #hx-split-overlay,
  .hx-split-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); z-index: 2147483640 !important;
    display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(5px);
    overscroll-behavior: none;
    pointer-events: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }
  #hx-split-overlay.active,
  .hx-split-overlay.active { display: flex !important; }
  #hx-split-overlay:not(.active),
  .hx-split-overlay:not(.active) { display: none !important; }
  
  .hx-split-modal {
    z-index: 2147483645 !important;
  }
  .hx-split-modal.hx-lock-clicks { pointer-events: none !important; }
  
  /* Strictly prevent any theme sticky animation from hiding the split modal */
  #hx-split-overlay.spz-sticky-animation,
  #hx-split-overlay.hiding,
  .hx-split-overlay.spz-sticky-animation,
  .hx-split-overlay.hiding {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* ----------------------------------------------------
     DESKTOP PC LAYOUT (min-width: 769px)
     ---------------------------------------------------- */
  @media (min-width: 769px) {
    #hx-rotate-toggle-btn {
      display: none !important;
    }

    .hx-split-modal {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      transform: none !important;
      animation: none !important;
      width: 90vw !important;
      max-width: 1100px !important;
      height: 85vh !important;
      max-height: 800px !important;
      background: #121216 !important;
      border-radius: 16px !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8) !important;
      border: 1px solid rgba(255,255,255,0.12) !important;
      margin: auto !important;
      box-sizing: border-box !important;
    }

    .hx-split-header {
      flex: 0 0 auto !important;
      padding: 16px 24px !important;
      background: #181822 !important;
      border-bottom: 1px solid rgba(255,255,255,0.1) !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }
    .hx-split-title { font-size: 18px; font-weight: 800; color: #9EEA32; margin: 0; }
    .hx-split-close { cursor: pointer; background: none; border: none; font-size: 26px; color: #a0aec0; }

    .hx-split-body {
      flex: 1 1 auto !important;
      display: grid !important;
      grid-template-columns: 260px 1fr !important;
      grid-template-rows: 1fr auto !important;
      grid-template-areas:
        "sidebar main"
        "sidebar footer" !important;
      min-height: 0 !important;
      overflow: hidden !important;
      background: #0d0d12 !important;
    }

    .hx-split-toolbar {
      grid-area: sidebar !important;
      width: 260px !important;
      background: #161620 !important;
      border-right: 1px solid rgba(255,255,255,0.1) !important;
      border-top: none !important;
      padding: 20px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 20px !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
    }
    .hx-split-tool-section { display: flex; flex-direction: column; gap: 10px; }
    .hx-split-tool-title { font-size: 13px; font-weight: 700; color: #9EEA32; text-transform: uppercase; letter-spacing: 0.8px; }

    .hx-presets-section { display: none !important; }

    .hx-preset-btn {
      padding: 10px 14px; background: #1f1f2e; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px;
      cursor: pointer; font-size: 14px; font-weight: 600; color: #e2e8f0;
      transition: all 0.2s; display: flex; align-items: center; gap: 10px;
    }
    .hx-preset-btn:hover { border-color: #9EEA32; background: rgba(158, 234, 50, 0.12); color: #ffffff; }
    .hx-preset-btn.active { border: 1.5px solid #9EEA32; background: rgba(158, 234, 50, 0.12); color: #9EEA32; font-weight: 700; box-shadow: none !important; }
    .hx-preset-ext { color: #a0aec0; font-size: 12px; font-weight: 400; opacity: 0.9; }

    .hx-split-canvas-container {
      grid-area: main !important;
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
      position: relative !important;
      cursor: grab; display: flex; align-items: center; justify-content: center;
      overflow: hidden; background: #d8dce2 !important;
      touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
    }
    .hx-split-preview-container {
      grid-area: main !important;
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
      position: relative !important;
      cursor: grab; display: flex; align-items: center; justify-content: center;
      overflow: hidden; background: #ece8e1 !important;
      touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
    }
    .hx-split-canvas-container:active, .hx-split-preview-container:active { cursor: grabbing; }

    #hxSplitCanvas {
      width: 100% !important;
      height: 100% !important;
      display: block;
    }

    .hx-split-footer {
      grid-area: footer !important;
      flex: 0 0 auto !important;
      padding: 16px 24px !important;
      background: #181822 !important;
      border-top: 1px solid rgba(255,255,255,0.1) !important;
      display: flex !important;
      flex-direction: row !important;
      justify-content: space-between !important;
      align-items: center !important;
      gap: 16px !important;
      box-sizing: border-box !important;
    }
    .hx-split-footer-left {
      display: flex !important;
      align-items: center !important;
      gap: 16px !important;
      flex: 1 !important;
      width: auto !important;
    }
    .hx-split-info { font-size: 14px; color: #a0aec0; white-space: nowrap; }
    .hx-split-footer-price { font-size: 22px; font-weight: 800; color: #9EEA32; white-space: nowrap; }
    .hx-split-footer-btns {
      display: flex !important;
      gap: 12px !important;
      flex: 0 0 auto !important;
      width: auto !important;
    }
    .hx-split-btn, .hx-split-btn-buy {
      flex: 0 0 auto !important;
      padding: 12px 24px !important;
      font-size: 15px !important;
      font-weight: 800 !important;
      border-radius: 8px !important;
      cursor: pointer !important;
      white-space: nowrap !important;
    }
    .hx-split-btn {
      background: linear-gradient(135deg, #9eea32 0%, #7bc616 100%); color: #0b0b16; border: none;
    }
    .hx-split-btn-buy {
      background: transparent; color: #9EEA32; border: 2px solid #9EEA32;
    }
  }

  /* ----------------------------------------------------
     MOBILE LAYOUT (max-width: 768px)
     ---------------------------------------------------- */
  @media (max-width: 768px) {
    .hx-split-overlay {
      padding: 0 !important;
      align-items: stretch !important;
      justify-content: stretch !important;
    }

    .hx-split-modal {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      width: 100vw !important;
      width: 100dvw !important;
      height: 100% !important;
      height: 100dvh !important;
      max-height: none !important;
      border-radius: 0 !important;
      border: none !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
      background: #121216 !important;
      margin: 0 !important;
      box-sizing: border-box !important;
      transform: translate(-50%, -50%) rotate(0deg) !important;
      transform-origin: center center !important;
    }

    .hx-split-header {
      flex: 0 0 auto !important;
      padding: max(10px, env(safe-area-inset-top)) 14px 10px 14px !important;
      background: #181822 !important;
      border-bottom: 1px solid rgba(255,255,255,0.1) !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }
    .hx-split-title { font-size: 15px; font-weight: 800; color: #9EEA32; margin: 0; }
    .hx-split-header-actions {
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
    }
    .hx-rotate-btn {
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
      padding: 5px 12px !important;
      background: rgba(158, 234, 50, 0.12) !important;
      border: 1.5px solid #9EEA32 !important;
      border-radius: 16px !important;
      color: #9EEA32 !important;
      font-size: 12px !important;
      font-weight: 700 !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      white-space: nowrap !important;
    }
    .hx-rotate-btn:active, .hx-rotate-btn.active {
      background: #9EEA32 !important;
      color: #0b0b16 !important;
    }
    .hx-rotate-btn svg {
      transition: transform 0.45s cubic-bezier(0.34, 1.25, 0.64, 1) !important;
    }
    .hx-rotate-btn.active svg {
      transform: rotate(180deg) !important;
    }

    /* ----------------------------------------------------
       MOBILE ROTATE / FLIP ANIMATIONS
       ---------------------------------------------------- */
    @keyframes hxFlipToLandscape {
      0% {
        width: 100vw;
        height: 100dvh;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
        border-radius: 0;
      }
      45% {
        width: calc(50vw + 50dvh);
        height: calc(50dvh + 50dvw);
        transform: translate(-50%, -50%) rotate(45deg) scale(0.92);
        box-shadow: 0 25px 60px rgba(0,0,0,0.85), 0 0 35px rgba(158,234,50,0.25);
        border-radius: 16px;
      }
      100% {
        width: 100dvh;
        height: 100dvw;
        transform: translate(-50%, -50%) rotate(90deg) scale(1);
        box-shadow: none;
        border-radius: 0;
      }
    }

    @keyframes hxFlipToPortrait {
      0% {
        width: 100dvh;
        height: 100dvw;
        transform: translate(-50%, -50%) rotate(90deg) scale(1);
        box-shadow: 0 0 0 rgba(0,0,0,0);
        border-radius: 0;
      }
      45% {
        width: calc(50vw + 50dvh);
        height: calc(50dvh + 50dvw);
        transform: translate(-50%, -50%) rotate(45deg) scale(0.92);
        box-shadow: 0 25px 60px rgba(0,0,0,0.85), 0 0 35px rgba(158,234,50,0.25);
        border-radius: 16px;
      }
      100% {
        width: 100vw;
        height: 100dvh;
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        box-shadow: none;
        border-radius: 0;
      }
    }

    .hx-split-modal.hx-flipping-to-landscape {
      animation: hxFlipToLandscape 0.45s cubic-bezier(0.34, 1.15, 0.64, 1) forwards !important;
      pointer-events: none !important;
    }

    .hx-split-modal.hx-flipping-to-portrait {
      animation: hxFlipToPortrait 0.45s cubic-bezier(0.34, 1.15, 0.64, 1) forwards !important;
      pointer-events: none !important;
    }
    .hx-split-close { cursor: pointer; background: none; border: none; font-size: 24px; color: #a0aec0; }

    .hx-split-body {
      flex: 1 1 auto !important;
      display: flex !important;
      flex-direction: column !important; /* Mobile 1-Column Vertical Stack */
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
      background: #0d0d12 !important;
      padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
    }

    .hx-split-canvas-container {
      order: 1 !important;
      flex: 0 0 auto !important;
      width: 100% !important;
      max-width: 480px !important;
      margin: 0 auto !important;
      aspect-ratio: 3 / 4 !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      position: relative !important;
      cursor: grab; display: flex; align-items: center; justify-content: center;
      overflow: hidden; background: #d8dce2 !important;
      touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
    }
    .hx-split-preview-container {
      order: 1 !important;
      flex: 0 0 auto !important;
      width: 100% !important;
      max-width: 480px !important;
      margin: 0 auto !important;
      aspect-ratio: 3 / 4 !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
      position: relative !important;
      cursor: grab; display: flex; align-items: center; justify-content: center;
      overflow: hidden; background: #ece8e1 !important;
      touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
    }
    .hx-split-canvas-container:active, .hx-split-preview-container:active { cursor: grabbing; }

    #hxSplitCanvas {
      width: 100% !important;
      height: 100% !important;
      display: block;
    }

    .hx-split-toolbar {
      order: 2 !important;
      flex: 0 0 auto !important;
      width: 100% !important;
      padding: 10px 14px 4px 14px !important;
      background: #0d0d12 !important;
      border-top: none !important;
      border-right: none !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      box-sizing: border-box !important;
    }
    .hx-split-tool-section { display: flex; flex-direction: column; gap: 6px; }
    .hx-split-tool-title { font-size: 12px; font-weight: 700; color: #9EEA32; text-transform: uppercase; letter-spacing: 0.8px; }

    .hx-presets-section { display: none !important; }

    .hx-preset-btn {
      padding: 6px 10px; background: #1f1f2e; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
      cursor: pointer; font-size: 12px; font-weight: 600; color: #e2e8f0;
      transition: all 0.2s; display: flex; align-items: center; gap: 8px;
    }
    .hx-preset-btn.active { border: 1.5px solid #9EEA32; background: rgba(158, 234, 50, 0.12); color: #9EEA32; font-weight: 700; }

    .hx-split-footer {
      order: 3 !important;
      flex: 0 0 auto !important;
      padding: 12px 14px !important;
      background: #181822 !important;
      border: 1px solid rgba(255,255,255,0.12) !important;
      border-radius: 10px !important;
      margin: 6px 12px 14px 12px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 10px !important;
      box-sizing: border-box !important;
    }

    .hx-split-footer-left {
      width: 100% !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
    }
    .hx-split-info { font-size: 12px; line-height: 1.2; color: #a0aec0; }
    .hx-split-footer-price {
      font-size: 17px; font-weight: 800; color: #9EEA32;
      margin-left: auto !important; margin-right: 0 !important; text-align: right !important;
      display: flex !important; flex-direction: column !important; align-items: flex-end !important;
    }

    .hx-split-footer-btns {
      width: 100% !important;
      display: flex !important;
      gap: 8px !important;
    }

    .hx-split-btn, .hx-split-btn-buy {
      flex: 1 !important;
      padding: 10px 12px !important;
      font-size: 13px !important;
      font-weight: 700 !important;
      border-radius: 8px !important;
      text-align: center !important;
    }
    .hx-split-btn {
      background: linear-gradient(135deg, #9eea32 0%, #7bc616 100%); color: #0b0b16; border: none;
    }
    .hx-split-btn-buy {
      background: transparent; color: #9EEA32; border: 2px solid #9EEA32;
    }

    /* ----------------------------------------------------
       MOBILE LANDSCAPE MODE (.hx-landscape-mode)
       ---------------------------------------------------- */
    .hx-split-modal.hx-landscape-mode {
      position: fixed !important;
      top: 50% !important;
      left: 50% !important;
      width: 100vh !important;
      width: 100dvh !important;
      height: 100vw !important;
      height: 100dvw !important;
      max-width: none !important;
      max-height: none !important;
      transform: translate(-50%, -50%) rotate(90deg) !important;
      transform-origin: center center !important;
      border-radius: 0 !important;
      border: none !important;
      overflow: hidden !important;
      z-index: 200005 !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-header {
      padding: 6px 14px !important;
      min-height: 40px !important;
      box-sizing: border-box !important;
      flex: 0 0 auto !important;
    }
    .hx-split-modal.hx-landscape-mode .hx-split-title {
      font-size: 14px !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-body {
      flex: 1 1 auto !important;
      display: flex !important;
      flex-direction: row !important; /* 2-Column: Left Canvas, Right Controls */
      overflow: hidden !important;
      padding-bottom: 0 !important;
      position: relative !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-canvas-container {
      order: 1 !important;
      flex: 1 1 auto !important;
      width: auto !important;
      max-width: none !important;
      margin: 0 !important;
      height: 100% !important;
      max-height: none !important;
      min-height: 0 !important;
      aspect-ratio: auto !important;
      position: relative !important;
      background: #d8dce2 !important;
    }
    .hx-split-modal.hx-landscape-mode .hx-split-preview-container {
      order: 1 !important;
      flex: 1 1 auto !important;
      width: auto !important;
      max-width: none !important;
      margin: 0 !important;
      height: 100% !important;
      max-height: none !important;
      min-height: 0 !important;
      aspect-ratio: auto !important;
      position: relative !important;
      background: #ece8e1 !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-toolbar {
      order: 2 !important;
      flex: 0 0 210px !important;
      width: 210px !important;
      height: 100% !important;
      background: #14141c !important;
      border-left: 1px solid rgba(255,255,255,0.1) !important;
      border-top: none !important;
      padding: 10px !important;
      display: flex !important;
      flex-direction: column !important;
      gap: 8px !important;
      overflow-y: auto !important;
      box-sizing: border-box !important;
      padding-bottom: 120px !important; /* Space for fixed bottom footer */
    }

    .hx-split-modal.hx-landscape-mode .hx-instructions-section {
      display: none !important; /* Save vertical room in landscape */
    }

    .hx-split-modal.hx-landscape-mode .hx-split-footer {
      order: 3 !important;
      position: absolute !important;
      bottom: 0 !important;
      right: 0 !important;
      width: 210px !important;
      margin: 0 !important;
      padding: 10px !important;
      background: #181822 !important;
      border-radius: 0 !important;
      border: none !important;
      border-top: 1px solid rgba(255,255,255,0.1) !important;
      border-left: 1px solid rgba(255,255,255,0.1) !important;
      box-sizing: border-box !important;
      z-index: 20 !important;
      gap: 6px !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-footer-left {
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 2px !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-footer-price {
      font-size: 15px !important;
      margin-left: 0 !important;
      text-align: left !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-footer-btns {
      gap: 6px !important;
    }

    .hx-split-modal.hx-landscape-mode .hx-split-btn,
    .hx-split-modal.hx-landscape-mode .hx-split-btn-buy {
      padding: 8px 10px !important;
      font-size: 12px !important;
    }
  }

  /* Shared Controls Overlay & Utilities */
  .hx-canvas-controls {
    position: absolute; bottom: 15px; right: 15px; left: auto; transform: none;
    display: flex; gap: 8px; z-index: 100; pointer-events: auto;
  }
  .hx-ctrl-btn {
    width: 36px; height: 36px; border-radius: 50%; background: #1f1f2e; border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; color: #ffffff;
    transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }
  .hx-ctrl-btn:hover { border-color: #9EEA32; background: rgba(158, 234, 50, 0.2); color: #ffffff; }

  .hx-view-toggle-btn {
    position: absolute; bottom: 15px; left: 15px; transform: none;
    height: 36px; padding: 0 16px; box-sizing: border-box;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(24, 24, 34, 0.92); border: 1.5px solid #9EEA32;
    border-radius: 30px; font-size: 13px; font-weight: 700; color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4); cursor: pointer; z-index: 100; transition: all 0.2s;
  }
  .hx-view-toggle-btn:hover { background: #9EEA32; color: #0b0b16; }

  /* Progress bar */
  .hx-split-progress-wrap { width: 100%; display: none; flex-direction: column; gap: 6px; }
  .hx-split-progress-wrap.active { display: flex; }
  .hx-split-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
  .hx-split-progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #9eea32, #05e6ff); border-radius: 3px; transition: width 0.3s ease; }
  .hx-split-progress-text { font-size: 12px; color: #a0aec0; text-align: center; }

  /* Preview Mode Wall Container */
  .hx-split-preview-container {
    flex: 1; position: relative; display: none; overflow: hidden;
    background: #ece8e1;
    cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
  }
  .hx-split-preview-container:active {
    cursor: grabbing;
  }
  .hx-preview-controls {
    position: absolute; bottom: 15px; left: 15px;
    display: flex; align-items: center; gap: 8px;
    z-index: 9999 !important; pointer-events: auto !important;
    transform: translate3d(0, 0, 50px) !important;
    -webkit-transform: translate3d(0, 0, 50px) !important;
  }
  .hx-preview-controls .hx-view-toggle-btn {
    position: static; transform: none;
  }
  .hx-preview-controls .hx-ctrl-btn {
    width: 36px; height: 36px;
  }
  .hx-preview-stage {
    position: absolute; top: 0; left: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    pointer-events: none; will-change: transform;
    transform-origin: 0 0;
  }
  .hx-split-preview-wall {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    filter: drop-shadow(4px 6px 6px rgba(0,0,0,0.5));
  }
  .hx-preview-hex {
    position: absolute; transform: translate(-50%, -50%) scale(0.98); transition: all 0.3s;
  }
