/* css/account.css - v2 Wallet · Premium/Subscriptions · Bookmarks · Settings (owner: account worker) */

.acct-page {
  padding-bottom: 88px;
  font-size: 15px;
}

@media (min-width: 768px) {
  body:not(.mobile-sim) .acct-page {
    padding-bottom: 64px;
  }
}

@media (max-width: 767px) {
  .acct-page>.ds-header {
    position: relative;
    top: auto;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body.mobile-sim .acct-page>.ds-header {
  position: relative;
  top: auto;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.acct-wrap {
  padding: 0 16px;
}

.acct-stack>section {
  padding-top: 18px;
}

.acct-stack>section:first-child {
  padding-top: 12px;
}

.acct-stack .ds-group-title {
  padding-top: 0;
}

.acct-num,
.acct-balance-amt,
.acct-earn-amt,
.acct-tx-amt,
.acct-plan-price,
.acct-prem-title {
  font-family: var(--ds-font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Wallet: balance card ---------- */
.acct-page>.acct-wrap:first-of-type {
  padding-top: 12px;
}

.acct-balance-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-radius-xl);
  padding: 20px 20px 18px;
  color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2a2a6e 0%, rgba(42, 42, 110, 0) 55%), linear-gradient(160deg, #14161f 0%, #0b0c12 100%);
  box-shadow: 0 18px 40px -22px rgba(10, 12, 30, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.acct-balance-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--primary) 45%, transparent);
  filter: blur(50px);
  opacity: .55;
  pointer-events: none;
}

.acct-balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  position: relative;
  z-index: 1;
}

.acct-balance-amt {
  position: relative;
  z-index: 1;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: -0.025em;
}

.acct-balance-sub {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, .64);
  margin-top: 4px;
}

.acct-balance-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.acct-qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  padding: 4px 0;
  border-radius: 14px;
  transition: transform 120ms ease;
}

.acct-qa:active {
  transform: scale(.95);
}

.acct-qa-ic {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .12);
  transition: background-color 150ms ease;
}

.acct-qa:hover .acct-qa-ic {
  background: rgba(255, 255, 255, .2);
}

.acct-qa-ic.is-primary {
  background: #fff;
  color: #0b0c12;
}

.acct-qa:hover .acct-qa-ic.is-primary {
  background: #e9e9f2;
}

.acct-qa-ic svg {
  width: 21px;
  height: 21px;
}

.acct-eye {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: background-color 150ms ease;
}

.acct-eye:hover {
  background: var(--ds-hover);
}

.acct-eye svg {
  width: 18px;
  height: 18px;
}

.acct-eye.is-onDark {
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
}

.acct-eye.is-onDark:hover {
  background: rgba(255, 255, 255, .18);
}

.acct-cur-pill {
  height: 30px;
  padding: 0 11px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, transform 120ms ease;
}

.acct-cur-pill:hover {
  background: rgba(255, 255, 255, .2);
}

.acct-cur-pill:active {
  transform: scale(.95);
}

.acct-eye.is-sm {
  width: 26px;
  height: 26px;
  margin-left: 2px;
}

.acct-eye.is-sm svg {
  width: 15px;
  height: 15px;
}

/* earnings */
.acct-wrap+.acct-wrap {
  margin-top: 12px;
}

.acct-earn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.acct-earn-main {
  flex: 1;
  min-width: 0;
}

.acct-earn-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.acct-earn-amt {
  font-size: 26px;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  margin: 2px 0 2px;
}

/* payment method rows (non-nested clickable + trailing remove) */
.acct-method-row {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.acct-method-row+.acct-method-row,
.acct-method-row+.ds-row,
.ds-row+.acct-method-row {
  border-top: 1px solid var(--border);
}

.acct-method-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
  color: var(--foreground);
  transition: background-color 120ms ease;
}

.acct-method-main:hover {
  background: var(--ds-hover);
}

.acct-method-main:active {
  background: var(--ds-press);
}

.acct-method-rm {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: background-color 120ms ease, color 120ms ease;
}

.acct-method-rm:hover {
  background: color-mix(in srgb, var(--error) 12%, transparent);
  color: var(--error);
}

.acct-method-rm svg {
  width: 17px;
  height: 17px;
}

/* activity */
.acct-activity {
  padding-top: 22px;
}

.acct-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 12px;
}

.acct-activity-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 8px;
}

.acct-activity-tools .ds-search input {
  height: 40px;
}

.acct-tool-btn {
  height: 40px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--background);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.acct-csv-btn {
  min-width: 40px;
  padding: 0 11px;
}

@media (min-width: 640px) {
  .acct-csv-btn {
    padding: 0 14px;
  }
}

.acct-tool-btn:hover {
  background: var(--ds-hover);
}

.acct-tool-btn:active {
  transform: scale(.96);
}

