/*
* Balanced
* Widget Core CSS
* Version 4.0
* Last updated 9/4/25
*
* Tidied/condensed: 2026-03-05
*/

/* ==========================================================================
   Widget foundations
   ========================================================================== */

/* required file for gridstack to work */
@import "./gridstack.css";

/* Demo sidebar (keep if you still use the palette-as-sidebar pattern) */
.sidebar {
  background: rgb(215, 243, 215);
  padding: 25px 0;
  height: 100px;
  text-align: center;
}

.sidebar > .grid-stack-item,
.sidebar-item {
  width: 100px;
  height: 50px;
  border: 2px dashed green;
  text-align: center;
  line-height: 35px;
  background: rgb(192, 231, 192);
  cursor: default;
  display: inline-block;
}

/* GridStack host */
.grid-stack {
  margin: 0 -10px;
}

.grid-stack.grid-stack-static {
  background: #eee;
}

/* Base card chrome (applies to widgets + sidebar items) */
.sidebar > .grid-stack-item,
.grid-stack-item-content {
  padding: 25px;
  border-radius: 25px;
  background-color: #0c2a4d;
  background-image: linear-gradient(
    171deg,
    rgba(44, 169, 183, 0.37) 0%,
    rgba(44, 169, 183, 0) 50%
  );
  background-size: 150%;
}

/* (Legacy) header used by some older cards */
.card-header {
  margin: 0;
  cursor: grab;
  min-height: 25px;
  background-color: #16af91;
}

.card-header:hover {
  background-color: #149b80;
}

.grid-stack-dragging {
  cursor: grabbing;
}

.ui-draggable-disabled.ui-resizable-disabled > .grid-stack-item-content {
  background-color: #777;
}

/* Debug dimensions overlay */
.grid-stack.show-dimensions .grid-stack-item:after {
  content: "1x1";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px;
  color: black;
  background-color: white;
  pointer-events: none; /* to not interfere with dragging the item */
}

.grid-stack.show-dimensions .grid-stack-item[gs-h]::after {
  content: "1x" attr(gs-h);
}

.grid-stack.show-dimensions .grid-stack-item[gs-w]::after {
  content: attr(gs-w) "x1";
}

.grid-stack.show-dimensions .grid-stack-item[gs-h][gs-w]::after {
  content: attr(gs-w) "x" attr(gs-h);
}

/* External corner stroke */
.grid-stack-item-content::after {
  content: "";
  position: absolute;
  bottom: -10px; /* how far outside the card */
  right: -10px;
  width: 50px;
  height: 50px;
  border-radius: 0 0 30px 0; /* makes it a quarter of a circle */
  border-style: solid;
  border-color: transparent #175672 #175672 transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.grid-stack-item-content.eth::after {
  border-color: transparent #5873d0 #4f68cb transparent;
}

.grid-stack-item-content.sol::after {
  border-color: transparent #6c32a4 #6c32a4 transparent;
}

.grid-stack-item-content.sui::after {
  border-color: transparent #63b3ff #63b3ff transparent;
}

.ui-resizable-resizing .grid-stack-item-content::after,
.grid-stack-item-content.resize-active::after {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.ui-resizable-handle {
  opacity: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Simple slide‑in when a widget is created via Add / Duplicate */
.grid-stack-item-content.bal-widget--enter {
  animation: bal-widget-enter 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bal-widget-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Simple fade+shrink when a widget is removed */
.grid-stack-item-content.bal-widget--exit {
  animation: bal-widget-exit 180ms ease-out forwards;
}

@keyframes bal-widget-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(4px) scale(0.97);
  }
}

/* ==========================================================================
   Widget header menu ("…")
   ========================================================================== */

.widget-header .widget-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.widget-menu-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 45px;
  height: 25px;
  padding: 0;
  border-radius: 999px;
  border: none;
  background: rgba(8, 33, 65, 0.8);
  cursor: pointer;
}

.widget-menu-trigger .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.widget-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.15);
}

.widget-menu-trigger:focus-visible {
  outline: 2px solid #2ca9b7;
  outline-offset: 2px;
}

/* Dropdown panel */
.widget-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 120px;
  padding: 10px 0;
  border-radius: 16px;
  background: #0c2a4d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(1, 0, 42, 0.55);
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 30;
}

.widget-menu.widget-menu--open .widget-menu-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Menu items */
.widget-menu-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 15px 7px 40px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  font-family: "tex-gyre-adventor-regular";
}

.widget-menu-item::before {
  content: "";
  display: block;
  height: 15px;
  width: 15px;
  background-image: url(../img/logo/default.png);
  background-size: contain;
  position: absolute;
  left: 15px;
  top: 8px;
}

.widget-menu-item.widget-menu-clone::before {
  background-image: url(../img/icon/copy-white.svg);
}

.widget-menu-item.widget-menu-remove::before {
  background-image: url(../img/icon/trash-white.svg);
}

.widget-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Hide menu in widget catalogue previews */
.wc-card .widget-header .widget-menu {
  display: none;
}

/* ==========================================================================
   Common toggles
   ========================================================================== */

ul.toggle li {
  background-color: #134563;
  background-image: linear-gradient(
    0deg,
    rgba(30, 131, 143, 0.35) 0%,
    rgba(54, 203, 220, 0.35) 100%
  );
  background-size: 150%;
  box-shadow: 0px 10px 10px 0px rgba(1, 0, 42, 0.01);
  transition: background-image 0.3s ease;
}

ul.toggle li.active,
ul.toggle li:hover {
  background-image: linear-gradient(
    0deg,
    rgba(30, 131, 143, 1) 0%,
    rgba(54, 203, 220, 1) 100%
  );
  box-shadow: 0px 10px 10px 0px rgba(1, 0, 42, 0.1);
  transition: background-image 0.2s ease;
}

/* ==========================================================================
   Widget brands
   ========================================================================== */

/* Fallback theme variables (unbranded widgets) */
.grid-stack-item-content {
  --apy-chart-top: rgba(44, 169, 183, 1);
  --apy-chart-bottom: rgba(44, 169, 183, 0.35);
  --apy-chart-line: rgba(64, 221, 238, 0.75);
  --apy-chart-label-bg: rgba(44, 169, 183, 1);
  --apy-chart-label-text: #d1d4dc;

  --apy-chart-top-neg: rgba(255, 123, 123, 0.35);
  --apy-chart-bottom-neg: rgba(255, 123, 123, 0.15);
  --apy-chart-line-neg: rgba(255, 123, 123, 0.95);
}

/* --------------------------------------------------------------------------
   AVAX
   -------------------------------------------------------------------------- */

