/* portal.css - Styles for Member Portal and Admin Dashboard */

/* Isolated Financing design preview; no account-facing financial behavior. */
.financing-design-preview .portal-container { max-width: 1280px; }
.finance-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid #315749; border-radius: 6px; background: #112c23; margin-bottom: 24px; }
.finance-preview-banner p { margin: 0; color: var(--muted); font-size: 12px; }
.finance-preview-banner strong { color: var(--gold); margin-right: 8px; }
.finance-preview-banner label { display: flex; align-items: center; gap: 12px; font-size: 12px; flex-shrink: 0; }
.finance-preview-banner select { width: 140px; min-height: 40px; margin: 0; }
.finance-overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
.finance-panel { min-width: 0; background: #0a2116; border: 1px solid rgba(255,201,28,.3); border-radius: 7px; overflow: hidden; }
.finance-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #123021; border-bottom: 1px solid rgba(255,201,28,.15); }
.finance-panel-heading h2 { margin: 0; font-family: inherit; font-size: 16px; color: var(--cream); }
.finance-panel-body { padding: 20px; }
.finance-credit .finance-panel-body { display: flex; flex-direction: column; gap: 8px; min-height: 232px; box-sizing: border-box; }
.finance-credit-amount { color: var(--gold); font-size: 38px; line-height: 1.2; overflow-wrap: anywhere; }
.finance-panel-body p { margin: 0; font-size: 13px; line-height: 1.6; }
.finance-muted { color: var(--muted); font-size: 12px; line-height: 1.5; }
.finance-credit-footer { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: auto; padding-top: 20px; }
.finance-credit-footer small { color: var(--muted); font-size: 11px; max-width: 230px; }
.finance-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.finance-actions .button { min-height: 44px; }
.finance-activity-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.finance-activity-filters button { min-height: 36px; padding: 6px 12px; background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 4px; cursor: pointer; font: inherit; font-size: 12px; }
.finance-activity-filters button[aria-pressed="true"] { background: #353418; color: var(--gold); border-color: #7b6718; }
.finance-activity-list { height: 172px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.finance-activity-list::-webkit-scrollbar { width: 7px; }
.finance-activity-list::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.finance-activity-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #29402b; }
.finance-activity-row:first-child { padding-top: 0; }
.finance-activity-row > div { min-width: 0; }
.finance-activity-row > div:last-child { text-align: right; flex-shrink: 0; }
.finance-activity-row strong, .finance-activity-row small, .finance-activity-row span { display: block; }
.finance-activity-row strong { font-size: 13px; overflow-wrap: anywhere; }
.finance-activity-row small { font-size: 11px; margin-top: 4px; color: var(--muted); }
.finance-incoming { color: #86ddaa; }
.finance-pending { color: var(--gold-soft); font-size: 11px; }
.finance-panel-body .finance-filter-feedback { margin-top: 8px; color: var(--muted); font-size: 11px; }
.finance-feature { margin-top: 36px; }
.finance-availability-note { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
#financing-dashboard { background: transparent; border: 0; padding: 0; }
#financing-credit-account { min-width: 0; }
#financing-credit-account > .finance-eligibility-note { margin: 16px 0 0; }
#admin-financing-loan-list { margin-top: 32px; }
.finance-borrowing-choice { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.finance-borrowing-choice label, .finance-review-note { display: block; color: var(--muted); font-size: 12px; }
.finance-borrowing-choice select { margin-top: 8px; min-width: 220px; }
.finance-borrowing-choice > p { flex-basis: 100%; margin: 0; }
.finance-review-note { margin: 16px 0; }
.finance-review-note input { margin-top: 8px; }
#financing-review-owner { padding: 20px 0; border-block: 1px solid rgba(255,201,28,.2); }
#financing-review-owner h2 { font-size: 20px; }
#financing-review-access-form { max-width: 820px; margin-top: 16px; }
#financing-review-access-form label { display: block; color: var(--muted); font-size: 12px; }
#financing-review-access-form .form-control { margin: 8px 0 16px; }
.finance-repayment-tools { margin-top: 20px; }
.finance-repayment-tools > p { margin-top: 12px; }
.finance-transfer-tools { flex-basis: 100%; min-width: 0; }
#financing-transfer-body .form-group { margin-bottom: 16px; }
#financing-transfer-body > dl { margin-top: 0; }
#financing-transfer-body .finance-actions { margin-top: 20px; }
#admin-financing-transfer-list { margin-top: 32px; }
.financing-checkout-option { padding: 16px; margin-bottom: 20px; background: #123021; border: 1px solid #45501e; border-radius: 6px; }
.financing-checkout-option > div:first-child { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.financing-checkout-option > div:first-child strong { color: var(--gold); }
.financing-checkout-option > p { margin: 10px 0 16px; }
#financing-checkout-body > dl { margin-top: 16px; }
#financing-checkout-body .finance-actions { margin-top: 20px; }
#admin-financing-repayment-list { margin-top: 32px; }
#financing-repayment-dialog .form-group { margin-bottom: 16px; }
#financing-repayment-dialog-body > dl { margin-top: 0; }
.finance-feature > h2 { margin: 0 0 12px; font-family: inherit; font-size: 20px; }
.finance-feature > p { margin: 0 0 12px; }
.finance-feature > .benefit-table-wrap + p { margin-top: 10px; }
.finance-repayment-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0 0 20px; }
.finance-repayment-stats dt, .finance-eyebrow { color: var(--muted); font-family: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; margin: 0; }
.finance-repayment-stats dd { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 24px; font-weight: 700; }
.finance-repayment-stats time { font-size: 20px; }
.finance-repayment-footer { display: flex; align-items: center; gap: 24px; }
.finance-repayment-progress { flex: 1; min-width: 0; }
.finance-repayment-progress > strong { font-size: 13px; }
.finance-repayment-progress .entry-progress-meter { margin: 10px 0; }
.finance-text-button { background: transparent; border: 0; color: var(--gold); font: inherit; font-size: 12px; font-weight: 700; min-height: 44px; padding: 4px 0; cursor: pointer; text-align: left; }
.finance-rank-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 24px; margin-top: 24px; }
.finance-members-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.finance-members-value > strong, .finance-rank-name { font-size: 28px; line-height: 1.3; }
.finance-rank-content { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: center; gap: 24px; }
.finance-rank-name { display: block; margin-top: 12px; }
.finance-next-rank > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.finance-next-rank strong { color: var(--gold); }
.finance-next-rank .entry-progress-meter { margin: 10px 0; }
.finance-next-rank p { color: var(--muted); font-size: 11px; }
.finance-lock-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px 20px; background: #321b16; border: 1px solid #a85e47; border-radius: 6px; margin-bottom: 24px; }
.finance-lock-notice strong { color: #ffb39b; }
.finance-lock-notice p { margin: 4px 0 0; font-size: 12px; }
.finance-overdue-badge { color: #ffb39b; border-color: #a85e47; background: #321b16; }
.finance-schedule { margin-top: 20px; }
.finance-preview-dialog-note { color: var(--gold-soft); font-size: 12px; margin: 0 0 16px; }
#finance-preview-dialog-body p { font-size: 14px; line-height: 1.6; }
#finance-preview-dialog-body label { display: block; color: var(--muted); font-size: 12px; margin-top: 16px; }
#finance-preview-dialog-body select { margin-top: 8px; }
.financing-design-preview :is(button, a, select, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 900px) { .finance-overview-grid { grid-template-columns: minmax(0,1fr); } .finance-credit .finance-panel-body { min-height: 0; } .finance-repayment-stats { gap: 16px; } }
@media (max-width: 640px) { .finance-preview-banner { align-items: flex-start; flex-direction: column; } .finance-rank-grid, .finance-repayment-stats { grid-template-columns: minmax(0,1fr); } .finance-rank-content { gap: 16px; } .finance-repayment-footer { align-items: stretch; flex-direction: column; gap: 16px; } .finance-credit-amount { font-size: 32px; } .finance-panel-body { padding: 16px; } .finance-panel-heading { padding: 14px 16px; } .finance-activity-row strong { font-size: 12px; } .finance-feature { margin-top: 28px; } }

/* Keep conditional portal sections hidden even when component display rules are more specific. */
[hidden] {
  display: none !important;
}

/* Inherit styling but add specialized layouts */
body.portal-body {
  background: 
    radial-gradient(circle at 10% 10%, rgba(255, 193, 23, 0.08), transparent 30rem),
    radial-gradient(circle at 90% 80%, rgba(12, 86, 37, 0.2), transparent 35rem),
    #020704;
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header customization */
.portal-header {
  border-bottom: 1px solid rgba(255, 201, 28, 0.25);
  background: rgba(2, 7, 4, 0.95);
  isolation: isolate;
  position: relative;
  z-index: 120;
}

.portal-container {
  width: min(1200px, calc(100% - 32px));
  margin: 2rem auto;
  flex-grow: 1;
}

/* Glassmorphic Auth Card */
.auth-wrapper {
  max-width: 480px;
  margin: 4rem auto;
}

.portal-card {
  background: rgba(7, 20, 11, 0.85);
  border: 1px solid rgba(255, 201, 28, 0.35);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-deep));
}

.portal-card h2 {
  font-family: Georgia, serif;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.portal-card p.subtitle {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(2, 7, 4, 0.6);
  border: 1px solid rgba(255, 201, 28, 0.3);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255, 201, 28, 0.25);
  background: rgba(2, 7, 4, 0.8);
}

.form-control::placeholder {
  color: rgba(198, 207, 188, 0.4);
}

.form-control:disabled {
  background: rgba(7, 20, 11, 0.5);
  border-color: rgba(255, 201, 28, 0.15);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.form-error {
  color: #ff4a4a;
  font-size: 0.72rem;
  margin-top: 0.3rem;
  font-weight: 700;
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-footer-compact {
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.form-footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: underline;
}

.form-footer a:hover {
  color: var(--gold-soft);
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.86rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.alert-success {
  background: rgba(12, 86, 37, 0.25);
  border: 1px solid rgba(12, 86, 37, 0.6);
  color: #abf1c2;
}

.alert-danger {
  background: rgba(162, 17, 17, 0.2);
  border: 1px solid rgba(162, 17, 17, 0.5);
  color: #ffb8b8;
}

.alert-info {
  background: rgba(25, 80, 110, 0.2);
  border: 1px solid rgba(25, 80, 110, 0.5);
  color: #bde4ff;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(255, 201, 28, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 201, 28, 0.1);
  color: var(--gold-soft);
}

/* Dashboard UI Layout */
.dashboard-grid {
  display: block;
  gap: 1.5rem;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-content > .portal-card:first-child { order: 0; }
#active-metrics-row { order: 2; }
#balance-card, #pending-details-card { order: 1; }
#premium-next-step { order: 3; }
#products-plus-card { order: 4; }
#commerce-packages-card { order: 5; }
#active-tree-card { order: 6; }
#premium-rules-card { order: 7; }

/* Status Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending {
  background: rgba(226, 99, 22, 0.2);
  border: 1px solid #e26316;
  color: #ffa56b;
}

.badge-active {
  background: rgba(47, 145, 68, 0.2);
  border: 1px solid #2f9144;
  color: #8bf29e;
}

.badge-rejected {
  background: rgba(208, 33, 32, 0.2);
  border: 1px solid #d02120;
  color: #ff9190;
}

/* Sidebar Details List */
.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 201, 28, 0.1);
  font-size: 0.86rem;
}

.details-list li:last-child {
  border-bottom: none;
}

.details-list .label {
  color: var(--muted);
  font-weight: 500;
}

.details-list .val {
  font-weight: 800;
  color: #fff;
  text-align: right;
  word-break: break-all;
}

/* Copy Panel */
.copy-panel {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.copy-panel input {
  flex-grow: 1;
  background: #020704;
  border: 1px solid rgba(255, 201, 28, 0.25);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.btn-icon-only {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  min-height: auto;
  font-size: 0.78rem;
}

/* Dashboard Summary Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  background: rgba(7, 20, 11, 0.8);
  border: 1px solid rgba(255, 201, 28, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card .title {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.metric-help {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  cursor: help;
  display: inline-flex;
  font-size: 0.58rem;
  height: 0.9rem;
  justify-content: center;
  margin-left: 0.25rem;
  position: relative;
  width: 0.9rem;
}

.metric-help::after {
  background: #101b12;
  border: 1px solid rgba(255, 201, 28, 0.35);
  border-radius: 6px;
  bottom: calc(100% + 0.5rem);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 0.7rem;
  font-weight: 600;
  left: 50%;
  line-height: 1.35;
  opacity: 0;
  padding: 0.5rem 0.6rem;
  pointer-events: none;
  position: absolute;
  text-transform: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
  visibility: hidden;
  width: 190px;
  z-index: 10;
}

.metric-help:hover::after,
.metric-help:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

@media (max-width: 640px) {
  .metrics-row .metric-card:nth-child(even) .metric-help::after {
    left: auto;
    right: 0;
    transform: translate(0, 0.25rem);
  }
  .metrics-row .metric-card:nth-child(even) .metric-help:hover::after,
  .metrics-row .metric-card:nth-child(even) .metric-help:focus::after {
    transform: translate(0, 0);
  }
}

.auth-security-note { color: var(--muted); font-size: 0.72rem; margin: 1rem 0 0; text-align: center; }
.admin-production-heading { color: var(--gold); font-family: inherit; font-size: 1rem; margin: 2rem 0 0.8rem; text-align: left; text-transform: uppercase; }
.admin-directory { margin-top: 2rem; }
.admin-directory .admin-production-heading { margin-top: 0; }
.admin-section-title p { color: var(--muted); font-size: 0.78rem; margin: -0.35rem 0 0.9rem; }
.admin-directory-filters { align-items: end; display: grid; gap: 0.8rem; grid-template-columns: minmax(240px, 2fr) minmax(170px, 1fr) auto; margin-bottom: 1rem; }
.admin-directory-filters .form-group { margin: 0; }
.admin-member-card .withdrawal-history-details { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.admin-member-table-wrap { margin-top: 0; }
.admin-member-table { min-width: 940px; }
.admin-member-table th { white-space: nowrap; }
.admin-member-table td { font-size: 0.76rem; vertical-align: middle; }
.admin-member-table td small { color: var(--muted); font-size: 0.65rem; }
.admin-member-table .actions { align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
.admin-member-table .button { white-space: nowrap; }
.admin-member-table td:last-child { position: relative; }
.matrix-plan-list { align-items: flex-start; display: flex; flex-direction: column; gap: 0.3rem; }
.matrix-plan-chip { background: rgba(255, 201, 28, 0.1); border: 1px solid rgba(255, 201, 28, 0.25); border-radius: 5px; color: #fff; display: inline-flex; font-size: 0.72rem; font-weight: 800; line-height: 1.25; padding: 0.25rem 0.4rem; }
.matrix-plan-chip.muted { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); color: var(--muted); }
.member-actions-menu { position: relative; }
.view-matrix-menu .member-actions-dropdown { right: auto; left: 0; }
.member-actions-toggle { align-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 5px; cursor: pointer; display: inline-flex; flex-direction: column; gap: 4px; height: 34px; justify-content: center; padding: 0; width: 34px; }
.member-actions-toggle span { background: #fff; border-radius: 999px; display: block; height: 2px; width: 17px; }
.member-actions-toggle:hover,
.member-actions-toggle[aria-expanded="true"] { background: rgba(255, 201, 28, 0.18); border-color: rgba(255, 201, 28, 0.7); }
.member-actions-dropdown { background: #061c10; border: 1px solid rgba(255, 201, 28, 0.28); border-radius: 6px; box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35); min-width: 150px; padding: 0.35rem; position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 30; }
.member-actions-dropdown[hidden] { display: none; }
.member-menu-item { background: transparent; border: 0; border-radius: 4px; color: #fff; cursor: pointer; display: block; font: inherit; font-size: 0.78rem; padding: 0.58rem 0.65rem; text-align: left; width: 100%; }
.member-menu-item:hover { background: rgba(255, 201, 28, 0.12); color: var(--gold-soft); }
.member-menu-item.danger { color: #ffaaa8; }
.member-menu-item.danger:hover { background: rgba(255, 88, 88, 0.12); color: #ffd1d0; }
.admin-table-handle { color: var(--gold-soft); display: inline-block; margin-bottom: 0.35rem; }
.admin-member-contact { color: var(--muted); font-size: 0.75rem; margin: 0.45rem 0 0; overflow-wrap: anywhere; }
.admin-pagination { align-items: center; display: flex; gap: 0.7rem; justify-content: center; margin-top: 1rem; }
.admin-pagination span { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.admin-copy-field { align-items: center; display: flex; gap: 0.4rem; min-width: 0; }
.admin-copy-field code { color: #fff; font-size: 0.72rem; max-width: 300px; overflow-wrap: anywhere; user-select: all; }
.copy-admin-value { align-items: center; background: rgba(255, 201, 28, 0.08); border: 1px solid rgba(255, 201, 28, 0.35); border-radius: 6px; color: var(--gold); cursor: pointer; display: inline-flex; flex: 0 0 auto; height: 28px; justify-content: center; padding: 0; position: relative; width: 28px; }
.copy-admin-value:hover, .copy-admin-value.copied { background: var(--gold); color: #171100; }
.copy-admin-value:disabled { cursor: not-allowed; opacity: 0.35; }
.copy-admin-value svg { fill: currentColor; height: 14px; width: 14px; }
.copy-feedback { background: #102617; border: 1px solid rgba(255, 201, 28, 0.35); border-radius: 5px; color: #fff; font-size: 0.62rem; font-weight: 800; left: 50%; padding: 0; position: absolute; top: calc(100% + 5px); transform: translateX(-50%); white-space: nowrap; z-index: 5; }
.copy-feedback:not(:empty) { padding: 0.25rem 0.4rem; }

.metric-card .value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
}

/* Member matrix overview */
.matrix-overview-card {
  padding: 1.5rem;
}

.timeline-dashboard-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

.matrix-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.matrix-card-header h3 {
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.matrix-card-header p {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.matrix-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 201, 28, 0.18);
  cursor: grab;
  scrollbar-color: rgba(255, 201, 28, 0.35) transparent;
  scrollbar-width: thin;
  user-select: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  touch-action: pan-y;
}

.matrix-tabs.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.matrix-tab {
  background: rgba(2, 7, 4, 0.7);
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
  font-family: inherit;
  min-width: 104px;
  padding: 0.58rem 0.7rem;
  text-align: left;
  transition: all 0.2s ease;
  scroll-snap-align: start;
}

.matrix-tab strong,
.matrix-tab > span {
  display: block;
}

.matrix-tab strong {
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.matrix-tab > span {
  color: var(--muted);
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

.matrix-tab .matrix-tab-status {
  align-items: center;
  display: flex;
  gap: 0.28rem;
  line-height: 1.15;
}

.status-icon {
  display: inline-block;
  flex: 0 0 auto;
  fill: currentColor;
  height: 0.82rem;
  width: 0.82rem;
}

.matrix-tab.locked .status-icon {
  color: #d5aa63;
  opacity: 0.8;
}

.matrix-tab.active .status-icon {
  color: #171100;
  opacity: 0.85;
}

.matrix-tab:hover {
  border-color: rgba(255, 201, 28, 0.5);
}

.matrix-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.matrix-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #171100;
}

.matrix-tab.active strong,
.matrix-tab.active span {
  color: #171100;
}

.matrix-tab.locked {
  opacity: 0.62;
}

/* Header account menu */
.user-status-strip {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  position: relative;
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
  pointer-events: auto;
  z-index: 130;
}

.user-status-strip[data-member-menu] {
  display: flex !important;
}

.notification-menu-toggle {
  align-items: center;
  background: rgba(7, 20, 11, 0.92);
  border: 1px solid rgba(255, 201, 28, 0.35);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}
.notification-menu-toggle:hover,
.notification-menu-toggle[aria-expanded="true"] { background: rgba(12, 86, 37, 0.35); border-color: var(--gold); }
.notification-menu-toggle.has-priority { box-shadow: 0 0 0 3px rgba(255, 201, 28, 0.12); }
.notification-bell { fill: currentColor; height: 20px; width: 20px; }
.notification-count { align-items: center; background: #ffcf38; border: 2px solid #061c10; border-radius: 999px; color: #171100; display: inline-flex; font-size: 0.62rem; font-weight: 900; height: 20px; justify-content: center; min-width: 20px; padding: 0 0.25rem; position: absolute; right: -5px; top: -5px; }
.notification-menu {
  background: rgba(4, 14, 7, 0.98);
  border: 1px solid rgba(255, 201, 28, 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  width: min(330px, calc(100vw - 120px));
  padding: 0.55rem;
  position: absolute;
  right: calc(100% - 42px);
  top: calc(100% + 0.65rem);
  z-index: 82;
}
.notification-menu[hidden] { display: none; }
.notification-menu-heading { align-items: center; border-bottom: 1px solid rgba(255, 201, 28, 0.15); display: flex; justify-content: space-between; padding: 0.4rem 0.45rem 0.65rem; }
.notification-menu-heading strong { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; }
.notification-menu-heading span { color: var(--muted); font-size: 0.72rem; }
.notification-list { display: grid; gap: 0.35rem; max-height: min(420px, 70vh); overflow: auto; padding-top: 0.45rem; }
.notification-item { border-radius: 8px; padding: 0.65rem; }
.notification-item.priority { background: rgba(255, 201, 28, 0.1); }
.notification-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px; }
.notification-toolbar button { min-height: 36px; padding: 4px 0; color: var(--gold); font: inherit; font-size: 12px; background: transparent; border: 0; cursor: pointer; }
.notification-toolbar button:disabled, .notification-icon-button:disabled { opacity: .45; cursor: default; }
.notification-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.notification-item-heading > strong { min-width: 0; padding-top: 7px; }
.notification-item-actions { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.notification-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: var(--gold); background: transparent; border: 1px solid rgba(255,201,28,.2); border-radius: 4px; cursor: pointer; }
.notification-icon-button:hover { background: #233b23; }
.notification-icon-button:focus-visible, .notification-toolbar button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.notification-feedback { padding: 0 8px 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.notification-feedback:empty { display: none; }
.notification-item.is-read { background: transparent; border-bottom: 1px solid rgba(255,201,28,.1); }
.notification-item .notification-read-label { color: var(--muted); font-size: 11px; }
@media (pointer: coarse) { .notification-icon-button { width: 44px; height: 44px; } }
.notification-item strong { color: #fff; display: block; font-size: 0.8rem; }
.notification-item p { color: var(--muted); font-size: 0.74rem; line-height: 1.45; margin: 0.25rem 0; }
.notification-item span,
.notification-empty { color: rgba(198, 207, 188, 0.72); font-size: 0.68rem; }
.notification-empty { padding: 0.9rem 0.65rem; }

.account-menu-toggle {
  align-items: center;
  background: rgba(7, 20, 11, 0.92);
  border: 1px solid rgba(255, 201, 28, 0.35);
  border-radius: 999px;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  min-height: 44px;
  min-width: 180px;
  padding: 0.38rem 0.65rem 0.38rem 0.4rem;
  pointer-events: auto;
  position: relative;
  text-align: left;
  z-index: 131;
}

.account-menu-toggle:hover,
.account-menu-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(12, 86, 37, 0.35);
}

.header-avatar {
  align-items: center;
  background: var(--forest-light);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 0.9rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.account-menu-copy { display: grid; min-width: 0; }
.account-menu-copy small { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; }
.account-menu-copy strong { max-width: min(150px, 38vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { color: var(--gold); margin-left: auto; }

.account-menu {
  background: rgba(4, 14, 7, 0.98);
  border: 1px solid rgba(255, 201, 28, 0.4);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  display: grid;
  min-width: 245px;
  max-height: min(520px, calc(100vh - 92px));
  overflow: auto;
  padding: 0.4rem;
  scrollbar-color: rgba(255, 201, 28, 0.55) rgba(255, 201, 28, 0.07);
  scrollbar-width: thin;
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  z-index: 132;
}

.account-menu::-webkit-scrollbar { width: 8px; }
.account-menu::-webkit-scrollbar-track { background: rgba(255, 201, 28, 0.07); border-radius: 8px; }
.account-menu::-webkit-scrollbar-thumb { background: rgba(255, 201, 28, 0.55); border: 2px solid #041007; border-radius: 8px; }
.account-menu::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.account-menu::-webkit-scrollbar-button { display: none; }

.account-menu[hidden] { display: none; }
.account-menu button,
.account-menu a {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--cream);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  text-align: left;
  text-decoration: none;
}
.account-menu button:hover,
.account-menu a:hover { background: rgba(255, 201, 28, 0.1); color: var(--gold-soft); }
.account-menu .account-menu-signout { border-top: 1px solid rgba(255, 201, 28, 0.15); color: #ff9b9b; margin-top: 0.25rem; }

/* Slide-over membership profile */
.profile-drawer {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.2s ease;
  visibility: hidden;
  z-index: 200;
}
.profile-drawer.open { opacity: 1; pointer-events: auto; visibility: visible; }
.profile-drawer-backdrop { background: rgba(0, 0, 0, 0.72); border: 0; inset: 0; position: absolute; width: 100%; }
.profile-drawer-card {
  background: #06150c;
  border-radius: 8px 0 0 8px;
  bottom: 0;
  max-width: 440px;
  overflow-y: auto;
  padding: 1.5rem;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  width: min(440px, 100%);
}
.profile-drawer.open .profile-drawer-card { transform: translateX(0); }
.profile-drawer-header { align-items: center; display: flex; gap: 0.7rem; justify-content: space-between; margin-bottom: 1rem; min-width: 0; }
.profile-drawer-header h3 { color: var(--gold); font-family: Georgia, serif; font-size: 1.2rem; margin: 0; min-width: 0; text-transform: uppercase; }
.profile-drawer-close { align-items: center; background: transparent; border: 1px solid rgba(255, 201, 28, 0.3); border-radius: 4px; color: var(--cream); cursor: pointer; display: inline-flex; flex: 0 0 36px; font-size: 1.4rem; height: 36px; justify-content: center; line-height: 1; }
.profile-drawer-close:hover { color: var(--gold); }
.profile-drawer-identity {
  background: linear-gradient(145deg, #0b2b18, #071a0e 75%);
  border-bottom: 1px solid rgba(255, 201, 28, 0.4);
  border-top: 1px solid rgba(255, 201, 28, 0.18);
  margin: 0 -1.5rem 1.5rem;
  overflow: hidden;
  padding: 1.5rem 1rem 1.4rem;
  position: relative;
  text-align: center;
}
.profile-drawer-identity::before {
  background-image: radial-gradient(circle, rgba(255, 201, 28, 0.16) 1px, transparent 1.5px);
  background-size: 14px 14px;
  content: "";
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
}
.profile-drawer-identity::after {
  border: 1px solid rgba(255, 201, 28, 0.28);
  border-radius: 50%;
  content: "";
  height: 250px;
  pointer-events: none;
  position: absolute;
  right: -92px;
  top: -125px;
  width: 250px;
}
.profile-drawer-identity > * { position: relative; z-index: 1; }
.profile-drawer-avatar {
  align-items: center;
  background: #0a2b18;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #0b2415, 0 0 0 6px rgba(255, 201, 28, 0.35);
  color: var(--gold);
  display: inline-flex;
  font-size: 1.8rem;
  font-weight: 800;
  height: 72px;
  justify-content: center;
  width: 72px;
}
.profile-drawer-identity h4 { color: #fff; font-size: 1.2rem; line-height: 1.25; margin: 0.9rem 0 0.2rem; overflow-wrap: anywhere; }
.profile-drawer-identity p { color: var(--gold-soft); font-size: 0.82rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.profile-drawer-identity .badge { margin-top: 0.8rem; }
.profile-details-heading { align-items: center; color: var(--gold); display: flex; font-size: 0.75rem; gap: 0.7rem; margin: 0 0 0.35rem; text-transform: uppercase; }
.profile-details-heading::after { background: rgba(255, 201, 28, 0.22); content: ""; flex: 1; height: 1px; }
body.profile-open { overflow: hidden; }
.profile-drawer-card .details-list li { align-items: start; display: grid; gap: 0.75rem; grid-template-columns: minmax(105px, 38%) minmax(0, 1fr); }
.profile-drawer-card .details-list .label, .profile-drawer-card .details-list .val { min-width: 0; }
.profile-drawer-card .details-list .val { overflow-wrap: anywhere; word-break: normal; }

#balance-card:focus,
#withdrawal-history:focus { outline: 2px solid var(--gold); outline-offset: 5px; }

@media (max-width: 680px) {
  .account-menu-toggle {
    min-width: min(180px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }
  .account-menu {
    min-width: min(245px, calc(100vw - 32px));
    right: 0;
    width: min(245px, calc(100vw - 32px));
  }
  .portal-container { width: min(100% - 20px, 1200px); }

  .metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .metric-card {
    min-height: 118px;
    padding: 1rem;
  }

  .metric-card .title {
    font-size: 0.66rem;
  }

  .metric-card .value {
    font-size: 1.3rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .account-menu-copy { display: none; }
  .account-menu-toggle {
    justify-content: center;
    min-width: 46px;
    padding: 0.32rem;
    width: 46px;
  }
  .account-chevron { margin-left: 0; }
  .brand small { display: none; }
  .profile-drawer-card { padding: 1rem; }
  .profile-drawer-identity { margin-left: -1rem; margin-right: -1rem; }
  .matrix-overview-card { padding: 1.15rem; }
}

@media (max-width: 430px) {
  .profile-drawer-card .details-list .profile-detail-wide { gap: 0.2rem; grid-template-columns: minmax(0, 1fr); }
  .profile-drawer-card .details-list .profile-detail-wide .val { text-align: left; }
}

/* Dedicated member withdrawal pages */
.withdrawal-header-wrapper { gap: 1rem; }
.withdrawal-nav { align-items: center; display: flex; gap: 0.35rem; margin-left: auto; }
.withdrawal-nav a { border: 1px solid transparent; border-radius: 999px; color: var(--muted); font-size: 0.76rem; font-weight: 800; padding: 0.55rem 0.8rem; text-decoration: none; }
.withdrawal-nav a:hover { color: var(--gold-soft); }
.withdrawal-nav a.active { background: rgba(255, 201, 28, 0.1); border-color: rgba(255, 201, 28, 0.35); color: var(--gold); }
.withdrawal-page { max-width: 1120px; }
.withdrawal-hero { align-items: flex-end; display: flex; gap: 2rem; justify-content: space-between; margin: 1.5rem 0 2rem; }
.withdrawal-hero h1 { color: var(--gold); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; margin: 0.4rem 0 0.75rem; text-transform: uppercase; }
.withdrawal-hero p { color: var(--muted); line-height: 1.55; margin: 0; max-width: 680px; }
.withdrawal-eyebrow { color: var(--gold-soft); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.withdrawal-form-layout { align-items: start; gap: 1.25rem; grid-template-columns: minmax(230px, 0.7fr) minmax(0, 2fr); }
.withdrawal-balance-card { position: sticky; top: 100px; }
.withdrawal-balance-value { color: var(--gold); display: block; font-family: Georgia, serif; font-size: 2.15rem; margin: 0.6rem 0 1.5rem; }
.withdrawal-balance-row { border-top: 1px solid rgba(255, 201, 28, 0.12); display: flex; font-size: 0.78rem; gap: 1rem; justify-content: space-between; padding: 0.75rem 0; }
.withdrawal-balance-row span { color: var(--muted); }
.withdrawal-balance-card > p { color: var(--muted); font-size: 0.75rem; line-height: 1.5; margin: 1rem 0 0; }
.withdrawal-form-card { padding: clamp(1.25rem, 4vw, 2.2rem); }
.withdrawal-section-heading { align-items: center; border-bottom: 1px solid rgba(255, 201, 28, 0.15); display: flex; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; }
.withdrawal-section-heading > div { align-items: center; display: flex; gap: 0.75rem; }
.withdrawal-section-heading h2 { color: #fff; font-family: inherit; font-size: 1rem; margin: 0; text-align: left; }
.withdrawal-step { align-items: center; background: rgba(255, 201, 28, 0.1); border: 1px solid rgba(255, 201, 28, 0.25); border-radius: 50%; color: var(--gold); display: inline-flex; font-size: 0.68rem; font-weight: 900; height: 32px; justify-content: center; width: 32px; }
.withdrawal-fields-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.withdrawal-reference-field,
.withdrawal-full-width { grid-column: 1 / -1; }
.withdrawal-reference-control { display: flex; gap: 0.55rem; }
.withdrawal-reference-control .form-control { flex: 1; }
.withdrawal-reference-field small { color: var(--muted); display: block; font-size: 0.67rem; line-height: 1.45; margin-top: 0.35rem; }
textarea.form-control { min-height: 92px; resize: vertical; }
.upgrade-help { color: var(--muted); display: block; font-size: .68rem; line-height: 1.45; margin-top: .4rem; }
.withdrawal-confirmation { align-items: flex-start; background: rgba(255, 201, 28, 0.05); border: 1px solid rgba(255, 201, 28, 0.14); border-radius: 9px; color: var(--muted); cursor: pointer; display: flex; font-size: 0.75rem; gap: 0.7rem; line-height: 1.5; padding: 0.85rem; }
.withdrawal-confirmation input { accent-color: var(--gold); margin-top: 0.18rem; }

.premium-exit-destination strong, .premium-exit-destination span { min-width: 0; overflow-wrap: anywhere; }
.product-plus-checkout-context:not([hidden]) { background: #061a11; border-block: 1px solid rgba(255, 201, 28, .18); padding: 24px; margin-bottom: 32px; }
.product-plus-purpose-control:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 201, 28, .12); }
.product-plus-purpose-control label { color: var(--gold); font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.product-plus-purpose-control select.form-control { width: min(100%, 360px); min-width: 0; }
.product-plus-plan-summary:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.product-plus-context-label { color: var(--gold); font-weight: 700; font-size: 0.75rem; }
.product-plus-plan-summary h2 { font-family: inherit; font-size: 1.15rem; margin: 6px 0 8px; }
.product-plus-plan-summary p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin: 0; }
.product-plus-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; gap: 16px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.product-plus-months::-webkit-scrollbar { width: 7px; }
.product-plus-months::-webkit-scrollbar-track { background: #06180e; }
.product-plus-months::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.product-plus-months > .product-plus-month { display: block; min-width: 0; padding: 20px; background: #0a271c; border: 1px solid #3e4b26; border-radius: 8px; }
.product-plus-month-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.product-plus-month-heading h3 { font-family: inherit; font-size: 1rem; line-height: 1.4; color: #fff; margin: 0; }
.product-plus-month-badge { color: var(--gold-soft); background: #25341c; border: 1px solid #536036; border-radius: 4px; padding: 5px 10px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.product-plus-month-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.product-plus-month-amounts dt { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-bottom: 6px; }
.product-plus-month-amounts dd { color: #fff; font-size: 1.2rem; font-weight: 800; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.product-plus-month progress { display: block; width: 100%; height: 8px; margin: 18px 0 10px; accent-color: var(--gold); border: 0; border-radius: 4px; overflow: hidden; }
.product-plus-month progress::-webkit-progress-bar { background: #303817; }
.product-plus-month progress::-webkit-progress-value { background: var(--gold); }
.product-plus-month progress::-moz-progress-bar { background: var(--gold); }
.product-plus-month-target, .product-plus-month-reward { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.product-plus-month-target strong { font-weight: 600; color: #fff; }
.product-plus-month-reward { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 201, 28, .15); }
.product-plus-month-reward strong { color: var(--gold); font-size: 1rem; }
.product-plus-summary-empty, .product-plus-voucher-balance { padding: 20px; background: #0a271c; border: 1px solid #3e4b26; border-radius: 8px; }
.product-plus-voucher-balance > span { display: block; color: var(--muted); font-size: .8rem; }
.product-plus-voucher-balance > strong { display: block; color: var(--gold); font-size: 1.5rem; margin: 8px 0; }
.commerce-product-plus .commerce-voucher-choice { display: none; }
@media (max-width: 640px) {
  .product-plus-checkout-context:not([hidden]) { padding: 20px 16px; }
  .product-plus-purpose-control:not([hidden]) { align-items: stretch; flex-direction: column; gap: 10px; }
  .product-plus-purpose-control select.form-control { width: 100%; }
  .product-plus-months > .product-plus-month { padding: 16px; }
  .product-plus-month-amounts { gap: 12px; }
}

dialog.action-dialog { background: #092217; color: var(--text, #f5f5e9); border: 1px solid rgba(255, 201, 28, 0.3); border-radius: 8px; box-shadow: 0 20px 70px #0009; padding: 0; width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: hidden; letter-spacing: 0; }
dialog.action-dialog[open] { display: flex; flex-direction: column; }
.action-dialog::backdrop { background: rgba(0, 8, 4, 0.75); }
.action-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; flex-shrink: 0; background: #123021; border-bottom: 1px solid rgba(255, 201, 28, .25); }
.action-dialog-header h2 { color: var(--gold); font-family: inherit; font-size: 1.1rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.action-dialog-close { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.action-dialog-body { padding: 24px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.action-dialog-body::-webkit-scrollbar { width: 7px; }
.action-dialog-body::-webkit-scrollbar-track { background: #06180e; }
.action-dialog-body::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.action-dialog-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.action-dialog-details { margin: 18px 0 0; padding: 14px 16px; background: #04170d; border-radius: 6px; }
.action-dialog-details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 7px 0; font-size: 0.85rem; }
.action-dialog-details dt { color: var(--muted); }
.action-dialog-details dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.action-dialog-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; background: #061c11; flex-shrink: 0; }
.action-dialog-footer .button { min-height: 44px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.action-dialog button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 480px) {
  .action-dialog-header { padding: 16px; }
  .action-dialog-body { padding: 16px; }
  .action-dialog-footer { padding: 14px 16px; }
  .action-dialog-footer .button { flex: 1; padding-left: 12px; padding-right: 12px; font-size: 0.75rem; }
}
.withdrawal-submit { margin-top: 1rem; width: 100%; }
.withdrawal-history-summary { display: grid; gap: 0.8rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.withdrawal-history-summary article { background: rgba(7, 20, 11, 0.85); border: 1px solid rgba(255, 201, 28, 0.2); border-radius: 12px; padding: 1.25rem; }
.withdrawal-history-summary span { color: var(--muted); display: block; font-size: 0.68rem; font-weight: 800; margin-bottom: 0.4rem; text-transform: uppercase; }
.withdrawal-history-summary strong { color: var(--gold); font-size: 1.45rem; }
.withdrawal-filters { align-items: end; display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(160px, 240px)) 1fr; margin-bottom: 1rem; padding: 1rem 1.25rem; }
.income-history-filters { grid-template-columns: repeat(3, minmax(150px, 220px)) 1fr; }
.withdrawal-filters .form-group { margin: 0; }
.history-result-count { color: var(--muted); font-size: 0.75rem; font-weight: 800; justify-self: end; padding-bottom: 0.7rem; }
.withdrawal-history-list { display: grid; gap: 0.85rem; }
.withdrawal-history-item { padding: 1.35rem; }
.withdrawal-history-topline { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; }
.withdrawal-history-topline h2 { color: #fff; font-family: inherit; font-size: 1.45rem; margin: 0.25rem 0 0; text-align: left; }
.withdrawal-reference-label { color: var(--gold-soft); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.05em; }
.withdrawal-status { border: 1px solid; border-radius: 999px; font-size: 0.68rem; font-weight: 900; padding: 0.35rem 0.6rem; text-transform: uppercase; }
.status-pending { background: rgba(226, 99, 22, 0.14); border-color: #e26316; color: #ffa56b; }
.status-approved { background: rgba(47, 145, 68, 0.18); border-color: #2f9144; color: #8bf29e; }
.status-rejected { background: rgba(208, 33, 32, 0.16); border-color: #d02120; color: #ff9190; }
.withdrawal-history-details { display: grid; gap: 0.75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1.2rem; }
.withdrawal-history-details div { border-left: 2px solid rgba(255, 201, 28, 0.18); padding-left: 0.7rem; }
.withdrawal-history-details span, .withdrawal-origin > span { color: var(--muted); display: block; font-size: 0.64rem; font-weight: 800; margin-bottom: 0.25rem; text-transform: uppercase; }
.withdrawal-history-details strong { color: #fff; display: block; font-size: 0.76rem; line-height: 1.35; overflow-wrap: anywhere; }
.withdrawal-origin { border-top: 1px solid rgba(255, 201, 28, 0.1); margin-top: 1rem; padding-top: 0.8rem; }
.withdrawal-origin > div { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.withdrawal-origin > div span { background: rgba(255, 201, 28, 0.08); border-radius: 999px; color: var(--gold-soft); font-size: 0.68rem; font-weight: 800; padding: 0.3rem 0.55rem; }
.withdrawal-history-note { color: var(--muted); font-size: 0.75rem; margin: 0.8rem 0 0; }
.withdrawal-empty { padding: 2rem; text-align: center; }
.withdrawal-empty strong { color: var(--gold); }
.withdrawal-empty p { color: var(--muted); margin-bottom: 0; }

@media (max-width: 760px) {
  .admin-directory-filters { grid-template-columns: 1fr; }
  .admin-member-card .withdrawal-history-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .withdrawal-header-wrapper { align-items: flex-start; flex-direction: column; padding: 0.75rem 0; }
  .withdrawal-header-wrapper .user-status-strip[data-member-menu] { align-self: flex-end; margin-left: 0; }
  .withdrawal-nav { justify-content: space-between; margin: 0; overflow-x: auto; width: 100%; }
  .withdrawal-nav a { flex: 0 0 auto; }
  .withdrawal-hero { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .withdrawal-form-layout { grid-template-columns: 1fr; }
  .withdrawal-balance-card { position: static; }
  .withdrawal-fields-grid { grid-template-columns: 1fr; }
  .withdrawal-reference-field,
  .withdrawal-full-width { grid-column: auto; }
  .withdrawal-history-summary { grid-template-columns: 1fr; }
  .withdrawal-filters { grid-template-columns: 1fr; }
  .income-history-filters { grid-template-columns: 1fr; }
  .history-result-count { justify-self: start; padding: 0; }
  .withdrawal-history-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .admin-member-card .withdrawal-history-details { grid-template-columns: 1fr; }
  .withdrawal-reference-control { align-items: stretch; flex-direction: column; }
  .withdrawal-history-details { grid-template-columns: 1fr; }
}

.matrix-detail-layout {
  display: grid;
  gap: 1rem;
}

.balance-actions-grid {
  display: grid;
  gap: 1rem;
}

.balance-actions-compact { max-width: none; width: 100%; }
.balance-card-buttons { display: flex; flex-wrap: wrap; gap: 0.65rem; }

@media (min-width: 980px) {
  .matrix-detail-layout {
    grid-template-columns: minmax(260px, 3fr) minmax(0, 7fr);
  }

  .balance-actions-grid {
    grid-template-columns: minmax(220px, 280px) 1fr;
  }

  .balance-actions-grid.balance-actions-compact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.matrix-status-panel {
  background: rgba(2, 7, 4, 0.65);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 8px;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

#matrix-overview-card .matrix-status-panel {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.matrix-status-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.matrix-status-heading .matrix-qualification {
  margin-bottom: 0;
}

#matrix-overview-card .matrix-status-heading h4 {
  font-size: clamp(1.65rem, 2.5vw, 2rem);
}

.matrix-qualification {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.matrix-qualification .status-icon {
  height: 0.78rem;
  width: 0.78rem;
}

.matrix-qualification.qualified {
  background: rgba(47, 145, 68, 0.22);
  border: 1px solid #2f9144;
  color: #8bf29e;
}

.matrix-qualification.locked {
  background: rgba(226, 99, 22, 0.18);
  border: 1px solid #e26316;
  color: #ffa56b;
}

.matrix-status-panel h4 {
  color: #fff;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 0;
  text-transform: uppercase;
}

.matrix-status-panel p {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  line-height: 1.5;
  margin: 0.55rem 0 1.25rem;
  max-width: 760px;
}

#matrix-overview-card .matrix-action-copy {
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.25;
  margin: 0.9rem 0 0;
}

#matrix-overview-card .matrix-requirement-copy {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.25vw, 1rem);
  line-height: 1.5;
  margin: 0.8rem 0 0;
}

.matrix-action-link {
  align-self: stretch;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  min-width: 130px;
  text-align: center;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  width: 100%;
}

.matrix-action-link[hidden] { display: none; }
.matrix-action-row { align-items: center; display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; width: 100%; }
.matrix-action-message { color: #ffa56b; font-size: 0.78rem; font-weight: 800; line-height: 1.35; }

.exit-payment-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: -0.2rem 0 1.5rem; border-bottom: 1px solid rgba(255, 201, 28, 0.2); }
.exit-payment-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 0.78rem; font-weight: 900; padding: 0.8rem; }
.exit-payment-tabs button.active { border-bottom-color: var(--gold); color: var(--gold); }
.exit-payment-destination { align-items: center; background: rgba(255, 201, 28, 0.08); border: 1px solid rgba(255, 201, 28, 0.2); border-radius: 8px; display: grid; gap: 0.2rem 1rem; grid-template-columns: 1fr auto; margin-bottom: 1.25rem; padding: 1rem; }
.exit-payment-destination span { color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.exit-payment-destination strong { color: #fff; }
.restake-destination strong { font-family: monospace; font-size: 0.78rem; overflow-wrap: anywhere; }
.exit-payment-destination button { background: transparent; border: 1px solid rgba(255, 201, 28, 0.35); border-radius: 6px; color: var(--gold); cursor: pointer; grid-column: 2; grid-row: 1 / 3; padding: 0.55rem 0.7rem; }
.exit-balance-amount { align-items: center; background: rgba(255, 201, 28, 0.06); border: 1px solid rgba(255, 201, 28, 0.18); border-radius: 8px; display: flex; justify-content: space-between; padding: 1rem; }
.exit-balance-amount span { color: var(--muted); font-size: 0.78rem; }
.exit-balance-amount strong { color: var(--gold); font-size: 1.25rem; }
.exit-balance-message { color: var(--muted); font-size: 0.78rem; margin: 0.8rem 0 0; }
.field-limit { color: var(--muted); display: block; font-size: 0.68rem; margin-top: 0.35rem; }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 201, 28, 0.12); outline: none; }
.form-control:user-invalid { border-color: #e26316; box-shadow: 0 0 0 2px rgba(226, 99, 22, 0.1); }
.form-control:user-valid { border-color: rgba(75, 214, 117, 0.55); }
.form-group:focus-within label { color: var(--gold); }

@media (max-width: 620px) {
  .exit-payment-tabs { grid-template-columns: 1fr; }
  .exit-payment-destination { grid-template-columns: 1fr; }
  .exit-payment-destination button { grid-column: auto; grid-row: auto; }
}

#balance-card .balance-card-buttons .button { font-size: 0.82rem; min-height: 44px; padding-inline: 1.15rem; }

.matrix-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

#matrix-overview-card .matrix-facts {
  margin-top: auto;
  padding-top: 1rem;
}

.matrix-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 201, 28, 0.08);
  padding-bottom: 0.45rem;
}

.matrix-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.matrix-facts dd {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0;
  text-align: right;
}

.exit-header-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.exit-header-row h4 {
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
}

.exit-header-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.matrix-exits {
  display: grid;
  gap: 0.65rem;
}

.product-plus-tabs .matrix-tab {
  border-radius: 8px;
  display: block;
  min-height: auto;
  min-width: 112px;
  padding: 0.58rem 0.7rem;
}
.product-plus-tabs .matrix-tab > strong,
.product-plus-tabs .matrix-tab > span { display: block; }
.product-plus-tabs .matrix-tab > strong { font-size: 0.78rem; text-transform: uppercase; }
.product-plus-tabs .matrix-tab > span { font-size: 0.68rem; margin-top: 0.15rem; }
.products-plus-detail-layout { align-items: start; }
.products-plus-facts { margin-bottom: 1rem; }
.products-plus-detail-layout .button:disabled { cursor: not-allowed; filter: grayscale(0.7); opacity: 0.38; }
.product-plus-schedule { display: grid; gap: 0.65rem; }
#timeline-standard-products-list { max-height: min(30rem, 58vh); overflow-y: auto; padding-right: .35rem; scrollbar-color: rgba(255, 201, 28, .45) #06170e; scrollbar-width: thin; }
#timeline-standard-products-list:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#timeline-standard-products-list .standard-product-month { align-items: start; }
#timeline-standard-products-list .standard-product-month .funds-row-side > strong { color: var(--cream); font-size: .8rem; font-variant-numeric: tabular-nums; }
.standard-product-month-notes { color: var(--muted); display: flex; flex-wrap: wrap; gap: .2rem .85rem; font-size: .72rem; line-height: 1.4; margin-top: .45rem; }
.standard-product-month-notes:empty { display: none; }
#timeline-standard-products-card > .button { margin-top: 1rem; }
.timeline-explorer-disclosure { border-top: 1px solid rgba(255, 201, 28, .18); margin-top: 1.1rem; padding-top: .9rem; }
.timeline-explorer-disclosure summary,
.timeline-f3-disclosure summary { color: var(--gold); cursor: pointer; font-size: .83rem; font-weight: 800; list-style-position: inside; }
.timeline-explorer-disclosure summary:focus-visible,
.timeline-f3-disclosure summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.timeline-explorer-disclosure .tree-container { margin-top: 1rem; }
#timeline-f3-wallet { border-top: 1px solid rgba(255, 201, 28, .18); margin-top: 1.25rem; padding-top: 1rem; }
.timeline-f3-disclosure summary { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; list-style: none; }
.timeline-f3-disclosure summary::-webkit-details-marker { display: none; }
.timeline-f3-disclosure summary::before { content: "+"; flex: none; font-size: 1.15rem; line-height: 1; }
.timeline-f3-disclosure[open] summary::before { content: "-"; }
.timeline-f3-disclosure summary > span { flex: 1; }
.timeline-f3-disclosure summary small { color: var(--muted); display: block; font-size: .72rem; font-weight: 500; margin-top: .2rem; }
.timeline-f3-disclosure summary strong { color: var(--cream); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-f3-content { padding: 1rem 0 0 1.4rem; }
.timeline-f3-content > p:first-child { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-top: 0; }
#timeline-f3-wallet .f3-wallet-address { overflow-wrap: anywhere; }
#timeline-f3-wallet .withdrawal-fields-grid { margin: 0.85rem 0; }
#timeline-standard-products-list .entry-progress-meter { height: 8px; margin-top: 0.55rem; }
#patronizing-month-list { align-content: start; max-height: min(27rem, 55vh); min-width: 0; overflow-y: auto; padding-right: 0.35rem; scrollbar-color: rgba(255, 201, 28, .45) #06170e; scrollbar-width: thin; }
#patronizing-month-list:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#commerce-order-list,
#commerce-history-list { align-content: start; max-height: min(34rem, 70vh); overflow-y: auto; padding-right: 0.3rem; }
.product-plus-month { align-items: center; background: rgba(2, 7, 4, 0.5); border: 1px solid rgba(255, 201, 28, 0.14); border-radius: 8px; display: grid; gap: 0.8rem; grid-template-columns: 74px minmax(0, 1fr) auto; padding: 0.8rem; }
.product-plus-month.vested { border-color: rgba(75, 214, 117, 0.28); }
.product-plus-month-index { align-items: center; background: rgba(255, 201, 28, 0.08); border-radius: 6px; color: var(--gold); display: flex; font-size: 0.72rem; font-weight: 900; justify-content: center; min-height: 48px; text-transform: uppercase; }
.product-plus-month h5 { color: #fff; font-size: 0.84rem; margin: 0 0 0.2rem; }
.product-plus-month p { color: var(--muted); font-size: 0.72rem; margin: 0; }

@media (max-width: 560px) {
  .product-plus-month { align-items: start; grid-template-columns: 1fr auto; }
  .product-plus-month-index { grid-column: 1 / -1; justify-content: flex-start; min-height: auto; padding: 0.45rem 0.6rem; }
}

.exit-card {
  background: rgba(2, 7, 4, 0.5);
  border: 1px solid rgba(255, 201, 28, 0.14);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(76px, 92px) 1fr;
  padding: 0.75rem;
}

.exit-number {
  align-items: center;
  background: rgba(255, 201, 28, 0.1);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 6px;
  color: var(--gold);
  display: flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.exit-card h5 {
  color: #fff;
  font-size: 0.9rem;
  margin: 0 0 0.3rem;
}

.exit-card p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
}

.exit-card .button {
  margin-top: 0.75rem;
}

.exit-meta {
  color: var(--gold-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.exit-meta span {
  background: rgba(255, 201, 28, 0.08);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
}

@media (max-width: 620px) {
  .matrix-card-header,
  .exit-header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .exit-card {
    grid-template-columns: 1fr;
  }

  .exit-number {
    min-height: 44px;
  }
}

/* Tree visualization structure for local mock */
.tree-container {
  overflow-x: auto;
  padding: 2rem 1rem;
  background: #041207;
  border: 1px solid rgba(255, 201, 28, 0.2);
  border-radius: 12px;
  min-height: 350px;
  display: flex;
  justify-content: center;
}

.tree-explorer { display: grid; gap: 1.25rem; justify-items: center; min-width: min(100%, 680px); width: 100%; }
.tree-explorer-status { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 0.72rem; gap: 0.35rem; justify-content: center; text-align: center; }
.tree-explorer-status strong { color: var(--gold); }
.tree-explorer-actions { border-top: 1px solid rgba(255, 201, 28, 0.14); display: flex; gap: 0.65rem; justify-content: center; padding-top: 1rem; width: 100%; }
.tree-explorer-actions .button:disabled { cursor: not-allowed; opacity: 0.35; }
.tree-loading-state { min-height: 180px; place-content: center; }

.tree-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* Visual list-based clean flexbox tree chart */
.tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.tree-node-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.tree-node-card {
  background: linear-gradient(135deg, rgba(12, 86, 37, 0.95), rgba(7, 20, 11, 0.95));
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  min-width: 140px;
  max-width: 180px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

button.tree-node-card { color: inherit; cursor: pointer; font-family: inherit; }
.tree-node-card.focused-card { box-shadow: 0 0 0 3px rgba(255, 201, 28, 0.09), 0 8px 20px rgba(0, 0, 0, 0.45); }
.tree-node-card.drillable-card:hover,
.tree-node-card.drillable-card:focus-visible { border-color: #fff0a6; outline: none; transform: translateY(-3px); }
.tree-node-open-hint { color: #8bf29e; font-size: 0.58rem; font-weight: 800; margin-top: 0.45rem; }

.tree-node-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 201, 28, 0.15);
}

.tree-node-card.root-card {
  border-color: var(--gold-soft);
  background: linear-gradient(135deg, rgba(20, 110, 48, 0.95), rgba(7, 20, 11, 0.95));
}

.tree-node-card.referral-pending-card {
  background: linear-gradient(135deg, rgba(67, 48, 12, 0.92), rgba(13, 16, 10, 0.96));
  border-color: rgba(255, 201, 28, 0.58);
  border-style: dashed;
}

.tree-node-card.empty-card {
  border: 2px dashed rgba(255, 201, 28, 0.25);
  background: rgba(2, 7, 4, 0.5);
  box-shadow: none;
}

.tree-node-card.empty-card:hover {
  transform: none;
  box-shadow: none;
}

.tree-node-name {
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-node-card.empty-card .tree-node-name {
  color: rgba(198, 207, 188, 0.4);
}

.tree-node-username {
  font-size: 0.68rem;
  color: var(--gold-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-node-stage {
  align-items: center;
  background: rgba(255, 201, 28, 0.08);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 999px;
  color: var(--gold-soft);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  gap: 0.25rem;
  margin-top: 0.42rem;
  padding: 0.22rem 0.4rem;
  text-transform: uppercase;
}

.tree-node-stage .status-icon { height: 0.68rem; width: 0.68rem; }
.tree-node-stage small { color: var(--muted); font-size: 0.52rem; font-weight: 800; }
.tree-node-stage.stage-qualified { border-color: rgba(75, 214, 117, 0.4); color: #8bf29e; }
.tree-node-stage.stage-pending { border-color: rgba(226, 99, 22, 0.5); color: #ffa56b; }
.tree-node-stage.stage-registered { border-color: rgba(255, 201, 28, 0.45); color: var(--gold-soft); }

.tree-node-info {
  font-size: 0.58rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.tree-children-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  padding-top: 1.5rem;
}

/* Connecting Lines using pure CSS pseudo-elements */
.tree-children-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: rgba(255, 201, 28, 0.45);
  transform: translateX(-50%);
}

.tree-node-wrapper::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  width: 2px;
  height: 1.5rem;
  background: rgba(255, 201, 28, 0.45);
  transform: translateX(-50%);
  z-index: 1;
}

/* If a node has no children (empty or leaf), hide its downward connector line */
.tree-branch:only-child > .tree-node-wrapper::after,
.tree-branch > .tree-node-wrapper:only-child:not(:has(+ .tree-children-container))::after {
  display: none;
}

/* The explorer renders the focused node and its direct-child row as siblings. */
.tree-wrapper > .tree-branch:first-child > .tree-node-wrapper::after {
  display: block;
}

/* Connecting branches horizontally and vertically */
.tree-children-container > .tree-branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-top: 2px solid rgba(255, 201, 28, 0.45);
}

.tree-children-container > .tree-branch:first-child::before {
  border-left: 2px solid rgba(255, 201, 28, 0.45);
  border-top-left-radius: 4px;
  left: 50%;
  width: 50%;
}

.tree-children-container > .tree-branch:last-child::before {
  border-right: 2px solid rgba(255, 201, 28, 0.45);
  border-top-right-radius: 4px;
  right: 50%;
  left: auto;
  width: 50%;
}

.tree-children-container > .tree-branch:only-child::before {
  display: none;
}

/* Tab Layout for Admin */
.admin-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 201, 28, 0.2);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.approval-queue-tabs { display: flex; gap: 0.55rem; margin-bottom: 1.25rem; overflow-x: auto; padding: 0.15rem 0 0.75rem; scrollbar-width: thin; }
.approval-queue-tabs button { align-items: center; background: rgba(2, 7, 4, 0.72); border: 1px solid rgba(255, 201, 28, 0.22); border-radius: 9px; color: var(--muted); cursor: pointer; display: inline-flex; flex: 0 0 auto; font: inherit; font-size: 0.78rem; font-weight: 900; gap: 0.55rem; padding: 0.68rem 0.85rem; }
.approval-queue-tabs button:hover { border-color: rgba(255, 201, 28, 0.55); color: #fff; }
.approval-queue-tabs button.active { background: var(--gold); border-color: var(--gold); color: #171100; }
.approval-queue-tabs button span { align-items: center; background: rgba(255, 255, 255, 0.09); border-radius: 999px; display: inline-flex; font-size: 0.68rem; height: 22px; justify-content: center; min-width: 22px; padding: 0 0.38rem; }
.approval-queue-tabs button span.has-requests { background: #e26316; color: #fff; }
.approval-queue-tabs button.active span { background: rgba(23, 17, 0, 0.16); color: #171100; }
.approval-queue-tabs button.active span.has-requests { background: #9d3400; color: #fff; }
.approval-queue-panel[hidden] { display: none !important; }

.tab-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--gold-soft);
  background: rgba(255, 201, 28, 0.05);
}

.tab-btn.active {
  color: #171100;
  background: var(--gold);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* Action Controls Panel */
.admin-controls-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

/* Table Responsive Styles */
.table-container {
  overflow-x: auto;
  background: rgba(7, 20, 11, 0.85);
  border: 1px solid rgba(255, 201, 28, 0.25);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.admin-table th {
  background: rgba(20, 59, 27, 0.5);
  color: var(--gold-soft);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 1rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 201, 28, 0.25);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 201, 28, 0.1);
  color: #fff;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(12, 86, 37, 0.1);
}

.admin-table .actions {
  display: flex;
  gap: 0.5rem;
}

.admin-table .btn {
  min-height: auto;
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
}

/* Search Row */
.search-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-row input {
  flex-grow: 1;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  box-sizing: border-box;
  background: rgba(7, 20, 11, 0.95);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  max-width: 500px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  width: calc(100% - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modalSlide 0.2s ease-out;
}

.modal-content,
.shop-cart,
.shop-cart-items {
  scrollbar-color: rgba(255, 201, 28, 0.45) #06170e;
  scrollbar-width: thin;
}

.modal-content::-webkit-scrollbar,
.shop-cart::-webkit-scrollbar,
.shop-cart-items::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track,
.shop-cart::-webkit-scrollbar-track,
.shop-cart-items::-webkit-scrollbar-track {
  background: #06170e;
}

.modal-content::-webkit-scrollbar-thumb,
.shop-cart::-webkit-scrollbar-thumb,
.shop-cart-items::-webkit-scrollbar-thumb {
  background: rgba(255, 201, 28, 0.45);
  border-radius: 6px;
}

.modal-content::-webkit-scrollbar-thumb:hover,
.shop-cart::-webkit-scrollbar-thumb:hover,
.shop-cart-items::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 201, 28, 0.7);
}

@keyframes modalSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -2rem -2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 201, 28, 0.25);
  padding: 18px 2rem;
  background: #123021;
}

.modal-content > h2:first-of-type { margin: -2rem -2rem 1.5rem; padding: 20px 76px 20px 2rem; background: #123021; border-bottom: 1px solid rgba(255, 201, 28, .25); color: var(--gold); }
.modal-content > .modal-close { position: absolute; top: 14px; right: 18px; z-index: 1; }
.funds-confirm-dialog > h2:first-child { margin: -1.4rem -1.4rem 1rem; padding: 18px 1.4rem; background: #123021; border-bottom: 1px solid rgba(255, 201, 28, .25); }

.modal-header h3 {
  margin: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  text-transform: uppercase;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
}

.close-btn:hover {
  color: #fff;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255, 201, 28, 0.1);
  padding-top: 1rem;
}

/* Activity Logs List */
.logs-list {
  max-height: 200px;
  overflow-y: auto;
  background: #020704;
  border: 1px solid rgba(255, 201, 28, 0.15);
  border-radius: 8px;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.74rem;
}

.log-item {
  padding: 0.4rem;
  border-bottom: 1px solid rgba(255, 201, 28, 0.05);
  display: flex;
  gap: 0.8rem;
}

.log-time {
  color: var(--gold-soft);
  flex-shrink: 0;
}

.log-msg {
  color: #e2eadb;
}

/* Header Brand/Info */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.user-status-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-status-strip span {
  font-size: 0.8rem;
}

/* Utility buttons/helpers */
.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #c41818);
  border-color: #d02120;
}
.btn-danger:hover {
  background: #d02120;
}

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, #4bd675, #12652c);
  border-color: #2f9144;
}
.btn-success:hover {
  background: #2f9144;
}

.btn-outline-gold {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #171100;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-state p {
  margin-bottom: 0;
}

.highlight-node {
  animation: pulseHighlight 1.5s infinite alternate;
  border-width: 3px !important;
}

/* Scalable admin Matrix Explorer */
.matrix-explorer-heading { align-items: flex-start; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.25rem; }
.matrix-explorer-heading h3 { color: var(--gold); font-size: 1.1rem; margin: 0; text-transform: uppercase; }
.matrix-explorer-heading p { color: var(--muted); font-size: 0.78rem; line-height: 1.5; margin: 0.35rem 0 0; }
.matrix-explorer-controls { display: grid; gap: 0.8rem; grid-template-columns: minmax(190px, 0.8fr) minmax(240px, 1.5fr) minmax(130px, 0.55fr) minmax(150px, 0.65fr); }
.matrix-explorer-controls .form-group { margin: 0; }
.matrix-explorer-actions { display: flex; gap: 0.55rem; margin-top: 0.85rem; }
.matrix-explorer-layout { align-items: start; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr); }
.matrix-explorer-tree-card { padding: 0; }
.matrix-explorer-breadcrumbs { border-bottom: 1px solid rgba(255, 201, 28, 0.15); color: var(--gold-soft); font-size: 0.72rem; font-weight: 800; min-height: 42px; overflow: hidden; padding: 0.8rem 1rem; text-overflow: ellipsis; white-space: nowrap; }
.matrix-explorer-columns { color: var(--muted); display: grid; font-size: 0.62rem; font-weight: 900; grid-template-columns: minmax(0, 1fr) 125px 70px; letter-spacing: 0.05em; padding: 0.65rem 1rem; text-transform: uppercase; }
.matrix-explorer-tree { max-height: 660px; min-height: 420px; overflow: auto; }
.matrix-explorer-row { align-items: center; border-top: 1px solid rgba(255, 201, 28, 0.08); display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr) 125px 70px; min-height: 58px; padding: 0.45rem 1rem; }
.matrix-explorer-row:hover { background: rgba(255, 201, 28, 0.045); }
.matrix-explorer-row.selected { background: rgba(255, 201, 28, 0.1); box-shadow: inset 3px 0 var(--gold); }
.matrix-explorer-member-cell { align-items: center; display: flex; min-width: 0; padding-left: calc(var(--tree-depth) * 1.15rem); }
.matrix-tree-toggle { align-items: center; background: rgba(255, 201, 28, 0.08); border: 1px solid rgba(255, 201, 28, 0.2); border-radius: 5px; color: var(--gold); cursor: pointer; display: inline-flex; flex: 0 0 26px; font-size: 1rem; height: 26px; justify-content: center; margin-right: 0.5rem; }
.matrix-tree-leaf { color: rgba(255, 201, 28, 0.45); flex: 0 0 26px; margin-right: 0.5rem; text-align: center; }
.matrix-explorer-member { background: transparent; border: 0; color: #fff; cursor: pointer; min-width: 0; padding: 0; text-align: left; }
.matrix-explorer-member strong { display: block; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix-explorer-member span { color: var(--muted); display: block; font-size: 0.65rem; margin-top: 0.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix-explorer-stage { border: 1px solid rgba(255, 201, 28, 0.24); border-radius: 999px; color: var(--gold-soft); font-size: 0.67rem; font-weight: 900; justify-self: start; padding: 0.28rem 0.5rem; text-transform: uppercase; }
.matrix-explorer-stage small { color: var(--muted); font-size: 0.52rem; margin-left: 0.2rem; }
.matrix-explorer-stage.stage-qualified { border-color: rgba(75, 214, 117, 0.4); color: #8bf29e; }
.matrix-explorer-stage.stage-pending { border-color: rgba(226, 99, 22, 0.5); color: #ffa56b; }
.matrix-explorer-children { color: #fff; font-size: 0.72rem; font-weight: 900; text-align: center; }
.matrix-member-details { padding: 1.5rem; position: sticky; top: 96px; }
.matrix-member-details h3 { color: #fff; font-size: 1.25rem; margin: 0.5rem 0 0; }
.matrix-member-username { color: var(--gold-soft); font-size: 0.75rem; font-weight: 800; margin: 0.2rem 0 1rem; }
.matrix-member-stage { align-items: center; background: rgba(255, 201, 28, 0.08); border: 1px solid rgba(255, 201, 28, 0.22); border-radius: 8px; display: flex; justify-content: space-between; margin-bottom: 1rem; padding: 0.7rem; }
.matrix-member-stage strong { color: var(--gold); }
.matrix-member-stage span { color: var(--muted); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.matrix-member-stage.stage-qualified { border-color: rgba(75, 214, 117, 0.4); }
.matrix-member-stage.stage-qualified strong { color: #8bf29e; }
.matrix-member-stage.stage-pending { border-color: rgba(226, 99, 22, 0.5); }
.matrix-member-stage.stage-pending strong { color: #ffa56b; }
.matrix-member-detail-list { display: grid; gap: 0; margin: 0; }
.matrix-member-detail-list div { border-top: 1px solid rgba(255, 201, 28, 0.09); display: flex; gap: 1rem; justify-content: space-between; padding: 0.65rem 0; }
.matrix-member-detail-list dt { color: var(--muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.matrix-member-detail-list dd { color: #fff; font-size: 0.72rem; font-weight: 800; margin: 0; max-width: 60%; overflow-wrap: anywhere; text-align: right; }

.profile-commerce-section {
  border-top: 1px solid rgba(255, 201, 28, 0.2);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
}

.profile-section-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.profile-section-heading h4 {
  color: var(--gold);
  font-size: 0.82rem;
  margin: 0;
  text-transform: uppercase;
}

.shipping-address-list,
.admin-payment-method-list {
  display: grid;
  gap: 0.75rem;
}

.shipping-address-empty {
  border: 1px dashed rgba(255, 201, 28, 0.24);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.85rem;
  text-align: center;
}

.shipping-address-panel {
  background: rgba(255, 201, 28, 0.035);
  border: 1px solid rgba(255, 201, 28, 0.16);
  border-radius: 7px;
  padding: 0.85rem;
}

.shipping-address-topline {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
}

.shipping-address-topline strong {
  color: #fff;
  font-size: 0.82rem;
}

.shipping-address-panel p,
.shipping-address-panel span,
.shipping-address-panel small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.55;
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

.shipping-address-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.shipping-address-form .form-group {
  margin: 0;
}

.shipping-address-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-line {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 0.74rem;
  font-weight: 800;
  gap: 0.45rem;
}

.checkbox-line input {
  accent-color: var(--gold);
}

.profile-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.admin-payment-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.admin-payment-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
}

.admin-payment-form .form-group {
  margin: 0;
}

.admin-payment-qr-preview,
.payment-method-qr {
  aspect-ratio: 1;
  background: rgba(255, 201, 28, 0.07);
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 7px;
  object-fit: contain;
}

.admin-payment-qr-preview {
  display: block;
  margin-top: 0.65rem;
  max-width: 150px;
  width: 100%;
}

.payment-method-card {
  padding: 1.2rem;
}

.payment-method-body {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-top: 1rem;
}

.payment-method-qr {
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  font-weight: 900;
  min-height: 96px;
  place-items: center;
  width: 96px;
}

.payment-method-qr.empty {
  text-transform: uppercase;
}

.admin-commerce-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(700px, 1.35fr) minmax(320px, 0.65fr);
}

.admin-product-layout {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.admin-commerce-mode-tabs {
  margin-bottom: 1rem;
}

.admin-commerce-panel[hidden] {
  display: none;
}

.admin-commerce-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem;
}

.admin-product-eligibility {
  min-width: 0;
  margin: 8px 0 16px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.admin-product-eligibility legend {
  padding: 0 12px 0 0;
  color: var(--gold);
  font-weight: 700;
}
.admin-product-eligibility .checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0;
}
.admin-product-eligibility p {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 12px;
}
.admin-commerce-form .form-group {
  margin: 0;
}

.package-item-editor-heading,
.admin-commerce-filter-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.package-item-editor-heading strong,
.admin-commerce-filter-row label {
  color: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-commerce-filter-row {
  margin-bottom: 0.75rem;
}

.admin-commerce-filter-row .form-control {
  max-width: 310px;
}

.package-item-editor,
.admin-commerce-package-list,
.commerce-package-items {
  display: grid;
  gap: 0.8rem;
}

.admin-commerce-panel > div:last-child {
  min-height: 0;
}

.admin-commerce-package-list {
  max-height: clamp(420px, 64vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
}

.admin-commerce-package-list::-webkit-scrollbar {
  width: 10px;
}

.admin-commerce-package-list::-webkit-scrollbar-track {
  background: rgba(255, 201, 28, 0.06);
  border-radius: 999px;
}

.admin-commerce-package-list::-webkit-scrollbar-thumb {
  background: rgba(255, 201, 28, 0.38);
  border-radius: 999px;
}

.package-item-editor {
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.package-item-row {
  align-items: end;
  background: rgba(255, 201, 28, 0.035);
  border: 1px solid rgba(255, 201, 28, 0.15);
  border-radius: 7px;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 86px minmax(150px, 1fr) 112px 82px 82px 112px;
  min-width: 690px;
  padding: 0.75rem;
}

.package-item-row .form-group:has(.package-item-name) {
  grid-column: 1 / -1;
  order: -1;
}

.remove-package-item {
  justify-self: stretch;
}

.package-item-photo-control {
  display: grid;
  gap: 0.45rem;
}

.package-item-photo-control img,
.package-item-photo-control span,
.commerce-package-item img,
.commerce-item-photo-empty {
  aspect-ratio: 1;
  background: rgba(255, 201, 28, 0.07);
  border: 1px solid rgba(255, 201, 28, 0.2);
  border-radius: 7px;
  height: 70px;
  object-fit: cover;
  width: 70px;
}

.package-item-photo-control span,
.commerce-item-photo-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.58rem;
  font-weight: 900;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
}

.package-item-photo-input {
  color: var(--muted);
  font-size: 0.62rem;
  max-width: 86px;
}

.product-photo-control {
  align-items: center;
  display: flex;
  gap: 0.8rem;
}

.commerce-package-card {
  padding: 1.2rem;
}

.commerce-package-card .balance-card-buttons {
  margin-top: 1rem;
}

.commerce-package-total {
  align-items: center;
  background: rgba(255, 201, 28, 0.08);
  border: 1px solid rgba(255, 201, 28, 0.16);
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  margin: 0.85rem 0;
  padding: 0.7rem 0.85rem;
}

.commerce-package-total span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-package-total strong {
  color: #fff;
}

.commerce-package-item {
  align-items: center;
  border-top: 1px solid rgba(255, 201, 28, 0.1);
  display: flex;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.commerce-package-item strong,
.commerce-package-item span {
  display: block;
}

.commerce-package-item strong {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.8rem;
  gap: 0.35rem;
}

.commerce-package-item span {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 0.18rem;
}

.commerce-package-browser {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.commerce-package-browser.commerce-product-browser {
  grid-template-columns: 1fr;
}

.commerce-browser-package {
  background: rgba(9, 28, 14, 0.92);
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.15rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.commerce-browser-package:hover {
  border-color: rgba(255, 201, 28, 0.36);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.28);
}

.commerce-browser-heading,
.commerce-browser-actions {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.commerce-browser-heading span,
.commerce-browser-actions span,
.commerce-voucher-note {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.commerce-browser-heading h4 {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0.3rem 0 0;
}

.commerce-browser-heading strong {
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1.02rem;
  font-weight: 900;
  padding-top: 0.15rem;
}

.commerce-browser-package > p {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0.85rem 0 0;
}

.commerce-browser-items {
  align-content: start;
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  max-height: calc(33.333cqw + 4.5rem);
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 201, 28, 0.13);
  scrollbar-color: rgba(255, 201, 28, 0.45) #06170e;
  scrollbar-width: thin;
}

.commerce-browser-items figure {
  align-content: start;
  background: rgba(2, 7, 4, 0.3);
  border: 1px solid rgba(255, 201, 28, 0.12);
  border-radius: 10px;
  display: grid;
  gap: 0.55rem;
  margin: 0;
  min-width: 0;
  padding: 0.5rem;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.commerce-browser-items figure:hover {
  background: rgba(255, 201, 28, 0.055);
  border-color: rgba(255, 201, 28, 0.24);
  transform: translateY(-2px);
}

.commerce-browser-items img,
.commerce-browser-items figure > span {
  aspect-ratio: 3 / 2;
  background: rgba(255, 201, 28, 0.07);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.commerce-browser-items img.commerce-image-contain {
  object-fit: contain;
}

.commerce-browser-items figure > span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.65rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.commerce-browser-items figcaption strong,
.commerce-browser-items figcaption small {
  display: block;
}

.commerce-browser-items figcaption strong {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.commerce-item-quantity {
  background: rgba(255, 201, 28, 0.14);
  border: 1px solid rgba(255, 201, 28, 0.38);
  border-radius: 999px;
  color: var(--gold);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.18rem 0.4rem;
}

.commerce-browser-items figcaption small {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

.commerce-browser-actions {
  align-items: center;
  border-top: 1px solid rgba(255, 201, 28, 0.14);
  flex: 0 0 auto;
  margin-top: auto;
  padding-top: 1rem;
}

.commerce-browser-actions .button {
  flex: 0 0 auto;
  min-width: 138px;
  padding-block: 0.72rem;
}

.commerce-product-shop {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1.25rem;
}

.commerce-product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.commerce-product-card {
  background: rgba(9, 28, 14, 0.92);
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 360px;
  overflow: hidden;
}

.commerce-product-card > img,
.commerce-product-empty {
  aspect-ratio: 4 / 3;
  background: rgba(255, 201, 28, 0.07);
  border-bottom: 1px solid rgba(255, 201, 28, 0.15);
  object-fit: cover;
  width: 100%;
}

.commerce-product-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.7rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.commerce-product-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
}

.commerce-product-body span,
.commerce-cart-heading span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-product-body h4 {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
  margin: 0;
}

.commerce-product-body p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 0;
}

.commerce-product-body strong {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
}

.commerce-product-actions {
  align-items: center;
  border-top: 1px solid rgba(255, 201, 28, 0.13);
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  padding: 0.8rem;
}

.quantity-stepper {
  align-items: center;
  border: 1px solid rgba(255, 201, 28, 0.26);
  border-radius: 8px;
  display: inline-grid;
  grid-template-columns: 34px 48px 34px;
  height: 42px;
  overflow: hidden;
}

.quantity-stepper button,
.commerce-cart-line-actions button {
  background: rgba(255, 201, 28, 0.08);
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font-weight: 900;
  height: 100%;
}

.quantity-stepper input {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 900;
  height: 100%;
  text-align: center;
  width: 100%;
}

.commerce-cart-panel {
  align-items: stretch;
  background: linear-gradient(135deg, rgba(2, 7, 4, 0.72), rgba(12, 35, 18, 0.92));
  border: 1px solid rgba(255, 201, 28, 0.28);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 201, 28, 0.12);
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
  grid-template-areas:
    "heading total action"
    "lines lines lines";
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.9fr) minmax(260px, 1fr);
  padding: 1rem;
  width: 100%;
}

.commerce-cart-heading,
.commerce-cart-total,
.commerce-cart-line {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.commerce-cart-heading,
.commerce-cart-lines,
.commerce-cart-total,
.commerce-cart-action {
  background: rgba(255, 201, 28, 0.045);
  border: 1px solid rgba(255, 201, 28, 0.12);
  border-radius: 8px;
  min-width: 0;
  padding: 0.85rem;
}

.commerce-cart-heading {
  grid-area: heading;
}

.commerce-cart-lines {
  grid-area: lines;
}

.commerce-cart-total {
  grid-area: total;
}

.commerce-cart-action {
  grid-area: action;
}

.commerce-cart-heading > div {
  display: grid;
  gap: 0.3rem;
}

.commerce-cart-panel .commerce-voucher-note {
  font-size: 0.74rem;
  margin: 0;
}

.commerce-voucher-choice {
  align-items: center;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  font-size: 0.8rem;
  gap: 0.65rem;
}

.commerce-voucher-choice input {
  accent-color: var(--gold);
  height: 1rem;
  margin: 0;
  width: 1rem;
}

.commerce-voucher-choice span {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  justify-content: space-between;
  width: 100%;
}

.commerce-voucher-choice strong { color: var(--gold); }
.commerce-voucher-choice:has(input:disabled) { cursor: not-allowed; opacity: 0.7; }

.commerce-cart-action {
  align-content: center;
  display: grid;
  gap: 0.8rem;
}

.commerce-cart-checkout {
  min-height: 46px;
  width: 100%;
}

.commerce-cart-heading strong,
.commerce-cart-total strong,
.commerce-cart-line strong {
  color: #fff;
}

.commerce-cart-heading b {
  align-self: flex-start;
  background: rgba(255, 201, 28, 0.1);
  border: 1px solid rgba(255, 201, 28, 0.16);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  padding: 0.32rem 0.55rem;
  white-space: nowrap;
}

.commerce-cart-lines {
  display: grid;
  gap: 0.65rem;
  max-height: 128px;
  min-height: 72px;
  overflow: auto;
}

.commerce-cart-empty {
  align-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.commerce-cart-line {
  border-top: 1px solid rgba(255, 201, 28, 0.1);
  padding-top: 0.65rem;
}

.commerce-cart-line span {
  color: var(--gold-soft);
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  margin-top: 0.2rem;
}

.commerce-cart-line-actions {
  display: flex;
  gap: 0.35rem;
}

.commerce-cart-line-actions button {
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 6px;
  font-size: 0.68rem;
  min-height: 30px;
  padding: 0 0.45rem;
}

.commerce-cart-total {
  align-content: center;
  border-top: 0;
  display: grid;
  gap: 0.45rem;
  justify-content: stretch;
}

.commerce-cart-total span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commerce-cart-total small {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.patronizing-entry-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

#commerce-package-count { white-space: nowrap; flex-shrink: 0; }

.commerce-contextual .withdrawal-hero h1 { font-size: 2.5rem; line-height: 1.1; }

.patronizing-entry-option {
  background: rgba(9, 28, 14, 0.92);
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 10px;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.patronizing-entry-option > span {
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.patronizing-entry-option h2 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.28;
  margin: 0;
}

.patronizing-entry-option ul {
  color: var(--muted);
  display: grid;
  font-size: 0.86rem;
  gap: 0.55rem;
  line-height: 1.45;
  list-style: none;
  margin: 0;
  padding: 0;
}

.patronizing-entry-option li {
  border-top: 1px solid rgba(255, 201, 28, 0.12);
  padding-top: 0.55rem;
}

.patronizing-entry-option .button {
  justify-self: start;
}

.button.disabled,
.button[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.65);
  opacity: 0.45;
  pointer-events: none;
}

.patronizing-exit-detail {
  margin-top: 1.25rem;
}

.commerce-order-history {
  border-top: 1px solid rgba(255, 201, 28, 0.16);
  margin-top: 1.2rem;
  padding-top: 1rem;
}
.commerce-order-history .exit-header-row span { margin-left: auto; }
.commerce-order-history .exit-header-row a { color: var(--gold); font-size: .78rem; font-weight: 700; }
.commerce-order-focus { outline: 2px solid var(--gold); outline-offset: 3px; }
.commerce-shop-order #commerce-package-tabs,
.commerce-shop-order #commerce-package-list,
.commerce-shop-order #commerce-package-count { display: none; }
.commerce-shop-order .commerce-order-history { border-top: 0; margin-top: 0; padding-top: 0; }
.commerce-shop-order .commerce-order-history .exit-header-row a { display: none; }

.product-entry-progress-card {
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
}

.entry-progress-panel {
  background: rgba(255, 201, 28, 0.055);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 10px;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  padding: 1rem;
}

.entry-progress-panel strong {
  color: #fff;
  display: block;
  font-size: 1.15rem;
  margin-top: 0.25rem;
}

.entry-progress-panel p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
}

.entry-progress-meter {
  background: rgba(2, 7, 4, 0.75);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  width: 100%;
}

.entry-progress-meter span {
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.25s ease;
  width: 0;
}

.entry-progress-stats {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.entry-progress-stats div,
.entry-progress-compact {
  background: rgba(2, 7, 4, 0.45);
  border: 1px solid rgba(255, 201, 28, 0.12);
  border-radius: 8px;
  padding: 0.75rem;
}

.entry-progress-stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-progress-stats dd {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  margin: 0.2rem 0 0;
}

.entry-progress-compact {
  display: grid;
  gap: 0.65rem;
}

.entry-progress-compact strong,
.entry-progress-compact small {
  display: block;
}

.entry-progress-compact strong {
  color: #fff;
  font-size: 0.9rem;
}

.entry-progress-compact small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 0.2rem;
}

.commerce-order-modal-content {
  max-width: 560px;
}

.commerce-order-modal-content .form-group {
  margin-bottom: 0.9rem;
}

.commerce-order-modal-content #commerce-order-add-address {
  margin-top: 0.55rem;
}

.commerce-order-address-preview {
  background: rgba(255, 201, 28, 0.055);
  border: 1px solid rgba(255, 201, 28, 0.16);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  margin-bottom: 0.9rem;
  min-height: 54px;
  padding: 0.8rem;
}

.commerce-order-address-preview strong {
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}

.commerce-order-address-preview p {
  margin: 0;
}

.commerce-order-address-preview span {
  color: var(--gold-soft);
  display: block;
  font-weight: 800;
  margin-top: 0.3rem;
}

#commerce-order-f3-group { border-top: 1px solid rgba(255, 201, 28, 0.16); padding-top: 0.9rem; }
.commerce-f3-toggle { align-items: center; display: flex; gap: 0.5rem; }
.commerce-f3-toggle input { accent-color: var(--gold); }
.commerce-order-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }

.commerce-payment-method-preview {
  align-items: start;
  background: rgba(255, 201, 28, 0.055);
  border: 1px solid rgba(255, 201, 28, 0.16);
  border-radius: 7px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 96px minmax(0, 1fr);
  margin-bottom: 0.9rem;
  min-height: 96px;
  padding: 0.8rem;
}

.commerce-payment-method-preview img,
.commerce-payment-method-preview div > span {
  aspect-ratio: 1;
  background: rgba(255, 201, 28, 0.08);
  border: 1px solid rgba(255, 201, 28, 0.22);
  border-radius: 7px;
  object-fit: contain;
  width: 96px;
}

.commerce-payment-method-preview div > span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.62rem;
  font-weight: 900;
  justify-content: center;
  text-transform: uppercase;
}

.commerce-payment-method-preview strong {
  color: #fff;
  display: block;
}

.commerce-payment-method-preview p,
.commerce-payment-method-preview small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.commerce-admin-order-review {
  border-top: 1px solid rgba(255, 201, 28, 0.12);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(130px, 0.35fr) minmax(220px, 1fr);
  margin-top: 1rem;
  padding-top: 1rem;
}

.commerce-admin-order-review .balance-card-buttons {
  grid-column: 1 / -1;
  margin-top: 0;
}

.commerce-admin-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.commerce-admin-order-items span {
  background: rgba(255, 201, 28, 0.08);
  border: 1px solid rgba(255, 201, 28, 0.18);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.32rem 0.55rem;
}

@media (max-width: 1120px) {
  .admin-commerce-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .matrix-explorer-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-explorer-layout { grid-template-columns: 1fr; }
  .matrix-member-details { position: static; }
  .admin-payment-layout { grid-template-columns: 1fr; }
  .commerce-package-browser { grid-template-columns: 1fr; }
  .commerce-product-shop { grid-template-columns: 1fr; }
  .commerce-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commerce-cart-panel {
    grid-template-areas:
      "heading total"
      "action action"
      "lines lines";
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .commerce-cart-checkout { width: 100%; }
  .package-item-row { grid-template-columns: 86px minmax(150px, 1fr) 112px 82px 82px 112px; }
}

@media (max-width: 720px) {
  .patronizing-entry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .commerce-contextual .withdrawal-hero h1 { font-size: 2rem; }
}

@media (max-width: 580px) {
  #admin-user-status .badge { display: none; }
  #admin-user-status { margin-left: auto; min-width: auto; }
  .matrix-explorer-controls { grid-template-columns: 1fr; }
  .matrix-explorer-heading { flex-direction: column; }
  .matrix-explorer-columns { display: none; }
  .matrix-explorer-row { gap: 0.4rem; grid-template-columns: minmax(0, 1fr) auto; padding: 0.55rem 0.65rem; }
  .matrix-explorer-member-cell { padding-left: calc(var(--tree-depth) * 0.65rem); }
  .matrix-explorer-stage { font-size: 0.58rem; }
  .matrix-explorer-stage small { display: none; }
  .matrix-explorer-children { display: none; }
  .shipping-address-grid { grid-template-columns: 1fr; }
  .payment-method-body { grid-template-columns: 1fr; }
  .package-item-row { grid-template-columns: 1fr; }
  .admin-commerce-filter-row { align-items: stretch; flex-direction: column; }
  .admin-commerce-filter-row .form-control { max-width: none; }
  .commerce-browser-heading,
  .commerce-browser-actions { align-items: stretch; flex-direction: column; }
  .commerce-browser-heading strong { padding-top: 0; }
  .commerce-browser-items { grid-template-columns: 1fr; max-height: calc(66.667cqw + 4.5rem); }
  .commerce-browser-actions .button { width: 100%; }
  .commerce-product-grid { grid-template-columns: 1fr; }
  .commerce-product-actions { align-items: stretch; flex-direction: column; }
  .commerce-product-actions .button,
  .quantity-stepper { width: 100%; }
  .quantity-stepper { grid-template-columns: 44px 1fr 44px; }
  .commerce-cart-panel {
    grid-template-areas:
      "heading"
      "total"
      "action"
      "lines";
    grid-template-columns: 1fr;
  }
  .commerce-cart-line { align-items: stretch; flex-direction: column; }
  .commerce-payment-method-preview,
  .commerce-admin-order-review { grid-template-columns: 1fr; }
  .entry-progress-stats { grid-template-columns: 1fr; }
}

@keyframes pulseHighlight {
  from { box-shadow: 0 0 10px rgba(255, 201, 28, 0.3); }
  to { box-shadow: 0 0 25px rgba(255, 201, 28, 0.9); }
}
.budget-progress-heading span { color: var(--gold); font-size: .73rem; font-weight: 900; text-transform: uppercase; }
.portal-card .budget-progress-heading h2 { color: var(--cream); font-family: inherit; font-size: 1.2rem; font-weight: 700; margin: .25rem 0 0; text-align: left; text-transform: none; }
.budget-progress-step, .entry-qualification-surface { background: #06170f; border: 1px solid rgba(255, 201, 28, .24); border-radius: 6px; display: grid; gap: .55rem; padding: 16px; min-width: 0; }
.budget-progress-step[hidden] { display: none; }
.budget-investment-step { background: rgba(61, 177, 156, .06); border-color: rgba(69, 191, 168, .28); }
.budget-progress-step-heading, .budget-progress-step-heading > div, .budget-progress-figures { align-items: center; display: flex; flex-wrap: wrap; gap: .45rem .75rem; justify-content: space-between; }
.budget-progress-step-heading > div { justify-content: flex-start; }
.budget-progress-step-heading h3 { color: var(--cream); font-size: .95rem; margin: 0; }
.budget-progress-step-number { color: var(--gold); font-size: .75rem; font-weight: 900; }
.budget-investment-step .budget-progress-step-number { color: #78d9c8; }
.budget-progress-state { color: var(--gold); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.budget-progress-state.is-complete { color: #78d9c8; }
.budget-investment-step .budget-progress-state { color: #78d9c8; }
.budget-progress-figures strong { color: var(--gold); font-size: 1.25rem; }
.budget-investment-step .budget-progress-figures strong { color: #78d9c8; }
.budget-progress-figures > span, .budget-progress-step p { color: var(--muted); font-size: .8rem; line-height: 1.45; }
.budget-progress-step p { margin: 0; }
.budget-investment-meter { border-color: rgba(120, 217, 200, .3); }
.budget-investment-meter span { background: #45bfa8; }
.budget-progress-action { width: 100%; }
.budget-category-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .8rem; }
.budget-table-wrap { overflow-x: auto; }
.budget-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 580px; }
.budget-table th, .budget-table td { padding: .75rem .55rem; border-bottom: 1px solid rgba(255, 201, 28, .16); }
.budget-table thead th { color: var(--gold); font-size: .78rem; text-transform: uppercase; }
.budget-table tbody th { color: var(--cream); }
.benefits-section { min-width: 0; margin-block: 2rem; }
.benefits-heading { margin-bottom: .35rem; }
.benefits-heading h3 { color: var(--cream); font-size: 1.2rem; margin: 0; }
.benefits-heading p { color: var(--muted); font-size: .82rem; margin: .35rem 0 0; }
.benefit-tabs { display: flex; gap: 1.25rem; margin: 1.1rem 0 1.25rem; overflow-x: auto; border-bottom: 1px solid rgba(255,201,28,.18); scrollbar-width: thin; }
.benefit-tab { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; flex: none; font: inherit; font-size: .85rem; font-weight: 700; padding: .75rem .15rem; }
.benefit-tab[aria-selected="true"] { border-bottom-color: var(--gold); color: var(--gold); }
.benefit-tab:hover, .benefit-tab:focus-visible { color: var(--cream); }
.benefit-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.benefit-panel[hidden] { display: none !important; }
.benefit-panel .matrix-card-header { margin-bottom: .8rem; }
.benefit-table-wrap { max-height: min(70vh, 640px); overflow: auto; border: 1px solid rgba(255,201,28,.17); border-radius: 6px; background: #06170e; scrollbar-color: rgba(255,201,28,.45) #06170e; scrollbar-width: thin; }
.benefit-table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: .81rem; }
.benefit-table th, .benefit-table td { padding: .85rem .8rem; border-bottom: 1px solid rgba(255,201,28,.12); vertical-align: middle; }
.benefit-table tbody tr:last-child > * { border-bottom: 0; }
.benefit-table tbody tr:hover { background: rgba(255,201,28,.045); }
.benefit-table thead { background: #133820; }
.benefit-table thead th { position: sticky; top: 0; z-index: 1; background: #133820; color: var(--gold); font-size: .7rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.benefit-table tbody th { color: var(--cream); font-weight: 800; white-space: nowrap; }
.benefit-table td { color: var(--cream); font-variant-numeric: tabular-nums; }
.benefit-progress { display: flex; flex-direction: column; gap: .38rem; min-width: 90px; }
.benefit-progress strong { font-size: .8rem; white-space: nowrap; }
.benefit-progress-track { display: block; width: 100%; max-width: 120px; height: 4px; background: rgba(255,201,28,.13); border-radius: 2px; overflow: hidden; }
.benefit-progress-track i { display: block; height: 100%; background: #62bb79; border-radius: inherit; }
.standard-investment-detail { display: block; margin-top: .45rem; max-width: 220px; font-size: .75rem; line-height: 1.4; }
.benefit-state { display: inline-block; border: 1px solid; border-radius: 999px; padding: .3rem .6rem; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.benefit-state-active { color: #8bf29e; border-color: #2f9144; background: rgba(47,145,68,.16); }
.benefit-state-pending { color: #ffd06b; border-color: #a77b24; background: rgba(167,123,36,.13); }
.benefit-state-locked { color: #ffa56b; border-color: #e26316; background: rgba(226,99,22,.13); }
.benefit-table .budget-action { white-space: nowrap; }
.funds-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.funds-summary > div { min-width: 0; padding: 1rem 1.15rem; border-top: 2px solid var(--gold); background: rgba(255, 201, 28, .06); }
.funds-summary span, .funds-summary strong, .funds-summary small { display: block; }
.funds-summary span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.funds-summary strong { margin: .5rem 0; color: var(--gold); font-size: 1.45rem; }
.funds-summary small { color: var(--muted); }
.funds-operations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.funds-operation { min-width: 0; border-top: 1px solid rgba(255, 201, 28, .4); padding: 1.2rem 0 1.5rem; }
.funds-operation h2, .funds-history h2 { margin: 0 0 1rem; color: var(--gold); font-size: 1.05rem; text-transform: uppercase; }
.funds-operation form + form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 201, 28, .18); }
.funds-operation .button { width: 100%; }
.funds-note { min-height: 2rem; color: var(--muted); font-size: .78rem; }
.funds-payment-details { display: grid; gap: .35rem; padding: .75rem; border: 1px solid rgba(255, 201, 28, .25); margin-bottom: 1rem; overflow-wrap: anywhere; }
.funds-payment-details[hidden] { display: none; }
.funds-payment-details img { max-width: 180px; max-height: 180px; object-fit: contain; }
.funds-history { margin: 1.5rem 0 3rem; }
.funds-history h2 { padding-top: 1.75rem; border-top: 1px solid rgba(255, 201, 28, .28); }
.funds-row { align-items: center; border-bottom: 1px solid rgba(255, 201, 28, .14); display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) auto; padding: 1rem .65rem; }
.funds-row-copy, .funds-row-side { min-width: 0; }
.funds-row-copy strong { color: var(--cream); display: block; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.funds-row-meta { color: var(--muted); display: block; font-size: .77rem; line-height: 1.45; margin-top: .35rem; }
.funds-row-date::before { content: " · "; }
.funds-row-side { align-items: flex-end; display: flex; flex-direction: column; gap: .35rem; text-align: right; }
.funds-row-amount { font-size: .98rem; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1.25; white-space: nowrap; }
.funds-row-status { background: rgba(121, 214, 151, .1); border: 1px solid rgba(121, 214, 151, .27); border-radius: 4px; color: #91dca8; display: inline-block; font-size: .68rem; font-weight: 700; line-height: 1.2; padding: .2rem .4rem; }
.funds-row-status[data-status="pending"] { background: rgba(255, 201, 28, .09); border-color: rgba(255, 201, 28, .3); color: var(--gold); }
.funds-row-status[data-status="failed"], .funds-row-status[data-status="cancelled"] { background: rgba(255, 154, 154, .08); border-color: rgba(255, 154, 154, .3); color: #ffaaaa; }
.funds-empty { color: var(--muted); font-size: .78rem; }
.funds-row .funds-credit { color: #79d697; }
.funds-row .funds-debit { color: #ff9a9a; }
.funds-page [hidden] { display: none !important; }
.funds-hero { margin-bottom: 1.25rem; }
.funds-wallet-tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid rgba(255, 201, 28, .22); margin-bottom: 1.6rem; }
.funds-wallet-tabs a { color: var(--muted); border-bottom: 2px solid transparent; padding: .7rem .15rem; text-decoration: none; font-weight: 700; }
.funds-wallet-tabs a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.funds-wallet-tabs a:hover { color: var(--cream); }
.funds-wallet-summary { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.funds-wallet-summary > * { border-top: 2px solid var(--gold); background: rgba(255, 201, 28, .055); color: inherit; padding: 1.2rem 1.4rem; text-decoration: none; }
.funds-wallet-summary > a { border-top-color: rgba(255, 201, 28, .35); }
.funds-wallet-summary span, .funds-wallet-summary strong, .funds-wallet-summary small { display: block; }
.funds-wallet-summary span { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.funds-wallet-summary strong { color: var(--gold); font-size: 1.6rem; margin: .4rem 0; font-variant-numeric: tabular-nums; }
.funds-wallet-summary small { color: var(--muted); font-size: .8rem; }
.funds-transfer-section, .funds-topup-section { border-top: 1px solid rgba(255, 201, 28, .3); padding: 1.35rem 0 1.7rem; }
.funds-section-heading { align-items: baseline; display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; margin-bottom: 1rem; }
.funds-section-heading h2 { color: var(--cream); font-size: 1.08rem; margin: 0; }
.funds-section-heading p { color: var(--muted); font-size: .83rem; margin: 0; }
.funds-section-heading a { color: var(--gold); font-size: .82rem; }
.funds-transfer-route { align-items: center; display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: .75rem; max-width: 820px; }
.funds-transfer-route .form-group, .funds-amount-row .form-group { margin: 0; min-width: 0; }
.funds-transfer-route small, .funds-amount-row small { color: var(--muted); display: block; font-size: .75rem; min-height: 1.2rem; margin-top: .35rem; }
.funds-swap { align-self: center; background: #092116; border: 1px solid rgba(255, 201, 28, .4); border-radius: 6px; color: var(--gold); cursor: pointer; font-size: 1.45rem; height: 42px; margin-top: .45rem; width: 42px; }
.funds-swap:disabled { cursor: not-allowed; opacity: .45; }
.funds-amount-row { align-items: end; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; max-width: 820px; margin-top: 1rem; }
.funds-amount-input { align-items: center; border: 1px solid rgba(255, 201, 28, .45); border-radius: 6px; display: flex; height: 48px; }
.funds-amount-input > span { color: var(--muted); font-size: .85rem; padding-left: .9rem; }
.funds-amount-input input { background: transparent; border: 0; color: var(--cream); flex: 1; font: inherit; min-width: 0; outline: 0; padding: .65rem; }
.funds-amount-input:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.funds-amount-input button { background: transparent; border: 0; color: var(--gold); cursor: pointer; font-weight: 800; padding: .7rem .9rem; }
.funds-amount-row > button { min-height: 48px; }
.funds-topup-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; max-width: 820px; }
.funds-topup-form .form-group { margin: 0; }
.funds-topup-form .funds-payment-details { grid-column: 1 / -1; }
.funds-topup-form > button { grid-column: 1 / -1; justify-self: start; }
.funds-confirm-dialog { background: #092116; border: 1px solid rgba(255, 201, 28, .45); border-radius: 8px; color: var(--cream); max-width: min(420px, calc(100vw - 2rem)); padding: 1.4rem; width: 100%; }
.funds-confirm-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.funds-confirm-dialog h2 { color: var(--gold); font-size: 1.1rem; margin: 0 0 1rem; }
.funds-confirm-dialog p { font-size: .88rem; line-height: 1.5; }
.funds-confirm-dialog .funds-confirm-error { color: #ff9a77; }
.funds-confirm-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1.3rem; }
.funds-overview { align-items: center; border: 1px solid rgba(255, 201, 28, .3); background: #092116; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) auto; padding: 1.4rem; }
.funds-primary-balance { min-width: 0; }
.funds-balance-heading { align-items: center; display: flex; gap: .5rem; }
.funds-balance-heading span { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.funds-balance-heading button { background: transparent; border: 0; color: var(--gold); cursor: pointer; font-size: 1.1rem; padding: .2rem; }
.funds-primary-balance > strong { color: var(--gold); display: block; font-size: clamp(1.65rem, 3vw, 2.4rem); font-variant-numeric: tabular-nums; margin: .3rem 0; }
.funds-primary-balance > small { color: var(--muted); display: block; font-size: .8rem; }
.funds-primary-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }
.funds-primary-actions .button { align-items: center; display: inline-flex; gap: .4rem; justify-content: center; min-height: 42px; }
.funds-primary-actions .button span { font-size: 1.15rem; line-height: 1; }
.funds-primary-actions .button:hover, .funds-primary-actions .button:focus-visible { filter: brightness(1.14); }
.funds-secondary-balance { align-items: center; color: var(--cream); display: flex; justify-content: space-between; padding: 1rem 0 1.15rem; text-decoration: none; }
.funds-secondary-balance small, .funds-secondary-balance strong { display: block; }
.funds-secondary-balance small { color: var(--muted); font-size: .75rem; }
.funds-secondary-balance strong { color: var(--gold); font-size: 1.1rem; font-variant-numeric: tabular-nums; margin: .2rem 0; }
.funds-secondary-balance > span:last-child { color: var(--gold); font-size: 1.25rem; }
.funds-earnings-form { align-items: end; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .75rem; max-width: 820px; }
.funds-earnings-form .form-group { margin: 0; }
.funds-earnings-form small { color: var(--muted); display: block; margin-top: .3rem; }
.funds-history-controls { align-items: end; display: flex; flex-wrap: wrap; gap: .75rem 1rem; justify-content: space-between; margin: 1rem 0 .5rem; }
.funds-page #funds-activity-section { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; margin-top: 1.5rem; padding: 1.4rem; }
.funds-page #funds-activity-section .funds-history-controls { border-bottom: 1px solid rgba(255, 201, 28, .16); margin-bottom: 0; padding-bottom: 1rem; }
.funds-page #funds-activity-section .funds-rows { min-height: 3rem; padding-top: .75rem; }
.orders-page [hidden] { display: none !important; }
.orders-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.orders-summary > div { background: #0a2116; border: 1px solid rgba(255, 201, 28, .22); border-radius: 6px; padding: 1rem 1.15rem; }
.orders-summary span, .orders-summary strong { display: block; }
.orders-summary span { color: var(--muted); font-size: .78rem; }
.orders-summary strong { color: var(--cream); font-size: 1.45rem; font-variant-numeric: tabular-nums; margin-top: .25rem; }
.orders-section { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; padding: 1.25rem; }
.orders-section-head { align-items: center; display: flex; justify-content: space-between; gap: 1rem; }
.orders-section-head h2 { color: var(--cream); font-size: 1.1rem; margin: 0; }
.orders-section-head span { color: var(--muted); font-size: .78rem; }
.orders-toolbar { align-items: end; border-bottom: 1px solid rgba(255, 201, 28, .16); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin: 1rem 0 0; padding-bottom: 1rem; }
.orders-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.orders-filters button { background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; padding: .5rem .7rem; }
.orders-filters button[aria-pressed="true"] { background: rgba(255, 201, 28, .14); border-color: rgba(255, 201, 28, .4); color: var(--gold); }
.orders-filters button:hover, .orders-filters button:focus-visible { color: var(--gold); outline-color: var(--gold); }
.orders-search { color: var(--muted); font-size: .75rem; }
.orders-search input { margin-top: .25rem; width: min(250px, 100%); }
.orders-list { display: grid; gap: .65rem; padding-top: 1rem; }
.orders-item { background: #06170f; border: 1px solid rgba(255, 201, 28, .16); border-radius: 6px; padding: 1rem; }
.orders-item-main { align-items: center; display: flex; gap: .9rem; min-width: 0; }
.orders-item-icon { align-items: center; background: rgba(255, 201, 28, .09); border: 1px solid rgba(255, 201, 28, .22); border-radius: 5px; color: var(--gold); display: flex; flex: 0 0 2.4rem; font-size: .85rem; font-weight: 800; height: 2.4rem; justify-content: center; }
.orders-item-copy { min-width: 0; }
.orders-item-copy small, .orders-item-copy span { color: var(--muted); display: block; font-size: .74rem; }
.orders-item-copy h3 { color: var(--cream); font-size: .92rem; margin: .18rem 0; overflow-wrap: anywhere; }
.orders-item-copy .orders-item-next { color: var(--cream); margin-top: .35rem; }
.orders-item-meta { align-items: flex-end; display: flex; flex: 0 0 auto; flex-direction: column; gap: .4rem; margin-left: auto; }
.orders-item-meta strong { color: var(--gold); font-size: .95rem; font-variant-numeric: tabular-nums; }
.orders-item-bottom { align-items: center; border-top: 1px solid rgba(255, 201, 28, .12); display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; padding-top: .75rem; }
.orders-item-bottom details { min-width: 0; }
.orders-item-bottom summary { color: var(--muted); cursor: pointer; font-size: .78rem; }
.orders-item-bottom > a { color: var(--gold); flex: 0 0 auto; font-size: .78rem; text-decoration: none; }
.orders-item-bottom > a:hover { text-decoration: underline; }
.orders-details { color: var(--muted); display: grid; font-size: .78rem; gap: .4rem; margin-top: .7rem; }
.orders-details > div { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; }
.orders-details strong { color: var(--cream); font-weight: 600; overflow-wrap: anywhere; }
.orders-details p { margin: .3rem 0 0; }
.orders-empty { color: var(--muted); padding: 2.5rem 1rem; text-align: center; }
.page-loading-status { color: var(--muted); font-size: .9rem; margin: 1rem 0 2rem; }
.orders-empty strong { color: var(--cream); }
.orders-empty p { font-size: .82rem; margin: .5rem 0 1rem; }
@media (max-width: 640px) { .orders-summary { gap: .4rem; } .orders-summary > div { padding: .75rem; } .orders-summary strong { font-size: 1.15rem; } .orders-search, .orders-search input { width: 100%; } .orders-item-main { align-items: flex-start; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); } .orders-item-icon { grid-column: 1; grid-row: 1; } .orders-item-copy { grid-column: 2; grid-row: 1; } .orders-item-meta { align-items: flex-start; grid-column: 2; grid-row: 2; margin-left: 0; min-width: 0; } }
.funds-history-filters { display: flex; flex-wrap: wrap; gap: .3rem; }
.funds-history-filters button { background: transparent; border: 1px solid transparent; border-radius: 4px; color: var(--muted); cursor: pointer; font: inherit; font-size: .76rem; padding: .5rem .65rem; }
.funds-history-filters button[aria-pressed="true"] { background: rgba(255, 201, 28, .14); border-color: rgba(255, 201, 28, .4); color: var(--gold); }
.funds-history-filters button:hover, .funds-history-filters button:focus-visible { color: var(--gold); outline-color: var(--gold); }
.funds-search { color: var(--muted); font-size: .75rem; }
.funds-search span { display: block; margin-bottom: .25rem; }
.funds-search input { width: min(220px, 100%); }
.funds-transaction { background: transparent; border-left: 0; border-right: 0; border-top: 0; color: var(--cream); cursor: pointer; font: inherit; text-align: left; width: 100%; }
.funds-transaction:hover, .funds-transaction:focus-visible { background: rgba(255, 201, 28, .065); outline-color: var(--gold); }
.funds-transaction strong, .funds-transaction small { overflow-wrap: anywhere; }
.funds-transfer-dialog { max-width: min(520px, calc(100vw - 1.5rem)); }
.funds-action-dialog { max-height: min(780px, calc(100dvh - 2rem)); max-width: min(540px, calc(100vw - 1.5rem)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.funds-action-dialog::-webkit-scrollbar { width: 7px; }
.funds-action-dialog::-webkit-scrollbar-track { background: #06180e; }
.funds-action-dialog::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.funds-action-dialog .funds-modal-form { display: grid; gap: .9rem; }
.funds-action-dialog [hidden] { display: none !important; }
.funds-action-dialog .form-group { margin: 0; min-width: 0; }
.funds-action-dialog .form-group small { color: var(--muted); display: block; margin-top: .35rem; }
.funds-action-dialog .form-group .funds-withdraw-amount-hint[data-invalid="true"] { color: #ffaaaa; }
.funds-action-dialog .funds-preview { margin-top: .25rem; }
.funds-action-dialog .funds-confirm-actions { margin-top: .65rem; }
.funds-modal-note { color: var(--muted); margin: 0; }
.funds-check { align-items: start; color: var(--cream); display: flex; font-size: .8rem; gap: .65rem; line-height: 1.45; }
.funds-check input { accent-color: var(--gold); flex: none; margin-top: .2rem; }
.funds-fixed-destination { align-content: center; border: 1px solid rgba(255, 201, 28, .3); border-radius: 6px; min-height: 48px; padding: .65rem .85rem; }
.funds-matrix-summary { background: #092116; border: 1px solid rgba(255, 201, 28, .3); border-radius: 7px; margin: 1.25rem 0 1.5rem; padding: 1.25rem 1.4rem; }
.funds-matrix-summary .funds-section-heading { margin-bottom: 1rem; }
.funds-matrix-summary h2 { border: 0; margin: 0; padding: 0; }
.funds-matrix-total { display: grid; gap: .25rem; margin-bottom: 1rem; }
.funds-matrix-total span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.funds-matrix-total strong { color: var(--gold); font-size: 1.65rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.funds-matrix-plans { display: grid; gap: .55rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.funds-matrix-plan { background: #06180f; border-radius: 4px; display: grid; gap: .35rem; min-width: 0; padding: .85rem .95rem; }
.funds-page #funds-activity-section h2 { border-top: 0; padding-top: 0; }
.funds-matrix-plan span { color: var(--muted); font-size: .76rem; }
.funds-matrix-plan strong { color: var(--cream); font-size: 1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.funds-matrix-note { color: var(--muted); font-size: .76rem; margin: .8rem 0 0; }
.funds-matrix-actions { display: flex; justify-content: flex-end; margin-top: 1.2rem; }
.funds-matrix-actions .button { min-height: 42px; }
.funds-action-dialog button:disabled { cursor: not-allowed; opacity: .55; }
.funds-action-success h3 { font-size: 1.1rem; margin: .2rem 0; }
.funds-dialog-heading { align-items: start; display: flex; justify-content: space-between; gap: 1rem; margin: -1.4rem -1.4rem 1.1rem; padding: 18px 1.4rem; background: #123021; border-bottom: 1px solid rgba(255, 201, 28, .25); }
.funds-dialog-heading h2 { margin: 0; }
.funds-dialog-heading p { color: var(--muted); margin: .3rem 0 0; }
.funds-dialog-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.funds-modal-route { align-items: end; display: grid; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.funds-modal-route > label, .funds-modal-route > div { color: var(--gold); display: block; font-size: .74rem; font-weight: 800; min-width: 0; text-transform: uppercase; }
.funds-modal-route select, .funds-modal-route strong { color: var(--cream); display: block; font-size: .9rem; font-weight: 600; height: 46px; margin-top: .4rem; text-transform: none; width: 100%; }
.funds-modal-route strong { align-content: center; border: 1px solid rgba(255, 201, 28, .3); border-radius: 6px; padding: .65rem; }
.funds-modal-route small { color: var(--muted); display: block; font-size: .69rem; font-weight: 400; margin-top: .3rem; text-transform: none; }
.funds-transfer-dialog #funds-transfer-form > label { color: var(--gold); display: block; font-size: .75rem; font-weight: 800; margin-bottom: .35rem; text-transform: uppercase; }
.funds-preview { border-top: 1px solid rgba(255, 201, 28, .2); margin: 1.2rem 0 0; padding: .8rem 0 0; }
.funds-preview > div { display: flex; gap: 1rem; justify-content: space-between; padding: .42rem 0; }
.funds-preview dt { color: var(--muted); font-size: .8rem; }
.funds-preview dd { font-size: .83rem; font-variant-numeric: tabular-nums; font-weight: 700; margin: 0; text-align: right; overflow-wrap: anywhere; }
.funds-field-error { color: #ff9a77; font-size: .78rem; }
.funds-success-mark { color: #8bf29e; font-size: 2rem !important; margin: 0; }
.funds-transfer-dialog h3 { font-size: 1.15rem; margin: .2rem 0; }
.funds-reference { color: var(--muted); font-size: .75rem !important; overflow-wrap: anywhere; }
.funds-page button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 1000px) { .funds-overview { grid-template-columns: 1fr; } .funds-primary-actions { justify-content: flex-start; } }
@media (max-width: 760px) { .funds-primary-actions { justify-content: stretch; } .funds-primary-actions .button { flex: 1 1 120px; } .funds-earnings-form { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .funds-modal-route { grid-template-columns: 1fr 40px 1fr; gap: .35rem; } .funds-modal-route select, .funds-modal-route strong { font-size: .75rem; padding: .3rem; } .funds-modal-route small { min-height: 2rem; } .funds-confirm-actions .button { flex: 1 1 120px; } .funds-search, .funds-search input { width: 100%; } }
@media (max-width: 520px) { .funds-matrix-summary { padding: 1rem; } .funds-matrix-plans { grid-template-columns: 1fr; } .funds-matrix-actions .button { width: 100%; } }
@media (max-width: 640px) { .funds-wallet-summary, .funds-topup-form { grid-template-columns: 1fr; } .funds-transfer-route { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: .45rem; } .funds-transfer-route select { font-size: .8rem; } .funds-amount-row { grid-template-columns: 1fr; } .funds-amount-row > button { width: 100%; } }
.budget-action { min-width: 135px; }
.budget-token-layout { display: grid; gap: 1.75rem; margin-top: 1rem; }
.budget-token-layout > *, .budget-token-fields > * { min-width: 0; }
.budget-token-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.budget-token-fields .form-group { margin-bottom: 0; }
#budget-token-quantity { appearance: textfield; -moz-appearance: textfield; }
#budget-token-quantity::-webkit-inner-spin-button,
#budget-token-quantity::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.budget-token-estimate { min-height: 0; margin: .75rem 0 1rem; color: var(--cream); font-size: .9rem; }
.budget-token-submit { display: grid; gap: 1rem; }
.budget-token-submit .funds-note { min-height: 0; margin: 0; overflow-wrap: anywhere; }
.budget-token-submit .button { width: 100%; }
.budget-token-requests { padding-top: .25rem; }
.budget-token-layout h4 { color: var(--gold); font-size: .95rem; margin: 0 0 1rem; text-transform: uppercase; }
.budget-token-layout .button { flex: 0 0 auto; }
.funds-admin-settings { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.funds-admin-settings label { font-weight: 700; color: var(--gold); }
.funds-admin-settings > div { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.funds-admin-settings input { width: 150px; }
.budget-admin-reversals { margin-top: 1.5rem; }
.admin-reconcile-confirm { display: flex; align-items: flex-start; gap: .65rem; margin: .9rem 0 1rem; color: var(--cream); font-size: .82rem; line-height: 1.45; }
.admin-reconcile-confirm input { flex: 0 0 auto; margin-top: .15rem; accent-color: var(--gold); }
@media (max-width: 900px) { .funds-operations { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .funds-summary, .funds-operations, .budget-token-fields { grid-template-columns: 1fr; } .budget-token-submit .button { width: 100%; } .funds-row { align-items: start; gap: .6rem; padding: .9rem .2rem; } .funds-row-amount { font-size: .88rem; } .funds-row-meta { font-size: .73rem; } }
@media (max-width: 480px) { .funds-row { grid-template-columns: minmax(0, 1fr); gap: .55rem; } .funds-row-side { align-items: center; flex-direction: row; justify-content: space-between; text-align: left; } }
.shop-shell { padding-top: 2.25rem; padding-bottom: 4rem; }
.shop-header-links { display: flex; align-items: center; gap: 1.25rem; }
.shop-page .shop-header-links a { color: var(--gold-soft); font-size: .85rem; font-weight: 700; }
.shop-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.shop-heading { flex-wrap: wrap; }
.shop-heading #shop-orders-link[hidden] { display: none; }
.shop-heading h1 { margin: .25rem 0 0; color: #fff; font-size: 2.4rem; }
.shop-categories { border-bottom: 1px solid rgba(255, 201, 28, .2); display: flex; gap: 1.4rem; margin-bottom: 1.25rem; }
.shop-categories[hidden], .shop-budget-progress[hidden], #shop-voucher-group[hidden], .shop-budget-cart-note[hidden] { display: none; }
.shop-cart-total[hidden], #shop-member-checkout[hidden], #shop-sign-in[hidden] { display: none; }
.shop-categories a { border-bottom: 2px solid transparent; color: var(--muted); font-size: .85rem; font-weight: 700; padding: .45rem .1rem .7rem; text-decoration: none; }
.shop-categories a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--gold); }
.shop-categories a:hover { color: var(--cream); }
.shop-budget-progress { background: #092116; border: 1px solid rgba(255, 201, 28, .28); border-radius: 7px; margin-bottom: 1.25rem; padding: 1rem; }
.shop-budget-heading { align-items: baseline; display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
.shop-budget-heading small { color: var(--gold); display: block; font-size: .7rem; font-weight: 800; }
.shop-budget-heading strong { color: var(--cream); display: block; font-size: 1.05rem; margin-top: .25rem; }
.shop-budget-heading > span { color: var(--gold); font-size: .78rem; font-weight: 700; }
.shop-budget-progress .entry-progress-meter { margin: .85rem 0 .6rem; }
.shop-budget-progress p { color: var(--cream); font-size: .8rem; margin: 0 0 .2rem; }
.shop-budget-progress > small, .shop-budget-cart-note { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.shop-budget-product-rate { color: var(--gold-soft); display: block; font-size: .72rem; margin-top: .3rem; }
.shop-budget-cart-note { margin: .55rem 0 0; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 1.5rem; align-items: start; }
@media (min-width: 801px) {
  .shop-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); column-gap: 1.5rem; align-items: start; }
  .shop-heading { grid-column: 1; grid-row: 1; }
  #shop-alert { grid-column: 1; grid-row: 2; }
  .shop-layout { display: contents; }
  .shop-layout > section { grid-column: 1; grid-row: 3; min-width: 0; }
  .shop-layout > .shop-cart { grid-column: 2; grid-row: 1 / span 3; }
}
.shop-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.shop-toolbar label { font-size: .85rem; font-weight: 700; white-space: nowrap; }
.shop-toolbar input { max-width: 330px; }
.shop-toolbar span { margin-left: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.shop-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.shop-product { display: flex; flex-direction: column; min-width: 0; background: #071b10; border: 1px solid rgba(255, 201, 28, .42); border-radius: 8px; overflow: hidden; }
.shop-product-media { display: flex; align-items: center; justify-content: center; flex: 0 0 190px; height: 190px; overflow: hidden; background: #102a1b; color: var(--gold); font: 700 1.3rem Georgia, serif; }
.shop-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-product-body { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: 1rem; }
.shop-product-body h2 { margin: 0; color: #fff; font-size: 1.06rem; line-height: 1.3; }
.shop-product-body p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.shop-product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .65rem; }
.shop-product-bottom strong { color: var(--gold); font-size: .94rem; white-space: nowrap; }
.shop-product-bottom button { flex: 0 0 auto; padding: .55rem .65rem; font-size: .72rem; white-space: nowrap; }
.shop-cart { position: sticky; top: var(--shop-cart-top, 6rem); margin-top: var(--shop-cart-start, 0px); max-height: calc(100dvh - 7rem); overflow-y: auto; background: #071b10; border: 1px solid rgba(255, 201, 28, .5); border-radius: 8px; padding: 1.1rem; }
.shop-mobile-cart { display: none; }
.shop-mobile-cart[hidden] { display: none; }
.shop-cart-title, .shop-cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.shop-cart-title h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.shop-cart-title span, .shop-cart-item small, .shop-cart-empty, .shop-shipping-note { color: var(--muted); font-size: .78rem; }
.shop-cart-items { max-height: 320px; overflow-y: auto; margin: 1rem 0; }
.shop-cart-item { display: grid; gap: .5rem; padding: .75rem 0; border-top: 1px solid rgba(255, 201, 28, .18); }
.shop-cart-item strong, .shop-cart-item small { display: block; }
.shop-cart-item strong { color: #fff; font-size: .85rem; }
.shop-cart-item-actions { display: flex; align-items: center; gap: .45rem; }
.shop-cart-item-actions button { min-width: 30px; min-height: 30px; border: 1px solid rgba(255, 201, 28, .5); border-radius: 4px; background: transparent; color: var(--gold); cursor: pointer; }
.shop-cart-item-actions button:last-child { margin-left: auto; padding: 0 .4rem; }
.shop-cart-total { padding: .8rem 0; border-top: 1px solid rgba(255, 201, 28, .25); font-size: .86rem; }
.shop-cart-total strong { color: var(--gold); }
.shop-cart .form-group { margin-top: .9rem; }
.shop-order-notes { margin-top: .9rem; }
.shop-order-notes summary { color: var(--gold-soft); cursor: pointer; font-size: .78rem; font-weight: 700; }
.shop-order-notes summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shop-cart .form-group a, .shop-cart .form-group small { display: block; margin-top: .35rem; font-size: .75rem; }
.shop-cart .button { margin-top: .7rem; }
.shop-empty { grid-column: 1 / -1; padding: 2rem 0; color: var(--muted); }
@media (max-width: 800px) {
  .shop-shell { padding-bottom: 7rem; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-cart { position: static; margin-top: 0; max-height: none; overflow: visible; scroll-margin-top: 5rem; }
  .shop-mobile-cart { align-items: center; justify-content: space-between; gap: .75rem; position: fixed; z-index: 30; bottom: calc(.75rem + env(safe-area-inset-bottom)); left: calc(.75rem + env(safe-area-inset-left)); right: calc(.75rem + env(safe-area-inset-right)); min-height: 54px; padding: .7rem 1rem; border: 1px solid #ffe177; border-radius: 6px; background: #ffc91c; color: #06170c; box-shadow: 0 8px 24px #0009; text-align: left; cursor: pointer; }
  .shop-mobile-cart:not([hidden]) { display: flex; }
  .shop-mobile-cart span { min-width: 0; font-size: .78rem; font-weight: 700; }
  .shop-mobile-cart strong { flex: 0 0 auto; font-size: .82rem; }
  .shop-mobile-cart:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .shop-toolbar { flex-wrap: wrap; }
  .shop-toolbar input { flex: 1; min-width: 160px; }
  .shop-toolbar span { width: 100%; }
}
.dashboard-content:not(.show-premium) [data-premium-view] { display: none !important; }
.dashboard-welcome { padding: .2rem 0 .1rem; }
.dashboard-welcome h2 { color: var(--gold); font: 700 1.8rem/1.15 Georgia, serif; margin: 0 0 .4rem; }
.dashboard-welcome-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.dashboard-welcome-heading > h2 { margin-bottom: 0; }
.dashboard-welcome > p { color: var(--muted); font-size: .88rem; margin: 0; }
.dashboard-welcome-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: .76rem; gap: .5rem; margin-top: .75rem; }
.dashboard-welcome-meta a { color: var(--gold); font-weight: 700; text-decoration: none; }
.dashboard-welcome-meta a:hover { text-decoration: underline; }
.dashboard-ready-dot { background: #6fcb8a; border-radius: 50%; height: 6px; width: 6px; }
.dashboard-overview { display: grid; gap: 2rem; }
.dashboard-section-heading { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: .85rem; }
.dashboard-section-heading h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.dashboard-section-action { align-items: center; color: var(--gold); display: inline-flex; font-size: .78rem; font-weight: 800; gap: .45rem; min-height: 34px; padding: .25rem 0; text-decoration: none; white-space: nowrap; }
.dashboard-section-action:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: .2em; }
.dashboard-section-action:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dashboard-section-action svg { fill: none; height: 14px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 14px; }
.dashboard-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dashboard-plan-item { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; color: #fff; display: flex; flex-direction: column; min-height: 168px; min-width: 0; padding: 1rem; text-decoration: none; }
.dashboard-plan-item:hover { border-color: var(--gold); transform: translateY(-1px); }
.dashboard-plan-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dashboard-plan-icon { color: var(--gold); fill: none; height: 20px; margin-bottom: 1rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 20px; }
.dashboard-plan-copy { display: grid; gap: .15rem; }
.dashboard-plan-copy > span { font-size: .96rem; font-weight: 700; }
.dashboard-plan-copy small { color: var(--muted); font-size: .76rem; }
.dashboard-plan-stage { color: var(--muted); font-size: .78rem; margin-top: .85rem; }
.dashboard-plan-bottom { align-items: end; display: flex; gap: .75rem; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.dashboard-plan-bottom strong { background: rgba(255, 201, 28, .11); border-radius: 12px; color: var(--gold-soft); font-size: .68rem; font-weight: 700; padding: .25rem .55rem; white-space: nowrap; }
.dashboard-plan-bottom strong[data-state="active"] { background: rgba(47, 145, 68, .22); color: #a8e7b5; }
.dashboard-plan-value { display: grid; gap: .2rem; min-width: 0; text-align: right; }
.dashboard-plan-value small { color: var(--muted); font-size: .72rem; }
.dashboard-plan-bottom b { color: var(--gold); font-size: 1.05rem; line-height: 1.15; text-align: right; }
.dashboard-funds-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dashboard-funds-row > div { background: #0a2116; border: 1px solid rgba(255, 201, 28, .32); border-radius: 7px; display: grid; gap: .7rem; min-width: 0; padding: 1rem; }
.dashboard-funds-row span { align-items: center; color: var(--muted); display: flex; font-size: .78rem; gap: .55rem; }
.dashboard-funds-row span svg { color: var(--gold); fill: none; flex: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.dashboard-funds-row strong { color: #fff; font-size: 1.35rem; }
.dashboard-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.dashboard-shop-item { background: #0a2116; border: 1px solid rgba(255, 201, 28, .32); border-radius: 7px; color: #fff; min-width: 0; overflow: hidden; text-decoration: none; }
.dashboard-shop-item:hover { border-color: var(--gold); transform: translateY(-1px); }
.dashboard-shop-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.dashboard-shop-item img { background: #102a1b; display: block; height: 170px; object-fit: contain; padding: .6rem; width: 100%; }
.dashboard-shop-no-photo { background: #102a1b; color: var(--muted) !important; display: grid; font-size: .78rem !important; font-weight: 400 !important; height: 170px; place-items: center; width: 100%; }
.dashboard-shop-info { border-top: 1px solid rgba(255, 201, 28, .16); display: grid; gap: .25rem; padding: .7rem .8rem .85rem; }
.dashboard-shop-item strong { font-size: .85rem; overflow-wrap: anywhere; }
.dashboard-shop-item .dashboard-shop-info span { color: var(--gold); font-size: .9rem; font-weight: 700; }
body.premium-plan-view > footer.site-footer { display: none; }
@media (max-width: 650px) {
  .dashboard-plan-grid, .dashboard-funds-row { grid-template-columns: 1fr; }
  .dashboard-shop-grid { grid-template-columns: 1fr; }
  .dashboard-section-heading { align-items: start; }
}
@media (max-width: 430px) {
  .account-menu-copy, .account-chevron { display: none; }
  .account-menu-toggle { min-width: 46px; width: 46px; padding: 0.32rem; justify-content: center; }
  .user-status-strip { gap: 0.4rem; }
}

/* Shared signed-in member navigation. */
.member-sidebar { background: linear-gradient(180deg, #03170e, #031109 70%, #020c07); border-right: 1px solid rgba(255, 201, 28, .28); bottom: 0; display: flex; flex-direction: column; left: 0; overflow-y: auto; padding: 1.25rem .75rem .8rem; position: fixed; scrollbar-color: rgba(255, 201, 28, .5) rgba(255, 201, 28, .06); scrollbar-width: thin; top: 0; width: 228px; z-index: 160; }
.member-sidebar::-webkit-scrollbar { width: 6px; }
.member-sidebar::-webkit-scrollbar-track { background: rgba(255, 201, 28, .06); }
.member-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 201, 28, .5); border-radius: 6px; }
.member-sidebar[data-shell] { pointer-events: none; }
.member-sidebar-brand { align-items: center; color: var(--gold); display: flex; gap: .6rem; margin: .15rem .5rem 1.6rem; text-decoration: none; }
.member-sidebar-brand-mark { align-items: center; background: linear-gradient(135deg, #ffe16b, #ad7800); border: 2px solid #f7d65f; border-radius: 50%; color: #392300; display: inline-flex; flex: none; font: 700 1.35rem Georgia, serif; height: 36px; justify-content: center; width: 36px; }
.member-sidebar-brand strong { display: block; font: 700 1.14rem Georgia, serif; }
.member-sidebar-brand small { color: var(--gold-soft); display: block; font-size: .43rem; font-weight: 800; }
.member-sidebar nav { flex: 1; }
.member-sidebar-group { border-left: 2px solid var(--gold); color: var(--gold-soft); display: block; font-size: .64rem; font-weight: 800; margin: 1.05rem .65rem .4rem; padding-left: .5rem; text-transform: uppercase; }
.member-sidebar-link { align-items: center; background: none; border: 1px solid transparent; border-radius: 5px; color: #c9d5c9; display: flex; font-size: .76rem; gap: .7rem; min-height: 36px; padding: .48rem .6rem; text-align: left; text-decoration: none; width: 100%; }
.member-sidebar-link:hover { background: #0a2416; color: #fff; }
.member-sidebar-link.active { background: linear-gradient(90deg, #2b321a, #24301b); border-color: rgba(255, 201, 28, .45); color: var(--gold); font-weight: 800; }
.member-sidebar-link:focus-visible, .member-sidebar-account:focus-visible, .member-sidebar-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.member-sidebar-icon { fill: none; flex: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.member-sidebar-footer { border-top: 1px solid rgba(255, 201, 28, .18); margin-top: .7rem; padding-top: .7rem; }
.member-sidebar-account { align-items: center; color: #fff; display: flex; gap: .55rem; padding: .15rem .3rem .5rem; text-decoration: none; }
.member-sidebar-account > span:last-child { min-width: 0; }
.member-sidebar-avatar { align-items: center; background: #0a311b; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); display: inline-flex; flex: none; font-size: .8rem; font-weight: 800; height: 32px; justify-content: center; width: 32px; }
.member-sidebar-name { display: block; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-sidebar-id { color: var(--muted); display: block; font-size: .61rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-sidebar-logout { cursor: pointer; font: inherit; font-size: .76rem; }
.member-sidebar-toggle, .member-sidebar-backdrop { display: none; }
.member-sidebar-crumb { color: var(--muted); display: none; font-size: .76rem; }
.member-sidebar-crumb strong { color: #fff; }
@media (min-width: 901px) {
  html.member-nav-pending body.portal-body::before { background: linear-gradient(180deg, #03170e, #031109 70%, #020c07); border-right: 1px solid rgba(255, 201, 28, .28); bottom: 0; content: ""; left: 0; position: fixed; top: 0; width: 228px; z-index: 159; }
  html.member-nav-pending body.portal-body .portal-header, html.member-nav-pending body.portal-body > footer { margin-left: 228px; }
  html.member-nav-pending body.portal-body .portal-header .brand { display: none; }
  html.member-nav-pending body.portal-body .portal-header .header-wrapper { justify-content: space-between; padding: .6rem 0; }
  html.member-nav-pending body.portal-body .portal-container { left: 114px; position: relative; width: min(1200px, calc(100% - 260px)); }
  html.member-nav-pending body.portal-body .account-menu-copy, html.member-nav-pending body.portal-body .account-chevron { display: none; }
  html.member-nav-pending body.portal-body .account-menu-toggle { min-width: 46px; padding: .32rem; width: 46px; }
  body.member-sidebar-active .portal-header, body.member-sidebar-active > footer { margin-left: 228px; }
  body.member-sidebar-active .portal-header .brand { display: none; }
  body.member-sidebar-active .portal-header .header-wrapper { justify-content: space-between; padding: .6rem 0; }
  body.member-sidebar-active .member-sidebar-crumb { display: inline; }
  body.member-sidebar-active .portal-container { left: 114px; position: relative; width: min(1200px, calc(100% - 260px)); }
  body.member-sidebar-active .account-menu-copy, body.member-sidebar-active .account-chevron { display: none; }
  body.member-sidebar-active .account-menu-toggle { min-width: 46px; padding: .32rem; width: 46px; }
}
@media (max-width: 900px) {
  html.member-nav-pending body.portal-body { visibility: hidden; }
  .member-sidebar { box-shadow: 18px 0 32px rgba(0, 0, 0, .35); max-width: min(84vw, 280px); transform: translateX(-105%); transition: transform .2s ease; visibility: hidden; width: 280px; z-index: 170; }
  body.member-sidebar-open .member-sidebar { transform: translateX(0); visibility: visible; }
  .member-sidebar-toggle { align-items: center; background: transparent; border: 1px solid rgba(255, 201, 28, .42); border-radius: 5px; color: var(--gold); cursor: pointer; display: inline-flex; flex: none; height: 38px; justify-content: center; width: 38px; }
  .member-sidebar-backdrop { background: rgba(0, 0, 0, .58); border: 0; cursor: pointer; inset: 0; position: fixed; z-index: 165; }
  body.member-sidebar-open .member-sidebar-backdrop { display: block; }
  body.member-sidebar-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .member-sidebar { transition: none; }
}

/* Signed-in member pages share Overview's compact visual language. */
html.member-workspace body.portal-body .portal-container.withdrawal-page { margin-top: 1.25rem; max-width: none; }
html.member-workspace body.portal-body .withdrawal-hero { align-items: center; gap: 1rem; margin: 0 0 1.5rem; }
html.member-workspace body.portal-body .withdrawal-hero h1,
html.member-workspace body.portal-body .shop-heading h1 { color: var(--gold); font: 700 clamp(1.7rem, 2.2vw, 2rem)/1.15 Georgia, serif; letter-spacing: 0; margin: .25rem 0 .4rem; text-transform: none; }
html.member-workspace body.portal-body .withdrawal-hero p { font-size: .88rem; line-height: 1.5; max-width: 700px; }
html.member-workspace body.portal-body .withdrawal-eyebrow { color: var(--gold); letter-spacing: 0; }
html.member-workspace body.portal-body .portal-card { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; box-shadow: none; backdrop-filter: none; padding: 1.25rem; }
html.member-workspace body.portal-body .portal-card::before { display: none; }
html.member-workspace body.portal-body .matrix-overview-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; padding: 0; }
html.member-workspace body.portal-body .budget-purchase-card,
html.member-workspace body.portal-body .budget-token-section { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; padding: 1.25rem; }
html.member-workspace body.portal-body .budget-purchase-card { background: #081b12; border-color: rgba(255, 201, 28, .17); }
html.member-workspace body.portal-body .budget-purchase-card { display: grid; gap: .85rem; }
html.member-workspace body.portal-body .budget-purchase-card[hidden] { display: none; }
html.member-workspace body.portal-body .budget-purchase-card .budget-category-legend { border-top: 1px solid rgba(255, 201, 28, .18); padding-top: .85rem; }
html.member-workspace body.portal-body .budget-purchase-card .withdrawal-history-note { margin: 0; }
html.member-workspace body.portal-body .budget-dashboard:not([hidden]) { display: grid; gap: 1rem; }
.budget-dashboard .matrix-card-header { margin-bottom: 0; }
.budget-dashboard .matrix-card-header h2 { color: var(--cream); font-size: 1.2rem; margin: 0 0 .25rem; }
.budget-dashboard .matrix-card-header p { color: var(--muted); font-size: .82rem; margin: 0; }
.budget-dashboard-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.budget-summary-panel { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; display: flex; flex-direction: column; min-height: 8.5rem; padding: 1.1rem 1.25rem; }
.budget-summary-label { color: var(--gold); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.budget-summary-value { color: var(--cream); font-size: 1.45rem; line-height: 1.25; margin-top: .45rem; overflow-wrap: anywhere; }
.budget-summary-amount { color: var(--gold); }
.budget-summary-note { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: .55rem 0 0; }
.budget-summary-link { align-self: flex-start; color: var(--gold); font-size: .8rem; font-weight: 700; margin-top: auto; padding-top: .8rem; }
.budget-rank-progress { background: #03120a; border-radius: 999px; height: .45rem; margin-top: auto; overflow: hidden; }
.budget-rank-progress span { background: var(--gold); display: block; height: 100%; width: 0; }
.budget-summary-next .budget-summary-note { color: var(--cream); margin: .55rem 0 .9rem; }
.budget-feature-list { border-top: 1px solid rgba(255, 201, 28, .18); }
.budget-feature-row { align-items: center; border-bottom: 1px solid rgba(255, 201, 28, .18); display: grid; gap: .75rem 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(12rem, .55fr); padding: 1.2rem 0; }
.budget-feature-row h3 { color: var(--cream); font-size: 1.05rem; margin: 0; }
.budget-feature-row .budget-summary-note { margin-top: .35rem; }
.budget-feature-result { align-items: flex-start; display: flex; flex-direction: column; min-width: 0; }
.budget-feature-result .budget-summary-value { margin-top: 0; }
.budget-feature-result .budget-summary-link { margin-top: .4rem; padding-top: 0; }
@media (max-width: 680px) { .budget-dashboard-grid, .budget-feature-row { grid-template-columns: 1fr; } .budget-summary-next { grid-column: auto; } .budget-summary-panel { min-height: 0; } }
html.member-workspace body.portal-body .matrix-overview-card + .matrix-overview-card { border-top: 1px solid rgba(255, 201, 28, .18); padding-top: 1.5rem; }
html.member-workspace body.portal-body #patronizing-entry-card[hidden] + #patronizing-dashboard-card { border-top: 0; padding-top: 0; }
html.member-workspace body.portal-body #patronizing-dashboard-card + #patronizing-exits-card { border-top: 0; }
html.member-workspace body.portal-body #budget-content:not([hidden]) { display: grid; gap: var(--member-space-section, 24px); }
html.member-workspace body.portal-body #budget-content > .matrix-overview-card + .matrix-overview-card:not(.budget-token-section) { border-top: 0; padding-top: 0; }
html.member-workspace body.portal-body #budget-content > .budget-token-section { border-top: 1px solid rgba(255, 201, 28, .25); padding-top: 1.25rem; }
html.member-workspace body.portal-body .budget-token-header { display: flex; justify-content: flex-start; align-items: center; gap: .9rem; margin: -1.25rem -1.25rem 1.25rem; padding: 1.1rem 1.25rem; background: linear-gradient(100deg, rgba(255, 201, 28, .09), rgba(255, 201, 28, .025) 72%); border-bottom: 1px solid rgba(255, 201, 28, .15); border-radius: 6px 6px 0 0; }
html.member-workspace body.portal-body .budget-token-section .budget-token-header { background: transparent; border-bottom: 0; margin-bottom: .5rem; padding-bottom: .65rem; }
.budget-token-disclosure summary { border: 1px solid rgba(255, 201, 28, .48); border-radius: 6px; color: var(--gold); cursor: pointer; font-size: .82rem; font-weight: 800; list-style-position: inside; padding: .7rem .9rem; width: fit-content; }
.budget-token-disclosure summary:hover, .budget-token-disclosure[open] summary { background: rgba(255, 201, 28, .09); }
.budget-token-disclosure summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.budget-token-mark { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 201, 28, .55); border-radius: 50%; color: var(--gold); background: #102417; font-size: .72rem; font-weight: 800; }
.budget-token-heading { min-width: 0; }
.budget-token-title { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.budget-token-title .badge { white-space: nowrap; }
.plan-entry-amount { align-items: baseline; display: inline-flex; flex-wrap: wrap; gap: .25rem .55rem; min-width: 0; }
.plan-entry-amount small { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.plan-entry-amount strong { color: var(--gold); font-size: 1.4rem; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.plan-hero-side { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: flex-end; }
.budget-dashboard-jump { color: var(--gold); font-size: .82rem; font-weight: 700; text-decoration: none; }
.budget-dashboard-jump:hover, .budget-dashboard-jump:focus-visible { text-decoration: underline; }
.patronizing-entry-option .patronizing-entry-price { color: var(--gold); font-size: 1.4rem; font-variant-numeric: tabular-nums; line-height: 1; }
.patronizing-entry-option .patronizing-entry-price small { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
html.member-workspace body.portal-body .matrix-card-header h3,
html.member-workspace body.portal-body .funds-operation h2,
html.member-workspace body.portal-body .funds-history h2 { color: var(--cream); font-size: 1.1rem; letter-spacing: 0; text-transform: none; }
html.member-workspace body.portal-body .matrix-card-header { align-items: center; margin-bottom: 1rem; }
html.member-workspace body.portal-body .metric-card,
html.member-workspace body.portal-body .withdrawal-history-summary article,
html.member-workspace body.portal-body .funds-summary > div,
html.member-workspace body.portal-body .shop-product,
html.member-workspace body.portal-body .shop-cart,
html.member-workspace body.portal-body .patronizing-entry-option { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; box-shadow: none; }
html.member-workspace body.portal-body .funds-summary > div { padding: 1rem; }
html.member-workspace body.portal-body .funds-summary strong,
html.member-workspace body.portal-body .withdrawal-history-summary strong,
html.member-workspace body.portal-body .metric-card .value { color: var(--cream); }
html.member-workspace body.portal-body .funds-operation { border-top-color: rgba(255, 201, 28, .2); }
html.member-workspace body.portal-body .shop-shell { margin-top: 1.25rem; padding-top: 0; }
html.member-workspace body.shop-page .portal-header .shop-header-links { display: none; }
html.member-workspace body.portal-body .portal-header .user-status-strip { gap: .55rem; }
html.member-workspace body.portal-body .portal-header .account-menu-copy,
html.member-workspace body.portal-body .portal-header .account-chevron { display: none; }
html.member-workspace body.portal-body .portal-header .account-menu-toggle {
  justify-content: center;
  min-width: 46px;
  padding: .32rem;
  width: 46px;
}
html.member-workspace body.portal-body .portal-header .member-notification-menu {
  right: calc(46px + .55rem);
  width: min(330px, calc(100vw - 92px));
}
html.member-workspace body.portal-body .shop-heading { margin-bottom: 1.25rem; }
html.member-workspace body.portal-body .shop-product-media { background: #102a1b; }
html.member-workspace body.portal-body .patronizing-entry-option h2 { font-family: inherit; font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; text-align: left; text-transform: none; }
html.member-workspace body.portal-body .withdrawal-balance-value { font-size: 1.7rem; }
html.member-workspace body.portal-body .withdrawal-filters { padding: 1rem; }
html.member-workspace body.portal-body .portal-card h2 { letter-spacing: 0; }
/* Standard uses the shared member surfaces; Premium carries the warmer plan accent. */
html.member-workspace body.portal-body #timeline-activation-card .entry-progress-panel,
html.member-workspace body.portal-body #timeline-dashboard .matrix-status-panel,
html.member-workspace body.portal-body #timeline-dashboard .metric-card { background: #0a2116; border-color: rgba(255, 201, 28, .25); border-radius: 7px; }
html.member-workspace body.portal-body #timeline-activation-card .entry-progress-stats > div { background: #081b12; border-color: rgba(255, 201, 28, .17); border-radius: 7px; }
html.member-workspace body.portal-body #timeline-activation-card .entry-progress-panel { margin-bottom: 0; background: #081b12; padding: 20px; }
html.member-workspace body.portal-body #timeline-activation-card .timeline-payment-card { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; padding: 1.25rem; }
html.member-workspace body.portal-body #timeline-rules-card { margin-block: 2rem; }
html.member-workspace body.premium-plan-view #active-metrics-row .metric-card,
html.member-workspace body.premium-plan-view [data-premium-view] .matrix-status-panel,
html.member-workspace body.premium-plan-view [data-premium-view] .exit-card { background: rgba(255, 201, 28, .055); border-color: rgba(255, 201, 28, .18); }
html.member-workspace body.premium-plan-view #active-metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html.member-workspace body.premium-plan-view .premium-entry-progress-card { background: #081b12; border: 1px solid rgba(255, 201, 28, .18); border-radius: 7px; padding: 1.25rem; }
html.member-workspace body.premium-plan-view .premium-entry-progress-card .entry-progress-stats > div { background: rgba(255, 201, 28, .035); border-color: rgba(255, 201, 28, .18); }
html.member-workspace body.premium-plan-view .premium-activation { background: rgba(255, 201, 28, .055); border: 1px solid rgba(255, 201, 28, .18); border-radius: 7px; padding: 1.25rem; }
html.member-workspace body.premium-plan-view #premium-rules-card { margin-block: 0; }
html.member-workspace body.premium-plan-view #balance-card + #products-plus-card { border-top: 0; padding-top: 0; }
html.member-workspace body.premium-plan-view .products-plus-vouchers { margin-top: 1.5rem; }
.premium-activation-heading { align-items: center; border-bottom: 1px solid rgba(255, 201, 28, .18); display: flex; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; }
.premium-activation-heading .budget-token-heading { flex: 1; min-width: 0; }
.premium-activation-heading .budget-token-title { align-items: center; }
.premium-activation-heading h3 { color: var(--cream); font-size: 1.05rem; margin: 0; }
.premium-activation-heading p { color: var(--muted); font-size: .78rem; margin: .35rem 0 0; }
.premium-activation-heading > .benefit-state { flex: none; }
html.member-workspace body.premium-plan-view .premium-activation-mark { background: #2b230c; border-color: rgba(255, 201, 28, .5); color: var(--gold); }
.premium-activation-layout { display: grid; gap: 1.35rem; }
.premium-activation-pending dl > div { border-top: 1px solid rgba(255, 201, 28, .15); display: flex; gap: 1rem; justify-content: space-between; padding: .7rem 0; }
.premium-activation-pending dt { color: var(--muted); font-size: .78rem; }
.premium-activation-pending dd { color: var(--cream); font-size: .8rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.premium-activation-pending dd { text-align: right; }
.plan-payment-preview { align-items: center; background: rgba(9, 31, 22, .7); border: 1px solid rgba(255, 201, 28, .18); border-radius: 6px; display: flex; gap: 1rem; min-width: 0; padding: .85rem; }
.plan-payment-preview:empty { display: none; }
.plan-payment-preview img { background: #fff; height: 88px; object-fit: contain; width: 88px; }
.plan-payment-preview strong { color: var(--cream); display: block; font-size: .85rem; }
.plan-payment-preview p { color: var(--cream); font-size: .8rem; margin: .3rem 0; overflow-wrap: anywhere; }
.plan-payment-preview small { color: var(--muted); display: block; line-height: 1.5; overflow-wrap: anywhere; }
.premium-activation-form .plan-payment-preview { align-self: end; min-height: 48px; }
html.member-workspace body.premium-plan-view .plan-payment-preview { background: rgba(255, 201, 28, .035); }
.premium-activation-form { align-items: start; display: grid; gap: 1.1rem 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.premium-activation-form .form-group { margin: 0; min-width: 0; }
.premium-activation-form .withdrawal-confirmation, .premium-activation-form .withdrawal-submit { grid-column: 1 / -1; }
.premium-activation-form .withdrawal-submit { margin-top: 0; }
.premium-activation-pending { min-width: 0; }
.premium-activation-pending > strong { color: var(--gold); font-size: 1rem; }
.premium-activation-pending > p { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.premium-activation-pending dl { margin: 1rem 0 0; }
html.member-workspace body.premium-plan-view .premium-next-step { align-items: center; background: rgba(255, 201, 28, .055); border: 1px solid rgba(255, 201, 28, .18); border-radius: 7px; display: flex; gap: 1.5rem; justify-content: space-between; padding: 1.1rem 1.25rem; }
html.member-workspace body.premium-plan-view .premium-next-step-heading { align-items: center; display: flex; flex-wrap: wrap; gap: .7rem; }
html.member-workspace body.premium-plan-view .premium-next-step h3 { color: var(--gold); font-size: 1rem; margin: 0; }
html.member-workspace body.premium-plan-view .premium-next-step p { color: var(--cream); font-size: .82rem; line-height: 1.5; margin: .4rem 0 0; }
html.member-workspace body.premium-plan-view .premium-next-step .button { flex: none; }
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-table-wrap { background: #17170a; border-color: rgba(255, 201, 28, .25); }
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-table thead,
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-table thead th { background: #352b0d; }
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-table tbody th { background: #29230f; }
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-table tbody tr:hover { background: rgba(255, 201, 28, .075); }
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-progress-track { background: rgba(255, 201, 28, .18); }
html.member-workspace body.premium-plan-view #premium-rules-card .benefit-progress-track i { background: var(--gold); }
@media (max-width: 680px) {
  .premium-activation-form { grid-template-columns: 1fr; }
  .premium-activation-heading { align-items: flex-start; flex-wrap: wrap; }
  html.member-workspace body.premium-plan-view .premium-next-step { align-items: stretch; flex-direction: column; }
  html.member-workspace body.premium-plan-view .premium-next-step .button { width: 100%; }
  html.member-workspace body.portal-body .withdrawal-hero { align-items: flex-start; }
  html.member-workspace body.portal-body .matrix-card-header { align-items: flex-start; }
}
@media (max-width: 900px) {
  html.member-workspace body.portal-body .portal-header .header-wrapper {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .75rem;
    justify-content: space-between;
    padding: .6rem 0;
  }
  html.member-workspace body.portal-body .portal-header .brand,
  html.member-workspace body.portal-body .portal-header .withdrawal-nav,
  html.member-workspace body.portal-body .portal-header .shop-header-links { display: none; }
  html.member-workspace body.portal-body .member-sidebar-crumb { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.member-workspace body.portal-body .portal-header .user-status-strip[data-member-menu] { align-self: auto; flex: none; margin-left: auto; }
  html.member-workspace body.portal-body .portal-header .account-menu-copy,
  html.member-workspace body.portal-body .portal-header .account-chevron { display: none; }
  html.member-workspace body.portal-body .portal-header .account-menu-toggle {
    justify-content: center;
    min-width: 42px;
    padding: .25rem;
    width: 42px;
  }
}
.premium-action-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
/* Financing shares the plan surfaces and table scrollbar treatment. */
.financing-token-details { margin-top: 18px; }
.financing-token-details summary { color: var(--gold, #ffd51a); cursor: pointer; font-weight: 700; padding: 12px 0; }
.financing-token-form { margin: 16px 0 24px; }
.financing-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.financing-method-details { padding: 16px; border: 1px solid #404b22; border-radius: 6px; background: #142e20; overflow-wrap: anywhere; }
.financing-history { max-height: 300px; overflow: auto; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.financing-history::-webkit-scrollbar { width: 7px; }
.financing-history::-webkit-scrollbar-track { background: #06180e; }
.financing-history::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.financing-history-item { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #293c22; }
.financing-history-item p { margin: 6px 0; }
.financing-history-item small { display: block; }
.financing-history-item > div, #financing-wallet { min-width: 0; overflow-wrap: anywhere; }
.financing-history-item .badge { white-space: normal; text-align: right; }
.financing-legacy-link { margin: 28px 0; }
#financing-content > section + section,
#financing-content > section[aria-labelledby="financing-benefits-title"] { margin-top: 32px; }
#financing-content > section[aria-labelledby="financing-benefits-title"] .matrix-card-header { margin-bottom: 20px; }
#financing-content > section[aria-labelledby="financing-benefits-title"] .matrix-card-header h2 { margin: 0; }
#financing-content > section[aria-labelledby="financing-benefits-title"] .matrix-card-header p { margin: 8px 0 0; }
@media (max-width: 640px) { .financing-form-grid { grid-template-columns: minmax(0, 1fr); } .financing-history-item { flex-direction: column; } }

/* Plan dashboard presentation. Existing scripts retain all visibility and values. */
.sign-in-progress { width: min(340px, calc(100vw - 32px)); box-sizing: border-box; padding: 28px 24px; border: 1px solid rgba(255, 201, 28, .65); border-radius: 7px; background: #092116; color: var(--cream); text-align: center; max-height: calc(100dvh - 32px); overflow-y: auto; }
.sign-in-progress::backdrop { background: rgba(0, 8, 3, .7); }
.sign-in-progress h2 { margin: 18px 0 8px; font-family: inherit; font-size: 20px; line-height: 1.4; color: var(--cream); }
.sign-in-progress p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
#sign-in-progress-close { margin-top: 20px; }
.sign-in-spinner { display: block; width: 36px; height: 36px; margin: auto; border: 3px solid rgba(255, 201, 28, .22); border-top-color: var(--gold); border-right-color: var(--gold); border-radius: 50%; animation: sign-in-spin .8s linear infinite; }
.sign-in-progress.is-slow .sign-in-spinner { display: none; }
.member-page-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1000; background: rgba(255, 201, 28, .12); pointer-events: none; overflow: hidden; }
.member-page-progress[hidden] { display: none !important; }
.member-page-progress::after { content: ""; display: block; width: 35%; height: 100%; background: var(--gold); animation: member-page-slide 1.2s ease-in-out infinite; }
@keyframes sign-in-spin { to { transform: rotate(360deg); } }
@keyframes member-page-slide { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
@media (prefers-reduced-motion: reduce) { .sign-in-spinner, .member-page-progress::after { animation: none; } .member-page-progress::after { width: 100%; opacity: .65; } }
.password-visibility-field { position: relative; }
.password-visibility-field > .form-control { padding-right: 56px; }
.password-visibility-toggle { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--gold); cursor: pointer; }
.password-visibility-toggle[hidden] { display: none !important; }
.password-visibility-toggle:hover { background: rgba(255, 201, 28, .1); }
.password-visibility-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.password-visibility-icon { display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("assets/icons/eye.svg") center / contain no-repeat; mask: url("assets/icons/eye.svg") center / contain no-repeat; }
.password-visibility-toggle[aria-pressed="true"] .password-visibility-icon { -webkit-mask-image: url("assets/icons/eye-off.svg"); mask-image: url("assets/icons/eye-off.svg"); }
.page-load-recovery { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 16px 0 24px; }
.page-load-recovery[hidden] { display: none !important; }
.page-load-recovery > a:not(.button) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.shop-products > .shop-empty { grid-column: 1 / -1; padding: 24px; border: 1px solid rgba(255, 201, 28, .2); border-radius: 7px; background: #06180f; }
.shop-products > .shop-empty strong { color: var(--cream); font-size: 16px; }
.shop-products > .shop-empty p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
:is(#budget-main, #standard-main, #premium-rules-card) .benefit-table-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.funds-page .funds-wallet-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%; padding: 4px; margin-bottom: 24px; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; background: #06180f; }
.funds-page .funds-wallet-tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; }
.funds-page .funds-wallet-tabs a[aria-current="page"] { background: rgba(255, 201, 28, .12); border-color: rgba(255, 201, 28, .4); color: var(--gold); }
.funds-page .funds-wallet-tabs a:focus-visible,
.funds-page .funds-secondary-balance:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.funds-page .funds-overview { border-radius: 7px; gap: 20px; }
.funds-page .funds-primary-balance > strong { font-size: 34px; line-height: 1.2; overflow-wrap: anywhere; margin: 10px 0; }
.funds-page .funds-primary-balance > small { line-height: 1.55; }
.funds-page .funds-secondary-balance { margin-top: 16px; padding: 16px 20px; background: #06180f; border: 1px solid rgba(255, 201, 28, .2); border-radius: 7px; gap: 20px; }
.funds-page .funds-secondary-balance > span:first-child { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 16px; }
.funds-page .funds-secondary-balance > span:first-child > small { grid-column: 1; line-height: 1.5; }
.funds-page .funds-secondary-balance > span:first-child > small:first-child { color: var(--cream); font-size: 14px; font-weight: 700; }
.funds-page .funds-secondary-balance > span:first-child > strong { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.funds-page .funds-matrix-plans { gap: 12px; }
.funds-page .funds-matrix-plan { padding: 16px; border: 1px solid rgba(255, 201, 28, .1); border-radius: 6px; }
.funds-page .funds-history-controls { gap: 16px; }
.funds-page .funds-history-filters button { min-height: 40px; }
.funds-page .funds-search { display: grid; gap: 6px; min-width: 0; }
.funds-page .funds-search span { margin: 0; }
.funds-page .funds-search input { width: 240px; max-width: 100%; }
.funds-page .funds-row { padding: 18px 12px; gap: 16px; }
.funds-page .funds-row-copy strong { line-height: 1.5; }
.funds-page .funds-row-meta { margin-top: 7px; line-height: 1.6; }
.funds-page .funds-row-meta > span:first-child { color: var(--gold-soft); font-weight: 600; }
.funds-page .funds-row-side { gap: 6px; }
.funds-page .funds-row-status { font-size: 12px; }
.funds-page .funds-transaction:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.funds-page #funds-detail-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.funds-page #funds-detail-dialog::-webkit-scrollbar { width: 7px; }
.funds-page #funds-detail-dialog::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.funds-page #funds-detail-dialog .funds-preview > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 201, 28, .1); }
.funds-page #funds-detail-dialog .funds-preview dd { min-width: 0; line-height: 1.5; }
@media (min-width: 1200px) { .funds-page .funds-matrix-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .funds-page .funds-wallet-tabs { display: flex; width: 100%; }
  .funds-page .funds-wallet-tabs a { flex: 1; padding: 10px; }
  .funds-page .funds-primary-balance > strong { font-size: 30px; }
  .funds-page .funds-secondary-balance { padding: 16px; gap: 12px; }
  .funds-page .funds-secondary-balance > span:first-child { grid-template-columns: minmax(0, 1fr); }
  .funds-page .funds-secondary-balance > span:first-child > strong { grid-column: 1; grid-row: 2; font-size: 18px; }
  .funds-page .funds-history-filters { gap: 4px; }
  .funds-page .funds-history-filters button { min-height: 44px; }
  .funds-page .funds-search, .funds-page .funds-search input { width: 100%; }
  .funds-page .funds-row { padding: 18px 4px; }
}
.orders-page .orders-section { background: transparent; border: 0; border-radius: 0; padding: 0; }
.orders-page .orders-toolbar { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; margin-top: 16px; padding: 16px; gap: 16px; }
.orders-page .orders-filters button { min-height: 40px; }
.orders-page .orders-search { display: grid; gap: 6px; min-width: 0; }
.orders-page .orders-search input { width: 250px; max-width: 100%; }
.orders-page .orders-item { padding: 20px; background: #0a2116; border-color: rgba(255, 201, 28, .25); }
.orders-page .orders-item-copy h3 { font-size: 16px; line-height: 1.4; margin: 5px 0; }
.orders-page .orders-item-copy .orders-item-next { margin-top: 8px; line-height: 1.55; }
.orders-page .orders-item-meta strong { font-size: 18px; overflow-wrap: anywhere; }
.orders-page .orders-item-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; margin-top: 16px; padding-top: 12px; }
.orders-page .orders-item-bottom details { grid-column: 1 / -1; grid-row: 1; width: 100%; min-width: 0; }
.orders-page .orders-item-bottom summary { color: var(--gold); font-weight: 700; line-height: 1.5; padding: 9px 0; min-height: 38px; }
.orders-page .orders-item-bottom details:not(:only-child) summary { padding-right: 150px; }
.orders-page .orders-item-bottom > a { grid-column: 2; grid-row: 1; position: relative; align-self: start; background: rgba(255, 201, 28, .06); border: 1px solid rgba(255, 201, 28, .4); border-radius: 5px; padding: 9px 12px; min-height: 38px; text-align: center; }
.orders-page .orders-item-bottom > a:focus-visible,
.orders-page .orders-item-bottom summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.orders-page .orders-details { gap: 0; margin-top: 12px; padding-top: 4px; }
.orders-page .orders-details > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 201, 28, .1); }
.orders-page .orders-details > div > span { min-width: 0; overflow-wrap: anywhere; }
.orders-page .orders-details > div > strong { min-width: 0; text-align: right; line-height: 1.5; }
.orders-page .orders-details > p { padding-top: 12px; line-height: 1.6; }
.orders-page .orders-empty { background: #0a2116; border: 1px solid rgba(255, 201, 28, .2); border-radius: 7px; }
.shop-page .shop-toolbar { background: #0a2116; border: 1px solid rgba(255, 201, 28, .2); border-radius: 6px; padding: 12px; flex-wrap: wrap; }
.shop-page .shop-toolbar input { flex: 1 1 180px; min-width: 0; }
.shop-page .shop-cart-item { gap: 12px; padding: 16px 0; }
.shop-page .shop-cart-item small { margin-top: 5px; line-height: 1.5; }
.shop-page .shop-cart-item-actions button { min-width: 36px; min-height: 36px; }
.shop-page .shop-cart-item strong,
.shop-page .shop-cart-total { overflow-wrap: anywhere; }
.shop-page .shop-cart-total strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.shop-page .shop-cart .form-group > a { display: inline-block; margin-top: 8px; }
.shop-page .shop-cart,
.shop-page .shop-cart-items { scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.shop-page .shop-cart::-webkit-scrollbar,
.shop-page .shop-cart-items::-webkit-scrollbar { width: 7px; }
.shop-page .shop-cart::-webkit-scrollbar-thumb,
.shop-page .shop-cart-items::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
@media (min-width: 801px) { .shop-page .shop-layout > .shop-cart { grid-row: 3; margin-top: 0; top: 96px; } }
@media (max-width: 640px) {
  .orders-page .orders-search,
  .orders-page .orders-search input { width: 100%; }
  .orders-page .orders-filters { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .orders-page .orders-filters button { min-height: 44px; }
  .orders-page .orders-item { padding: 16px; }
  .orders-page .orders-item-meta { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .orders-page .orders-details > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .shop-page .shop-cart-item-actions button { min-width: 44px; min-height: 44px; }
}
#budget-main .budget-income-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.entry-payment-actions { display: flex; align-items: stretch; justify-content: flex-end; flex-wrap: wrap; gap: 12px; width: 100%; margin-top: 20px; }
.entry-payment-actions > .button { flex: 0 1 auto; width: auto; min-height: 44px; max-width: 100%; padding-inline: 20px; margin: 0; text-align: center; white-space: normal; }
@media (max-width: 640px) { .entry-payment-actions > .button { flex: 1 1 180px; } }
.entry-secondary-actions:has(> [hidden]) { display: none; }
.entry-payment-actions > [hidden] { display: none !important; }
#timeline-product-progress, #premium-product-progress { gap: .85rem; }
#timeline-product-progress .entry-payment-actions, #premium-product-progress .entry-payment-actions { margin-top: 0; }
#timeline-product-progress .entry-qualification-surface > div > strong { color: var(--gold); }
html.member-workspace body.portal-body #timeline-product-progress .entry-qualification-surface .entry-progress-stats > div,
html.member-workspace body.premium-plan-view #premium-product-progress .entry-qualification-surface .entry-progress-stats > div { background: transparent; border: 0; border-radius: 0; padding: 0; min-width: 0; }
#timeline-product-progress .entry-progress-stats dd, #premium-product-progress .entry-progress-stats dd { overflow-wrap: anywhere; }
.entry-options-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding-top: 0; margin-top: 0; }
html.member-workspace body.portal-body .budget-purchase-card .entry-options-footer > .budget-category-legend { flex: 1 1 290px; border: 0; padding: 0; margin: 0; min-width: 0; }
.entry-options-footer > .entry-payment-actions { flex: 0 1 auto; width: auto; margin: 0 0 0 auto; }
@media (max-width: 640px) {
  .entry-options-footer { display: block; }
  .entry-options-footer > .entry-payment-actions { width: 100%; margin-top: 20px; }
}
html.entry-payment-open { overflow: hidden; }
.entry-payment-dialog { box-sizing: border-box; width: min(760px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0 22px 22px; border: 1px solid rgba(255, 201, 28, .4); border-radius: 8px; color: var(--cream); background: #0a2116; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.entry-payment-dialog:not([open]) { display: none !important; }
.entry-payment-dialog::backdrop { background: rgba(0, 8, 3, .78); }
.entry-payment-dialog::-webkit-scrollbar { width: 7px; }
.entry-payment-dialog::-webkit-scrollbar-track { background: #06180e; }
.entry-payment-dialog::-webkit-scrollbar-thumb { background: #80701c; border-radius: 4px; }
.entry-payment-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; background: #123021; border-bottom: 1px solid rgba(255, 201, 28, .25); margin: 0 -22px 18px; }
.entry-payment-dialog-header h2 { margin: 0; color: var(--gold); font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.entry-payment-dialog-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 201, 28, .3); border-radius: 6px; color: var(--gold); background: transparent; font-size: 28px; cursor: pointer; }
.entry-payment-dialog-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html.member-workspace .entry-payment-dialog > .entry-payment-dialog-content { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; min-width: 0; }
html.member-workspace body.portal-body .entry-payment-dialog > .entry-payment-dialog-content { padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none; }
html.member-workspace body.portal-body .entry-payment-dialog .budget-token-header { margin: 0 0 18px; padding: 0; border: 0; background: transparent; }
.entry-payment-dialog .funds-row > div > strong, .entry-payment-dialog .funds-row small { display: block; }
.entry-payment-dialog .funds-row small { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.entry-payment-dialog-content details > summary { display: none; }
.entry-payment-dialog-content .budget-token-layout { grid-template-columns: minmax(0, 1fr); }
.entry-payment-dialog-content .premium-activation-form { grid-column: 1 / -1; }
.entry-payment-dialog-content .form-control { max-width: 100%; }
@media (max-width: 640px) {
  .entry-payment-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 0 16px 16px; }
  .entry-payment-dialog-header { margin-inline: -16px; padding-inline: 16px; }
  .entry-payment-dialog .budget-token-fields, .entry-payment-dialog .financing-form-grid, .entry-payment-dialog .withdrawal-fields-grid { grid-template-columns: minmax(0, 1fr); }
}
#budget-main .budget-income-summary > .budget-feature-row,
#budget-main .budget-feature-list > .budget-feature-row { background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; padding: 20px; min-width: 0; }
#budget-main .budget-income-summary > .budget-feature-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px; padding: 22px; }
#budget-main .budget-income-copy { display: grid; gap: 10px; min-width: 0; }
#budget-main .budget-income-copy h3, #budget-main .budget-income-copy p { margin: 0; }
#budget-main .budget-income-copy > .matrix-qualification { justify-self: start; }
#budget-main .budget-income-copy > .budget-summary-value { color: var(--gold); font-size: 30px; line-height: 1.2; }
#budget-main .budget-income-summary .balance-card-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 0; }
#budget-main .budget-income-summary .budget-summary-panel { min-height: 0; }
#budget-main .budget-feature-list { border: 0; }
html.member-workspace body.portal-body #budget-dashboard:not([hidden]) { gap: 1.5rem; }
#budget-main .budget-dashboard-grid { gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#budget-main .budget-members-card { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 22px; }
#budget-main .budget-members-card > .budget-summary-label { min-height: 20px; line-height: 20px; margin: 0; }
#budget-main .budget-members-card > .budget-summary-value { margin: 0; font-size: 30px; line-height: 36px; }
#budget-main .budget-dashboard-grid > .budget-summary-panel { min-height: 112px; }
#budget-main .budget-feature-result .budget-summary-value { font-size: 24px; }
html.member-workspace #timeline-balance-card .matrix-status-panel,
html.member-workspace body.premium-plan-view #balance-card .matrix-status-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 24px; row-gap: 10px; background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; padding: 22px; min-width: 0; }
#timeline-balance-card .matrix-status-panel > :not(.balance-card-buttons),
body.premium-plan-view #balance-card .matrix-status-panel > :not(.balance-card-buttons) { grid-column: 1; }
#timeline-balance-card .matrix-status-panel > h3,
body.premium-plan-view #balance-card .matrix-status-panel > h3 { color: var(--cream); font-size: 17px; line-height: 1.4; margin: 0; }
#timeline-balance-card .matrix-status-panel > .matrix-qualification,
body.premium-plan-view #balance-card .matrix-status-panel > .matrix-qualification { justify-self: start; }
#timeline-balance-card .matrix-status-panel > h4,
body.premium-plan-view #balance-card .matrix-status-panel > h4 { color: var(--gold); font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; margin: 2px 0; }
#timeline-balance-card .matrix-status-panel > p,
body.premium-plan-view #balance-card .matrix-status-panel > p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
#timeline-balance-card .matrix-status-panel > .balance-card-buttons,
body.premium-plan-view #balance-card .matrix-status-panel > .balance-card-buttons { grid-column: 2; grid-row: 1 / 5; align-self: center; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 310px; }
@media (min-width: 721px) { #timeline-balance-card .matrix-status-panel > .balance-card-buttons, body.premium-plan-view #balance-card .matrix-status-panel > .balance-card-buttons { align-self: end; justify-self: end; } }
html.member-workspace body.premium-plan-view #active-metrics-row .metric-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 12px; padding: 22px; background: #0a2116; border-color: rgba(255, 201, 28, .25); border-radius: 7px; min-width: 0; }
body.premium-plan-view #active-metrics-row .metric-card .value { font-size: 30px; line-height: 1.2; margin: 0; }
html.member-workspace body.premium-plan-view #active-metrics-row .premium-exit-card { --premium-heading-height: 20px; --premium-value-height: 36px; display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.75fr); align-items: stretch; column-gap: 20px; }
body.premium-plan-view .premium-current-exit { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
body.premium-plan-view .premium-current-exit .title { display: block; min-height: var(--premium-heading-height); line-height: var(--premium-heading-height); margin-bottom: 0; }
body.premium-plan-view #active-metrics-row .premium-current-exit .value { display: block; line-height: var(--premium-value-height); margin-top: auto; }
html.member-workspace body.premium-plan-view #active-metrics-row .premium-next-step { display: block; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; }
html.member-workspace body.premium-plan-view .premium-next-step-heading { gap: 6px 8px; min-height: var(--premium-heading-height); }
html.member-workspace body.premium-plan-view .premium-next-step h3 { font-size: 14px; line-height: var(--premium-heading-height); }
body.premium-plan-view .premium-next-level-label { color: var(--muted); font-size: 12px; line-height: var(--premium-heading-height); }
body.premium-plan-view .premium-next-level-label[hidden], body.premium-plan-view #premium-next-step-status[hidden] { display: none !important; }
body.premium-plan-view .premium-exit-progress-caption { margin-left: auto; color: var(--muted); font-size: 12px; line-height: var(--premium-heading-height); }
body.premium-plan-view .premium-exit-progress-caption strong { color: var(--cream); white-space: nowrap; }
body.premium-plan-view .premium-exit-progress { height: 6px; margin-top: 10px; background: #03160c; border-radius: 4px; overflow: hidden; }
body.premium-plan-view .premium-exit-progress > span { display: block; width: 0; height: 100%; background: var(--gold); border-radius: inherit; }
body.premium-plan-view .premium-exit-progress[hidden], body.premium-plan-view .premium-exit-progress-caption[hidden] { display: none !important; }
html.member-workspace body.premium-plan-view .premium-next-step p { margin-top: 8px; font-size: 12px; line-height: 1.5; }
html.member-workspace body.premium-plan-view .premium-exit-progress:not([hidden]) + p { margin-top: 12px; }
body.premium-plan-view #premium-next-step-action { margin-top: 8px; }
@media (max-width: 420px) { html.member-workspace body.premium-plan-view #active-metrics-row .premium-exit-card { column-gap: 12px; padding: 18px; } }
@media (max-width: 640px) { html.member-workspace body.premium-plan-view #active-metrics-row { grid-template-columns: minmax(0, 1fr); } }
html.member-workspace #timeline-dashboard > .matrix-overview-card + .matrix-overview-card { border-top: 0; padding-top: 0; }
html.member-workspace #standard-main .metric-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; padding: 22px; min-width: 0; }
html.member-workspace #standard-main .metric-card .value { margin: 0; font-size: 30px; line-height: 36px; }
html.member-workspace #standard-main .plan-level-card,
#budget-main .budget-dashboard-grid > .plan-level-card { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.75fr); align-items: stretch; gap: 20px; padding: 22px; min-height: 0; }
#budget-main .budget-dashboard-grid > .plan-level-card { grid-template-columns: minmax(185px, 1fr) minmax(0, 1.3fr); }
.plan-current-level { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plan-current-level > .title, .plan-current-level > .budget-summary-label { min-height: 20px; line-height: 20px; margin: 0; }
#budget-main .plan-current-level > .budget-summary-value,
html.member-workspace #standard-main .plan-current-level > .value { display: block; margin: auto 0 0; font-size: 30px; line-height: 36px; overflow-wrap: anywhere; }
.plan-next-level { min-width: 0; }
.plan-next-level-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 20px; font-size: 14px; line-height: 20px; }
.plan-next-level-heading > span { color: var(--muted); font-size: 12px; }
.plan-next-level-heading > strong { color: var(--gold); }
.plan-next-level-heading > strong:not(.plan-level-count) { overflow-wrap: anywhere; }
.plan-next-level-heading > .plan-level-count { margin-left: auto; color: var(--cream); white-space: nowrap; font-size: 12px; }
#budget-main .plan-level-meter, .plan-level-meter { height: 6px; margin: 10px 0 0; background: #03160c; border-radius: 4px; overflow: hidden; }
.plan-level-meter > span { display: block; width: 0; height: 100%; background: var(--gold); border-radius: inherit; }
.plan-level-meter[hidden], .plan-level-count[hidden] { display: none !important; }
#budget-main .plan-level-copy, .plan-level-copy { margin: 12px 0 0; color: var(--cream); font-size: 12px; line-height: 18px; }
@media (max-width: 720px) {
  #budget-main .budget-income-summary > .budget-feature-row { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  #budget-main .budget-income-summary .balance-card-buttons { justify-content: flex-start; }
  #budget-main .budget-income-summary .balance-card-buttons .button { flex: 1 1 140px; }
}
@media (max-width: 640px) { #standard-main .metrics-row, #budget-main .budget-dashboard-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { #budget-main .budget-dashboard-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  html.member-workspace #standard-main .plan-level-card, #budget-main .budget-dashboard-grid > .plan-level-card { gap: 12px; padding: 18px; }
  #budget-main .budget-dashboard-grid > .plan-level-card { grid-template-columns: minmax(130px, .95fr) minmax(0, 1.3fr); }
  #budget-main .plan-current-level > .budget-summary-value { font-size: 20px; line-height: 30px; }
}
#timeline-standard-products-list > p { background: #0a2116; border: 1px solid rgba(255, 201, 28, .2); border-radius: 7px; color: var(--muted); margin: 0 0 16px; padding: 20px; }
#budget-main .matrix-card-header,
#standard-main .matrix-card-header,
body.premium-plan-view .matrix-card-header { flex-wrap: wrap; }
#budget-main .matrix-card-header > div,
#standard-main .matrix-card-header > div,
body.premium-plan-view .matrix-card-header > div { min-width: 0; }
@media (max-width: 720px) {
  #budget-main .budget-income-summary { grid-template-columns: minmax(0, 1fr); }
  html.member-workspace #timeline-balance-card .matrix-status-panel,
  html.member-workspace body.premium-plan-view #balance-card .matrix-status-panel { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  #timeline-balance-card .matrix-status-panel > .balance-card-buttons,
  body.premium-plan-view #balance-card .matrix-status-panel > .balance-card-buttons { grid-column: 1; grid-row: auto; margin-top: 8px; max-width: none; }
  #timeline-balance-card .balance-card-buttons .button,
  body.premium-plan-view #balance-card .balance-card-buttons .button { flex: 1 1 140px; }
}

/* Member-page rhythm: sections, repeated cards, related controls, then text. */
html.member-workspace {
  --member-space-section: 24px;
  --plan-section-break: 48px;
  --member-space-card: 20px;
  --member-space-control: 12px;
  --member-space-copy: 8px;
}
/* Major plan features are separated more than the cards inside each feature. */
html.member-workspace body.premium-plan-view #portal-main .dashboard-content > :is(#premium-product-progress, #products-plus-card, #active-tree-card, #premium-rules-card) { margin-top: calc(var(--plan-section-break) - var(--member-space-section)); }
html.member-workspace body.portal-body #budget-content:not([hidden]) { gap: var(--plan-section-break); }
html.member-workspace #standard-main #timeline-dashboard > #timeline-standard-products-card { margin-top: calc(var(--plan-section-break) - var(--member-space-section)); }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) :is(.benefits-section, .budget-dashboard, .budget-purchase-card, #products-plus-card, #active-tree-card, #timeline-standard-products-card) { scroll-margin-top: 96px; }
html.member-workspace #standard-main .standard-members-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
#standard-main .standard-members-card > .title { grid-column: 1 / -1; }
#standard-main .standard-members-card > .value { grid-column: 1; grid-row: 2; align-self: center; }
#standard-main .standard-members-card > .product-plus-details-link { grid-column: 2; grid-row: 2; min-height: 44px; }
html.member-workspace body.premium-plan-view #active-metrics-row .premium-members-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
body.premium-plan-view .premium-members-card > .title { grid-column: 1 / -1; }
body.premium-plan-view .premium-members-card > .value { grid-column: 1; grid-row: 2; align-self: center; }
body.premium-plan-view .premium-members-card > .product-plus-details-link { grid-column: 2; grid-row: 2; min-height: 44px; }
.matrix-explorer-intro { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.entry-payment-dialog .tree-container { margin: 0; max-width: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: #80701c #06180e; }
.entry-payment-dialog .tree-explorer-actions { flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) { html.member-workspace { --plan-section-break: 32px; } }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main, #shop-main, #orders-main, #funds-main) .matrix-card-header {
  margin-bottom: var(--member-space-control);
}
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) .matrix-card-header :is(h2, h3) { margin-block: 0; }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) .matrix-card-header p { margin: var(--member-space-copy) 0 0; }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) .benefits-heading p { margin-top: var(--member-space-copy); }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) .benefit-tabs { margin: var(--member-space-control) 0 var(--member-space-card); }
html.member-workspace body.portal-body #budget-dashboard:not([hidden]),
html.member-workspace .timeline-dashboard-stack,
html.member-workspace #portal-main .dashboard-content,
html.member-workspace #portal-main .dashboard-overview,
html.member-workspace #shop-main .shop-layout { gap: var(--member-space-section); }
html.member-workspace #budget-dashboard > .matrix-card-header { margin-bottom: 0; }
html.member-workspace body.portal-body #budget-content > .benefits-section { margin-block: 0; }
html.member-workspace body.portal-body #standard-main #timeline-rules-card,
html.member-workspace #financing-main #financing-content > section + section,
html.member-workspace #financing-main #financing-content > section[aria-labelledby="financing-benefits-title"] { margin-block: var(--plan-section-break) 0; }
html.member-workspace #portal-main #premium-rules-card { margin-block: 0; }
html.member-workspace :is(#budget-main, #standard-main, #portal-main) :is(.metrics-row, .budget-dashboard-grid, .dashboard-plan-grid, .dashboard-funds-row, .dashboard-shop-grid),
html.member-workspace #shop-main .shop-products,
html.member-workspace #orders-main :is(.orders-summary, .orders-list),
html.member-workspace #funds-main :is(.funds-wallet-summary, .funds-summary) { gap: var(--member-space-card); }
html.member-workspace #portal-main .dashboard-section-heading { margin-bottom: var(--member-space-control); }
html.member-workspace #orders-main .orders-list { padding-top: var(--member-space-card); }
html.member-workspace #funds-main :is(.funds-wallet-tabs, .funds-summary) { margin-bottom: var(--member-space-section); }
html.member-workspace #funds-main :is(.funds-matrix-summary, #funds-activity-section) { margin-top: var(--member-space-section); }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) .entry-payment-actions { gap: var(--member-space-control); }
html.member-workspace :is(#budget-main, #standard-main, #financing-main, #portal-main) .entry-payment-dialog .form-group { margin-bottom: var(--member-space-control); }

/* Product Plus: current monthly task and spendable vouchers share one summary. */
html.member-workspace body.premium-plan-view #products-plus-card .product-plus-overview,
html.member-workspace #standard-main #timeline-standard-products-card .product-plus-overview { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 20px; padding: 20px; background: #0a2116; border: 1px solid rgba(255, 201, 28, .25); border-radius: 7px; }
.product-plus-purchase-summary, .product-plus-voucher-summary { min-width: 0; }
.product-plus-purchase-summary { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.product-plus-summary-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 12px 20px; }
.product-plus-summary-heading > h4 { margin: 0; font-size: 20px; line-height: 1.35; color: var(--gold); }
.product-plus-accrued { text-align: right; }
.product-plus-accrued > strong { font-size: 11px; color: #b9c9bd; text-transform: uppercase; }
.product-plus-accrued > p { margin: 4px 0 0; color: var(--cream); font-size: 12px; line-height: 1.5; }
.product-plus-summary-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 8px 0 0; }
.product-plus-requirement { display: grid; gap: 8px; margin-top: 12px; }
.product-plus-target { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.product-plus-target > span { color: #b9c9bd; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.product-plus-target > strong { font-size: 26px; line-height: 1.25; color: var(--cream); overflow-wrap: anywhere; }
.product-plus-outcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 4px; }
.product-plus-outcome > p { flex: 0 1 310px; margin: 0; font-size: 12px; line-height: 1.5; color: var(--gold-soft); text-align: right; }
.product-plus-progress-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.product-plus-progress-amounts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.product-plus-progress-amounts > :first-child { color: var(--cream); }
#products-plus-percent, .product-plus-progress-state { align-self: center; border: 1px solid rgba(255, 201, 28, .3); border-radius: 4px; padding: 2px 8px; color: var(--gold-soft); font-size: 11px; line-height: 1.5; }
.product-plus-requirement > p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 0; }
.product-plus-requirement #products-plus-pending { color: var(--gold-soft); }
.product-plus-details-link { align-self: center; flex: 0 0 auto; margin: 0; border: 0; background: transparent; color: var(--gold); padding: 0; min-height: 44px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; text-align: left; }
.product-plus-details-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 721px) {
  .product-plus-outcome { align-items: flex-end; margin-top: auto; padding-top: 4px; }
  .product-plus-details-link { align-self: flex-end; min-height: 24px; line-height: 18px; }
}
.product-plus-voucher-summary { align-self: center; display: flex; flex-direction: column; gap: 6px; border: 0; border-radius: 7px; background: #123021; padding: 18px; }
.product-plus-voucher-summary > h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--gold-soft); margin: 0; }
.product-plus-voucher-summary > strong { font-size: 26px; line-height: 1.25; color: var(--cream); overflow-wrap: anywhere; }
.product-plus-voucher-summary > p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.product-plus-voucher-summary > .button { align-self: flex-end; width: auto; margin-top: 12px; min-height: 44px; }
.product-plus-wallet-balances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-plus-wallet-balances > div { min-width: 0; }
.product-plus-wallet-balances h4 { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; color: var(--gold-soft); }
.product-plus-wallet-balances strong { display: block; font-size: 22px; line-height: 1.25; color: var(--cream); overflow-wrap: anywhere; }
.product-plus-wallet-balances p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.standard-f3-allowance { margin-top: 20px; background: #06170f; border: 1px solid rgba(255, 201, 28, .22); border-radius: 7px; }
.standard-f3-allowance > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none; }
.standard-f3-allowance > summary::-webkit-details-marker { display: none; }
.standard-f3-allowance > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); flex-shrink: 0; }
.standard-f3-allowance[open] > summary::after { transform: rotate(225deg); }
.standard-f3-allowance > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.standard-f3-allowance > summary > span { color: var(--gold); font-size: 15px; font-weight: 700; }
.standard-f3-allowance > summary small { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 400; }
.standard-f3-allowance > summary > strong { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
.standard-f3-allowance-body { padding: 0 18px 18px; }
.standard-f3-allowance-body > .funds-note { margin: 0; }
.standard-f3-allowance-stats { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.standard-f3-allowance-stats > div { min-width: 0; }
.standard-f3-allowance-stats span, .standard-f3-allowance-stats small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.standard-f3-allowance-stats strong { display: block; margin: 6px 0; color: var(--cream); font-size: 16px; overflow-wrap: anywhere; }
.standard-f3-allowance-body > .product-plus-progress-caption { margin-top: 12px; margin-bottom: 8px; }
.standard-f3-allowance-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
#standard-f3-popup .timeline-f3-content { padding: 0; display: grid; gap: 16px; }
#standard-f3-popup .matrix-card-header { align-items: center; margin-bottom: 18px; }
#standard-f3-popup .f3-market-header { display: grid; gap: 8px; margin-bottom: 20px; }
#standard-f3-popup #timeline-f3-value { margin: 0; color: var(--cream); font-size: 26px; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
#standard-f3-popup .f3-rate-display { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
#standard-f3-popup .f3-rate-display > span { color: var(--cream); font-size: 22px; font-weight: 700; flex-shrink: 0; }
#standard-f3-popup .f3-market-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.f3-currency-pair { display: flex; align-items: center; flex-shrink: 0; height: 32px; }
.f3-currency-pair img { display: block; width: 30px; height: 30px; object-fit: contain; border-radius: 50%; background: #06170f; }
.f3-currency-pair > span { display: inline-flex; justify-content: center; align-items: center; width: 30px; height: 30px; box-sizing: border-box; margin-left: -7px; border: 2px solid #0a2116; border-radius: 50%; background: var(--gold); color: #06170f; font-size: 19px; font-weight: 700; }
#standard-f3-popup .f3-verified-balance { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-size: 12px; }
#standard-f3-popup .f3-verified-balance span { color: var(--muted); font-size: 12px; }
#standard-f3-popup .timeline-f3-content > p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.f3-wallet-destination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.f3-wallet-destination > span:first-child { color: var(--gold-soft); font-size: 12px; font-weight: 700; }
.f3-wallet-copy-field { display: flex; align-items: center; flex: 1 1 280px; min-width: 0; max-width: 100%; box-sizing: border-box; gap: 10px; padding: 6px 8px 6px 12px; background: #031109; border: 1px solid rgba(255, 201, 28, .22); border-radius: 6px; }
.f3-wallet-copy-field code { flex: 1; min-width: 0; color: var(--cream); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; user-select: text; }
.f3-wallet-copy-field .button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; }
@media (pointer: coarse) { .f3-wallet-copy-field .button { flex-basis: 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; } }
.f3-copy-feedback { display: block; flex-basis: 100%; color: var(--muted); font-size: 12px; }
.f3-copy-feedback:empty { display: none; }
#standard-f3-popup #timeline-f3-transfer-form { margin: 4px 0 0; }
.f3-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
#standard-f3-popup .f3-history-heading { margin: 8px 0 0; font-size: 13px; color: var(--gold-soft); }
#standard-f3-popup #timeline-f3-transfers { margin: 0; }
#standard-f3-popup #timeline-f3-transfers > p { margin: 0; color: var(--muted); font-size: 12px; }
@media (max-width: 440px) { .standard-f3-allowance > summary small { display: none; } }
@media (max-width: 440px) { .product-plus-wallet-balances { grid-template-columns: minmax(0, 1fr); } }
.product-plus-details { margin-top: 16px; }
.product-plus-details > summary { display: none; }
.product-plus-details:not([open]) { margin-top: 0; }
.product-plus-details > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.product-plus-details > select { max-width: 340px; margin-bottom: 16px; }
.product-plus-details > .button { margin-top: 12px; }
.product-plus-details > h4 { font-size: 15px; margin: 24px 0 8px; }
.product-plus-details > p { font-size: 12px; margin: 0 0 12px; color: var(--muted); }
@media (max-width: 720px) {
  html.member-workspace body.premium-plan-view #products-plus-card .product-plus-overview,
  html.member-workspace #standard-main #timeline-standard-products-card .product-plus-overview { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .product-plus-voucher-summary { border: 0; padding: 16px; }
  .product-plus-voucher-summary > .button { margin-top: 8px; }
}
@media (max-width: 440px) {
  .product-plus-summary-heading { flex-direction: column; gap: 8px; }
  .product-plus-accrued { text-align: left; }
  .product-plus-target { align-items: flex-start; flex-direction: column; }
  .product-plus-outcome > p { flex-basis: 100%; text-align: left; }
}