.acct-tool-btn:disabled {
  opacity: .45;
  pointer-events: none;
}

.acct-tool-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.acct-tool-btn.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--background));
  color: var(--primary);
}

.acct-tool-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acct-active-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 2px 16px 8px;
}

.acct-fchip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px 0 10px;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--card-border));
  background: color-mix(in srgb, var(--primary) 9%, var(--background));
  color: var(--foreground);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 120ms ease;
}

.acct-fchip:hover {
  background: color-mix(in srgb, var(--primary) 16%, var(--background));
}

.acct-fchip-x {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.acct-fchip-x svg {
  width: 12px;
  height: 12px;
}

.acct-fchip-clear {
  font-size: 12px;
  font-weight: 700;
  color: var(--link);
  padding: 4px 6px;
}

.acct-fchip-clear:hover {
  text-decoration: underline;
}

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

@media (min-width: 440px) {
  .acct-sort-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.acct-tx-date {
  padding: 14px 16px 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.acct-tx-list {
  margin: 0 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--ds-radius-l);
  overflow: hidden;
  background: var(--background);
}

.acct-tx {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-align: left;
  transition: background-color 120ms ease;
}

.acct-tx+.acct-tx {
  border-top: 1px solid var(--border);
}

.acct-tx:hover {
  background: var(--ds-hover);
}

.acct-tx:active {
  background: var(--ds-press);
}

.acct-tx-ic {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--content);
  color: var(--foreground);
}

.acct-tx-ic svg {
  width: 18px;
  height: 18px;
}

.acct-tx-ic.is-in {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.acct-tx-ic.is-prem {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.acct-tx-ic.is-gift {
  background: color-mix(in srgb, #ec4899 14%, transparent);
  color: #ec4899;
}

.acct-tx-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.acct-tx-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-tx-note {
  font-size: 12.5px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.acct-tx-amt {
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  flex-shrink: 0;
}

.acct-tx-amt.is-in {
  color: var(--success);
}

/* numbered pagination */
.acct-pager-wrap {
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.acct-pager-meta {
  font-size: 12.5px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.acct-pager-meta b {
  color: var(--foreground);
  font-weight: 700;
}

.acct-pager {
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.acct-pg-nav {
  height: 36px;
  padding: 0 11px;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  background: var(--background);
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 140ms ease, transform 120ms ease;
}

.acct-pg-nav:hover {
  background: var(--ds-hover);
}

.acct-pg-nav:active {
  transform: scale(.96);
}

.acct-pg-nav:disabled {
  opacity: .4;
  pointer-events: none;
}

.acct-pg-nav svg {
  width: 15px;
  height: 15px;
}

.acct-pg-nums {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.acct-pg-num {
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 9999px;
  font-family: var(--ds-font-display);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.acct-pg-num:hover {
  background: var(--ds-hover);
  color: var(--foreground);
}

.acct-pg-num:active {
  transform: scale(.94);
}

.acct-pg-num.is-active {
  background: var(--foreground);
  color: var(--background);
}

.acct-pg-ellipsis {
  min-width: 20px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-foreground);
  user-select: none;
}

@media (min-width: 560px) {
  .acct-pager {
    max-width: 440px;
    gap: 8px;
  }

  .acct-pg-num {
    min-width: 36px;
    height: 36px;
  }
}

/* popovers & quick forms */
.acct-pop {
  padding: 6px;
  min-width: 230px;
}

.acct-pop-title {
  font-family: var(--ds-font-display);
  font-size: 15px;
  font-weight: 800;
  padding: 8px 10px 10px;
  color: var(--foreground);
}

.acct-pop-foot {
  font-size: 12px;
  color: var(--muted-foreground);
  padding: 10px 10px 6px;
}

.acct-amt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 4px;
}

.acct-amt {
  height: 42px;
  border-radius: 12px;
  background: var(--content);
  color: var(--foreground);
  font-family: var(--ds-font-display);
  font-weight: 800;
  font-size: 15px;
  transition: background-color 150ms ease, transform 120ms ease;
}

.acct-amt:hover {
  background: var(--ds-press);
}

.acct-amt:active {
  transform: scale(.96);
}

.acct-custom-topup {
  display: flex;
  gap: 6px;
  padding: 8px 4px 2px;
}

.acct-custom-topup input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--background);
  color: var(--foreground);
  padding: 0 11px;
  font-size: 14px;
  font-family: var(--ds-font-display);
  font-weight: 700;
}

.acct-custom-topup input:focus {
  outline: none;
  border-color: var(--primary);
}

.acct-pop-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--foreground);
  text-align: left;
}

button.acct-pop-item:hover {
  background: var(--ds-hover);
}

.acct-pop-item.is-danger {
  color: var(--error);
}

.acct-pop-ic {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex-shrink: 0;
}

.acct-pop-ic svg {
  width: 20px;
  height: 20px;
}

/* ---------- Premium ---------- */
.acct-prem-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--ds-radius-xl);
  padding: 22px 20px 20px;
  background: var(--ds-grad);
  color: #fff;
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--primary) 80%, transparent);
}