.grid-stack-item-content.avax {
  background-color: #dd4144;
  background-image: url(../img/feature/avax-background.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;

  --apy-chart-top: rgba(255, 255, 255, 0.35);
  --apy-chart-bottom: rgba(255, 255, 255, 0.15);
  --apy-chart-line: rgba(255, 255, 255, 0.9);
  --apy-chart-label-bg: rgba(255, 255, 255, 0.85);
  --apy-chart-label-text: #ffffff;
}
.grid-stack-item-content.avax .widget-menu-trigger {
	background: rgb(238, 91, 93);
}
.grid-stack-item-content.avax .widget-menu-dropdown {
	background: rgb(214, 76, 78);
}
.grid-stack-item-content.avax .button {
	background: linear-gradient(0deg, rgb(212, 83, 86) 0%, rgb(253, 119, 121) 100%);
	border-top: 1px solid #ffafaf;
}
.grid-stack-item-content.avax ul.toggle li {
	background: linear-gradient(0deg, rgba(212, 83, 86, 0.25) 0%, rgba(253, 119, 121, 0.25) 100%);
}
.grid-stack-item-content.avax ul.toggle li.active {
	background: linear-gradient(0deg, rgb(212, 83, 86) 0%, rgb(253, 119, 121) 100%);
}
.grid-stack-item-content.avax .widget-asset-price .dropdown-content {
	background:
	linear-gradient(180deg, rgba(242, 129, 129, 0.37) 0%, rgba(188, 45, 45, 0) 50%), #e43f41;
	border: 2px solid #f98888;
}
.grid-stack-item-content.avax .widget-asset-price .dropdown-content .list-scrollable {
	background-image: none;
	background-color: #ab3b3d;
	box-shadow: inset 0px 3px 25px 0px rgba(12, 42, 77, 0.15);
}
#widgets .grid-stack-item-content.avax .widget-asset-price .search.new {
	background-image: url("../img/icon/search1.svg"), linear-gradient(180deg, rgb(171, 59, 61) 0%, rgb(171, 59, 61) 100%) !important;
	box-shadow: inset 0px 3px 25px 0px rgba(12, 42, 77, 0.15);
	color: #ffffff;
}

.grid-stack-item-content.avax .input-asset .asset,
.grid-stack-item-content.avax .input-asset input[type="text"] {
  border: none;
  box-shadow: none;
  color: #c73639;
  background-color: #ffd3d4;
}

.grid-stack-item-content.avax .stake-actions-container,
.grid-stack-item-content.avax .widget-liquid-staking .dropdown-content {
  background-image: none;
  background-color: #de4144;
  border: 1px solid rgb(239, 94, 97);
  box-shadow: 17.678px 17.678px 90px 0px rgba(1, 0, 42, 0.25);
}

/* Placeholder text colour */
.grid-stack-item-content.avax ::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.grid-stack-item-content.avax :-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.grid-stack-item-content.avax ::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Asset input arrow */
.grid-stack-item-content.avax .input-asset .asset::after {
  content: url(../img/icon/arrow-down-avax.svg);
}

/* --------------------------------------------------------------------------
   ETH
   -------------------------------------------------------------------------- */

.grid-stack-item-content.eth,
.widget-preview-shell .grid-stack-item-content.eth {
  background-image: url("../img/feature/eth-background.png"),
    linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
  background-blend-mode: soft-light, normal;
  background-size: 60%, cover;
  background-position: 135% center, center;
  background-repeat: no-repeat, no-repeat;

  --apy-chart-top: rgba(255, 255, 255, 0.35);
  --apy-chart-bottom: rgba(255, 255, 255, 0.15);
  --apy-chart-line: rgba(255, 255, 255, 0.9);
  --apy-chart-label-bg: rgba(255, 255, 255, 0.85);
  --apy-chart-label-text: #ffffff;
}

.grid-stack-item-content.eth {
  --apy-chart-border: rgba(255, 255, 255, 0.25);
  --apy-chart-text: rgba(255, 255, 255, 0.9);
  --apy-chart-text-candle: rgba(255, 255, 255, 0.9);
  --trade-candle-up: rgba(255, 255, 255, 0.9);
  --trade-candle-down: rgba(255, 123, 123, 0.95);
  --apy-chart-volume: rgba(255, 255, 255, 0.35);
}

.grid-stack-item-content.eth ul.toggle li {
  background: linear-gradient(180deg, rgb(158, 178, 255) 0%, rgb(154, 168, 216) 100%);
}

.grid-stack-item-content.eth ul.toggle li.active,
.grid-stack-item-content.eth ul.toggle li:hover {
  background: linear-gradient(180deg, rgb(158, 178, 255) 0%, rgb(110, 136, 231) 100%);
}

.grid-stack-item-content.eth .button {
  background: linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(92, 118, 215) 100%);
  border-top: 1px solid #9baffd;
}

.grid-stack-item-content.eth .stake-actions-container {
  background-image: none;
  border: none;
  box-shadow: none;
}

.grid-stack-item-content.eth .stake-actions-container,
.grid-stack-item-content.eth .stake-chart-metadata,
.grid-stack-item-content.eth .widget-liquid-staking .lsd-chart-card,
.grid-stack-item-content.eth .widget-asset-price .price-chart-metadata {
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
  background-color: rgba(255, 255, 255, 0.05);
  transition: border 0.3s ease;
}

.widget-liquid-staking
  .input-asset
  .stake-asset.multi-chain.eth
  .variable-stake-asset::after {
  background-color: #5368b7;
}

.grid-stack-item-content.eth .list .list-item:hover {
  color: rgba(255, 255, 255, 0.5);
}

.grid-stack-item-content.eth .input-asset .asset,
.grid-stack-item-content.eth .input-asset input[type="text"] {
  border: 2px solid #5368b7;
  background-color: #5368b7;
  box-shadow: none;
  color: #ffffff;
}

.grid-stack-item-content.eth .widget-menu-trigger {
  background: rgba(83, 104, 183, 0.5);
  border: none;
  box-shadow: none;
}

.grid-stack-item-content.eth .widget-menu-dropdown {
  background: rgb(111, 135, 229);
}

.grid-stack-item-content.eth .dropdown-content {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, rgb(123, 147, 240) 0%, rgb(78, 105, 207) 100%);
}

#widgets .grid-stack-item-content.eth .dropdown-content input.search.new {
  border: none;
  background-color: #5368b7;
  box-shadow: none;
  background-image: url("../img/icon/search.svg"),
    linear-gradient(180deg, #5368b7 0%, #5368b7 100%) !important;
}

.grid-stack-item-content.eth .list .list-header {
  color: #ffffff;
}

.grid-stack-item-content.eth .list .list-item.secondary {
  background-color: #4e69ce;
}

.grid-stack-item-content.eth .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
  border-top-color: #4e69ce;
}

.grid-stack-item-content.eth .dropdown-content::after {
  border-top-color: #7a92ef;
}

