/* Action Apps Marketplace
   Mirrors the full-screen Discover/feed visual structure.
   Marketplace difference: each listing owns a timed multi-image gallery. */

:root{
    --mp-nav-height:64px;
    --mp-blue:#1669ff;
    --mp-bg:#07111f;
    --mp-white:#fff;
    --mp-muted:rgba(255,255,255,.78);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--mp-bg);color:#fff}
body.marketplace-page{overflow:hidden}
.marketplace-main-nav{
    position:fixed;z-index:1000;top:0;left:0;right:0;
    min-height:var(--mp-nav-height);background:#07111f
}
.marketplace-viewer{
    position:fixed;z-index:1;
    top:var(--mp-nav-height);right:0;bottom:0;left:0;
    overflow:hidden;background:#050b13
}
.marketplace-loading{
    height:100%;display:flex;flex-direction:column;align-items:center;
    justify-content:center;gap:15px;color:#fff
}
.marketplace-spinner{
    width:38px;height:38px;border:3px solid rgba(255,255,255,.25);
    border-top-color:#fff;border-radius:50%;animation:mpSpin .8s linear infinite
}
@keyframes mpSpin{to{transform:rotate(360deg)}}

.marketplace-slide{
    position:absolute;inset:0;overflow:hidden;background:#07111f;
    transform:translateY(100%);transition:transform .42s cubic-bezier(.22,.7,.26,1);
    will-change:transform
}
.marketplace-slide.is-current{transform:translateY(0)}
.marketplace-slide.is-before{transform:translateY(-100%)}
.marketplace-slide.is-after{transform:translateY(100%)}