.acct-prem-glow {
  position: absolute;
  inset: auto -40px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .22);
  filter: blur(40px);
  pointer-events: none;
}

.acct-prem-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 5px 11px 5px 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .18);
}

.acct-prem-kicker-ic {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.acct-prem-kicker-ic svg {
  width: 11px;
  height: 11px;
}

.acct-prem-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 14px;
}

.acct-prem-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
  margin-top: 6px;
  line-height: 1.4;
  max-width: 420px;
}

.acct-prem-bar {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .25);
  margin-top: 16px;
  overflow: hidden;
}

.acct-prem-bar>span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.acct-plans {
  border: 1px solid var(--card-border);
  border-radius: var(--ds-radius-l);
  overflow: hidden;
  background: var(--background);
}

.acct-plan {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  transition: background-color 120ms ease;
  position: relative;
}

.acct-plan+.acct-plan {
  border-top: 1px solid var(--border);
}

.acct-plan:hover {
  background: var(--ds-hover);
}

.acct-plan.is-active {
  background: color-mix(in srgb, var(--primary) 7%, transparent);
}

.acct-radio {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 2px solid var(--card-border);
  flex-shrink: 0;
  position: relative;
  transition: border-color 150ms ease;
}

.acct-plan.is-active .acct-radio {
  border-color: var(--primary);
}

.acct-plan.is-active .acct-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 9999px;
  background: var(--primary);
}

.acct-plan-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.acct-plan-title {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
}

.acct-plan-sub {
  font-size: 12.5px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.acct-plan-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.acct-plan-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--foreground);
}

.acct-plan-save {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--success);
  margin-top: 1px;
}

.acct-fine {
  padding: 16px 16px 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  text-align: center;
}

.acct-warn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--ds-radius-l);
  background: color-mix(in srgb, var(--warning) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 28%, transparent);
}

.acct-warn-ic {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: var(--warning);
  flex-shrink: 0;
}

.acct-warn-ic svg {
  width: 19px;
  height: 19px;
}

.acct-warn-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--foreground);
}

.acct-amber {
  color: var(--warning);
  font-weight: 700;
}

.acct-pill-warn {
  background: color-mix(in srgb, var(--warning) 15%, transparent);
  color: var(--warning);
}

/* subscription rows */
.acct-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 12px 14px;
  min-height: 64px;
}

.acct-sub-row+.acct-sub-row {
  border-top: 1px solid var(--border);
}

.acct-sub-item {
  padding: 14px 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acct-sub-item+.acct-sub-item {
  border-top: 1px solid var(--border);
}

.acct-sub-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acct-sub-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.acct-sub-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--foreground);
  min-width: 0;
}

.acct-sub-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted-foreground);
  margin-top: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-sub-price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--foreground);
  opacity: .82;
}

.acct-sub-prog {
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acct-sub-prog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.acct-sub-left {
  font-weight: 700;
  color: var(--foreground);
}

.acct-sub-date {
  color: var(--muted-foreground);
  text-align: right;
}

.acct-sub-bar {
  height: 5px;
  border-radius: 9999px;
  background: var(--content);
  overflow: hidden;
}

.acct-sub-bar>span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 240ms var(--ds-ease);
}

.acct-sub-bar>span.is-warn {
  background: var(--warning);
}

.acct-sub-renew {
  padding-right: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}

.acct-sub-renew-lbl {
  color: var(--foreground);
  font-size: 13px;
  font-weight: 600;
}

.acct-more {
  width: 30px;
  height: 30px;
  color: var(--muted-foreground);
}

.acct-more svg {
  width: 18px;
  height: 18px;
}

/* ---------- Bookmarks & Save to Collection ---------- */
.acct-hist-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.acct-feed { padding-top: 0; }

/* Collections grid on Bookmarks page */
/* ---------- Bookmarks sleek segmented top tabs ---------- */
.bm-tabs-bar {
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.bm-seg-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--content);
  border: 1px solid var(--border);
}

.bm-seg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.bm-seg-tab:hover {
  color: var(--foreground);
}

.bm-seg-tab.is-active {
  background: var(--background);
  color: var(--foreground);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08), 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
}

.bm-seg-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: .75;
}

.bm-seg-tab.is-active .bm-seg-ico {
  color: var(--primary);
  opacity: 1;
}

.bm-seg-ico svg {
  width: 15px;
  height: 15px;
}

.bm-seg-cnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  color: var(--muted-foreground);
}