.grid-stack-item-content.eth .lwc-tooltip {
  background-color: rgba(111, 135, 229, 0.9);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgb(255, 255, 255, 0) 100%);
  border-radius: 10px;
  color: #fff;
  box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.grid-stack-item-content.eth .blockchain-filter-button {
  background-color: #47a9f0;
}

.grid-stack-item-content.eth .stake-view-toggle,
.grid-stack-item-content.eth .widget-liquid-staking.ls-view-data .stake-view-toggle {
  background-color: #647dd6;
}

.grid-stack-item-content.eth .ls-connect-inline {
  color: #d3dcff;
}

.grid-stack-item-content.eth .input-asset .asset::after {
  content: url(../img/icon/arrow-down-eth.svg);
}

.grid-stack-item-content.eth .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background: rgb(111, 135, 229);
}
.grid-stack-item-content.eth .instant-amounts li {
	background: #383533;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.grid-stack-item-content.eth .instant-amounts li:hover {
	border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   S
   -------------------------------------------------------------------------- */

.grid-stack-item-content.s {
  background-image: url("../img/feature/s-background.svg"), url("../img/feature/s-background-1.png");
  background-blend-mode: soft-light, normal;
  background-size: 100%, cover;
  background-position: 150px center, center;
  background-repeat: no-repeat, no-repeat;

  --apy-chart-top: rgba(255, 255, 255, 0.35);
  --apy-chart-bottom: rgba(255, 255, 255, 0.15);
  --apy-chart-line: rgba(255, 255, 255, 0.9);
  --apy-chart-label-bg: rgba(255, 255, 255, 0.85);
  --apy-chart-label-text: #ffffff;
}

.grid-stack-item-content.s .stake-actions-container {
  background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
  border: 1px solid rgba(67, 67, 67, 0.75);
}

.grid-stack-item-content.s .input-asset .asset,
.grid-stack-item-content.s .input-asset input[type="text"] {
  border: none;
  box-shadow: none;
  color: #ffffff;
  background-color: #131315;
}

.grid-stack-item-content.s a {
  color: hsl(33, 100%, 92%);
}

.grid-stack-item-content.s .apw-asset-trigger {
  color: #ffffff;
}

.grid-stack-item-content.s .widget-menu-trigger {
  background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.9) 0%, rgba(26, 26, 28, 0.9) 100%);
}

.grid-stack-item-content.s .button {
	background: linear-gradient(90deg, #214e81, #506179, #ed5409, #ffcb67, #ffcb67, #ed5409, #506179, #214e81);
	border-top: none;
	background-size: 200%;
}

/*
.grid-stack-item-content.s .button {
	background: transparent;
	border-top: none;
	background-size: initial;
}
.grid-stack-item-content.s .button {
	position: relative;
	display: inline-block;
	font-size: 12px;
	background: red;
	border-radius: 8px;
	padding: 3px 10px;
	z-index: 3;
}
.grid-stack-item-content.s .button::before,
.grid-stack-item-content.s .button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    background: linear-gradient(90deg,#2ca9b7,#144a68,#0c2a4d,#01002A,#2ca9b7,#144a68,#0c2a4d,#01002A,#2ca9b7);
    background-size: 400%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    border-radius: 10px;
    opacity: 1;
    animation: animate 60s linear infinite;
}
.grid-stack-item-content.s .button::after {
    filter: blur(10px);
}
@keyframes animate {
    0%
    {
        background-position: 0 0;
    }
    50%
    {
        background-position: 300% 0;
    }
    100%
    {
        background-position: 0 0;
    }
}
*/

.grid-stack-item-content.s .dropdown::after {
  content: url(../img/icon/arrow-down-s.svg);
}

.grid-stack-item-content.s .input-asset .asset::after {
  content: url(../img/icon/arrow-down-s.svg);
}

.grid-stack-item-content.s::after {
  border-color: transparent #453d31 #453d31 transparent;
}

.grid-stack-item-content.s .stake-actions-container,
.grid-stack-item-content.s .stake-chart-metadata,
.grid-stack-item-content.s .widget-liquid-staking .lsd-chart-card,
.grid-stack-item-content.s .widget-asset-price .price-chart-metadata {
	border: 1px solid rgba(67, 67, 67, 0.75);
	background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.s .widget-menu-dropdown {
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
}

.grid-stack-item-content.s .lwc-tooltip {
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.grid-stack-item-content.s .dropdown-content {
	border: 1px solid rgba(67, 67, 67, 0.75);
	background-image: linear-gradient(135deg, rgb(25, 25, 29) 0%, rgb(28, 25, 27) 100%);
}

.grid-stack-item-content.s .list .list-item.secondary {
  background-color: #28282d;
}

.grid-stack-item-content.s .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
  border-top-color: #28282d;
}

.grid-stack-item-content.s .dropdown-content::after {
  border-top-color: #28282d;
}

#widgets .grid-stack-item-content.s .dropdown-content input.search.new {
  border: none;
  background-color: #131315;
  box-shadow: none;
  background-image: url("../img/icon/search.svg"),
    linear-gradient(180deg, #131315 0%, #131315 100%) !important;
}
.grid-stack-item-content.s .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
}
.grid-stack-item-content.s .instant-amounts li {
	background: #383533;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
.grid-stack-item-content.s .instant-amounts li:hover {
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.grid-stack-item-content.s .widget-menu-dropdown {
	background-image: linear-gradient(135deg, rgba(26, 26, 28, 0.75) 0%, rgba(26, 26, 28, 0.75) 100%);
}

/* --------------------------------------------------------------------------
   SOL
   -------------------------------------------------------------------------- */

.grid-stack-item-content.sol {
  background-image: url("../img/feature/sol-background.svg"), url("../img/feature/sol-background.png");
  background-blend-mode: soft-light, normal;
  background-size: 100%, cover;
  background-position: 150px center, center;
  background-repeat: no-repeat, no-repeat;

  --apy-chart-top: rgba(255, 255, 255, 0.35);
  --apy-chart-bottom: rgba(255, 255, 255, 0.15);
  --apy-chart-line: rgba(255, 255, 255, 0.9);
  --apy-chart-label-bg: rgba(255, 255, 255, 0.85);
  --apy-chart-label-text: #ffffff;
}

.grid-stack-item-content.sol .button {
  background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
  border-top: 1px solid #d2bdec;
}

.grid-stack-item-content.sol .stake-actions-container {
  background-image: none;
  border: none;
  box-shadow: none;
}

.grid-stack-item-content.sol .stake-actions-container,
.grid-stack-item-content.sol .stake-chart-metadata,
.grid-stack-item-content.sol .widget-liquid-staking .lsd-chart-card {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(72, 18, 119);
	background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.sol .input-asset .asset,
.grid-stack-item-content.sol .input-asset input[type="text"] {
	border: 2px solid #452f6c;
	background-color: #452f6c;
	box-shadow: none;
	color: #ffffff;
}

.grid-stack-item-content.sol .lwc-tooltip {
	background: rgba(117, 71, 159, 0.95);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgb(255, 255, 255, 0) 100%);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.grid-stack-item-content.sol .widget-menu-trigger {
	background: rgb(117, 71, 159);
	border: none;
	box-shadow: none;
}

.grid-stack-item-content.sol .widget-menu-dropdown {
	background: rgb(117, 71, 159);
}

.grid-stack-item-content.sol .dropdown-content {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, rgb(113, 69, 184) 0%, rgb(78, 37, 137) 100%);
}

.grid-stack-item-content.sol .dropdown-content::after {
	border-top-color: #7f55c1;
}

/* (Deduped) final override */
#widgets .grid-stack-item-content.sol .dropdown-content input.search.new {
	border: none;
	background-color: #5368b7;
	box-shadow: none;
	background-image: url("../img/icon/search1.svg"),
	linear-gradient(180deg, #452f6c 0%, #452f6c 100%) !important;
}

.grid-stack-item-content.sol .stake-view-toggle,
.grid-stack-item-content.sol .widget-liquid-staking.ls-view-data .stake-view-toggle {
	background-color: #8647d1;
}

.grid-stack-item-content.sol .list .list-item.secondary {
	background-color: #754bb7;
}

.grid-stack-item-content.sol .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
	border-top-color: #754bb7;
}

.grid-stack-item-content.sol .ls-connect-inline {
	color: #e9d4ff;
}

.grid-stack-item-content.sol .input-asset .asset::after {
	content: url(../img/icon/arrow-down-sol.svg);
}
.grid-stack-item-content.sol .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: linear-gradient(180deg, rgb(113, 69, 184) 0%, rgb(78, 37, 137) 100%);
}
.grid-stack-item-content.sol .instant-amounts li {
	background: linear-gradient(0deg, rgb(109, 62, 149) 0%, rgb(182, 130, 234) 100%);
}

/* --------------------------------------------------------------------------
   SUI
   -------------------------------------------------------------------------- */

.grid-stack-item-content.sui,
.widget-preview-shell .grid-stack-item-content.sui {
  background-image: url("../img/feature/sui-background.svg"),
    linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
  background-blend-mode: soft-light, normal;
  background-size: 70%, cover;
  background-position: 175px center, center;
  background-repeat: no-repeat, no-repeat;

  --apy-chart-top: rgba(255, 255, 255, 0.35);
  --apy-chart-bottom: rgba(255, 255, 255, 0.15);
  --apy-chart-line: rgba(255, 255, 255, 0.9);
  --apy-chart-label-bg: rgba(255, 255, 255, 0.85);
  --apy-chart-label-text: #ffffff;
}

.grid-stack-item-content.sui .button {
  background: linear-gradient(0deg, rgb(90, 180, 240) 0%, rgb(144, 211, 255) 100%);
  border-top: 1px solid #c1f0ff;
}

.grid-stack-item-content.sui .stake-actions-container {
  background-image: none;
  border: none;
  box-shadow: none;
}

.grid-stack-item-content.sui .stake-actions-container,
.grid-stack-item-content.sui .stake-chart-metadata,
.grid-stack-item-content.sui .widget-liquid-staking .lsd-chart-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0px 3px 65px 0px rgba(78, 162, 255, 0.95);
  background-color: rgba(255, 255, 255, 0.05);
}