.marketplace-gallery{position:absolute;inset:0;background:#111827;overflow:hidden}
.marketplace-gallery-image{
    position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
    opacity:0;transform:scale(1.01);transition:opacity .7s ease
}
.marketplace-gallery-image.is-active{opacity:1}
.marketplace-gallery::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:
        linear-gradient(to bottom,rgba(0,0,0,.10) 0%,rgba(0,0,0,.02) 32%,rgba(0,0,0,.40) 68%,rgba(0,0,0,.88) 100%),
        linear-gradient(to right,rgba(0,0,0,.42) 0%,rgba(0,0,0,.05) 58%,rgba(0,0,0,.22) 100%)
}
.marketplace-gallery-empty{
    position:absolute;inset:0;display:grid;place-items:center;
    background:linear-gradient(145deg,#101b2b,#26374f);font-weight:900;font-size:28px
}

.marketplace-gallery-dots{
    position:absolute;z-index:8;top:18px;left:50%;transform:translateX(-50%);
    display:flex;gap:6px;max-width:min(58vw,420px)
}
.marketplace-gallery-dot{
    width:24px;height:3px;border-radius:99px;border:0;padding:0;
    background:rgba(255,255,255,.35);overflow:hidden
}
.marketplace-gallery-dot::after{
    content:"";display:block;width:0;height:100%;background:#fff
}
.marketplace-gallery-dot.is-complete::after{width:100%}
.marketplace-gallery-dot.is-active::after{
    animation:mpGalleryProgress 5s linear forwards
}
@keyframes mpGalleryProgress{from{width:0}to{width:100%}}

.marketplace-content{
    position:absolute;z-index:12;left:clamp(18px,4vw,52px);right:160px;bottom:34px;
    max-width:760px;text-shadow:0 2px 18px rgba(0,0,0,.55)
}
.marketplace-category{
    display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;
    background:rgba(20,27,39,.74);border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(7px);font-size:12px;font-weight:800
}
.marketplace-title{
    margin:12px 0 4px;font-size:clamp(30px,5.2vw,62px);line-height:.98;
    letter-spacing:-.045em;font-weight:900
}
.marketplace-price{
    margin:8px 0 11px;font-size:clamp(23px,3vw,38px);font-weight:900
}
.marketplace-description{
    max-width:650px;margin:0 0 14px;color:#fff;font-size:15px;line-height:1.45
}
.marketplace-meta{
    display:flex;align-items:center;gap:10px;flex-wrap:wrap;
    color:var(--mp-muted);font-size:13px;font-weight:700
}
.marketplace-meta .sep{opacity:.55}
.marketplace-distance{color:#fff;font-weight:900}
.marketplace-seller{display:flex;align-items:center;gap:9px;margin-top:13px;font-size:13px}
.marketplace-avatar{
    width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.75)
}
.marketplace-avatar-fallback{
    display:grid;place-items:center;background:#1b65dc;font-weight:900
}
.marketplace-fee-note{margin-top:10px;font-size:12px;color:rgba(255,255,255,.67)}

.marketplace-actions{
    position:absolute;z-index:14;right:26px;bottom:42px;
    display:flex;flex-direction:column;align-items:center;gap:14px
}
.marketplace-action{
    width:70px;min-height:62px;border:0;color:#fff;background:rgba(10,16,25,.62);
    border:1px solid rgba(255,255,255,.18);border-radius:16px;
    backdrop-filter:blur(8px);font-weight:850;cursor:pointer;padding:9px 6px
}
.marketplace-action .icon{display:block;font-size:22px;line-height:1;margin-bottom:6px}
.marketplace-action.primary{background:var(--mp-blue);border-color:var(--mp-blue);width:96px}
.marketplace-action:hover{filter:brightness(1.08)}
.marketplace-action:disabled{opacity:.6;cursor:wait}

.marketplace-swipe-hint{
    position:absolute;z-index:10;left:50%;transform:translateX(-50%);
    display:flex;flex-direction:column;align-items:center;gap:3px;
    color:rgba(255,255,255,.62);font-size:11px;font-weight:800;pointer-events:none
}
.marketplace-swipe-hint.next{top:70px}
.marketplace-swipe-hint.prev{bottom:14px}
.marketplace-swipe-hint span:first-child{font-size:19px;line-height:1}

.marketplace-top-actions{
    position:fixed;z-index:1100;top:calc(var(--mp-nav-height) + 14px);right:18px;
    display:flex;gap:8px
}
.marketplace-top-actions a{
    text-decoration:none;color:#fff;background:rgba(6,12,20,.72);
    border:1px solid rgba(255,255,255,.22);backdrop-filter:blur(8px);
    padding:10px 13px;border-radius:999px;font-size:12px;font-weight:850
}
.marketplace-top-actions .marketplace-sell-button{background:#1669ff;border-color:#1669ff}

.marketplace-toast{
    position:fixed;z-index:2000;left:50%;bottom:26px;transform:translate(-50%,30px);
    min-width:220px;max-width:min(90vw,520px);padding:12px 15px;border-radius:12px;
    background:#fff;color:#101828;font-weight:750;opacity:0;pointer-events:none;
    transition:.22s ease;box-shadow:0 12px 40px rgba(0,0,0,.32)
}
.marketplace-toast.show{opacity:1;transform:translate(-50%,0)}

.marketplace-interest-panel{
    position:absolute;z-index:30;inset:auto 18px 18px auto;width:min(430px,calc(100% - 36px));
    border-radius:18px;background:rgba(8,14,24,.96);border:1px solid rgba(255,255,255,.16);
    padding:18px;box-shadow:0 18px 60px rgba(0,0,0,.35)
}
.marketplace-interest-panel h2{margin:0 0 6px;font-size:21px}
.marketplace-interest-panel p{margin:0 0 14px;color:rgba(255,255,255,.72);font-size:13px;line-height:1.45}
.marketplace-interest-panel label{display:block;font-size:12px;font-weight:800;margin:0 0 12px}
.marketplace-interest-panel textarea,
.marketplace-interest-panel input{
    width:100%;margin-top:6px;border:1px solid rgba(255,255,255,.18);border-radius:11px;
    background:#fff;color:#111827;padding:11px 12px;font:inherit
}
.marketplace-interest-buttons{display:flex;gap:8px}
.marketplace-interest-buttons button{
    flex:1;border:0;border-radius:11px;padding:11px 12px;font-weight:850;cursor:pointer
}
.marketplace-interest-buttons .send{background:#1669ff;color:#fff}
.marketplace-interest-buttons .cancel{background:#e5e7eb;color:#111827}

@media(max-width:760px){
    :root{--mp-nav-height:60px}
    .marketplace-content{left:17px;right:92px;bottom:22px}
    .marketplace-title{font-size:clamp(28px,9vw,44px)}
    .marketplace-description{font-size:13px;max-height:76px;overflow:hidden}
    .marketplace-actions{
        top:auto;
        right:12px;
        bottom:24px;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:9px;
        max-height:none;
    }
    .marketplace-action{
        width:64px;
        min-height:54px;
        border-radius:12px;
        font-size:11px;
        flex:0 0 auto;
    }
    .marketplace-action.primary{width:72px}
    .marketplace-top-actions{top:calc(var(--mp-nav-height) + 8px);right:10px}
    .marketplace-top-actions a{padding:8px 10px}
    .marketplace-swipe-hint.next{top:58px}
}
@media(max-width:460px){
    .marketplace-top-actions .marketplace-inquiries-button{display:none}
    .marketplace-content{right:82px}
    .marketplace-actions{
        top:auto;
        right:9px;
        bottom:18px;
        gap:7px;
    }
    .marketplace-action{
        width:58px;
        min-height:50px;
        padding:7px 5px;
        font-size:10px;
    }
    .marketplace-action.primary{width:66px}
    .marketplace-more-button{
        top:calc(var(--mp-nav-height) + 8px);
        right:9px;
    }
    .marketplace-more-menu{
        top:calc(var(--mp-nav-height) + 58px);
        right:9px;
        left:9px;
        min-width:0;
    }
    .marketplace-meta{font-size:11px}
    .marketplace-fee-note{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
    .marketplace-slide,.marketplace-gallery-image,.marketplace-toast{transition:none}
    .marketplace-gallery-dot.is-active::after{animation:none;width:100%}
}

.marketplace-interest-notice{
  margin:10px 0 14px;
  font-size:13px;
  line-height:1.45;
  color:#475467;
}

.mp-confirm-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(15,23,42,.72);
  backdrop-filter:blur(4px);
}
.mp-confirm-card{
  position:relative;
  width:min(520px,100%);
  background:#fff;
  border-radius:20px;
  padding:28px;
  box-shadow:0 24px 80px rgba(15,23,42,.35);
}
.mp-confirm-close{
  position:absolute;
  top:14px;
  right:14px;
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  background:#f2f4f7;
  cursor:pointer;
  font-weight:900;
}
.mp-confirm-kicker{
  margin:0 42px 8px 0;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  color:#667085;
}
.mp-confirm-card h2{
  margin:0 0 14px;
  font-size:28px;
  letter-spacing:-.03em;
}
.mp-confirm-card p{
  margin:0 0 12px;
  color:#344054;
  line-height:1.55;
}
.mp-confirm-note{
  margin:18px 0;
  padding:12px 14px;
  border-radius:12px;
  background:#f2f4f7;
  font-size:13px;
  font-weight:800;
  color:#344054;
}
.mp-confirm-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.mp-confirm-actions button{
  border:0;
  border-radius:11px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
}
.mp-confirm-cancel{
  background:#f2f4f7;
  color:#344054;
}
.mp-confirm-accept{
  background:#1669ff;
  color:#fff;
}
@media(max-width:600px){
  .mp-confirm-card{padding:24px 18px 18px}
  .mp-confirm-actions{display:grid;grid-template-columns:1fr}
  .mp-confirm-actions button{width:100%}
}


/* Search overlay */
.marketplace-search-overlay{
  position:fixed;
  inset:0;
  z-index:100000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(7,17,31,.78);
  backdrop-filter:blur(5px);
}
.marketplace-search-card{
  position:relative;
  width:min(620px,100%);
  background:#fff;
  color:#101828;
  border-radius:20px;
  padding:28px;
  box-shadow:0 28px 90px rgba(0,0,0,.35);
}
.marketplace-search-card h2{margin:0 42px 6px 0;font-size:30px}
.marketplace-search-card p{margin:0 0 18px;color:#667085}
.marketplace-search-close{
  position:absolute;
  right:14px;
  top:14px;
  width:36px;
  height:36px;
  border:0;
  border-radius:999px;
  background:#f2f4f7;
  font-weight:900;
  cursor:pointer;
}
.marketplace-search-form input{
  width:100%;
  padding:14px 15px;
  border:1px solid #d0d5dd;
  border-radius:12px;
  font:inherit;
}
.marketplace-search-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:14px;
}
.marketplace-search-actions button{
  border:0;
  border-radius:10px;
  padding:11px 16px;
  font-weight:900;
  cursor:pointer;
}
.marketplace-search-clear{background:#f2f4f7;color:#344054}
.marketplace-search-submit{background:#1669ff;color:#fff}

/* Tile mode */
.marketplace-tile-mode .marketplace-viewer{
  position:relative;
  min-height:100vh;
  height:auto;
  overflow:visible;
  background:#f4f6f8;
  padding:92px 18px 70px;
}
.marketplace-tile-grid{
  width:min(1500px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:18px;
}
.marketplace-tile{
  overflow:hidden;
  background:#fff;
  color:#101828;
  border:1px solid #e4e7ec;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(16,24,40,.08);
}
.marketplace-tile-image{
  display:block;
  aspect-ratio:4/3;
  background:#e4e7ec;
  overflow:hidden;
}
.marketplace-tile-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.marketplace-tile-image-empty{
  height:100%;
  display:grid;
  place-items:center;
  padding:20px;
  text-align:center;
  font-weight:900;
}
.marketplace-tile-body{padding:15px}
.marketplace-tile-category{
  display:block;
  margin-bottom:6px;
  color:#667085;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.marketplace-tile h2{
  margin:0 0 8px;
  font-size:19px;
  line-height:1.2;
}
.marketplace-tile-price{
  margin-bottom:10px;
  font-size:22px;
  font-weight:950;
}
.marketplace-tile-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  min-height:34px;
  color:#667085;
  font-size:12px;
}
.marketplace-tile-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:14px;
}
.marketplace-tile-actions a,
.marketplace-tile-actions button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border:0;
  border-radius:10px;
  font:inherit;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
}
.marketplace-tile-view{background:#101828;color:#fff}
.marketplace-tile-interest{background:#1669ff;color:#fff}
.marketplace-tile-empty{
  width:min(900px,calc(100% - 32px));
  margin:120px auto;
  padding:40px;
  text-align:center;
  background:#fff;
  color:#101828;
  border:1px solid #e4e7ec;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(16,24,40,.08);
}
.marketplace-tile-empty strong{
  color:#101828;
  font-size:18px;
}

/* Keep the interest overlay usable when launched from a tile. */
.marketplace-tile .marketplace-interest-panel{
  position:fixed;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  z-index:10000;
  width:min(520px,calc(100% - 32px));
  max-height:80vh;
  overflow:auto;
}

@media(max-width:700px){
.marketplace-tile-mode .marketplace-viewer{
    padding:78px 12px 84px;
  }
  .marketplace-tile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .marketplace-tile-body{padding:11px}
  .marketplace-tile h2{font-size:15px}
  .marketplace-tile-price{font-size:18px}
  .marketplace-tile-actions{
    grid-template-columns:1fr;
  }
}


/* Marketplace overflow menu - v2.8 */
.marketplace-more-button{
  position:fixed;
  top:88px;
  right:18px;
  z-index:1300;
  width:44px;
  height:44px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:5px;
  background:rgba(7,17,31,.9);
  color:#fff;
  font-size:22px;
  line-height:1;
  font-weight:900;
  letter-spacing:0;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,.22);
  backdrop-filter:blur(8px);
}
.marketplace-more-menu{
  position:fixed;
  top:140px;
  right:18px;
  z-index:1301;
  min-width:190px;
  padding:8px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:5px;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.22);
}
.marketplace-more-menu[hidden]{display:none!important}
.marketplace-more-menu button{
  width:100%;
  display:block;
  padding:11px 12px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#101828;
  text-align:left;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.marketplace-more-menu button:hover,
.marketplace-more-menu button:focus{
  background:#f2f4f7;
  outline:none;
}

@media(max-width:700px){
  .marketplace-more-button{
    top:calc(var(--mp-nav-height) + 10px);
    right:12px;
    bottom:auto;
  }

  .marketplace-more-menu{
    top:calc(var(--mp-nav-height) + 60px);
    right:12px;
    bottom:auto;
    max-height:calc(100vh - var(--mp-nav-height) - 78px);
    overflow-y:auto;
  }
}

.marketplace-more-menu .marketplace-menu-link{
  width:100%;
  display:block;
  padding:11px 12px;
  border-radius:5px;
  background:transparent;
  color:#101828;
  text-align:left;
  font:inherit;
  font-weight:800;
  text-decoration:none;
}
.marketplace-more-menu .marketplace-menu-link:hover,
.marketplace-more-menu .marketplace-menu-link:focus{
  background:#f2f4f7;
  outline:none;
}

.marketplace-menu-separator{
  height:1px;
  margin:7px 4px;
  background:#e4e7ec;
}


/* Public Marketplace access - v3.2 */
.marketplace-public-note{
  margin-top:12px;
  max-width:560px;
  color:rgba(255,255,255,.88);
  font-size:14px;
  line-height:1.45;
}
.marketplace-join-action,
.marketplace-learn-action{
  text-decoration:none;
}
.marketplace-learn-action{
  background:rgba(7,17,31,.72);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}
.marketplace-tile-actions a.marketplace-tile-interest{
  background:#1669ff;
  color:#fff;
}
body.is-public .marketplace-meta .marketplace-distance{
  display:none;
}


.marketplace-like-action .icon{font-size:24px}
.marketplace-like-action.is-liked{
    background:rgba(255,255,255,.96);
    color:#b42318;
    border-color:rgba(255,255,255,.96);
}
.marketplace-like-action.is-liked .icon{color:#b42318}
.marketplace-tile-like{
    border:1px solid #d0d5dd;
    background:#fff;
    color:#344054;
    border-radius:7px;
    padding:8px 10px;
    font-weight:800;
    cursor:pointer;
}
.marketplace-tile-like.is-liked{
    color:#b42318;
    border-color:#fda29b;
    background:#fff5f5;
}
.marketplace-tile-like:disabled,
.marketplace-like-action:disabled{opacity:.55;cursor:wait}


.marketplace-category-row,
.marketplace-tile-category-row{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.marketplace-status-badge{
    display:inline-flex;
    align-items:center;
    padding:4px 7px;
    border-radius:5px;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.35);
    color:#fff;
    font-size:11px;
    font-weight:900;
    line-height:1;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.marketplace-status-badge.status-sold{
    background:rgba(17,24,39,.82);
}
.marketplace-status-badge.status-removed{
    background:rgba(180,35,24,.88);
}
.marketplace-status-badge.status-paused{
    background:rgba(71,84,103,.88);
}
.marketplace-tile .marketplace-status-badge{
    background:#f2f4f7;
    border-color:#d0d5dd;
    color:#475467;
}
.marketplace-tile .marketplace-status-badge.status-sold{
    background:#eaecf0;
    color:#101828;
}
.marketplace-tile .marketplace-status-badge.status-removed{
    background:#fee4e2;
    color:#b42318;
    border-color:#fecdca;
}
.marketplace-unavailable-action,
.marketplace-tile-unavailable{
    cursor:default;
    opacity:.82;
}


/* v3.7 mobile action rail - Like + Interested remain bottom aligned */
@media(max-width:760px){
    .marketplace-actions{
        top:auto !important;
        right:12px !important;
        bottom:20px !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:8px !important;
        overflow:visible !important;
        max-height:none !important;
    }

    .marketplace-like-action,
    .marketplace-interest-action{
        display:block !important;
        visibility:visible !important;
        flex:0 0 auto !important;
    }

    .marketplace-interest-action{
        width:78px !important;
        min-height:58px !important;
    }
}

@media(max-width:460px){
    .marketplace-actions{
        right:9px !important;
        bottom:14px !important;
        gap:7px !important;
    }

    .marketplace-interest-action{
        width:70px !important;
        min-height:54px !important;
    }
}


/* v3.7.1 - Interest form must sit above the feed on mobile. */
@media(max-width:760px){
    .marketplace-slide .marketplace-interest-panel{
    position:fixed;
    z-index:12000;

    top:50%;
    left:50%;
    right:auto;
    bottom:auto;

    transform:translate(-50%,-50%);

    width:min(430px,calc(100vw - 28px));
    max-height:calc(100dvh - 40px);
    overflow-y:auto;

    margin:0;
    border-radius:14px;
    padding:16px;
}

    .marketplace-interest-panel textarea{
        min-height:110px;
        resize:vertical;
    }

    .marketplace-interest-buttons{
        position:sticky;
        bottom:0;
        padding-top:8px;
        background:rgba(8,14,24,.96);
    }
}


/* v3.7.3 - Public Marketplace CTA: right-side stacked */
.marketplace-public-actions{
    left:auto;
    right:16px;
    bottom:24px;
    transform:none;
    width:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-end;
    gap:6px;
    padding:6px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:14px;
    background:rgba(7,17,31,.52);
    box-shadow:0 12px 32px rgba(0,0,0,.22);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}

.marketplace-public-actions .marketplace-action{
    width:118px;
    min-height:0;
    margin:0;
    border-radius:10px;
    padding:11px 12px;
    font-size:12px;
    line-height:1.1;
    text-align:center;
    white-space:nowrap;
    box-shadow:none;
    backdrop-filter:none;
}

.marketplace-public-actions .marketplace-join-action{
    background:#fff;
    border-color:#fff;
    color:#101828;
    font-weight:900;
    letter-spacing:-.01em;
}

.marketplace-public-actions .marketplace-join-action:hover{
    background:#f8fafc;
    filter:none;
}

.marketplace-public-actions .marketplace-learn-action{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.08);
    color:rgba(255,255,255,.82);
    font-weight:800;
}

.marketplace-public-actions .marketplace-learn-action:hover{
    color:#fff;
    background:rgba(255,255,255,.10);
    filter:none;
}

@media(max-width:760px){
    .marketplace-actions.marketplace-public-actions{
        top:auto !important;
        left:auto !important;
        right:10px !important;
        bottom:16px !important;
        transform:none !important;
        width:auto !important;
        max-width:none !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        justify-content:flex-end !important;
        gap:5px !important;
        padding:5px !important;
        overflow:visible !important;
    }

    .marketplace-public-actions .marketplace-action{
        width:108px !important;
        min-height:0 !important;
        padding:10px 10px !important;
        font-size:11px !important;
    }
}

@media(max-width:420px){
    .marketplace-actions.marketplace-public-actions{
        right:8px !important;
        bottom:12px !important;
    }

    .marketplace-public-actions .marketplace-action{
        width:100px !important;
        padding:9px 8px !important;
        font-size:10.5px !important;
    }
}


/* v3.7.4 - Signed-in Marketplace action pill panel */
.marketplace-actions:not(.marketplace-public-actions){
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-end;
    gap:6px;
    padding:6px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:14px;
    background:rgba(7,17,31,.52);
    box-shadow:0 12px 32px rgba(0,0,0,.22);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-action{
    margin:0;
    box-shadow:none;
    backdrop-filter:none;
    border-radius:10px;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.08);
    color:rgba(255,255,255,.88);
    font-weight:800;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
    filter:none;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action.is-liked{
    background:#fff;
    border-color:#fff;
    color:#b42318;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action.is-liked .icon{
    color:#b42318;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-interest-action{
    background:#fff;
    border-color:#fff;
    color:#101828;
    font-weight:900;
    letter-spacing:-.01em;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-interest-action:hover{
    background:#f8fafc;
    color:#101828;
    filter:none;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-unavailable-action{
    background:rgba(255,255,255,.06);
    border-color:rgba(255,255,255,.08);
    color:rgba(255,255,255,.72);
}

@media(max-width:760px){
    .marketplace-actions:not(.marketplace-public-actions){
        top:auto !important;
        right:10px !important;
        bottom:16px !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        justify-content:flex-end !important;
        gap:5px !important;
        padding:5px !important;
        max-height:none !important;
        overflow:visible !important;
    }

    .marketplace-actions:not(.marketplace-public-actions) .marketplace-action{
        width:108px !important;
        min-height:0 !important;
        padding:10px 10px !important;
        font-size:11px !important;
    }
}

@media(max-width:420px){
    .marketplace-actions:not(.marketplace-public-actions){
        right:8px !important;
        bottom:12px !important;
    }

    .marketplace-actions:not(.marketplace-public-actions) .marketplace-action{
        width:100px !important;
        padding:9px 8px !important;
        font-size:10.5px !important;
    }
}


/* v3.7.5 - compact Like / Interested pills */
.marketplace-actions:not(.marketplace-public-actions){
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    gap:7px;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-action{
    width:auto;
    min-width:104px;
    min-height:0;
    border-radius:999px;
    padding:10px 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    line-height:1;
    font-size:12px;
    font-weight:850;
    white-space:nowrap;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action{
    background:rgba(7,17,31,.48);
    border:1px solid rgba(255,255,255,.20);
    color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.18);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action .icon{
    font-size:17px;
    line-height:1;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-like-action.is-liked{
    background:#fff;
    border-color:#fff;
    color:#b42318;
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-interest-action{
    background:#1677ff;
    border:1px solid #1677ff;
    color:#fff;
    box-shadow:0 8px 24px rgba(22,119,255,.24);
}

.marketplace-actions:not(.marketplace-public-actions) .marketplace-interest-action:hover{
    background:#0f67df;
    border-color:#0f67df;
    color:#fff;
}

.marketplace-interest-action .interest-arrow{
    font-weight:900;
    font-size:14px;
    line-height:1;
}

@media(max-width:760px){
    .marketplace-actions:not(.marketplace-public-actions){
        right:10px !important;
        bottom:16px !important;
        gap:6px !important;
        padding:0 !important;
    }

    .marketplace-actions:not(.marketplace-public-actions) .marketplace-action{
        width:auto !important;
        min-width:96px !important;
        padding:9px 12px !important;
        font-size:11px !important;
    }
}

@media(max-width:420px){
    .marketplace-actions:not(.marketplace-public-actions){
        right:8px !important;
        bottom:12px !important;
    }

    .marketplace-actions:not(.marketplace-public-actions) .marketplace-action{
        min-width:90px !important;
        padding:8px 10px !important;
        font-size:10.5px !important;
    }
}


/* v3.8 - Voice to text */
.marketplace-voice-wrap{
    position:relative;
}

.marketplace-voice-button{
    width:38px;
    height:38px;
    min-width:38px;
    border:1px solid #d0d5dd;
    border-radius:999px;
    background:#fff;
    color:#344054;
    display:inline-grid;
    place-items:center;
    cursor:pointer;
    font-size:17px;
    line-height:1;
    box-shadow:0 1px 2px rgba(16,24,40,.06);
}

.marketplace-voice-button:hover{
    background:#f8fafc;
    color:#101828;
}

.marketplace-voice-button.is-listening{
    background:#1677ff;
    border-color:#1677ff;
    color:#fff;
    box-shadow:0 0 0 4px rgba(22,119,255,.14);
}

.marketplace-field-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:6px;
}

.marketplace-field-head label{
    margin:0;
}

.marketplace-interest-message-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:6px;
}

.marketplace-interest-panel .marketplace-voice-button{
    width:36px;
    height:36px;
    min-width:36px;
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.18);
    color:#fff;
    box-shadow:none;
}

.marketplace-interest-panel .marketplace-voice-button.is-listening{
    background:#1677ff;
    border-color:#1677ff;
}

/* Mixed Marketplace / public Inventory results */
.marketplace-source-label{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(8,18,32,.38);color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;backdrop-filter:blur(8px)}
.marketplace-tile-category-row .marketplace-source-label{border-color:#d0d5dd;background:#f2f4f7;color:#344054;backdrop-filter:none}


.marketplace-search-state{
    position:fixed;z-index:1200;top:calc(var(--mp-nav-height) + 14px);left:18px;
    display:inline-flex;align-items:center;gap:7px;max-width:min(70vw,520px);
    border:1px solid rgba(255,255,255,.22);border-radius:999px;
    background:rgba(7,17,31,.82);color:#fff;padding:9px 13px;
    backdrop-filter:blur(10px);font:800 13px/1.1 inherit;cursor:pointer;
    box-shadow:0 8px 24px rgba(0,0,0,.24)
}
.marketplace-search-state span{color:rgba(255,255,255,.7);font-weight:700}
.marketplace-search-state b{font-size:18px;line-height:1;margin-left:2px}
@media(max-width:700px){.marketplace-search-state{top:calc(var(--mp-nav-height) + 10px);left:10px;max-width:calc(100vw - 70px)}}