.bm-seg-tab.is-active .bm-seg-cnt {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.bm-section-wrap { padding: 14px 0 8px; }
.bm-col-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
@media (min-width: 540px) {
  body:not(.mobile-sim) .bm-col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.bm-col-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  border-radius: var(--ds-radius-l); border: 1px solid var(--card-border);
  background: var(--background); overflow: hidden;
  transition: border-color 150ms ease, transform 120ms ease, background-color 140ms ease;
}
.bm-col-card:hover { background: var(--ds-hover); border-color: color-mix(in srgb, var(--foreground) 20%, var(--card-border)); }
.bm-col-card:active { transform: scale(.985); }
.bm-col-cover {
  position: relative; width: 100%; aspect-ratio: 1.12 / 1;
  background: var(--content); overflow: hidden; border-bottom: 1px solid var(--border);
}
.bm-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-cover-grid { display: grid; width: 100%; height: 100%; gap: 2px; background: var(--border); }
.bm-cover-grid img { width: 100%; height: 100%; object-fit: cover; display: block; min-width: 0; min-height: 0; }
.bm-cover-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-cover-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.bm-cover-grid3 img:first-child { grid-row: span 2; }
.bm-cover-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.bm-cover-note {
  width: 100%; height: 100%; padding: 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: color-mix(in srgb, var(--card) 75%, var(--background));
}
.bm-cover-note-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--foreground); min-width: 0; }
.bm-cover-note-head img { width: 18px; height: 18px; border-radius: 9999px; object-fit: cover; flex-shrink: 0; }
.bm-cover-note-head span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-cover-note-txt {
  font-size: 12px; line-height: 1.38; color: var(--muted-foreground);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bm-cover-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); opacity: .65;
}
.bm-cover-empty svg { width: 26px; height: 26px; }

.bm-col-foot { display: flex; align-items: center; gap: 6px; padding: 9px 6px 10px 12px; min-width: 0; }
.bm-col-meta { flex: 1; min-width: 0; }
.bm-col-name {
  font-family: var(--ds-font-display); font-size: 14.5px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25;
}
.bm-col-sub { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-col-more { width: 30px; height: 30px; color: var(--muted-foreground); }
.bm-col-more svg { width: 17px; height: 17px; }

.bm-posts-section { padding-top: 16px; border-top: 1px solid var(--border); margin-top: 12px; }
.bm-posts-section .feed-stream { border-top: 1px solid var(--border); }

.bm-inf-sentinel { padding: 18px 16px 28px; }
.bm-inf-sentinel .pf-inf-status.is-done {
  border-color: var(--border);
  background: transparent;
  color: var(--muted-foreground);
  box-shadow: none;
}
.bm-inf-spinner {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-top-color: var(--primary);
  display: inline-block;
  flex-shrink: 0;
  animation: bmInfSpin 680ms linear infinite;
}
.bm-inf-done-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--success, #16a34a);
  display: inline-block;
  flex-shrink: 0;
}
@keyframes bmInfSpin {
  to { transform: rotate(360deg); }
}

/* Pushed collection page mobile summary strip */
.bm-colpage-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--background);
}
.bm-colpage-thumb-wrap {
  width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--card-border); background: var(--content);
}
.bm-colpage-title {
  font-family: var(--ds-font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Floating "Saved to General · Save to collection ›" bar */
.bm-saved-bar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  z-index: 48;
  border-radius: 16px;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--card-border);
  box-shadow: var(--ds-shadow-pop);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 200ms var(--ds-ease), transform 220ms var(--ds-ease), bottom 220ms var(--ds-ease);
}
html.dark .bm-saved-bar { background: color-mix(in srgb, var(--card) 96%, transparent); }
.bm-saved-bar.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (min-width: 768px) {
  body:not(.mobile-sim) .bm-saved-bar {
    left: 50%; right: auto; bottom: 24px;
    width: min(420px, calc(100vw - 32px));
    transform: translate(-50%, 14px);
  }
  body:not(.mobile-sim) .bm-saved-bar.is-visible { transform: translate(-50%, 0); }
}
body.mobile-sim .bm-saved-bar {
  position: absolute !important; left: 12px !important; right: 12px !important;
  bottom: 68px !important; width: auto !important;
  transform: translateY(14px);
}
body.mobile-sim .bm-saved-bar.is-visible { transform: translateY(0); }
@media (max-width: 767px) {
  body.radio-mini-active .bm-saved-bar,
  body.install-banner-on .bm-saved-bar { bottom: calc(142px + env(safe-area-inset-bottom, 0px)); }
}
body.mobile-sim.radio-mini-active .bm-saved-bar,
body.mobile-sim.install-banner-on .bm-saved-bar { bottom: 142px !important; }