.grid-stack-item-content.sui .input-asset .asset,
.grid-stack-item-content.sui .input-asset input[type="text"] {
  border: 2px solid #aadcff;
  background-color: #aadcff;
  box-shadow: none;
  color: #ffffff;
  text-shadow: 2px 2px 10px #93c3ea;
}

.grid-stack-item-content.sui .widget-menu-trigger {
  background: rgba(25, 118, 185, 0.25);
  border: none;
  box-shadow: none;
}

.grid-stack-item-content.sui .widget-menu-dropdown {
  background: rgba(109, 185, 240, 0.95);
}

.grid-stack-item-content.sui .dropdown-content {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(0deg, rgb(58, 172, 248) 0%, rgb(111, 188, 240) 100%);
}

#widgets .grid-stack-item-content.sui .dropdown-content input.search.new {
  border: none;
  background-color: #aadcff;
  box-shadow: none;
  background-image: url("../img/icon/search.svg"),
    linear-gradient(180deg, #aadcff 0%, #aadcff 100%) !important;
}

.grid-stack-item-content.sui .list .list-header {
  color: #ffffff;
}

.grid-stack-item-content.sui .list .list-item.secondary {
  background-color: #41a4e5;
}

.grid-stack-item-content.sui .list .list-item.secondary.compact .grid-cell:nth-of-type(1)::after {
  border-top-color: #41a4e5;
}

.grid-stack-item-content.sui .dropdown-content::after {
  border-top-color: #6ebff4;
}

.grid-stack-item-content.sui .lwc-tooltip {
	background: rgba(109, 185, 240, 0.9);
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgb(255, 255, 255, 0) 100%);
	border-radius: 10px;
	color: #fff;
	box-shadow: 7px 7px 25px 0px rgba(1, 0, 42, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.grid-stack-item-content.sui .blockchain-filter-button {
  background-color: #47a9f0;
}

.grid-stack-item-content.sui .stake-view-toggle,
.grid-stack-item-content.sui .widget-liquid-staking.ls-view-data .stake-view-toggle {
  background-color: #47a9f0;
}

.grid-stack-item-content.sui .ls-connect-inline {
  color: #a3eeff;
}

.grid-stack-item-content.sui .input-asset .asset::after {
  content: url(../img/icon/arrow-down-sui.svg);
}

.grid-stack-item-content.sui .instant-amounts {
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0px 3px 65px 0px rgb(63, 99, 185);
	background: rgba(109, 185, 240, 0.95);
}
.grid-stack-item-content.sui .instant-amounts li {
	background: linear-gradient(0deg, rgb(90, 180, 240) 0%, rgb(144, 211, 255) 100%);

}
.grid-stack-item-content.sui .instant-amounts li:hover {

}

/* --------------------------------------------------------------------------
   XLM
   -------------------------------------------------------------------------- */

.grid-stack-item-content.xlm {
  background-image: url("../img/feature/xlm-background.svg"),
    linear-gradient(0deg, rgb(19, 19, 19) 0%, rgb(33, 33, 33) 100%);
  background-blend-mode: soft-light, normal;
  background-size: 70%, cover;
  background-position: 175px center, center;
  background-repeat: no-repeat, no-repeat;

  --apy-chart-top: rgba(255, 255, 255, 0.35);
  --apy-chart-bottom: rgba(255, 255, 255, 0.15);
  --apy-chart-line: rgba(255, 255, 255, 0.9);
  --apy-chart-label-bg: rgba(255, 255, 255, 0.85);
  --apy-chart-label-text: #ffffff;
}

.grid-stack-item-content.xlm .dropdown::after {
  content: url(../img/icon/arrow-down-white.svg);
}

.grid-stack-item-content.xlm .apw-asset-trigger.apw-asset-trigger--header {
  color: #ffffff;
}

.grid-stack-item-content.xlm a {
  color: rgb(253, 218, 36);
}

.grid-stack-item-content.xlm .widget-menu-trigger {
  background: rgb(41, 41, 41);
}

.grid-stack-item-content.xlm ul.toggle li {
  background-color: #134563;
  background-image: linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(41, 41, 41) 100%);
  background-size: 150%;
  box-shadow: 0px 10px 10px 0px rgba(1, 0, 42, 0.01);
  transition: background-image 0.3s ease;
}

