body.mobile-product.prime-active {
  background: #071e2d;
}

/* Keep the light palette authoritative after the desktop media rules. */
:root[data-theme="purple-light"] .prime-bottom button {
  border: 1px solid #d5dbe3 !important;
  background: #f7f9fb !important;
  color: #273442 !important;
  box-shadow: 0 3px 10px rgba(25, 37, 50, .06) !important;
}

:root[data-theme="purple-light"] .prime-bottom button.active {
  background: linear-gradient(135deg, #087d98, #12b8d1) !important;
  border-color: #12b8d1 !important;
  color: #ffffff !important;
}

.prime-transaction-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.prime-transaction-summary article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: #111926;
}

.prime-transaction-summary small,
.prime-investment-row small {
  display: block;
  color: #8d99aa;
  font-size: 9px;
}

.prime-transaction-summary b {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.prime-investment-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.prime-investment-row:last-child {
  border-bottom: 0;
}

.prime-investment-row > div:nth-child(2) {
  min-width: 0;
}

.prime-investment-row b {
  font-size: 11px;
}

.prime-investment-row small + small {
  margin-top: 4px;
}

@media (max-width: 620px) {
  .prime-transaction-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prime-investment-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .prime-investment-row .prime-posval {
    grid-column: 2;
    text-align: left;
  }
}

:root[data-theme="purple-light"] .prime-top {
  background: #202936 !important;
  border-color: #303b49 !important;
}

/* Gideon light theme tokens: white canvas, soft gray utility surfaces, black
   text and neutral borders. */
:root[data-theme="purple-light"] body.mobile-product.prime-active,
:root[data-theme="purple-light"] .prime-app {
  background: #ffffff !important;
  color: #161616 !important;
}

:root[data-theme="purple-light"] .prime-top {
  background: #f7f7f7 !important;
  border-color: #e9e9e9 !important;
  box-shadow: 4px 0 18px rgba(17, 17, 17, .06) !important;
}

:root[data-theme="purple-light"] .prime-brand b,
:root[data-theme="purple-light"] .prime-topbtn,
:root[data-theme="purple-light"] .prime-topbtn[data-prime-action="notifications"]::after,
:root[data-theme="purple-light"] .prime-topbtn[data-prime-action="drawer"]::after {
  color: #161616 !important;
}

:root[data-theme="purple-light"] .prime-brand small {
  color: #707070 !important;
}

:root[data-theme="purple-light"] .prime-topbtn,
:root[data-theme="purple-light"] .prime-bottom button {
  border-color: #e9e9e9 !important;
  background: #ffffff !important;
  color: #161616 !important;
  box-shadow: none !important;
}

:root[data-theme="purple-light"] .prime-bottom button.active {
  background: #121212 !important;
  border-color: #121212 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(17, 17, 17, .12) !important;
}

:root[data-theme="purple-light"] .prime-hero,
:root[data-theme="purple-light"] .prime-chart-card,
:root[data-theme="purple-light"] .prime-card,
:root[data-theme="purple-light"] .prime-history,
:root[data-theme="purple-light"] .prime-asset,
:root[data-theme="purple-light"] .prime-position,
:root[data-theme="purple-light"] .prime-metric,
:root[data-theme="purple-light"] .prime-mini {
  background: #ffffff !important;
  border-color: #e9e9e9 !important;
  color: #161616 !important;
  box-shadow: 0 10px 26px rgba(17, 17, 17, .06) !important;
}

:root[data-theme="purple-light"] .prime-hero {
  background: #f7f7f7 !important;
}

:root[data-theme="purple-light"] .prime-search-wrap {
  background: #ffffff !important;
}

:root[data-theme="purple-light"] .prime-search,
:root[data-theme="purple-light"] .prime-ranges button,
:root[data-theme="purple-light"] .prime-filter,
:root[data-theme="purple-light"] .prime-tabs button {
  background: #fafafa !important;
  border-color: #e9e9e9 !important;
  color: #707070 !important;
}

:root[data-theme="purple-light"] .prime-search input,
:root[data-theme="purple-light"] .prime-card b,
:root[data-theme="purple-light"] .prime-history b,
:root[data-theme="purple-light"] .prime-asset b,
:root[data-theme="purple-light"] .prime-position b,
:root[data-theme="purple-light"] .prime-metric b,
:root[data-theme="purple-light"] .prime-mini b {
  color: #161616 !important;
}

:root[data-theme="purple-light"] .prime-search input::placeholder,
:root[data-theme="purple-light"] .prime-app small,
:root[data-theme="purple-light"] .prime-app .prime-muted,
:root[data-theme="purple-light"] .prime-app .prime-subtitle {
  color: #707070 !important;
}

:root[data-theme="purple-light"] .prime-ranges button.active,
:root[data-theme="purple-light"] .prime-filter.active,
:root[data-theme="purple-light"] .prime-tabs button.active {
  background: #121212 !important;
  border-color: #121212 !important;
  color: #ffffff !important;
}

:root[data-theme="purple-light"] .prime-trade-actions button,
:root[data-theme="purple-light"] .prime-trade-preview {
  border-color: #e9e9e9 !important;
  background: #f7f7f7 !important;
  color: #176b43 !important;
}

:root[data-theme="purple-light"] .prime-trade-actions button:last-child {
  color: #a32655 !important;
}

body.mobile-product.prime-active .mobile-shell {
  display: none !important;
}

body.mobile-product:not(.prime-active) .prime-login,
body.mobile-product:not(.prime-active) .prime-app,
body.mobile-product:not(.prime-active) .prime-drawer,
body.mobile-product:not(.prime-active) .prime-drawer-backdrop,
body.mobile-product:not(.prime-active) .prime-modal,
body.mobile-product:not(.prime-active) .prime-toast {
  display: none !important;
}

.prime-login,
.prime-app,
.prime-drawer,
.prime-modal,
.prime-toast {
  box-sizing: border-box;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.prime-login *,
.prime-app *,
.prime-drawer *,
.prime-modal * {
  box-sizing: border-box;
}

.prime-login {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(21, 60, 77, .9) 0, transparent 38%),
    linear-gradient(160deg, #091019, #0c1722 60%, #090b11);
  color: #f8fafc;
}

.prime-login.hide {
  display: none;
}

.prime-login-box {
  width: min(355px, 92vw);
  text-align: center;
}

.prime-login-logo {
  width: 92px;
  height: 92px;
  margin: auto;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #24c08b, #20b7d0);
  box-shadow: 0 18px 46px rgba(49, 94, 135, .5);
  font-size: 28px;
  font-weight: 950;
  overflow: hidden;
}

.prime-login-logo img,
.prime-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prime-login-logo.prime-logo-full,
.prime-logo.prime-logo-full {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(49, 94, 135, .18);
}

.prime-login-logo.prime-logo-full {
  width: 190px;
  height: 72px;
}

.prime-logo.prime-logo-full {
  width: 72px;
  height: 44px;
}

.prime-login-logo.prime-logo-full img,
.prime-logo.prime-logo-full img {
  object-fit: contain;
}

.prime-login h1 {
  margin: 18px 0 7px;
  font-size: 26px;
}

.prime-login p,
.prime-login small {
  color: #8e9aac;
  font-size: 12px;
}

.prime-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px;
}

.prime-dot {
  width: 13px;
  height: 13px;
  border: 1px solid #557b76;
  border-radius: 50%;
}

.prime-dot.on {
  background: #29d58a;
  border-color: #29d58a;
  box-shadow: 0 0 14px #29d58a;
}

.prime-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.prime-key {
  height: 58px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.prime-secondary,
.prime-key {
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}

.prime-key:active,
.prime-secondary:active,
.prime-quick button:active,
.prime-asset:active,
.prime-setting:active {
  transform: scale(.985);
  filter: brightness(1.12);
}

.prime-pin-error {
  height: 22px;
  margin-top: 12px;
  color: #ff7284;
  font-size: 11px;
}

.prime-secondary {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: #131b27;
  color: #d4dae3;
}

.prime-app {
  max-width: 520px;
  min-height: 100vh;
  margin: auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 62, 105, .31), transparent 30%),
    radial-gradient(circle at 0 30%, rgba(11, 89, 73, .23), transparent 28%),
    linear-gradient(180deg, #0c121c, #0a1017 55%, #071e2d);
  color: #f8fafc;
}

.prime-top {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 15px 12px;
  background: rgba(10, 15, 23, .94);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.prime-logo {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #24c08b, #20b7d0);
  box-shadow: 0 12px 28px rgba(49, 94, 135, .25);
  font-weight: 950;
  overflow: hidden;
}

.prime-brand {
  flex: 1;
}

.prime-brand b {
  font-size: 15px;
}

.prime-brand small {
  display: block;
  margin-top: 3px;
  color: #778396;
  font-size: 8px;
  letter-spacing: 1.1px;
}

.prime-topbtn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 13px;
  background: #121925;
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.prime-page {
  display: none;
  padding: 12px 15px 98px;
}

.prime-page.active {
  display: block;
}

.prime-welcome {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 7px 2px 13px;
}

.prime-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(145deg, #27b985, #20b7d0);
}

.prime-welcome h1 {
  margin: 0;
  font-size: 20px;
}

.prime-welcome p {
  margin: 4px 0 0;
  color: #8e9aac;
  font-size: 10px;
}

.prime-hero {
  padding: 21px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .09), transparent 23%),
    linear-gradient(135deg, #123f43, #176b75 48%, #3e66c8);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .27);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.prime-eyebrow {
  color: #d8fff3;
  font-size: 9px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.prime-balance {
  margin: 7px 0;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -1.3px;
}

.prime-gain,
.prime-up {
  color: #42e39f;
}

.prime-down {
  color: #ff7284;
}

.prime-metrics,
.prime-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 15px;
}

.prime-metric,
.prime-mini,
.prime-card,
.prime-chart-card,
.prime-history,
.prime-asset {
  border: 1px solid rgba(255, 255, 255, .08);
  background: #111823;
}

.prime-metric {
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .05);
}