.bm-saved-bar-hit {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: inherit; text-align: left;
  transition: transform 120ms ease;
}
.bm-saved-bar-hit:active { transform: scale(.985); }
.bm-saved-thumb {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: var(--content); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}
.bm-saved-copy { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.bm-saved-title {
  font-size: 13.5px; font-weight: 700; color: var(--foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bm-saved-action {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
  font-size: 13.5px; font-weight: 700; color: var(--link); white-space: nowrap;
}
.bm-saved-action svg { width: 15px; height: 15px; }

/* Thumbnails shared by bar, sheet rows, and cover picker */
.bm-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-thumb-fallback {
  width: 100%; height: 100%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--content); color: var(--muted-foreground);
}
.bm-thumb-fallback svg { width: 17px; height: 17px; }
.bm-thumb-av { width: 24px; height: 24px; border-radius: 9999px; object-fit: cover; display: block; }
.bm-row-thumb-wrap {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--card-border); background: var(--content);
  display: inline-flex; align-items: center; justify-content: center;
}
.bm-row-thumb-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); width: 100%; height: 100%; gap: 1px; background: var(--border); }
.bm-row-thumb-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-colpage-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Save to collection sheet */
.bm-sheet-post-thumb {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--card-border); background: var(--content);
}
.bm-new-trigger {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--ds-radius-m);
  border: 1px dashed var(--card-border); background: var(--background);
  color: var(--link); font-size: 14px; font-weight: 700; text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.bm-new-trigger:hover { background: var(--ds-hover); border-color: var(--primary); }
.bm-new-trigger:active { transform: scale(.985); }
.bm-new-plus {
  width: 34px; height: 34px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--link); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bm-new-plus svg { width: 18px; height: 18px; }
.bm-new-form {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--ds-radius-m);
  border: 1.5px solid var(--primary); background: color-mix(in srgb, var(--primary) 5%, var(--background));
}
.bm-new-input { height: 36px !important; padding: 0 10px !important; font-size: 16px !important; flex: 1; min-width: 0; }
.bm-new-cancel { width: 32px; height: 32px; color: var(--muted-foreground); }
.bm-new-cancel svg { width: 17px; height: 17px; }

.bm-sheet-list {
  border: 1px solid var(--card-border); border-radius: var(--ds-radius-l);
  overflow: hidden; background: var(--background);
}
.bm-sheet-row {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; text-align: left; transition: background-color 120ms ease;
}
.bm-sheet-row + .bm-sheet-row { border-top: 1px solid var(--border); }
.bm-sheet-row:hover { background: var(--ds-hover); }
.bm-sheet-row.is-selected { background: color-mix(in srgb, var(--primary) 6%, transparent); }
.bm-sheet-row-body { flex: 1; min-width: 0; }
.bm-sheet-row-title { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--foreground); min-width: 0; }
.bm-sheet-row-title span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-sheet-row-sub { font-size: 12.5px; color: var(--muted-foreground); margin-top: 1px; }
.bm-chk {
  width: 24px; height: 24px; border-radius: 9999px; border: 2px solid var(--card-border);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: border-color 150ms ease, background-color 150ms ease, transform 140ms var(--ds-ease);
}
.bm-chk.is-on { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.bm-chk.is-locked { opacity: .78; }
.bm-chk svg { width: 13px; height: 13px; }

/* Change cover sheet */
.bm-cover-preview-card {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--ds-radius-l); border: 1px solid var(--card-border); background: var(--card);
}
.bm-cover-preview-box {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--card-border); background: var(--content);
}
.bm-cover-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bm-cover-pick {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  border: 2px solid transparent; background: var(--content); transition: border-color 140ms ease, transform 120ms ease;
}
.bm-cover-pick:active { transform: scale(.96); }
.bm-cover-pick.is-active { border-color: var(--primary); }
.bm-cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-cover-pick-chk {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.bm-cover-pick-chk svg { width: 11px; height: 11px; }

/* ---------- Settings ---------- */
.acct-settings {
  padding-top: 12px;
  padding-bottom: 12px;
}

.acct-settings .ds-group>.acct-first-vis {
  border-top: 0 !important;
}

#acctSettingsResults .ds-group-title {
  padding-top: 4px;
}

.acct-verify-banner+.ds-row,
.acct-verify-banner+.acct-block {
  border-top: 1px solid var(--border);
}

.acct-me-card {
  margin-bottom: 4px;
}

.acct-me-row {
  min-height: 76px;
}

.acct-me-name {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--ds-font-display);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.acct-accent-pip {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 18%, transparent);
}

.acct-res-sec {
  font-weight: 700;
  color: var(--primary);
}

.acct-foot-note {
  padding: 18px 16px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

.acct-sub-stack {
  padding-top: 6px;
}

.acct-sub-stack>.ds-group:first-child {
  margin-top: 10px;
}

.acct-row-flash {
  animation: acctRowFlash 1.4s var(--ds-ease);
}

@keyframes acctRowFlash {

  0%,
  20% {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
  }

  100% {
    background: transparent;
  }
}

.acct-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.acct-theme-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--ds-radius-m);
  border: 1.5px solid var(--card-border);
  background: var(--background);
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease, transform 120ms ease;
}