.grid-stack-item-content.xlm ul.toggle li.active,
.grid-stack-item-content.xlm ul.toggle li:hover {
  color: rgb(15, 15, 15);
  background-image: linear-gradient(0deg, rgb(253, 218, 36) 0%, rgb(253, 218, 36) 100%);
}

.grid-stack-item-content.xlm .dropdown-content,
.grid-stack-item-content.xlm .widget-menu-dropdown {
  background-image: linear-gradient(0deg, rgb(19, 19, 19) 0%, rgb(33, 33, 33) 100%);
  border-color: rgb(41, 41, 41);
  box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.35);
}

.grid-stack-item-content.xlm .widget-menu-dropdown {
  background-image: linear-gradient(0deg, rgb(24, 24, 24) 0%, rgb(33, 33, 33) 100%);
}

.grid-stack-item-content.xlm .dropdown-content .list-scrollable {
  background-color: rgb(41, 41, 41);
  background-image: linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(41, 41, 41) 100%);
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15) inset;
}

#widgets .grid-stack-item-content.xlm .dropdown-content .search.new {
  background-image: url("../img/icon/search1.svg"),
    linear-gradient(0deg, rgb(41, 41, 41) 0%, rgb(41, 41, 41) 100%) !important;
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15) inset;
}

.grid-stack-item-content.xlm::after {
  border-color: transparent rgb(63, 63, 63) rgb(63, 63, 63) transparent;
}

.grid-stack-item-content.xlm .list .list-item.secondary {
  background-color: #383838;
}

.grid-stack-item-content.xlm
  .list
  .list-item.parent
  + .list-item.secondary
  .grid-cell:nth-of-type(1)::after,
.grid-stack-item-content.xlm
  .list
  .list-item.secondary.compact
  .grid-cell:nth-of-type(1)::after {
  border-top-color: #383838;
}

.grid-stack-item-content.xlm .widget-asset-price .price-chart-metadata {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Widget Manager (Spaces)
   ========================================================================== */

.widget-manager {
  /* original chrome */
  background: linear-gradient(135deg, rgba(32, 121, 143, 1) 0%, rgba(19, 70, 109, 1) 100%);
  border: 1px solid #1d4c75;
  border-radius: 25px;
  margin-bottom: 11px;
  background-color: #0c2a4d;
  background-image: linear-gradient(171deg, rgba(44, 169, 183, 0.37) 0%, rgba(44, 169, 183, 0) 50%);
  background-size: 150%;

  /* layout */
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;

  /* popover previews */
  position: relative;
  overflow: visible;
  z-index: 4;
}

/* Pages strip */
.wm-pages {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

/* Wrapper so we can overlay a real delete button without nesting buttons */
.wm-space-wrap {
  position: relative;
  display: inline-flex;
  z-index: 0;
}

/* “Space” chip button */
.wm-space {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;

  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;

  padding: 8px 12px;
  border-radius: 999px;
}

.wm-space:hover {
  background: rgba(255, 255, 255, 0.07);
}

.wm-space.is-active {
  background: rgba(44, 169, 183, 0.18);
  border-color: rgba(44, 169, 183, 1);
}

/* Label */
.wm-space-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  line-height: 1;
}

/* Thumbnail becomes a popover (removed from layout) */
.wm-space-thumb {
  width: 170px;
  height: 70px;
  border-radius: 10px;
  border: 1px solid rgba(44, 169, 183, 1);
  background: rgb(26, 68, 99);
  box-shadow: 0 12px 30px rgba(1, 0, 42, 0.25);
  overflow: hidden;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 6px;
  gap: 2px;
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-6px) scale(0.96);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 140ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When a real screenshot is available, show it instead of the layout grid */
.wm-space-thumb.has-shot {
  display: block;
  padding: 0;
}

.wm-space-thumb.has-shot .wm-space-thumb-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* or "contain" if you prefer letterboxing */
  border-radius: 10px; /* matches thumb radius */
}

.wm-thumb-item {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}

/* Active thumb outline
.wm-space.is-active .wm-space-thumb {
	outline: 2px solid rgba(44, 169, 183, 0.95);
} */

/* Add (+) preview */
.wm-space--add .wm-space-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
}

/* Keep a visible "+" on the chip */
.wm-space--add .wm-space-name::before {
  content: "+";
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
  line-height: 1;
}

/* Helps the label feel centered when we give it a min-width during rename */
.wm-space-name {
  min-width: 0;
  text-align: center;
}

/* Inline rename: expand the label area in-place */
.wm-space-wrap.is-renaming {
  flex-shrink: 0; /* keep it from being squeezed while editing */
}

.wm-space-wrap.is-renaming .wm-space-name[contenteditable="true"] {
	cursor: text;
	caret-color: #fff;
	min-width: 140px;
	border-radius: 10px;
	outline: none;
	transition: min-width 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wm-space-wrap.is-renaming .wm-space-name[contenteditable="true"] {
    transition: none !important;
  }
}

