#samaku-fragment-market{
position:fixed;inset:0 0 72px;z-index:90;display:none;overflow:auto;
background:radial-gradient(circle at 50% -15%,rgba(103,77,255,.22),transparent 36%),#090a0f;
color:#f7f7fb;-webkit-overflow-scrolling:touch
}
#samaku-fragment-market.open{display:block}
.fm-wrap,.fm-invoice{width:min(100% - 28px,980px);margin:auto;padding:24px 0 38px}
.fm-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.fm-top small{font-size:9px;letter-spacing:.16em;color:#797d8d;font-weight:900}
.fm-top h1{font-size:28px;margin:6px 0 5px;letter-spacing:-.04em}
.fm-top p{margin:0;color:#898d9d;font-size:11px;line-height:1.5}
.fm-live{display:flex;align-items:center;gap:6px;border:1px solid rgba(67,220,148,.2);background:rgba(67,220,148,.07);color:#64dda2;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:900}
.fm-live i,.fm-stock i{width:6px;height:6px;border-radius:50%;background:#51df99;box-shadow:0 0 0 4px rgba(81,223,153,.1)}
.fm-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;margin-top:21px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.035);border-radius:17px}
.fm-tab{height:46px;border:0;border-radius:13px;background:transparent;color:#808495;font-weight:900;font-size:11px}
.fm-tab.active{background:linear-gradient(135deg,#6555ff,#915bff);color:#fff;box-shadow:0 9px 24px rgba(105,80,255,.25)}
.fm-search{position:relative;margin-top:11px}
.fm-search input{box-sizing:border-box;width:100%;height:50px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(255,255,255,.04);outline:0;color:#fff;padding:0 43px;font-size:12px}
.fm-search input:focus{border-color:rgba(118,94,255,.6);box-shadow:0 0 0 4px rgba(118,94,255,.08)}
.fm-search>span{position:absolute;left:15px;top:13px;font-size:20px;color:#858899}
.fm-search>button{position:absolute;right:5px;top:6px;width:38px;height:38px;border:0;background:transparent;color:#777b8d;font-size:21px}
.fm-info{height:40px;display:flex;align-items:center;justify-content:space-between;color:#777b8c;font-size:10px;font-weight:700}
.fm-info button{border:0;background:none;color:#9d92ff;font-size:9px;font-weight:900}
.fm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.fm-card{overflow:hidden;border:1px solid rgba(255,255,255,.07);border-radius:19px;background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));box-shadow:0 12px 34px rgba(0,0,0,.17)}
.fm-image{position:relative;aspect-ratio:1/.94;overflow:hidden;background:radial-gradient(circle,#37305f,#161722)}
.fm-image img{width:100%;height:100%;object-fit:cover;display:block}
.fm-user-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:54px;font-weight:950;color:#dedaff;background:radial-gradient(circle,#4a3f84,#171621)}
.fm-type,.fm-stock{position:absolute;border-radius:8px;backdrop-filter:blur(10px);font-weight:900}
.fm-type{top:8px;left:8px;padding:5px 7px;background:rgba(8,9,14,.65);font-size:7px;letter-spacing:.08em}
.fm-stock{right:8px;bottom:8px;display:flex;align-items:center;gap:5px;padding:5px 7px;background:rgba(7,15,11,.72);color:#68dfa5;font-size:7px}
.fm-card-body{padding:11px}
.fm-card h3{min-height:34px;margin:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.fm-card-body>small{display:block;margin-top:4px;color:#676b7a;font-size:7px;letter-spacing:.08em;font-weight:800}
.fm-card-body>label{display:block;margin-top:12px;color:#767a8b;font-size:8px}
.fm-price{font-size:17px;font-weight:950;margin-top:2px}
.fm-order{width:100%;height:42px;margin-top:11px;border:0;border-radius:12px;background:linear-gradient(135deg,#6656ff,#915aff);box-shadow:0 8px 20px rgba(103,82,255,.2);display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#fff;font-size:9px;font-weight:950}
.fm-order b,.fm-proof b{font-size:20px}
.fm-order:disabled{opacity:.55}
.fm-more{width:100%;height:50px;margin-top:18px;border:1px solid rgba(120,99,255,.2);border-radius:14px;background:rgba(111,88,255,.07);color:#afa4ff;font-size:9px;font-weight:950}
.fm-empty,.fm-error{grid-column:1/-1;padding:70px 20px;text-align:center}
.fm-empty b,.fm-empty span,.fm-error b,.fm-error span{display:block}
.fm-empty span,.fm-error span{margin-top:7px;color:#7c8090;font-size:11px}
.fm-error button{margin-top:16px;height:40px;border:0;border-radius:11px;background:#6d5cff;color:#fff;padding:0 18px;font-size:9px;font-weight:900}
.fm-skeleton{background:rgba(255,255,255,.055);position:relative;overflow:hidden}
.fm-skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent);animation:fmshine 1.4s infinite}
@keyframes fmshine{to{transform:translateX(100%)}}
.fm-skeleton-img{aspect-ratio:1/.94}
.fm-skeleton-line{height:10px;border-radius:5px;margin-top:8px}.fm-skeleton-line.short{width:65%}
.fm-skeleton-btn{height:42px;border-radius:12px;margin-top:14px}
.fm-invoice{max-width:510px;text-align:center}
.fm-check{margin:12px auto 15px;width:62px;height:62px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:1px solid rgba(75,221,150,.25);background:rgba(75,221,150,.08);color:#63dfa3;font-size:26px;font-weight:950}
.fm-success{color:#62dda2!important;font-size:8px!important;letter-spacing:.13em;font-weight:950}
.fm-invoice h1{margin:7px 0 6px;font-size:24px}
.fm-invoice>p{margin:0 0 20px;color:#7e8292;font-size:11px;line-height:1.5}
.fm-invoice-box,.fm-bank-box{text-align:left;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.04);border-radius:18px;padding:16px}
.fm-invoice-box>div{display:flex;justify-content:space-between;gap:18px;padding:6px 0}
.fm-invoice-box span{color:#777b8c;font-size:10px}.fm-invoice-box b{font-size:10px;text-align:right}
.fm-invoice-box hr{border:0;border-top:1px solid rgba(255,255,255,.07);margin:11px 0 14px}
.fm-invoice-box>label{display:block;text-align:center;color:#777b8b;font-size:8px;letter-spacing:.1em}
.fm-total{display:block;text-align:center;font-size:29px;margin-top:4px}
.fm-bank-box{margin-top:10px}
.fm-bank-box>small{font-size:8px;color:#777b8b;letter-spacing:.1em}
.fm-bank-row{display:flex;align-items:center;gap:12px;margin-top:12px}
.fm-bca{width:51px;height:51px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:linear-gradient(145deg,#12479d,#2878e6);font-size:12px;font-weight:950}
.fm-bank-row span,.fm-bank-row b,.fm-bank-row small{display:block}.fm-bank-row span{font-size:9px;color:#777b8b}.fm-bank-row b{font-size:17px;margin:2px 0}.fm-bank-row small{font-size:9px;color:#818595}
.fm-bank-box>button{width:100%;height:41px;margin-top:14px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.04);color:#c7c9d2;font-size:8px;font-weight:900}
.fm-note{margin-top:11px;padding:12px;border:1px solid rgba(230,176,75,.1);border-radius:13px;background:rgba(230,176,75,.04);color:#999586;font-size:9px;line-height:1.55;text-align:left}
.fm-proof{height:53px;margin-top:11px;padding:0 16px;border-radius:14px;background:linear-gradient(135deg,#6656ff,#925aff);box-shadow:0 11px 27px rgba(105,82,255,.23);display:flex;align-items:center;justify-content:space-between;color:#fff!important;text-decoration:none!important;font-size:10px;font-weight:950}
.fm-back{width:100%;height:46px;margin-top:8px;border:1px solid rgba(255,255,255,.07);border-radius:13px;background:transparent;color:#878b9a;font-size:9px;font-weight:900}
#fragment-toast{position:fixed;z-index:99999;left:50%;bottom:90px;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 15px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(16,17,24,.95);color:#fff;font-size:10px;transition:.2s}
#fragment-toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:650px){.fm-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}}
@media(min-width:900px){.fm-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}


/* =========================================================
   SAMAKU MOBILE NFT MARKET V3
   Header + NFT title + Invoice refinement
   ========================================================= */

@media (max-width: 600px) {

  #samaku-fragment-market {
    inset: 0 0 82px 0;
    box-sizing: border-box;
    background:
      radial-gradient(
        circle at 50% 0%,
        rgba(104, 72, 255, .13),
        transparent 28%
      ),
      #08090e;
  }

  /*
    Header utama SAMAKU berada di atas marketplace.
    Marketplace diberi ruang otomatis sesuai tinggi header.
  */
  .fm-wrap,
  .fm-invoice {
    box-sizing: border-box;
    width: 100%;
    max-width: none;

    margin: 0;

    padding-left: 18px;
    padding-right: 18px;

    padding-top:
      calc(
        var(--fm-header-offset, 118px)
        + 24px
      );

    padding-bottom: 120px;
  }


  /* =========================
     NFT MARKET TITLE
     ========================= */

  .fm-top {
    display: block;
    margin: 0 0 20px;
  }

  .fm-top > div:first-child {
    width: 100%;
  }

  .fm-top small {
    display: none;
  }

  .fm-top h1 {
    margin: 0;

    font-size: 28px;
    line-height: 1.06;

    font-weight: 950;

    letter-spacing: -.045em;

    color: #f5f6fb;
  }

  .fm-top h1::after {
    content: "";

    display: block;

    width: 42px;
    height: 3px;

    margin-top: 10px;

    border-radius: 999px;

    background:
      linear-gradient(
        90deg,
        #6657ff,
        #975cff
      );

    box-shadow:
      0 0 14px
      rgba(121, 89, 255, .55);
  }

  .fm-top p {
    max-width: 330px;

    margin-top: 11px;

    color: #838796;

    font-size: 12px;
    line-height: 1.55;
  }

  /*
    Header SAMAKU sudah punya indikator ONLINE.
    Badge LIVE duplikat tidak perlu di mobile.
  */
  .fm-live {
    display: none;
  }


  /* =========================
     CATEGORY TABS
     ========================= */

  .fm-tabs {
    box-sizing: border-box;

    gap: 5px;

    padding: 5px;

    margin-top: 0;
    margin-bottom: 12px;

    border-radius: 18px;

    background:
      rgba(255,255,255,.035);
  }

  .fm-tab {
    height: 49px;

    border-radius: 14px;

    font-size: 11px;

    letter-spacing: .01em;
  }

  .fm-tab.active {
    box-shadow:
      0 7px 24px
      rgba(108, 82, 255, .27);
  }


  /* =========================
     SEARCH
     ========================= */

  .fm-search {
    margin-top: 0;
  }

  .fm-search input {
    height: 52px;

    border-radius: 16px;

    padding-left: 45px;
    padding-right: 45px;

    font-size: 12px;

    background:
      rgba(255,255,255,.035);
  }

  .fm-search > span {
    top: 14px;
    left: 16px;
  }

  .fm-info {
    height: 47px;

    padding: 0 2px;

    font-size: 10px;
  }


  /* =========================
     PRODUCT GRID
     ========================= */

  .fm-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .fm-card {
    border-radius: 18px;
  }

  .fm-image {
    aspect-ratio: 1 / 1;
  }

  .fm-card-body {
    padding: 13px;
  }

  .fm-card h3 {
    min-height: 38px;

    font-size: 13px;
    line-height: 1.4;
  }

  .fm-card-body > label {
    margin-top: 12px;
  }

  .fm-price {
    margin-top: 3px;

    font-size: 18px;
  }

  .fm-order {
    height: 46px;

    margin-top: 13px;

    border-radius: 13px;

    padding: 0 13px;

    font-size: 9px;
  }


  /* =====================================================
     PAYMENT / INVOICE MOBILE
     ===================================================== */

  .fm-invoice {
    text-align: center;

    padding-top:
      calc(
        var(--fm-header-offset, 118px)
        + 28px
      );

    padding-bottom: 140px;
  }

  .fm-check {
    width: 58px;
    height: 58px;

    margin:
      0 auto
      17px;

    font-size: 24px;

    box-shadow:
      0 0 0 9px
      rgba(76, 220, 150, .025);
  }

  .fm-success {
    display: block;

    margin-top: 0;

    font-size: 8px !important;

    letter-spacing: .14em;
  }

  .fm-invoice h1 {
    margin:
      8px 0 8px;

    font-size: 27px;
    line-height: 1.12;

    letter-spacing: -.035em;
  }

  .fm-invoice > p {
    max-width: 330px;

    margin:
      0 auto
      24px;

    color: #818594;

    font-size: 11px;
    line-height: 1.6;
  }


  /* Invoice box */

  .fm-invoice-box {
    padding: 18px;

    border-radius: 20px;
  }

  .fm-invoice-box > div {
    align-items: flex-start;

    padding: 8px 0;
  }

  .fm-invoice-box span {
    font-size: 10px;
  }

  .fm-invoice-box b {
    max-width: 62%;

    font-size: 11px;
    line-height: 1.4;

    overflow-wrap: anywhere;
  }

  .fm-invoice-box hr {
    margin:
      14px 0
      18px;
  }

  .fm-invoice-box > label {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .fm-total {
    margin-top: 6px;

    font-size: 34px;
    line-height: 1.1;
  }


  /* Bank Card */

  .fm-bank-box {
    margin-top: 13px;

    padding: 18px;

    border-radius: 20px;
  }

  .fm-bank-row {
    gap: 14px;

    margin-top: 14px;
  }

  .fm-bca {
    flex:
      0 0
      58px;

    width: 58px;
    height: 58px;

    border-radius: 16px;
  }

  .fm-bank-row span {
    font-size: 9px;
  }

  .fm-bank-row b {
    margin:
      3px 0;

    font-size: 20px;

    letter-spacing: .015em;
  }

  .fm-bank-row small {
    font-size: 10px;
  }

  .fm-bank-box > button {
    height: 46px;

    margin-top: 18px;

    border-radius: 13px;
  }


  /* Payment note */

  .fm-note {
    margin-top: 13px;

    padding: 14px 15px;

    border-radius: 15px;

    font-size: 10px;
    line-height: 1.65;
  }


  /* Proof button */

  .fm-proof {
    box-sizing: border-box;

    width: 100%;
    min-height: 56px;

    margin-top: 14px;

    padding: 0 18px;

    border-radius: 15px;

    font-size: 10px;

    box-shadow:
      0 12px 28px
      rgba(106, 82, 255, .22);
  }


  .fm-back {
    height: 48px;

    margin-top: 10px;

    border-radius: 14px;
  }


  /* Beri ruang aman agar tombol tidak tertutup navbar */
  .fm-proof:last-child,
  .fm-back:last-child {
    margin-bottom: 30px;
  }


  /* Toast jangan tertutup navbar */
  #fragment-toast {
    bottom: 105px;
  }
}


/* iPhone sempit */
@media (max-width: 390px) {

  .fm-wrap,
  .fm-invoice {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fm-grid {
    gap: 9px;
  }

  .fm-card-body {
    padding: 11px;
  }

  .fm-card h3 {
    font-size: 12px;
  }

  .fm-price {
    font-size: 17px;
  }

  .fm-order {
    padding: 0 11px;

    font-size: 8px;
  }

  .fm-invoice h1 {
    font-size: 25px;
  }

  .fm-total {
    font-size: 31px;
  }
}


/* =========================================================
   SAMAKU MOBILE NFT MARKET V3
   Header + NFT title + Invoice refinement
   ========================================================= */

@media (max-width: 600px) {

  #samaku-fragment-market {
    inset: 0 0 82px 0;
    box-sizing: border-box;
    background:
      radial-gradient(
        circle at 50% 0%,
        rgba(104, 72, 255, .13),
        transparent 28%
      ),
      #08090e;
  }

  /*
    Header utama SAMAKU berada di atas marketplace.
    Marketplace diberi ruang otomatis sesuai tinggi header.
  */
  .fm-wrap,
  .fm-invoice {
    box-sizing: border-box;
    width: 100%;
    max-width: none;

    margin: 0;

    padding-left: 18px;
    padding-right: 18px;

    padding-top:
      calc(
        var(--fm-header-offset, 118px)
        + 24px
      );

    padding-bottom: 120px;
  }


  /* =========================
     NFT MARKET TITLE
     ========================= */

  .fm-top {
    display: block;
    margin: 0 0 20px;
  }

  .fm-top > div:first-child {
    width: 100%;
  }

  .fm-top small {
    display: none;
  }

  .fm-top h1 {
    margin: 0;

    font-size: 28px;
    line-height: 1.06;

    font-weight: 950;

    letter-spacing: -.045em;

    color: #f5f6fb;
  }

  .fm-top h1::after {
    content: "";

    display: block;

    width: 42px;
    height: 3px;

    margin-top: 10px;

    border-radius: 999px;

    background:
      linear-gradient(
        90deg,
        #6657ff,
        #975cff
      );

    box-shadow:
      0 0 14px
      rgba(121, 89, 255, .55);
  }

  .fm-top p {
    max-width: 330px;

    margin-top: 11px;

    color: #838796;

    font-size: 12px;
    line-height: 1.55;
  }

  /*
    Header SAMAKU sudah punya indikator ONLINE.
    Badge LIVE duplikat tidak perlu di mobile.
  */
  .fm-live {
    display: none;
  }


  /* =========================
     CATEGORY TABS
     ========================= */

  .fm-tabs {
    box-sizing: border-box;

    gap: 5px;

    padding: 5px;

    margin-top: 0;
    margin-bottom: 12px;

    border-radius: 18px;

    background:
      rgba(255,255,255,.035);
  }

  .fm-tab {
    height: 49px;

    border-radius: 14px;

    font-size: 11px;

    letter-spacing: .01em;
  }

  .fm-tab.active {
    box-shadow:
      0 7px 24px
      rgba(108, 82, 255, .27);
  }


  /* =========================
     SEARCH
     ========================= */

  .fm-search {
    margin-top: 0;
  }

  .fm-search input {
    height: 52px;

    border-radius: 16px;

    padding-left: 45px;
    padding-right: 45px;

    font-size: 12px;

    background:
      rgba(255,255,255,.035);
  }

  .fm-search > span {
    top: 14px;
    left: 16px;
  }

  .fm-info {
    height: 47px;

    padding: 0 2px;

    font-size: 10px;
  }


  /* =========================
     PRODUCT GRID
     ========================= */

  .fm-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .fm-card {
    border-radius: 18px;
  }

  .fm-image {
    aspect-ratio: 1 / 1;
  }

  .fm-card-body {
    padding: 13px;
  }

  .fm-card h3 {
    min-height: 38px;

    font-size: 13px;
    line-height: 1.4;
  }

  .fm-card-body > label {
    margin-top: 12px;
  }

  .fm-price {
    margin-top: 3px;

    font-size: 18px;
  }

  .fm-order {
    height: 46px;

    margin-top: 13px;

    border-radius: 13px;

    padding: 0 13px;

    font-size: 9px;
  }


  /* =====================================================
     PAYMENT / INVOICE MOBILE
     ===================================================== */

  .fm-invoice {
    text-align: center;

    padding-top:
      calc(
        var(--fm-header-offset, 118px)
        + 28px
      );

    padding-bottom: 140px;
  }

  .fm-check {
    width: 58px;
    height: 58px;

    margin:
      0 auto
      17px;

    font-size: 24px;

    box-shadow:
      0 0 0 9px
      rgba(76, 220, 150, .025);
  }

  .fm-success {
    display: block;

    margin-top: 0;

    font-size: 8px !important;

    letter-spacing: .14em;
  }

  .fm-invoice h1 {
    margin:
      8px 0 8px;

    font-size: 27px;
    line-height: 1.12;

    letter-spacing: -.035em;
  }

  .fm-invoice > p {
    max-width: 330px;

    margin:
      0 auto
      24px;

    color: #818594;

    font-size: 11px;
    line-height: 1.6;
  }


  /* Invoice box */

  .fm-invoice-box {
    padding: 18px;

    border-radius: 20px;
  }

  .fm-invoice-box > div {
    align-items: flex-start;

    padding: 8px 0;
  }

  .fm-invoice-box span {
    font-size: 10px;
  }

  .fm-invoice-box b {
    max-width: 62%;

    font-size: 11px;
    line-height: 1.4;

    overflow-wrap: anywhere;
  }

  .fm-invoice-box hr {
    margin:
      14px 0
      18px;
  }

  .fm-invoice-box > label {
    font-size: 8px;
    letter-spacing: .12em;
  }

  .fm-total {
    margin-top: 6px;

    font-size: 34px;
    line-height: 1.1;
  }


  /* Bank Card */

  .fm-bank-box {
    margin-top: 13px;

    padding: 18px;

    border-radius: 20px;
  }

  .fm-bank-row {
    gap: 14px;

    margin-top: 14px;
  }

  .fm-bca {
    flex:
      0 0
      58px;

    width: 58px;
    height: 58px;

    border-radius: 16px;
  }

  .fm-bank-row span {
    font-size: 9px;
  }

  .fm-bank-row b {
    margin:
      3px 0;

    font-size: 20px;

    letter-spacing: .015em;
  }

  .fm-bank-row small {
    font-size: 10px;
  }

  .fm-bank-box > button {
    height: 46px;

    margin-top: 18px;

    border-radius: 13px;
  }


  /* Payment note */

  .fm-note {
    margin-top: 13px;

    padding: 14px 15px;

    border-radius: 15px;

    font-size: 10px;
    line-height: 1.65;
  }


  /* Proof button */

  .fm-proof {
    box-sizing: border-box;

    width: 100%;
    min-height: 56px;

    margin-top: 14px;

    padding: 0 18px;

    border-radius: 15px;

    font-size: 10px;

    box-shadow:
      0 12px 28px
      rgba(106, 82, 255, .22);
  }


  .fm-back {
    height: 48px;

    margin-top: 10px;

    border-radius: 14px;
  }


  /* Beri ruang aman agar tombol tidak tertutup navbar */
  .fm-proof:last-child,
  .fm-back:last-child {
    margin-bottom: 30px;
  }


  /* Toast jangan tertutup navbar */
  #fragment-toast {
    bottom: 105px;
  }
}


/* iPhone sempit */
@media (max-width: 390px) {

  .fm-wrap,
  .fm-invoice {
    padding-left: 14px;
    padding-right: 14px;
  }

  .fm-grid {
    gap: 9px;
  }

  .fm-card-body {
    padding: 11px;
  }

  .fm-card h3 {
    font-size: 12px;
  }

  .fm-price {
    font-size: 17px;
  }

  .fm-order {
    padding: 0 11px;

    font-size: 8px;
  }

  .fm-invoice h1 {
    font-size: 25px;
  }

  .fm-total {
    font-size: 31px;
  }
}


/* =========================================================
   SAMAKU NFT MARKET DESKTOP / TABLET V4
   ========================================================= */

@media (min-width: 601px) {

  #samaku-fragment-market {
    inset: 0 0 72px 0;
    background:
      radial-gradient(
        circle at 50% -8%,
        rgba(104, 77, 255, .14),
        transparent 32%
      ),
      #08090e;
  }

  /*
    Beri ruang untuk header utama SAMAKU.
  */
  .fm-wrap,
  .fm-invoice {
    box-sizing: border-box;

    padding-top:
      calc(
        var(--fm-header-offset, 82px)
        + 30px
      );

    padding-bottom: 70px;
  }


  /* =========================
     HEADER NFT MARKET
     ========================= */

  .fm-top {
    display: block;

    margin-bottom: 24px;
  }

  .fm-top > div:first-child {
    width: 100%;
  }

  .fm-top small {
    display: block;

    margin-bottom: 8px;

    color: #8b8e9f;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .16em;
  }

  .fm-top h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1;

    font-weight: 950;

    letter-spacing: -.045em;

    color: #f7f7fb;
  }

  .fm-top h1::after {
    content: "";

    display: block;

    width: 48px;
    height: 3px;

    margin-top: 11px;

    border-radius: 999px;

    background:
      linear-gradient(
        90deg,
        #6657ff,
        #985cff
      );

    box-shadow:
      0 0 16px
      rgba(120, 88, 255, .5);
  }

  .fm-top p {
    max-width: 560px;

    margin-top: 12px;

    color: #878a9a;

    font-size: 13px;
    line-height: 1.55;
  }


  /*
    Header utama sudah punya ONLINE.
    Hapus LIVE duplikat di marketplace.
  */
  .fm-live {
    display: none !important;
  }


  /* =========================
     TABS
     ========================= */

  .fm-tabs {
    gap: 8px;

    padding: 6px;

    margin-top: 0;
    margin-bottom: 14px;

    border-radius: 18px;
  }

  .fm-tab {
    height: 52px;

    border-radius: 14px;

    font-size: 12px;

    cursor: pointer;
  }

  .fm-tab.active {
    box-shadow:
      0 10px 30px
      rgba(106, 83, 255, .25);
  }


  /* =========================
     SEARCH
     ========================= */

  .fm-search {
    margin-top: 0;
  }

  .fm-search input {
    height: 54px;

    border-radius: 16px;

    padding-left: 46px;
    padding-right: 48px;

    font-size: 13px;
  }

  .fm-search > span {
    top: 15px;
    left: 17px;
  }

  .fm-info {
    height: 46px;

    padding: 0 3px;

    font-size: 11px;
  }


  /* =========================
     PRODUCT CARDS
     ========================= */

  .fm-grid {
    gap: 14px;
  }

  .fm-card {
    border-radius: 20px;

    transition:
      transform .18s ease,
      border-color .18s ease,
      box-shadow .18s ease;
  }

  .fm-card:hover {
    transform:
      translateY(-3px);

    border-color:
      rgba(132, 104, 255, .22);

    box-shadow:
      0 18px 42px
      rgba(0,0,0,.25);
  }

  .fm-card-body {
    padding: 14px;
  }

  .fm-card h3 {
    font-size: 14px;
  }

  .fm-price {
    font-size: 20px;
  }

  .fm-order {
    height: 47px;

    margin-top: 14px;

    border-radius: 13px;

    font-size: 10px;

    cursor: pointer;
  }


  /* =====================================================
     DESKTOP INVOICE
     ===================================================== */

  .fm-invoice {
    max-width: 620px;

    padding-top:
      calc(
        var(--fm-header-offset, 82px)
        + 36px
      );

    padding-bottom: 90px;
  }

  .fm-check {
    width: 66px;
    height: 66px;

    margin-bottom: 18px;

    font-size: 28px;
  }

  .fm-invoice h1 {
    margin-top: 9px;

    font-size: 30px;

    letter-spacing: -.035em;
  }

  .fm-invoice > p {
    max-width: 470px;

    margin:
      8px auto
      26px;

    font-size: 12px;
    line-height: 1.6;
  }

  .fm-invoice-box,
  .fm-bank-box {
    padding: 20px;

    border-radius: 20px;
  }

  .fm-invoice-box > div {
    padding: 8px 0;
  }

  .fm-invoice-box span {
    font-size: 11px;
  }

  .fm-invoice-box b {
    font-size: 12px;
  }

  .fm-total {
    margin-top: 6px;

    font-size: 38px;
  }

  .fm-bank-box {
    margin-top: 14px;
  }

  .fm-bank-row {
    gap: 15px;

    margin-top: 14px;
  }

  .fm-bca {
    width: 60px;
    height: 60px;

    border-radius: 16px;
  }

  .fm-bank-row b {
    font-size: 21px;
  }

  .fm-bank-box > button {
    height: 46px;

    margin-top: 17px;

    border-radius: 13px;

    cursor: pointer;
  }

  .fm-note {
    margin-top: 14px;

    padding: 14px 16px;

    border-radius: 15px;

    font-size: 10px;
  }

  .fm-proof {
    min-height: 56px;

    margin-top: 14px;

    border-radius: 15px;

    font-size: 11px;
  }

  .fm-back {
    height: 48px;

    margin-top: 10px;

    border-radius: 14px;
  }
}


/* Desktop lebar */
@media (min-width: 1100px) {

  .fm-wrap {
    width: min(
      calc(100% - 48px),
      1180px
    );
  }

  .fm-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      );

    gap: 16px;
  }
}


/* =========================================================
   SAMAKU NFT MARKET DESKTOP 2 COLUMNS
   ========================================================= */

@media (min-width: 601px) {

  .fm-wrap {
    width: min(
      calc(100% - 48px),
      920px
    );
  }

  .fm-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;

    gap: 18px !important;
  }

  .fm-card {
    max-width: none;
  }

  .fm-image {
    aspect-ratio: 1 / .78;
  }

  .fm-card-body {
    padding: 16px;
  }

  .fm-card h3 {
    font-size: 15px;
  }

  .fm-price {
    font-size: 21px;
  }

  .fm-order {
    height: 48px;
    font-size: 10px;
  }
}


/* Desktop besar tetap 2 kolom */
@media (min-width: 1100px) {

  .fm-wrap {
    width: min(
      calc(100% - 64px),
      980px
    );
  }

  .fm-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;

    gap: 20px !important;
  }
}


/* =========================================================
   SAMAKU NFT MARKET DESKTOP COMPACT V5
   ========================================================= */

@media (min-width: 701px) {

  .fm-wrap {
    width: min(
      calc(100% - 60px),
      760px
    ) !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  .fm-top h1 {
    font-size: 28px !important;
  }

  .fm-top p {
    font-size: 11px !important;
  }

  .fm-tabs {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .fm-tab {
    height: 46px !important;
    font-size: 10px !important;
  }

  .fm-search {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  .fm-search input {
    height: 48px !important;
    font-size: 11px !important;
  }

  .fm-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;

    gap: 14px !important;
  }

  .fm-card {
    width: 100%;
    max-width: 373px;
    margin: 0 auto;

    border-radius: 17px !important;
  }

  .fm-image {
    aspect-ratio: 1 / .68 !important;
  }

  .fm-card-body {
    padding: 12px !important;
  }

  .fm-card h3 {
    min-height: 32px !important;

    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .fm-card-body > small {
    font-size: 7px !important;
  }

  .fm-card-body > label {
    margin-top: 9px !important;

    font-size: 8px !important;
  }

  .fm-price {
    font-size: 17px !important;
  }

  .fm-order {
    height: 40px !important;

    margin-top: 10px !important;

    border-radius: 11px !important;

    font-size: 8px !important;
  }

  .fm-type,
  .fm-stock {
    transform: scale(.9);
  }

  .fm-info {
    font-size: 9px !important;
  }
}


/* Desktop besar tetap compact */
@media (min-width: 1200px) {

  .fm-wrap {
    width: 760px !important;
  }

  .fm-grid {
    gap: 16px !important;
  }
}


/* =========================================================
   SAMAKU NFT ANIMATION + PRODUCT DETAIL V1
   ========================================================= */

/* Gerakan NFT halus */

.fm-image {
  overflow: hidden;
}

.fm-product-art {
  transform-origin: center center;
  animation:
    samakuNftFloat
    6s
    ease-in-out
    infinite;

  will-change: transform;
}

@keyframes samakuNftFloat {

  0% {
    transform:
      scale(1.02)
      translate3d(0,0,0);
  }

  50% {
    transform:
      scale(1.075)
      translate3d(0,-4px,0);
  }

  100% {
    transform:
      scale(1.02)
      translate3d(0,0,0);
  }
}


/* Tombol kartu */

.fm-card-actions {
  display: grid;

  grid-template-columns:
    .82fr 1.18fr;

  gap: 7px;

  margin-top: 12px;
}

.fm-card-actions
.fm-order {
  margin-top: 0 !important;
}

.fm-detail {
  height: 42px;

  border:
    1px solid
    rgba(132,110,255,.22);

  border-radius: 12px;

  background:
    rgba(110,88,255,.06);

  color: #aaa2f8;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .035em;

  cursor: pointer;
}


/* DETAIL MODAL */

#fm-detail-modal {
  position: fixed;

  inset: 0;

  z-index: 99990;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

#fm-detail-modal.open {
  display: flex;
}

.fm-detail-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(5,6,10,.76);

  backdrop-filter:
    blur(12px);
}

.fm-detail-sheet {
  position: relative;

  z-index: 2;

  width:
    min(
      100%,
      440px
    );

  max-height:
    calc(100vh - 40px);

  overflow-y: auto;

  border:
    1px solid
    rgba(255,255,255,.08);

  border-radius: 24px;

  background:
    linear-gradient(
      180deg,
      #151721,
      #0c0e14
    );

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.55);
}

.fm-detail-close {
  position: absolute;

  z-index: 5;

  top: 11px;
  right: 11px;

  width: 38px;
  height: 38px;

  border:
    1px solid
    rgba(255,255,255,.1);

  border-radius: 12px;

  background:
    rgba(8,9,14,.72);

  backdrop-filter:
    blur(10px);

  color: white;

  font-size: 22px;

  cursor: pointer;
}

.fm-detail-image {
  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;

  aspect-ratio: 1 / .82;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 40%,
      #393064,
      #14151d 72%
    );
}

.fm-detail-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.fm-detail-fallback {
  color: #ddd9ff;

  font-size: 90px;

  font-weight: 950;
}

.fm-detail-content {
  padding: 21px;
}

.fm-detail-badge {
  display: inline-flex;

  padding:
    6px 9px;

  border-radius: 8px;

  background:
    rgba(115,91,255,.12);

  color: #a89cff;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: .08em;
}

.fm-detail-content h2 {
  margin:
    11px 0 8px;

  color: #f6f7fb;

  font-size: 23px;

  line-height: 1.2;

  letter-spacing: -.025em;

  overflow-wrap: anywhere;
}

.fm-detail-status {
  display: flex;

  align-items: center;

  gap: 6px;

  color: #65e4aa;

  font-size: 9px;

  font-weight: 900;
}

.fm-detail-status i {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #59e0a2;

  box-shadow:
    0 0 0 4px
    rgba(89,224,162,.09);
}

.fm-detail-info {
  margin-top: 20px;

  overflow: hidden;

  border:
    1px solid
    rgba(255,255,255,.065);

  border-radius: 16px;

  background:
    rgba(255,255,255,.025);
}

.fm-detail-info > div {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    13px 14px;
}

.fm-detail-info > div
+ div {
  border-top:
    1px solid
    rgba(255,255,255,.055);
}

.fm-detail-info span {
  color: #747888;

  font-size: 10px;
}

.fm-detail-info strong {
  color: #e8e9f0;

  font-size: 11px;

  text-align: right;
}

.fm-detail-info
.fm-detail-price {
  color: #fff;

  font-size: 19px;
}

.fm-detail-order {
  width: 100%;

  height: 52px;

  margin-top: 17px;

  border: 0;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      #6656ff,
      #925aff
    );

  box-shadow:
    0 11px 27px
    rgba(106,82,255,.25);

  color: white;

  font-size: 10px;

  font-weight: 950;

  letter-spacing: .04em;

  cursor: pointer;
}


/* Mobile detail seperti bottom sheet */

@media (max-width:600px) {

  #fm-detail-modal {
    align-items: flex-end;

    padding: 0;
  }

  .fm-detail-sheet {
    width: 100%;

    max-height:
      calc(
        100vh
        - env(safe-area-inset-top)
        - 20px
      );

    border-radius:
      24px
      24px
      0
      0;

    padding-bottom:
      env(safe-area-inset-bottom);
  }

  .fm-detail-image {
    aspect-ratio:
      1 / .78;
  }

  .fm-detail-content {
    padding:
      18px
      18px
      24px;
  }

  .fm-detail-content h2 {
    font-size: 21px;
  }

  .fm-card-actions {
    grid-template-columns:
      1fr;

    gap: 6px;
  }

  .fm-detail,
  .fm-card-actions
  .fm-order {
    width: 100%;
    height: 42px;
  }
}


/* User yang memilih reduced motion tidak dipaksa animasi */

@media
(prefers-reduced-motion: reduce) {

  .fm-product-art {
    animation: none;
  }
}


/* =========================================================
   SAMAKU FRAGMENT MARKET EXCLUSIVE VIEW V1
   Jangan biarkan NFT lama terlihat di belakang.
   ========================================================= */

#samaku-fragment-market.open {
  /*
    Overlay sampai ke dasar viewport.
    Bottom navigation berada di atas overlay.
  */
  inset: 0 !important;

  padding-bottom:
    calc(
      82px +
      env(safe-area-inset-bottom)
    ) !important;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(104,77,255,.13),
      transparent 30%
    ),
    #08090e !important;

  opacity: 1 !important;
}


/*
  Bottom navigation harus selalu berada
  di atas marketplace.
*/
.samaku-pro-nav-bar {
  position: fixed !important;

  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  z-index: 1000 !important;
}


/*
  Tidak boleh ada celah transparan
  di bawah daftar produk.
*/
.fm-wrap {
  min-height: 100% !important;

  background: transparent !important;
}


/*
  Hindari produk tertutup navigation bar.
*/
.fm-grid {
  padding-bottom: 24px !important;
}

.fm-more {
  margin-bottom: 26px !important;
}


/* Mobile */
@media (max-width:600px) {

  #samaku-fragment-market.open {
    padding-bottom:
      calc(
        88px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  .fm-wrap {
    padding-bottom:
      calc(
        120px +
        env(safe-area-inset-bottom)
      ) !important;
  }

  .fm-invoice {
    padding-bottom:
      calc(
        140px +
        env(safe-area-inset-bottom)
      ) !important;
  }
}