.acct-theme-card:hover {
  background: var(--ds-hover);
}

.acct-theme-card:active {
  transform: scale(.98);
}

.acct-theme-card.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--background));
}

.acct-theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.acct-theme-swatch::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 4px;
  border-radius: 9999px;
  background: var(--primary);
}

.acct-theme-chk {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.acct-theme-chk svg {
  width: 12px;
  height: 12px;
}

.acct-acc-chk {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acct-acc-chk svg {
  width: 12px;
  height: 12px;
}

.acct-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: var(--content);
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
}

.acct-verify-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.acct-verify-banner-ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary);
}

.acct-verify-banner-ic.is-ok {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
}

.acct-verify-banner-ic.is-warn {
  background: color-mix(in srgb, var(--warning) 15%, transparent);
  color: var(--warning);
}

.acct-verify-banner-ic svg {
  width: 19px;
  height: 19px;
}

.acct-promo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.acct-promo-item+.acct-promo-item {
  border-top: 1px solid var(--border);
}

.acct-block {
  padding: 14px 16px 16px;
}

.ds-row+.acct-block,
.acct-block+.acct-block,
.acct-block+.ds-row {
  border-top: 1px solid var(--border);
}

.acct-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.acct-block-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--foreground);
}

.acct-req {
  color: var(--error);
  font-weight: 800;
}

.acct-err {
  color: var(--error) !important;
  font-weight: 600;
}

.acct-catgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.acct-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  background: var(--background);
  transition: all 150ms ease;
}

.acct-cat:hover {
  background: var(--ds-hover);
}

.acct-cat.is-active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.acct-cat-check {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.acct-cat-check svg {
  width: 14px;
  height: 14px;
}

.acct-seg-full .ds-segment {
  display: flex;
  width: 100%;
}

.acct-seg-full .ds-segment button {
  flex: 1;
  padding: 8px 10px;
  font-size: 13.5px;
}

.acct-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.acct-swatch {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: var(--sw);
  position: relative;
  transition: transform 150ms var(--ds-ease);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--foreground) 18%, transparent);
}

.acct-swatch:hover {
  transform: scale(1.08);
}

.acct-swatch.is-active {
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--primary);
}

.acct-swatch-custom {
  background: conic-gradient(#f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e);
  cursor: pointer;
  overflow: hidden;
}

.acct-swatch-custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Creator inline plan editor (Settings -> Creator) */
.acct-plan-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: color-mix(in srgb, var(--card) 55%, var(--background));
}

.acct-plan-ed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.acct-plan-ed-list {
  border: 1px solid var(--card-border);
  border-radius: var(--ds-radius-m);
  background: var(--background);
  overflow: hidden;
}

.acct-plan-ed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
}

.acct-plan-ed-row+.acct-plan-ed-row {
  border-top: 1px solid var(--border);
}

.acct-plan-ed-info {
  flex: 1;
  min-width: 0;
}

.acct-plan-ed-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.acct-plan-ed-lbl {
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
}

.acct-plan-ed-meta {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.acct-usd-field {
  display: inline-flex;
  align-items: center;
  width: 106px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: 0 10px;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.acct-usd-field:focus-within {
  border-color: var(--primary);
  background: var(--background);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.acct-usd-prefix {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted-foreground);
}

.acct-usd-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 14.5px;
  font-weight: 700;
  text-align: right;
  outline: none;
}

.acct-plan-ed-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acct-plan-ed-foot .ds-btn.is-saved {
  background: var(--content);
  color: var(--foreground);
}

.acct-plan-ed-foot #acctPlanSavedBadge {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.acct-plan-ed-foot #acctPlanSavedBadge svg {
  width: 13px;
  height: 13px;
}

/* ---------- Modal sheets (Add card, Send money, Withdraw, Gift, Receipt, Shortcuts) ---------- */
.acct-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
}