/* While renaming, keep the thumbnail popover hidden (prevents weird hover/focus effects) */
.wm-space-wrap.is-renaming .wm-space-thumb {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-6px) scale(0.96) !important;
}
.wm-space-wrap.is-renaming .wm-space-edit,
.wm-space-wrap.is-renaming .wm-space-delete {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Show popover preview on hover/focus OR during drop targeting */
.wm-space-wrap:hover .wm-space-thumb,
.wm-space-wrap:focus-within .wm-space-thumb,
.wm-space-wrap.is-drop-target .wm-space-thumb {
	opacity: 1;
	transform: translateX(-50%) translateY(0) scale(1);
	pointer-events: auto;
}

/* Ensure hovered item sits above neighbors */
.wm-space-wrap:hover,
.wm-space-wrap:focus-within,
.wm-space--add:hover,
.wm-space--add:focus-within {
	z-index: 10;
}

/* Drop target highlight */
.wm-space-wrap.is-drop-target .wm-space-thumb,
.wm-space--add.is-drop-target .wm-space-thumb {
  outline: 2px solid rgba(44, 169, 183, 0.95);
  outline-offset: 2px;
}

.wm-space-wrap.is-drop-target .wm-space,
.wm-space--add.is-drop-target {
  background: rgba(44, 169, 183, 0.18);
  border-color: rgba(44, 169, 183, 0.85);
}

.wm-space-wrap.is-dragging {
  opacity: 0.65;
}

/* ==========================================================================
   Widget Manager onboarding (shown before first widget is added)
   ========================================================================== */

.wm-pages--onboarding {
  align-items: center;
}

/* The hint pill that sits where Spaces chips normally appear */
.wm-onboarding {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1;
  position: relative;
  white-space: nowrap;
}

.wm-onboarding__arrow {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
  opacity: 0.95;
}

/* --------------------------------------------------------------------------
   Page delete (hover “×”)
   -------------------------------------------------------------------------- */

.wm-space-delete {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 123, 123, 1);
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  padding-bottom: 3px;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  box-shadow: 0px 20px 25px 0px rgba(1, 0, 42, 0.25);
  transition: opacity 140ms ease, transform 140ms ease, filter 140ms ease;
}

/* Show on hover (and keyboard focus) */
.wm-space-wrap:hover .wm-space-delete,
.wm-space-wrap:focus-within .wm-space-delete,
.wm-space-delete:hover,
.wm-space-delete:focus-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.wm-space-delete:hover {
  filter: brightness(1.05);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wm-space-thumb,
  .wm-space-delete {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Space edit
   -------------------------------------------------------------------------- */

.wm-space-edit {
  position: absolute;
  top: -10px;
  left: -10px;

  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 0;

  background: rgba(44, 169, 183, 1);
  color: #fff;

  display: flex;
  	display: none;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 6;

  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;

  box-shadow: 0px 20px 25px 0px rgba(1, 0, 42, 0.25);
  transition: opacity 140ms ease, transform 140ms ease, filter 140ms ease;
}

.wm-space-edit svg {
  width: 12px;
  height: 12px;
  fill: rgba(255, 255, 255, 0.95);
}

.wm-space-wrap:hover .wm-space-edit,
.wm-space-wrap:focus-within .wm-space-edit,
.wm-space-edit:hover,
.wm-space-edit:focus-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.wm-space-edit:hover {
  filter: brightness(1.05);
}

.wm-space-edit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* ==========================================================================
   Widget catalogue (sheet)
   ========================================================================== */

#widget-catalogue {
  position: fixed;
  inset: 0;
  z-index: 5000;

  /* Keep it in the render tree so transitions can run */
  display: block;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.3s;

  /* JS can override this (SHEET.style.setProperty('--wc-preview-w', '...px')) */
  --wc-preview-w: 380px;
}

#widget-catalogue[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Backdrop */
#widget-catalogue .wc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#widget-catalogue[aria-hidden="false"] .wc__backdrop {
  opacity: 1;
}

/* Panel */
#widget-catalogue .wc__panel {
  position: absolute;
  left: 50%;
  bottom: 0;

  width: min(1280px, 94vw);
  height: min(86vh, 900px);

  transform: translateX(-50%) translateY(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;

  display: flex;
  flex-direction: column;
  overflow: hidden;

  border-radius: 25px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  background-color: #0c2a4d;
  background-image: linear-gradient(171deg, rgba(44, 169, 183, 0.37) 0%, rgba(44, 169, 183, 0) 50%);
  background-size: 150%;

  margin-bottom: 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
}

#widget-catalogue[aria-hidden="false"] .wc__panel {
  transform: translateX(-50%) translateY(0);
}

/* Header */
#widget-catalogue .wc__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;

  padding: 16px 18px;
  z-index: 5;

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.017), 0 6.7px 5.3px rgba(0, 0, 0, 0.024),
    0 12.5px 10px rgba(0, 0, 0, 0.03), 0 22.3px 17.9px rgba(0, 0, 0, 0.036),
    0 41.8px 33.4px rgba(0, 0, 0, 0.043), 0 100px 80px rgba(0, 0, 0, 0.06);
}

#widget-catalogue .wc__search {
  width: 100%;
  padding: 10px 12px;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);

  color: #fff;
  font-family: "tex-gyre-adventor-regular";
  font-weight: normal;
  outline: none;
}

#widget-catalogue .wc__close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Body */
#widget-catalogue .wc__body {
  height: 100%;
  min-height: 0;
  display: grid;
  gap: 0;
  grid-template-columns: 240px minmax(0, 1fr);
}

/* Make sure both columns can scroll correctly */
#widget-catalogue .widget-navigation,
#widget-catalogue .wc__grid {
  min-height: 0;
}

/* Prevent the grid column from forcing overflow (important for CSS grid) */
#widget-catalogue .wc__grid {
  min-width: 0;
}

/* Categories rail */
#widget-catalogue .widget-navigation {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
  padding: 12px 0;
}

#widget-catalogue .widget-navigation .widget-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

#widget-catalogue .widget-categories li {
  padding: 10px 16px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.75);
}

#widget-catalogue .widget-categories li.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #widget-catalogue,
  #widget-catalogue .wc__backdrop,
  #widget-catalogue .wc__panel {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Boutique widget catalogue layout
   -------------------------------------------------------------------------- */

/* Grid becomes a vertical list of rows */
#widget-catalogue .wc__grid {
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 18px 18px 30px;
	overflow: auto;

	/* New styles */
	padding-right: 0;
}

/* One widget per row */
#widget-catalogue .wc-row {
	display: grid;
	grid-template-columns: minmax(240px, 325px) minmax(0, 1fr);
	gap: 25px;
	align-items: center;
	padding: 20px 0 28px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-top: -20px;
	margin-bottom: 0;
}

#widget-catalogue .wc-row:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

#widget-catalogue .wc-row__meta {
  min-width: 0;
}

#widget-catalogue .wc-row__title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.05;
  color: #fff;
}

#widget-catalogue .wc-row__desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  font-size: 14px;
  max-width: 42ch;
}

#widget-catalogue .wc-row__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#widget-catalogue .wc-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

/* Right side: horizontally scrollable rail */
#widget-catalogue .wc-row__rail {
  min-width: 0;
  position: relative;
}

#widget-catalogue .wc-row__previews {
  display: flex;
  gap: 20px;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 10px 54px 16px;
  scroll-padding: 0 54px;

  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);

  min-width: 0;

  /* Disabled (explicitly) */
  scroll-snap-type: none !important;

	/* New styles */
	padding-top: 0;
	padding-bottom: 0;
	border-radius: 0;
	background: none;
	border: none;
}