.prime-metric small,
.prime-mini small {
  display: block;
  color: rgba(255, 255, 255, .68);
  font-size: 7px;
}

.prime-metric b,
.prime-mini b {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}

.prime-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.prime-quick button {
  padding: 12px 4px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 17px;
  background: #121925;
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.prime-quick i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  font-style: normal;
  font-size: 18px;
}

.prime-quick button:nth-child(1) i { background: #123a2e; color: #42e3a5; }
.prime-quick button:nth-child(2) i { background: #132d4b; color: #78a5ff; }
.prime-quick button:nth-child(3) i { background: #3b2d14; color: #ffc568; }
.prime-quick button:nth-child(4) i { background: #2d2149; color: #b9a3ff; }

.prime-quick span {
  font-size: 8px;
  font-weight: 800;
}

.prime-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 22px 2px 11px;
}

.prime-title h2 {
  margin: 0;
  font-size: 15px;
}

.prime-title span {
  color: #8e9aac;
  font-size: 9px;
}

.prime-title > span:only-child {
  margin-left: auto;
}

.prime-sponsors-title {
  margin-top: 30px;
}

.prime-sponsors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prime-sponsor {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: #111926;
}

.prime-sponsor span {
  width: 72px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--sponsor-color);
  color: var(--sponsor-ink);
  font-size: 10px;
  font-weight: 950;
}

.prime-sponsor-logo span {
  overflow: hidden;
}

.prime-sponsor-logo img {
  width: 64px;
  height: 32px;
  display: block;
  object-fit: contain;
  border-radius: 3px;
}

.prime-sponsor-ecb span {
  width: 54px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
}

.prime-sponsor-ecb img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: auto;
}

.prime-sponsor-ecb {
  grid-template-columns: 54px minmax(0, 1fr);
}

.prime-sponsor b {
  min-width: 0;
  color: #e8edf5;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prime-mini {
  padding: 12px;
  border-radius: 17px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.prime-mini:nth-child(1) { background: linear-gradient(145deg, #152033, #101722); }
.prime-mini:nth-child(2) { background: linear-gradient(145deg, #261d35, #15151f); }
.prime-mini:nth-child(3) { background: linear-gradient(145deg, #102b25, #0e1918); }

.prime-chart-card,
.prime-card {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(150deg, #111926, #141a25);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .27);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .prime-page.active .prime-hero:hover,
  .prime-page.active .prime-chart-card:hover {
    transform: translateY(-3px);
    border-color: rgba(97, 181, 255, .35);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .34);
  }

  .prime-page.active .prime-quick button:hover,
  .prime-page.active .prime-mini:hover {
    transform: translateY(-3px);
    border-color: rgba(97, 181, 255, .42);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .24);
  }

  .prime-page.active .prime-quick button:hover i {
    transform: scale(1.08);
  }
}

.prime-quick i {
  transition: transform .18s ease;
}

.prime-deposit-panel,
.prime-withdraw-panel {
  padding-top: 10px;
}

.prime-chart-head {
  display: flex;
  justify-content: space-between;
}

.prime-chart-head small {
  color: #8c98aa;
  font-size: 8px;
}

.prime-chart-head b {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.prime-badge {
  padding: 6px 8px;
  border-radius: 9px;
  background: #173d30;
  color: #6aebb1;
  font-size: 8px;
}

.prime-canvas {
  width: 100%;
  height: 235px;
  display: block;
  margin-top: 7px;
  touch-action: none;
}

.prime-ranges,
.prime-filters,
.prime-tabs {
  display: flex;
  gap: 6px;
}

.prime-ranges button,
.prime-filter,
.prime-tabs button {
  flex: 1;
  padding: 8px 7px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: #0e151f;
  color: #7e8999;
  font-size: 8px;
  cursor: pointer;
  touch-action: manipulation;
}

.prime-ranges button.active,
.prime-filter.active,
.prime-tabs button.active {
  background: #15382f;
  color: #78efbb;
  border-color: #216d56;
}

.prime-history {
  padding: 0 14px;
  border-radius: 18px;
}

.prime-hrow,
.prime-position,
.prime-row {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.prime-hrow {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  transition: background .18s ease, transform .18s ease;
}

.prime-hrow:hover {
  transform: translateX(2px);
}

.prime-hcopy {
  min-width: 0;
}

.prime-hrow:last-child,
.prime-position:last-child,
.prime-row:last-child {
  border: 0;
}

.prime-hico,
.prime-aicon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #162536;
  font-weight: 900;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  flex: 0 0 40px;
}

.prime-aicon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prime-aicon span {
  line-height: 1;
}

.prime-hico span {
  line-height: 1;
}

.prime-hico.is-receive {
  color: #59e2ad;
  background: rgba(21, 111, 79, .22);
  border-color: rgba(89, 226, 173, .24);
}

.prime-hico.is-send {
  color: #ff9eaa;
  background: rgba(139, 45, 67, .22);
  border-color: rgba(255, 158, 170, .22);
}

.prime-hrow b,
.prime-position b,
.prime-asset b {
  font-size: 11px;
  line-height: 1.25;
}

.prime-hrow small,
.prime-position small,
.prime-asset small {
  display: block;
  margin-top: 4px;
  color: #7f8b9c;
  font-size: 9px;
}

.prime-hamount {
  max-width: 120px;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 10px;
  line-height: 1.25;
  color: #e8eef7;
}

.prime-search-wrap {
  position: relative;
  z-index: 1;
  padding: 10px 0;
  background: #0a1017;
}

.prime-search {
  height: 52px;
  border: 1px solid #294055;
  border-radius: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  background: #101823;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .27);
}

.prime-search input,
.prime-input,
.prime-feed-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  outline: 0;
  border-radius: 13px;
  background: #0e151f;
  color: #fff;
}

/* Prime light theme follows the selected app theme instead of retaining its
   dark dashboard surfaces. The search bar stays in document flow while the
   market list scrolls. */
:root[data-theme="purple-light"] body.mobile-product.prime-active {
  background: #f5f2fa !important;
  color: #092235 !important;
}

:root[data-theme="purple-light"] .prime-app,
:root[data-theme="purple-light"] .prime-main,
:root[data-theme="purple-light"] .prime-top,
:root[data-theme="purple-light"] .prime-bottom,
:root[data-theme="purple-light"] .prime-drawer {
  background: #ffffff !important;
  color: #092235 !important;
  border-color: #c8e6e9 !important;
}

:root[data-theme="purple-light"] .prime-top {
  box-shadow: 0 4px 18px rgba(109, 74, 255, .08);
}

:root[data-theme="purple-light"] .prime-title span,
:root[data-theme="purple-light"] .prime-welcome p,
:root[data-theme="purple-light"] .prime-chart-head small,
:root[data-theme="purple-light"] .prime-metric small,
:root[data-theme="purple-light"] .prime-mini small,
:root[data-theme="purple-light"] .prime-asset small,
:root[data-theme="purple-light"] .prime-position small,
:root[data-theme="purple-light"] .prime-brand small {
  color: #746b86 !important;
}

:root[data-theme="purple-light"] .prime-hero,
:root[data-theme="purple-light"] .prime-chart-card,
:root[data-theme="purple-light"] .prime-card,
:root[data-theme="purple-light"] .prime-history,
:root[data-theme="purple-light"] .prime-asset,
:root[data-theme="purple-light"] .prime-position,
:root[data-theme="purple-light"] .prime-metric,
:root[data-theme="purple-light"] .prime-mini,
:root[data-theme="purple-light"] .prime-search-wrap {
  background: #ffffff !important;
  color: #092235 !important;
  border-color: #c8e6e9 !important;
  box-shadow: 0 12px 30px rgba(109, 74, 255, .08) !important;
}

:root[data-theme="purple-light"] .prime-search {
  background: #f4fbfc !important;
  border-color: #cfc2e8 !important;
  box-shadow: none !important;
}

:root[data-theme="purple-light"] .prime-search input {
  background: transparent !important;
  color: #092235 !important;
}

:root[data-theme="purple-light"] .prime-search input::placeholder {
  color: #8b819d !important;
}

:root[data-theme="purple-light"] .prime-ranges button,
:root[data-theme="purple-light"] .prime-filter,
:root[data-theme="purple-light"] .prime-tabs button {
  background: #f4fbfc !important;
  color: #746b86 !important;
  border-color: #c8e6e9 !important;
}

:root[data-theme="purple-light"] .prime-ranges button.active,
:root[data-theme="purple-light"] .prime-filter.active,
:root[data-theme="purple-light"] .prime-tabs button.active {
  background: #ede6f7 !important;
  color: #4c1d95 !important;
  border-color: #a78bfa !important;
}

.prime-search input {
  border: 0;
  background: transparent;
  font-size: 13px;
}

.prime-filters {
  overflow: auto;
  padding: 2px 0 12px;
}

.prime-filter {
  flex: 0 0 auto;
  white-space: nowrap;
}

.prime-assets {
  display: grid;
  gap: 8px;
}

.prime-asset,
.prime-position {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .13);
}

.prime-assets .prime-asset {
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
}

.prime-trade-actions,
.prime-trade-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prime-trade-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.prime-trade-actions button {
  min-width: 58px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(41, 213, 138, .12);
  color: #39e694;
  font-weight: 900;
  cursor: pointer;
}

.prime-trade-actions button:last-child {
  background: rgba(255, 102, 146, .12);
  color: #ff7ca5;
}

@media (max-width: 680px) {
  .prime-assets .prime-asset {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .prime-assets .prime-asset .prime-trade-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

.prime-trade-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin: 12px 0;
}

.prime-trade-label span {
  display: block;
  margin-top: 12px;
  color: #8d99aa;
  font-size: 11px;
  font-weight: 900;
}

.prime-trade-preview {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #9aa8ba;
  font-size: 12px;
}

.prime-secondary.is-buy {
  background: linear-gradient(135deg, #20c77a, #20b7d0);
}

.prime-secondary.is-sell {
  background: linear-gradient(135deg, #ff5d8f, #8b6cf2);
}

.prime-aprice,
.prime-posval {
  text-align: right;
}

.prime-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.prime-row span,
.prime-row b {
  font-size: 10px;
}

.prime-row span {
  color: #8d99aa;
}

.prime-note {
  margin: 12px 2px 0;
  color: #9aa8ba;
  font-size: 12px;
  line-height: 1.45;
}

.prime-bottom {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 0;
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 8px 7px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(8, 12, 18, .96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.prime-bottom button {
  border: 0;
  background: transparent;
  color: #748093;
  padding: 7px 2px;
  font-size: 7px;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: 12px;
  transition: transform .18s ease, color .18s ease, background .18s ease, box-shadow .18s ease;
}

.prime-bottom button b {
  display: block;
  margin-bottom: 3px;
  font-size: 18px;
  transition: transform .18s ease;
}

.prime-bottom button.active {
  color: #44dba1;
}

@media (hover: hover) and (pointer: fine) {
  .prime-topbtn:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(93, 167, 255, .55);
    background: #192536;
    box-shadow: 0 9px 22px rgba(0, 0, 0, .28);
  }

  .prime-topbtn:active,
  .prime-bottom button:active {
    transform: scale(.95);
  }

  .prime-bottom button:hover {
    color: #e8f4ff;
    background: rgba(92, 154, 233, .12);
    transform: translateY(-3px);
  }

  .prime-bottom button:hover b {
    transform: scale(1.14);
  }

  :root[data-theme="purple-light"] .prime-topbtn:hover,
  :root[data-theme="purple-light"] .prime-bottom button:hover {
    color: #155b54 !important;
    border-color: #86aaa5 !important;
    background: #e4f0ef !important;
    box-shadow: 0 8px 18px rgba(39, 132, 119, .16) !important;
  }
}

.prime-page.active {
  animation: primePageIn .24s ease both;
}

@keyframes primePageIn {
  from { opacity: .45; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .prime-page.active { animation: none; }
  .prime-topbtn,
  .prime-bottom button,
  .prime-bottom button b { transition: none; }
}

.prime-desktop-only {
  display: none !important;
}

.prime-drawer {
  position: fixed;
  z-index: 300;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(355px, 88vw);
  padding: 24px 17px;
  background: #0e141e;
  border-left: 1px solid rgba(255, 255, 255, .08);
  color: #f8fafc;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.prime-drawer.open {
  transform: translateX(0);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .34);
}

.prime-drawer-backdrop {
  position: fixed;
  z-index: 290;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: rgba(4, 9, 16, .55);
  backdrop-filter: blur(2px);
  transition: opacity .24s ease, visibility .24s ease;
}

.prime-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Professional light palette: cool gray surfaces and a high-contrast rail. */
:root[data-theme="purple-light"] body.mobile-product.prime-active {
  background: #edf0f3 !important;
  color: #18212b !important;
}

:root[data-theme="purple-light"] .prime-app {
  background: #edf0f3 !important;
  color: #18212b !important;
}

:root[data-theme="purple-light"] .prime-top {
  background: #202936 !important;
  border-color: #303b49 !important;
  box-shadow: 8px 0 24px rgba(15, 23, 32, .12) !important;
}

:root[data-theme="purple-light"] .prime-brand b,
:root[data-theme="purple-light"] .prime-topbtn,
:root[data-theme="purple-light"] .prime-topbtn[data-prime-action="notifications"]::after,
:root[data-theme="purple-light"] .prime-topbtn[data-prime-action="drawer"]::after {
  color: #f4f7fa !important;
}

:root[data-theme="purple-light"] .prime-brand small {
  color: #aeb9c7 !important;
}

:root[data-theme="purple-light"] .prime-topbtn,
:root[data-theme="purple-light"] .prime-bottom button {
  border-color: #d5dbe3 !important;
  background: #f7f9fb !important;
  color: #273442 !important;
}

:root[data-theme="purple-light"] .prime-topbtn {
  border-color: #3b4756 !important;
  background: #293442 !important;
  color: #f4f7fa !important;
}

:root[data-theme="purple-light"] .prime-bottom {
  background: transparent !important;
}

:root[data-theme="purple-light"] .prime-bottom button {
  color: #273442 !important;
  box-shadow: 0 3px 10px rgba(25, 37, 50, .06) !important;
}

:root[data-theme="purple-light"] .prime-bottom button.active {
  background: linear-gradient(135deg, #087d98, #12b8d1) !important;
  border-color: #12b8d1 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 88, 147, .22) !important;
}

:root[data-theme="purple-light"] .prime-page {
  background: transparent !important;
}

:root[data-theme="purple-light"] .prime-hero,
:root[data-theme="purple-light"] .prime-chart-card,
:root[data-theme="purple-light"] .prime-card,
:root[data-theme="purple-light"] .prime-history,
:root[data-theme="purple-light"] .prime-asset,
:root[data-theme="purple-light"] .prime-position,
:root[data-theme="purple-light"] .prime-metric,
:root[data-theme="purple-light"] .prime-mini {
  background: #f7f9fb !important;
  border-color: #cfd6df !important;
  color: #18212b !important;
  box-shadow: 0 8px 22px rgba(25, 37, 50, .07) !important;
}

:root[data-theme="purple-light"] .prime-hero {
  background: linear-gradient(135deg, #d9f0ec, #dbe7f8) !important;
}

:root[data-theme="purple-light"] .prime-chart-card {
  background: #f7f9fb !important;
}

:root[data-theme="purple-light"] .prime-search-wrap {
  background: #edf0f3 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

:root[data-theme="purple-light"] .prime-search {
  background: #f7f9fb !important;
  border-color: #c7d0da !important;
}

:root[data-theme="purple-light"] .prime-search input {
  color: #18212b !important;
}

:root[data-theme="purple-light"] .prime-search input::placeholder {
  color: #697787 !important;
}

:root[data-theme="purple-light"] .prime-ranges button,
:root[data-theme="purple-light"] .prime-filter,
:root[data-theme="purple-light"] .prime-tabs button {
  background: #f7f9fb !important;
  border-color: #cfd6df !important;
  color: #4b5a69 !important;
}

:root[data-theme="purple-light"] .prime-ranges button.active,
:root[data-theme="purple-light"] .prime-filter.active,
:root[data-theme="purple-light"] .prime-tabs button.active {
  background: #d9e9e7 !important;
  border-color: #278477 !important;
  color: #155b54 !important;
}

:root[data-theme="purple-light"] .prime-card b,
:root[data-theme="purple-light"] .prime-history b,
:root[data-theme="purple-light"] .prime-asset b,
:root[data-theme="purple-light"] .prime-position b,
:root[data-theme="purple-light"] .prime-metric b,
:root[data-theme="purple-light"] .prime-mini b {
  color: #18212b !important;
}

.prime-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.prime-drawer-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.prime-drawer .prime-drawer-close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  text-align: center;
}

.prime-drawer button {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #d0d5df;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

@media (hover: hover) {
  .prime-drawer button:hover {
    color: #ffffff;
    background: rgba(68, 219, 161, .11);
    border-color: rgba(68, 219, 161, .28);
    transform: translateX(-3px);
  }
}

.prime-drawer button:focus-visible {
  color: #ffffff;
  background: rgba(68, 219, 161, .12);
  border-color: #44dba1;
  outline: 3px solid rgba(68, 219, 161, .2);
  outline-offset: 2px;
}

.prime-drawer button:active {
  transform: translateX(-1px) scale(.985);
}

:root[data-theme="purple-light"] .prime-drawer {
  background: #ffffff !important;
  border-left-color: #cfd6df !important;
  box-shadow: -18px 0 42px rgba(25, 37, 50, .14) !important;
}

:root[data-theme="purple-light"] .prime-drawer button {
  color: #344253 !important;
}

@media (hover: hover) {
  :root[data-theme="purple-light"] .prime-drawer button:hover {
    color: #123e3b !important;
    background: #e6f3f1 !important;
    border-color: #9dcac4 !important;
    box-shadow: 0 7px 18px rgba(26, 103, 94, .1);
  }
}

:root[data-theme="purple-light"] .prime-drawer button:focus-visible {
  color: #123e3b !important;
  background: #e6f3f1 !important;
  border-color: #278477 !important;
  outline-color: rgba(39, 132, 119, .2);
}

:root[data-theme="purple-light"] .prime-drawer-head b {
  color: #18212b !important;
}

:root[data-theme="purple-light"] .prime-drawer-head small,
:root[data-theme="purple-light"] .prime-license {
  color: #647386 !important;
}

.prime-license {
  position: absolute;
  bottom: 24px;
  color: #6f7a8b;
  font-size: 9px;
  line-height: 1.6;
}

.prime-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 12, .8);
}

.prime-modal.open {
  display: flex;
}

.prime-sheet {
  width: min(520px, 100%);
  max-height: 94vh;
  overflow: auto;
  padding: 20px;
  border: 1px solid #283443;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #141c28, #0d131c);
  color: #f8fafc;
}

.prime-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prime-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  background: #192331;
  color: #fff;
}

.prime-input {
  height: 48px;
  padding: 0 13px;
  margin-top: 10px;
}

.prime-fee-quote {
  margin-top: 12px;
  padding: 2px 14px;
  border: 1px solid #294055;
  border-radius: 8px;
  background: #101823;
}

.prime-fee-quote > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
}

.prime-fee-quote > div:last-child {
  border-bottom: 0;
}

.prime-fee-quote span {
  color: #8f9bad;
}

.prime-fee-quote .total b {
  color: #59e2ad;
}

.prime-fee-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(79, 134, 247, .35);
  border-radius: 8px;
  background: rgba(79, 134, 247, .1);
  color: #d9e2ef;
  font-size: 11px;
  line-height: 1.45;
}

.prime-fee-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #29d58a;
}

.prime-fee-ready {
  margin: 10px 0 0;
  color: #59e2ad;
  font-size: 11px;
}

.prime-secondary:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.prime-send-confirm:not(:disabled) {
  border-color: rgba(41, 213, 138, .4);
  background: #15382f;
  color: #7ef0bd;
}

:root[data-theme="purple-light"] .prime-fee-quote {
  border-color: #c8e6e9;
  background: #f7f4fc;
}

:root[data-theme="purple-light"] .prime-fee-quote > div {
  border-color: #e5dff0;
}

:root[data-theme="purple-light"] .prime-fee-quote span,
:root[data-theme="purple-light"] .prime-fee-consent {
  color: #40384e;
}

.prime-feed {
  max-height: 300px;
  overflow: auto;
  padding: 6px 0;
}

.prime-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 13px;
  margin-bottom: 8px;
  background: #192230;
  font-size: 9px;
  line-height: 1.5;
}

.prime-bubble.me {
  margin-left: auto;
  background: #15382f;
}

.prime-settings-grid {
  display: grid;
  gap: 9px;
}

.prime-setting {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 15px;
  background: #111823;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.prime-setico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #172331;
  transition: transform .18s ease, background .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .prime-setting:hover {
    transform: translateY(-2px);
    border-color: rgba(68, 219, 161, .34);
    background: #152231;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  }

  .prime-setting:hover .prime-setico {
    transform: scale(1.07) rotate(-2deg);
    background: #1b3040;
  }

  :root[data-theme="purple-light"] .prime-setting:hover {
    border-color: #91bbb5 !important;
    background: #edf6f5 !important;
    box-shadow: 0 10px 24px rgba(39, 132, 119, .12) !important;
  }
}

.prime-setting b {
  font-size: 10px;
}

.prime-setting small {
  display: block;
  margin-top: 3px;
  color: #7f8b9c;
  font-size: 7px;
}

.prime-toast {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: 96px;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  padding: 12px 15px;
  border: 1px solid #274a3c;
  border-radius: 13px;
  background: #12342a;
  color: #fff;
  font-size: 10px;
  transition: .2s;
}

.prime-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Polished interaction layer for portfolio lists, transactions and sheets. */
.prime-transaction-summary article {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #142033, #0f1723);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.prime-transaction-summary article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(#29d58a, #20b7d0);
  opacity: .75;
}

.prime-asset,
.prime-position,
.prime-sponsor,
.prime-hrow {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.prime-assets .prime-asset,
.prime-sponsors .prime-sponsor,
.prime-transaction-summary article,
.prime-history .prime-hrow,
.prime-card .prime-position {
  animation: primeItemIn .34s cubic-bezier(.22, 1, .36, 1) both;
}

.prime-assets .prime-asset:nth-child(2),
.prime-sponsors .prime-sponsor:nth-child(2),
.prime-transaction-summary article:nth-child(2),
.prime-history .prime-hrow:nth-child(2),
.prime-card .prime-position:nth-child(2) { animation-delay: 35ms; }
.prime-assets .prime-asset:nth-child(3),
.prime-sponsors .prime-sponsor:nth-child(3),
.prime-transaction-summary article:nth-child(3),
.prime-history .prime-hrow:nth-child(3) { animation-delay: 70ms; }
.prime-assets .prime-asset:nth-child(4),
.prime-sponsors .prime-sponsor:nth-child(4),
.prime-transaction-summary article:nth-child(4) { animation-delay: 105ms; }

@keyframes primeItemIn {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.prime-modal.open .prime-sheet {
  animation: primeSheetIn .3s cubic-bezier(.22, 1, .36, 1) both;
}

.prime-modal.open {
  animation: primeBackdropIn .2s ease both;
}

@keyframes primeBackdropIn {
  from { background-color: rgba(2, 6, 12, 0); }
  to { background-color: rgba(2, 6, 12, .8); }
}

@keyframes primeSheetIn {
  from { opacity: 0; transform: translateY(28px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.prime-input,
.prime-feed-input,
.prime-secondary,
.prime-close,
.prime-tabs button,
.prime-trade-actions button {
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.prime-input:focus,
.prime-feed-input:focus {
  border-color: #20b7d0;
  box-shadow: 0 0 0 3px rgba(79, 134, 247, .16), 0 10px 24px rgba(0, 0, 0, .12);
}

@media (hover: hover) and (pointer: fine) {
  .prime-assets .prime-asset:hover,
  .prime-card .prime-position:hover,
  .prime-history .prime-hrow:hover,
  .prime-sponsor:hover,
  .prime-transaction-summary article:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 134, 247, .38);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
  }

  .prime-sponsor:hover img,
  .prime-asset:hover .prime-coin,
  .prime-position:hover .prime-coin {
    transform: scale(1.06);
  }

  .prime-secondary:not(:disabled):hover,
  .prime-tabs button:hover,
  .prime-trade-actions button:hover,
  .prime-close:hover {
    transform: translateY(-2px);
    border-color: rgba(68, 219, 161, .42);
    box-shadow: 0 9px 20px rgba(0, 0, 0, .18);
  }

  .prime-close:hover {
    transform: rotate(8deg) scale(1.06);
    color: #ffffff;
  }

  :root[data-theme="purple-light"] .prime-assets .prime-asset:hover,
  :root[data-theme="purple-light"] .prime-card .prime-position:hover,
  :root[data-theme="purple-light"] .prime-history .prime-hrow:hover,
  :root[data-theme="purple-light"] .prime-sponsor:hover,
  :root[data-theme="purple-light"] .prime-transaction-summary article:hover {
    background: #ffffff !important;
    border-color: #8eb8b2 !important;
    box-shadow: 0 14px 30px rgba(39, 86, 105, .13) !important;
  }
}

.prime-sponsor img,
.prime-coin {
  transition: transform .2s ease;
}

.prime-bubble {
  transition: transform .18s ease, box-shadow .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .prime-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
  }
}

:root[data-theme="purple-light"] .prime-transaction-summary article {
  background: linear-gradient(145deg, #ffffff, #f2f6f8) !important;
  border-color: #cfd8e1 !important;
  color: #18212b !important;
  box-shadow: 0 8px 22px rgba(25, 37, 50, .07) !important;
}

@media (prefers-reduced-motion: reduce) {
  .prime-assets .prime-asset,
  .prime-sponsors .prime-sponsor,
  .prime-transaction-summary article,
  .prime-history .prime-hrow,
  .prime-card .prime-position,
  .prime-modal.open .prime-sheet { animation: none; }
}

.prime-empty {
  padding: 18px 0;
  color: #8e9aac;
  font-size: 11px;
  text-align: center;
}

@media (min-width: 900px) {
  .prime-app {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-template-rows: 1fr;
    margin: 0;
    border-left: 0;
    border-right: 0;
    overflow: visible;
  }

  .prime-top {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    display: grid;
    grid-template-columns: 62px 1fr;
    grid-auto-rows: min-content;
    align-content: start;
    gap: 12px;
    padding: 24px 18px;
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(10, 15, 23, .98), rgba(9, 13, 20, .98));
  }

  .prime-logo {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .prime-logo.prime-logo-full {
    width: 78px;
    height: 50px;
    border-radius: 8px;
  }

  .prime-brand {
    align-self: center;
  }

  .prime-brand b {
    font-size: 18px;
  }

  .prime-brand small {
    font-size: 9px;
  }

  .prime-topbtn {
    grid-column: 1 / -1;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    justify-content: flex-start;
    padding: 0 15px;
    color: #dce6f5;
    background: rgba(255, 255, 255, .045);
  }

  .prime-topbtn[data-prime-action="notifications"]::after {
    content: "Notifications";
    margin-left: 12px;
    font-size: 14px;
    font-weight: 800;
  }

  .prime-topbtn[data-prime-action="drawer"]::after {
    content: "More actions";
    margin-left: 12px;
    font-size: 14px;
    font-weight: 800;
  }

  .prime-topbtn[data-prime-action="drawer"] {
    display: none;
  }

  .prime-app main {
    grid-column: 2;
    min-width: 0;
  }

  .prime-page {
    padding: 28px 34px 70px;
  }

  .prime-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 22px;
    align-items: start;
  }

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

  .prime-sponsor {
    min-height: 68px;
    padding: 12px;
  }

  .prime-sponsor b {
    font-size: 12px;
  }

  .prime-bottom {
    left: 0;
    right: auto;
    top: 190px;
    bottom: auto;
    width: 280px;
    transform: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0 18px;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .prime-bottom button {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    background: rgba(255, 255, 255, .04);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 850;
    text-align: left;
  }

  .prime-bottom .prime-desktop-only {
    display: flex !important;
  }

  .prime-bottom button b {
    display: inline;
    margin: 0;
    font-size: 20px;
  }

  .prime-bottom button.active {
    background: linear-gradient(135deg, rgba(41, 213, 138, .2), rgba(79, 134, 247, .24));
    border-color: rgba(79, 134, 247, .42);
    color: #f8fafc;
  }

  .prime-quick {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .prime-quick button,
  .prime-secondary,
  .prime-filter,
  .prime-tabs button {
    min-height: 48px;
    font-size: 14px;
  }

  .prime-ranges button {
    min-height: 42px;
    font-size: 13px;
  }

  .prime-hero,
  .prime-chart-card,
  .prime-card {
    border-radius: 20px;
  }

  .prime-drawer {
    left: auto;
    right: 0;
    width: 360px;
    transform: translateX(105%);
    border-left: 1px solid rgba(255, 255, 255, .08);
    border-right: 0;
  }

  .prime-drawer.open {
    transform: translateX(0);
  }

  .prime-modal {
    align-items: center;
    padding-left: 280px;
  }

  .prime-sheet {
    border-radius: 24px;
  }

  .prime-toast {
    left: calc(50% + 140px);
  }
}

/* Final light-theme overrides must follow the desktop media block. */
:root[data-theme="purple-light"] .prime-bottom button {
  border: 1px solid #d5dbe3 !important;
  background: #f7f9fb !important;
  color: #273442 !important;
  box-shadow: 0 3px 10px rgba(25, 37, 50, .06) !important;
}

:root[data-theme="purple-light"] .prime-bottom button.active {
  background: linear-gradient(135deg, #087d98, #12b8d1) !important;
  border-color: #12b8d1 !important;
  color: #ffffff !important;
}

:root[data-theme="purple-light"] .prime-top {
  background: #202936 !important;
  border-color: #303b49 !important;
}

.prime-login-logo.prime-logo-full, .prime-logo.prime-logo-full {
  background: transparent !important; border: 0 !important;
  border-radius: 0 !important; box-shadow: none !important;
  overflow: visible !important;
}
.prime-login-logo.prime-logo-full img, .prime-logo.prime-logo-full img {
  object-fit: contain !important;
}