.acct-sheet-title {
  font-family: var(--ds-font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.acct-sheet-title svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
  flex-shrink: 0;
}

.acct-sheet-sub {
  font-size: 12.5px;
  color: var(--muted-foreground);
  margin-top: 2px;
}

.acct-plan-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.acct-mini-card {
  padding: 12px 13px;
  border-radius: var(--ds-radius-m);
  border: 1.5px solid var(--card-border);
  background: var(--background);
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.acct-mini-card:hover {
  background: var(--ds-hover);
}

.acct-mini-card.is-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.acct-kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 13.5px;
}

.acct-kv+.acct-kv {
  border-top: 1px solid var(--border);
}

.acct-kv-k {
  color: var(--muted-foreground);
}

.acct-kv-v {
  font-weight: 600;
  color: var(--foreground);
  text-align: right;
}

@media (min-width: 768px) {
  .acct-balance-amt {
    font-size: 42px;
  }

  .acct-qa-ic {
    width: 50px;
    height: 50px;
  }
}

/* ---------- Payment Passcode Overlay & Keypad (Centered Modal) ---------- */
.pp-backdrop {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(6, 10, 20, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ppFadeIn 160ms ease-out;
}

body.mobile-sim .pp-backdrop {
  position: absolute;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

@keyframes ppFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ppSheetUp {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ppShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(5px); }
}

.pp-sheet {
  width: 100%;
  max-width: 390px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--background);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 18px 22px 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .38);
  animation: ppSheetUp 220ms var(--ds-ease);
}

.pp-sheet .ov-grabber-wrap {
  display: none !important;
}

.pp-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
}

.pp-close {
  position: absolute;
  right: -6px;
  top: 0;
}

.pp-shield {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 13%, transparent);
  color: var(--primary);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ds-ease);
}

.pp-shield.is-ok {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  transform: scale(1.06);
}

.pp-shield svg {
  width: 24px;
  height: 24px;
}

.pp-head {
  text-align: center;
  margin-top: 12px;
}

.pp-title {
  font-family: var(--ds-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.pp-sub {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 4px;
  line-height: 1.4;
}

.pp-summary {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pp-summary-main {
  min-width: 0;
  flex: 1;
}

.pp-summary-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-summary-sub {
  font-size: 12px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.pp-summary-amt {
  font-family: var(--ds-font-display);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
  flex-shrink: 0;
}

.pp-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0 8px;
}

.pp-dots.is-shake {
  animation: ppShake 380ms ease;
}

.pp-dot {
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  border: 2px solid var(--card-border);
  background: transparent;
  transition: transform 140ms var(--ds-ease), background-color 140ms ease, border-color 140ms ease;
}

.pp-dot.is-filled {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.12);
}

.pp-dot.is-ok {
  background: var(--success);
  border-color: var(--success);
}

.pp-dot.is-err {
  background: var(--error);
  border-color: var(--error);
}

.pp-msg {
  min-height: 20px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}

.pp-msg.is-err {
  color: var(--error);
}

.pp-msg.is-ok {
  color: var(--success);
}

.pp-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 288px;
  margin: 0 auto;
}

.pp-pad.is-disabled {
  opacity: .45;
  pointer-events: none;
}

.pp-key {
  height: 54px;
  border-radius: 16px;
  background: var(--content);
  border: 1px solid color-mix(in srgb, var(--card-border) 75%, transparent);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  color: var(--foreground);
  font-family: var(--ds-font-display);
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 110ms ease, transform 90ms ease;
}

.pp-key:hover {
  background: var(--ds-press);
}

.pp-key:active {
  transform: scale(.93);
  background: color-mix(in srgb, var(--primary) 16%, var(--content));
}

.pp-key-text {
  background: transparent;
  border-color: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--link);
}

.pp-key-text:hover {
  background: var(--ds-hover);
}

.pp-key-ico {
  background: transparent;
  border-color: transparent;
  color: var(--muted-foreground);
}

.pp-key-ico:hover {
  background: var(--ds-hover);
  color: var(--foreground);
}

.pp-left-slot {
  display: contents;
}

/* =====================================================================
   FLAGSHIP MODERN MODALS (Receipt · Extend/Subscribe · Searchable Category Dropdown)
   ===================================================================== */

/* ---------- Modern Receipt Modal ---------- */
.mod-rcpt-top {
  margin: 0;
  padding: 16px 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 9%, var(--card)) 0%,
    var(--card) 100%);
}

.mod-rcpt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mod-rcpt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.mod-rcpt-chip svg {
  width: 13px;
  height: 13px;
}

.mod-rcpt-hero {
  text-align: center;
  padding-top: 14px;
}

.mod-rcpt-amt {
  font-family: var(--ds-font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--foreground);
}

.mod-rcpt-amt.is-in {
  color: var(--success);
}

.mod-rcpt-item {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
}

.mod-rcpt-date {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mod-rcpt-ticket {
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card);
  overflow: hidden;
}

.mod-rcpt-perf {
  position: relative;
  height: 1px;
  padding: 0 14px;
}

.mod-rcpt-rows {
  padding: 6px 15px;
}

.mod-rcpt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--border) 85%, transparent);
  font-size: 13.5px;
}

.mod-rcpt-row:last-child {
  border-bottom: 0;
}

.mod-rcpt-k {
  color: var(--muted-foreground);
  font-weight: 500;
  flex-shrink: 0;
}

.mod-rcpt-v {
  font-weight: 700;
  color: var(--foreground);
  text-align: right;
  min-width: 0;
}