#widget-catalogue .wc-row__previews::-webkit-scrollbar {
  height: 10px;
}

#widget-catalogue .wc-row__previews::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

#widget-catalogue .wc-row__previews::-webkit-scrollbar-track {
  background: transparent;
}

/* Individual preview cell */
#widget-catalogue .wc-preview {
  position: relative;
  flex: 0 0 auto;
  padding-top: 18px; /* room for the floating + button */
  scroll-snap-align: none !important;
}

/* Scaled frame (layout size) */
#widget-catalogue .wc-preview__frame {
  width: var(--frame-w, 380px);
  height: var(--frame-h, 280px);
  position: relative;
  border-radius: 25px;
}

/* The “real” preview is absolutely positioned and scaled down */
#widget-catalogue .wc-preview__frame .widget-preview-shell.grid-stack {
  margin: 0 !important;
  position: absolute;
  top: 0;
  left: 0;

  width: var(--preview-w, 380px);
  height: var(--preview-h, 280px);

  transform: scale(var(--scale, 1));
  transform-origin: top left;
}

/* Preview host: explicit size from JS:
   style="--preview-w:XXXpx; --preview-h:YYYpx" */
#widget-catalogue .widget-preview-shell.grid-stack {
  margin: 0 !important; /* neutralize .grid-stack { margin: 0 -10px } */
  position: relative;

  width: min(100%, var(--preview-w, var(--wc-preview-w, 380px)));
  height: var(--preview-h, 280px);
}

/* Neutralize GridStack positioning */
#widget-catalogue .widget-preview-shell.grid-stack > .grid-stack-item {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;

  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  margin: 0 !important;
}

/* Make the preview “cell” fill and behave like a real dashboard cell */
#widget-catalogue
  .widget-preview-shell.grid-stack
  > .grid-stack-item
  > .grid-stack-item-content {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;

  box-sizing: border-box;

  /* Keep your widget chrome */
  padding: 25px;
  border-radius: 25px;

  /* Container queries should behave like the dashboard */
  container-type: inline-size;

  /* Avoid accidentally becoming a flex container */
  display: block !important;

  /* Matches the shadow used in previews */
  box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.017), 0 6.7px 5.3px rgba(0, 0, 0, 0.024),
    0 12.5px 10px rgba(0, 0, 0, 0.03), 0 22.3px 17.9px rgba(0, 0, 0, 0.036),
    0 41.8px 33.4px rgba(0, 0, 0, 0.043), 0 100px 80px rgba(0, 0, 0, 0.06);
}

/* Widget shell fills the preview */
#widget-catalogue .widget-preview-shell .bal-widget {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

#widget-catalogue .widget-preview-shell .bal-widget .widget-content {
  min-width: 0;
  min-height: 0;
}

/* Common flex/grid overflow guard (Trade benefits from this) */
#widget-catalogue .widget-preview-shell .grid,
#widget-catalogue .widget-preview-shell .grid-cell {
  min-width: 0;
  min-height: 0;
}

/* Keep the widget menu visible but disable interaction (feels more “real”) */
#widget-catalogue .widget-preview-shell .widget-menu {
  pointer-events: none;
  opacity: 0.7;
}

#widget-catalogue .widget-preview-shell .widget-menu-dropdown {
  display: none !important;
}

/* Size badge */
#widget-catalogue .wc-preview__badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;

  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);

  padding: 5px 9px;
  border-radius: 999px;

  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

/* Floating “+” on hover/focus */
#widget-catalogue .wc-preview__add {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0) scale(0.92);

  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;

  background: rgba(44, 169, 183, 0.95);
  color: #fff;
  font-size: 22px;
  line-height: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 14px 35px rgba(1, 0, 42, 0.35);

  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease, filter 140ms ease;
  z-index: 10;
}

#widget-catalogue .wc-preview:hover .wc-preview__add,
#widget-catalogue .wc-preview:focus-within .wc-preview__add {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

#widget-catalogue .wc-preview__add:hover {
  filter: brightness(1.04);
}

#widget-catalogue .wc-preview__add:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* Rail arrows (prev/next) */
#widget-catalogue .wc-row__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 25;

  backdrop-filter: blur(6px);
  box-shadow: 0 14px 35px rgba(1, 0, 42, 0.35);
}

#widget-catalogue .wc-row__nav--prev {
  left: 12px;
}

#widget-catalogue .wc-row__nav--next {
  right: 12px;
}

#widget-catalogue .wc-row__nav span {
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

#widget-catalogue .wc-row__nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

#widget-catalogue .wc-row__nav:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

/* Responsive: stack meta above rail if panel gets narrow */
@media (max-width: 980px) {
  #widget-catalogue .wc-row {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  #widget-catalogue .wc-row__desc {
    max-width: none;
  }
}

/* ==========================================================================
   Widget defaults
   ========================================================================== */

.grid-stack-item > .grid-stack-item-content {
  container-type: inline-size;
}

.widget-header {
  margin-bottom: 15px;
  z-index: 3;
}

.widget-header > .grid > .grid-cell:last-of-type {
  max-width: 50px;
}

.widget-content {
  margin-bottom: 0;
}

/* ==========================================================================
   Market interest widget styles
   ========================================================================== */

