body{
      background: radial-gradient(1200px 600px at 15% 10%, rgba(60,200,255,.18), transparent 55%),
                  radial-gradient(900px 500px at 85% 20%, rgba(255,80,200,.14), transparent 50%),
                  linear-gradient(180deg,#060a12,#0b1322 55%, #070b14);
      color:#eaf2ff; min-height:100vh;
    }
    .metal-card{
      background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
      border: 1px solid rgba(255,255,255,.10);
      box-shadow: 0 18px 45px rgba(0,0,0,.45);
      border-radius: 22px;
      overflow:hidden;
    }
    .metal-head{
      background: linear-gradient(90deg, rgba(90,160,255,.18), rgba(255,100,200,.10), rgba(90,255,210,.10));
      border-bottom: 1px solid rgba(255,255,255,.10);
    }
    .badge-glow{
      border:1px solid rgba(255,255,255,.18);
      background: rgba(255,255,255,.06);
      color:#d7e6ff;
      border-radius: 999px;
    }
    .soft-note{ color: rgba(233,242,255,.72); }
    .kicker{ color: rgba(233,242,255,.78); font-size:.92rem; }
    .btn-metal{
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      color:#eaf2ff; border-radius:14px;
    }
    .btn-metal:hover{ background: rgba(255,255,255,.10); color:#fff; }
    .thumbRow{
      display:flex; gap:10px; overflow-x:auto; padding-bottom:6px;
      scroll-snap-type:x mandatory;
    }
    .thumbRow::-webkit-scrollbar{ height:8px; }
    .thumbRow::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.12); border-radius:99px; }
    .thumb{
      width:115px; height:115px; object-fit:cover;
      border-radius:18px; border:1px solid rgba(255,255,255,.12);
      cursor:pointer; box-shadow: 0 10px 22px rgba(0,0,0,.35);
      scroll-snap-align:start; transition: transform .15s ease;
      flex:0 0 auto;
    }
    .thumb:hover{ transform: translateY(-2px) scale(1.02); }
    .myimageRow .thumb{ width:135px; height:135px; }
    .docxFrame{
      width:100%; height:340px; border:1px solid rgba(255,255,255,.12);
      border-radius:18px; background: rgba(0,0,0,.12);
    }
    .modal{ z-index: 10560; }
    .modal-backdrop{ z-index: 10550; }
    .modal-content{
      background: linear-gradient(180deg, rgba(10,18,32,.98), rgba(10,18,32,.92));
      border:1px solid rgba(255,255,255,.14);
      border-radius: 20px;
    }
    .viewerScroll{
      width:100%; height: calc(100vh - 160px); overflow:auto;
      border: 1px solid rgba(255,255,255,.10); border-radius: 16px;
      background: rgba(0,0,0,.10); padding: 10px;
    }
    .viewerScroll::-webkit-scrollbar{ width:10px; height:10px; }
    .viewerScroll::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.14); border-radius:99px; }
    .viewerImage{
      display:block; max-width:none; transform-origin: left top;
      border-radius:14px; border:1px solid rgba(255,255,255,.12);
      box-shadow: 0 12px 28px rgba(0,0,0,.45);
    }
    .viewerFrame{ width:100%; height: calc(100vh - 160px); border:0; border-radius: 16px; }
    body{ -webkit-user-select:none; user-select:none; }
    input, textarea{ -webkit-user-select:text; user-select:text; }
  
    /* Equal-height previews for left/right columns */
    .preview-box{
      padding: 10px;

      height: 420px;
      background: rgba(255,255,255,0.03);
      border-radius: 20px;
      border: 1px solid rgba(255,255,255,0.10);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding: 10px;
    }
    .preview-box.full{ padding: 0; }
    .preview-box.full{ padding:0; }
    .preview-box.full img{ width:100%; height:100%; object-fit:cover; display:block; }
    .preview-box img{
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.12);
      box-shadow: 0 12px 28px rgba(0,0,0,.35);
    }
    .preview-box iframe{
      width: 100%;
      height: 100%;
      border: 0;
      border-radius: 14px;
      background: rgba(0,0,0,.10);
    }
    
    .navArrow{
      position:absolute;
      top:50%;
      transform:translateY(-50%);
      width:46px;
      height:46px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.18);
      background: rgba(0,0,0,.18);
      color:#eaf2ff;
      font-size:30px;
      line-height:40px;
      display:flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      user-select:none;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      box-shadow: 0 10px 25px rgba(0,0,0,.35);
      z-index: 2;
    }
    .navArrow.left{ left:12px; }
    .navArrow.right{ right:12px; }
    .navArrow:hover{ background: rgba(255,255,255,.10); }

    .preview-box:hover{
      box-shadow: 0 0 25px rgba(120,180,255,0.18);
      transition: 0.25s ease;
    }

/* ===== My Images Auto Move (Right -> Left) ===== */
.myimage-marquee{
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
}

.myimage-marquee .track{
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 14px;
  will-change: transform;
  animation: myimage-marquee 70s linear infinite;
}

.myimage-marquee:hover .track{
  animation-play-state: paused;
}

.myimage-marquee .tile{
  flex: 0 0 auto;
  width: 170px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.myimage-marquee .tile img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes myimage-marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .myimage-marquee .track{ animation: none !important; }
}

/* =======================================================================
   PATCHES (safe + compatible)
   - Keep existing metallic/glass theme untouched
   - Center viewer popup content
   - MyImage hover glow (scoped, no layout shift)
   ======================================================================= */

/* --- Viewer popup: center content on open/zoom (Bootstrap modal) --- */
#viewerModal .modal-dialog{ max-width: 98vw; }
#viewerModal .modal-body{ overflow:hidden; }
#viewerModal .viewerWrap,
#viewerModal #viewerContainer{
  width:100%;
  height: calc(100vh - 160px);
}
#viewerModal .viewerScroll{
  width:100%;
  height:100%;
  overflow:auto;
  display:flex;
  align-items:center;
  justify-content:center;
}
#viewerModal .viewerImage{
  transform-origin: center center !important;
  display:block;
  margin:auto;
}
#viewerModal iframe,
#viewerModal embed{
  display:block;
  margin:0 auto;
}

/* --- My Images: glow on hover (strictly scoped) --- */
.myimage-marquee img,
.myimageRow img,
.thumbRow.myimageRow img{
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.myimage-marquee img:hover,
.myimageRow img:hover,
.thumbRow.myimageRow img:hover{
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.05);
  box-shadow:
    0 0 10px rgba(255,255,255,.25),
    0 0 18px rgba(80,220,255,.45),
    0 0 34px rgba(80,220,255,.25);
}

/* Avoid layout jump when scaling */
.myimage-marquee .tile,
.myimageRow a,
.thumbRow.myimageRow a{
  display:inline-block;
}