.mod-rcpt-note {
  font-weight: 500;
  color: var(--muted-foreground);
  max-width: 66%;
  line-height: 1.35;
}

.mod-rcpt-settled {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  background: color-mix(in srgb, var(--success) 13%, transparent);
  color: var(--success);
}

.mod-rcpt-inv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 72%;
  padding: 4px 9px;
  border-radius: 9px;
  background: var(--content);
  color: var(--foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease;
}

.mod-rcpt-inv span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mod-rcpt-inv svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .7;
}

.mod-rcpt-inv.is-copied {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

.mod-rcpt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mod-rcpt-actions svg {
  width: 15px;
  height: 15px;
}

/* ---------- Modern Extend / Subscribe Modal ---------- */
.mod-sub-hero {
  margin: 0;
  padding: 15px 16px 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 15%, var(--border));
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--primary) 10%, var(--card)) 0%,
    var(--card) 100%);
}

.mod-sub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mod-sub-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.mod-sub-av {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 3.5px color-mix(in srgb, var(--primary) 45%, transparent);
}

.mod-sub-emblem {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-grad);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--primary) 55%, transparent);
}

.mod-sub-emblem svg {
  width: 22px;
  height: 22px;
}

.mod-sub-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ds-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.mod-sub-sub {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.mod-sub-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mod-perk-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 25px;
  padding: 0 9px;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--foreground);
}

.mod-perk-pill svg {
  width: 11.5px;
  height: 11.5px;
  color: var(--primary);
}

.mod-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}

.mod-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 14px 13px 12px;
  border-radius: 18px;
  border: 1.5px solid var(--card-border);
  background: var(--background);
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, transform 110ms ease;
}

.mod-plan-card:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
}

.mod-plan-card:active {
  transform: scale(0.985);
}

.mod-plan-card.is-selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--primary) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}

.mod-plan-tag {
  position: absolute;
  top: -9px;
  left: 11px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 2px 8px -2px color-mix(in srgb, var(--primary) 55%, transparent);
}

.mod-plan-tag.is-best {
  background: var(--foreground);
  color: var(--background);
}

.mod-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mod-plan-dur {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--foreground);
}

.mod-plan-radio {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1.8px solid var(--card-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 140ms ease;
}

.mod-plan-radio svg {
  width: 11px;
  height: 11px;
}

.mod-plan-card.is-selected .mod-plan-radio {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.mod-plan-price {
  margin-top: 8px;
  font-family: var(--ds-font-display);
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.mod-plan-foot {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mod-plan-mo {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}

.mod-plan-save {
  padding: 2px 6px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 800;
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
  white-space: nowrap;
}

.mod-sub-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
}

.mod-sub-note {
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-foreground);
}

/* ---------- Facebook-Style Searchable Account Category Dropdown ---------- */
.catdd {
  position: relative;
  width: 100%;
}

.catdd-trigger {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 13px;
  border: 1.5px solid var(--card-border);
  background: var(--background);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.catdd.is-open .catdd-trigger,
.catdd-trigger:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  outline: none;
}

.catdd-val {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.catdd-val.is-placeholder .catdd-val-lbl {
  color: var(--muted-foreground);
  font-weight: 500;
}

.catdd-val-lbl {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catdd-val-grp {
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--content);
  color: var(--muted-foreground);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.catdd-chev {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  flex-shrink: 0;
  transition: transform 180ms ease;
}

.catdd-chev svg {
  width: 18px;
  height: 18px;
}

.catdd.is-open .catdd-chev {
  transform: rotate(180deg);
  color: var(--primary);
}

.catdd-panel {
  margin-top: 6px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--background);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.catdd-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.catdd-search-wrap svg {
  width: 16px;
  height: 16px;
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.catdd-search {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13.5px;
  color: var(--foreground);
}

.catdd-search::placeholder {
  color: var(--muted-foreground);
}

.catdd-list {
  max-height: 248px;
  overflow-y: auto;
  padding: 6px;
}

.catdd-group-lbl {
  padding: 8px 10px 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.catdd-opt {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  transition: background-color 120ms ease;
}

.catdd-opt:hover {
  background: var(--ds-hover);
}

.catdd-opt.is-selected {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.catdd-opt-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--foreground);
}

.catdd-opt.is-selected .catdd-opt-name {
  color: var(--primary);
}

.catdd-excl {
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary);
}

.catdd-opt-desc {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catdd-opt-chk {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.catdd-opt-chk svg {
  width: 16px;
  height: 16px;
}

.catdd-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

.pp-key-ico svg {
  width: 22px;
  height: 22px;
}

.pp-manage-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--card-border));
  background: color-mix(in srgb, var(--success) 7%, var(--card));
  margin: 4px 0 12px;
}

.pp-manage-ic {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pp-manage-ic svg {
  width: 16px;
  height: 16px;
}