/* Make the widget fill its gridstack cell */
.bal-widget.widget-market-interest {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bal-widget.widget-market-interest .widget-header {
  flex: 0 0 auto;
}

.bal-widget.widget-market-interest .widget-content {
  flex: 1 1 auto;
  min-height: 0;
}

/* Layout: chart row grows; empty state sits below. */
.widget-market-interest .widget-content {
  display: grid;
  grid-template-rows: minmax(50px, 1fr) auto;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

/* Side-by-side row inside the card */
.widget-market-interest .chart-market-interest-container > .grid {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

/* Flex children may shrink */
.widget-market-interest .chart-market-interest-container .grid > .grid-cell {
  min-width: 0;
  min-height: 0;
}

/* The chart element itself stretches */
.widget-market-interest .lwc-chart {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: transparent !important;
}

/* Empty state */
.widget-market-interest .empty-msg {
  color: #9aa4bf;
  margin: 6px 0 0;
  display: none;
}

/* Layout */
.widget-market-interest {
  --bars: 12;
}

.widget-market-interest .chart-market-interest-container {
  position: relative;
  border-radius: 12px;
  padding: 20px;
  min-height: 180px;
  height: 100%;
  overflow: hidden;
  min-width: 0;
}

.widget-market-interest .chart-market-interest-container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: linear-gradient(135deg, rgb(32, 121, 143) 0%, rgb(23, 86, 120) 100%);
  opacity: 0.75;
  transition: opacity 0.3s ease;
  background-size: 100%;
}

.widget-market-interest .chart-market-interest-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid #fff;
  border-radius: 20px;
  box-sizing: border-box;
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

.widget-market-interest .metadata-group {
  flex-direction: column;
}

/* Metadata */
.widget-market-interest .widget-content .chart-market-interest-container .grid > .grid-cell:last-of-type {
  max-width: 200px;
  text-align: center;
}

.widget-market-interest .market-interest-dollar {
  font-size: 30px;
}

.widget-market-interest .asset-box {
  background-color: rgba(12, 42, 77, 0.5);
  border-radius: 10px;
  padding: 10px;
  margin-top: 15px;
}

.widget-market-interest .market-amount-dollar {
  font-size: 16px;
  margin-bottom: 15px;
}

/* Market assets */
.widget-market-interest .market-assets {
  padding-left: 0;
  margin: 0;
}

.widget-market-interest .market-assets li {
  display: inline-block;
  height: 25px;
  width: 25px;
  background-image: url(../img/logo/default-asset.png);
  background-size: contain;
  border-radius: 100px;
}

.widget-market-interest .market-assets li + li {
  margin-left: 5px;
}

/* ==========================================================================
   Asset Interest widget styles
   ========================================================================== */

.widget-asset-interest .widget-content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
  height: 100%;
}

/* Controls row */
.widget-asset-interest .widget-asset-interest__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.widget-asset-interest .asset-select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.widget-asset-interest .side-toggle {
  display: inline-flex;
  gap: 6px;
}

.widget-asset-interest .side-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd2ff;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.widget-asset-interest .side-btn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* KPI row */
.widget-asset-interest .metric__label {
  color: #9aa4bf;
  font-size: 12px;
  line-height: 1.2;
}

.widget-asset-interest .metric__value {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

/* Chart card */
.widget-asset-interest .chart-asset-interest-container {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 12px;
  min-height: 160px;
  height: 100%;
  overflow: hidden;
}

/* The chart element stretches */
.widget-asset-interest .lwc-chart {
  width: 100%;
  height: 100%;
  background: transparent !important;
}

/* (Preserved from your current cascade) shrink/guard + explicit height */
.widget-asset-interest .widget-content,
.widget-asset-interest .chart-asset-interest-container,
.widget-asset-interest .chart-asset-interest-container .lwc-chart {
  min-width: 0;
  min-height: 0;
  height: 150px;
}

/* ==========================================================================
   Recent activity widget
   ========================================================================== */

.bal-widget.widget-recent-activity {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.widget-recent-activity .widget-header {
  flex: 0 0 auto;
}

.widget-recent-activity .widget-content {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.widget-recent-activity .widget-activity-list {
  height: 100%;
  overflow: auto;
  min-height: 0;
}

.widget-recent-activity .activity-onboarding-widget.hide {
  display: none;
}

/* Optional: pre-icon styles */
.widget-recent-activity .list.activity .list-item > .grid-cell:first-of-type p:first-of-type {
  position: relative;
}

.widget-recent-activity .list.activity .list-item > .grid-cell:first-of-type p:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
  display: none;
}

.widget-recent-activity .list .list-item:not(.parent):not(.secondary) .grid-cell:nth-of-type(1)::before {
  margin-top: 18px;
}

/* ==========================================================================
   Wallet allocation (donut) widget
   ========================================================================== */

.bal-widget.widget-wallet-pie {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.widget-wallet-pie .widget-header {
  flex: 0 0 auto;
}

.widget-wallet-pie .widget-content {
  flex: 1 1 auto;
  min-height: 0;
}

/* Layout wrapper: chart area + optional empty-state line */
.wallet-pie__wrap {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
}

/* Chart host fills available height */
.wallet-pie__canvas {
  position: relative;
  height: 100%;
  min-height: 0;
}

/* Critical: ensure the canvas always follows its container size */
.wallet-pie__canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  max-width: none;
  max-height: none;
}

/* Empty state line */
.wallet-pie__empty {
  color: #9aa4bf;
  margin: 4px 0 0;
  display: none;
}

.wallet-pie__empty.hide {
  display: none;
}

/* ==========================================================================
   Wallet list widget styles
   ========================================================================== */

.widget-wallet-list .list.wallet .list-header {
  position: relative;
  margin-top: 0;
  background-color: transparent;
}

/* keep legacy dropdown styles from forcing a max-height */
.widget-wallet-list .list-scrollable {
  max-height: initial;
}

/* Make the widget fill its gridstack cell */
.bal-widget.widget-wallet-list {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.widget-wallet-list .widget-header {
  flex: 0 0 auto;
}

.widget-wallet-list .widget-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Scrolling region fills the content area */
.grid-stack .widget-wallet-list .list-scrollable {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: none;
  height: auto;

  background-color: #0c2a4d;
  border-radius: 20px;
  padding: 15px;
  padding-top: 0;
  box-shadow: 0px 10px 15px 0px rgba(1, 0, 42, 0.25) inset;
  background-image: url("../img/icon/search2.svg"),
    linear-gradient(0deg, rgb(10, 37, 69) 0%, rgb(14, 50, 81) 100%);
  font-size: 14px;
}

/* Sticky list header inside the widget */
.widget-wallet-list .list-scrollable .list-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 -15px 10px;
  padding: 10px 15px 5px;
  background-image: linear-gradient(0deg, rgb(10, 37, 69) 0%, rgb(14, 50, 81) 100%);
  box-shadow: 0 6px 10px rgba(1, 0, 42, 0.25);
  margin-bottom: 0;
}

/* Let the scroller handle overflow */
.widget-wallet-list .list.wallet {
  overflow: visible;
}

/* ==========================================================================
   Responsive styles
   ========================================================================== */

/* Container query placeholders (keep/remove as you like)
@container (max-width: 700px) {}
@container (min-width: 500px) {}
@container (max-width: 500px) {}
*/

@container (max-width: 300px) {
  .widget-market-interest {
    --bars: 8;
  }

  .widget-market-interest .chart-market-interest-container > .grid {
    flex-direction: column-reverse;
  }

  .widget-market-interest .metadata-group {
    flex-direction: initial;
    align-items: center;
  }

  .widget-market-interest .widget-content .chart-market-interest-container .grid > .grid-cell:last-of-type {
    max-width: initial;
  }

  .widget-market-interest .asset-box {
    margin-top: 0;
    padding: 5px;
  }

  .widget-market-interest .market-amount-dollar {
    display: none;
  }

  .widget-market-interest .market-assets {
    margin-top: 5px;
  }
}

/* Page responsive styles */
@media (max-width: 1100px) {
  main {
    display: none;
  }

  .responsive-message {
    display: block;
  }
}

/* 450px and below (placeholder) */
/*
@media (max-width: 450px) {}
*/
