/* Styles for individual service and detail pages, including management. */
.route-crumb a:hover {
  text-decoration: underline;
}

.route-crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #57717e;
  font-size: 12px;
  line-height: 1.5;
}

.route-crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  font-weight: 650;
  color: #305666;
}

.route-crumb a .ico {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.crumb-separator {
  color: #7e939c;
}


.reference-mode .route-detail {
  padding: 20px;
}

.reference-mode .route-detail-wide:has(.product-detail-grid) {
  padding: 0;
}

.reference-mode .route-detail h2 {
  font-size: 20px;
}

.route-detail {
  display: flow-root;
  width: 100%;
  padding: clamp(19px, 3.2vw, 38px);
  border: 1px solid #dce7e8;
  border-radius: 18px;
  background: #fff;
  color: #29495a;
  font-size: 14px;
  line-height: 1.6;
}

.route-detail h2 {
  font-size: clamp(19px, 3vw, 25px);
  letter-spacing: -.025em;
  margin: 0 0 12px;
}

.route-detail p {
  margin-top: 8px;
  white-space: pre-line;
}

.route-detail > form,
.route-detail > .form-group,
.route-detail > .notice {
  max-width: 680px;
}

.route-detail > .summary-line {
  max-width: 760px;
}

.route-detail > .payment-info,
.route-detail > .qr {
  margin-left: 0;
}

.route-detail > .qr + p {
  max-width: 208px;
}

.route-detail > .icon-box {
  margin-bottom: 18px;
}

.route-detail .form-group label {
  font-size: 13px;
  color: #395865;
}

.route-detail .form-group input,
.route-detail .form-group textarea,
.route-detail .form-group select {
  font-size: 16px;
}

.route-detail .button {
  min-height: 44px;
  font-size: 13px;
}

.route-detail .notice,
.route-detail .check-label,
.route-detail .summary-line {
  font-size: 13px;
}

.route-detail .summary-line {
  gap: 10px;
  overflow-wrap: anywhere;
}

.route-gate {
  display: grid;
  justify-items: start;
  gap: 9px;
}

.route-gate h2,
.route-gate p {
  margin: 0;
}

.route-gate .button {
  margin-top: 8px;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-detail .detail-summary-title {
  margin-bottom: 12px;
}

.detail-summary-title h2 {
  margin: 0;
}

.detail-summary-title > b {
  font-size: 24px;
  letter-spacing: -.03em;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.route-detail-wide:has(.product-detail-grid) {
  padding: 0;
  overflow: hidden;
}

.product-detail-visual {
  min-width: 0;
  background: #edf4f4;
}

.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #d9e7e9;
}

.detail-visual-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 15px 18px;
  color: #4e737b;
  font-size: 10px;
  letter-spacing: .07em;
}

.product-detail-info {
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px);
}

.product-detail-info .saved {
  color: #315f68;
  background: #e8f1ef;
}

.admin-sidebar nav a,
.admin-sidebar .side-bottom a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #d1e1e7;
  font-size: 12px;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-sidebar .side-bottom a:hover {
  background: #fff2;
  color: #fff;
}

a.table-button {
  display: inline-block;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #247781;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .reference-mode *,
  .admin-layout * {
    scroll-behavior: auto;
    transition: none;
  }
}

.admin-search,.admin-actions,.admin-pager{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:1rem 0}
.admin-search input{padding:.65rem .85rem;max-width:100%;border:1px solid #bccdd2;border-radius:.6rem;color:#203d49}
.admin-search label{flex:0 1 320px;min-width:0}.admin-search input{width:100%}
.admin-pager{justify-content:flex-end}.admin-pager span{margin-right:auto}
.area-links a,.admin-actions a{white-space:normal}.admin-main [hidden]{display:none!important}
.admin-main .record{border-bottom:1px solid #dce4e7;padding:.85rem 0}
.record summary{cursor:pointer;overflow-wrap:anywhere}.record summary span{color:#4e626a;margin-left:.7rem}
.record dl{display:grid;grid-template-columns:minmax(80px,31%) minmax(0,1fr);gap:.4rem 1rem;margin:1rem 0}
.record dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.record dt{color:#49616b}
.admin-main .panel+.panel{margin-top:1rem}.admin-main hr{margin:1.5rem 0;border:0;border-top:1px solid #dce4e7}
.admin-main .summary-line strong{overflow-wrap:anywhere;min-width:0}.admin-sidebar{overflow-y:auto}
.admin-search .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.platform-brand {display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%;color:#234650}
.platform-brand img {width:32px;height:32px;flex:none}
.platform-brand-name {font-size:17px;font-weight:650;letter-spacing:-.45px;line-height:1.15;overflow-wrap:anywhere}
.admin-sidebar .platform-brand {color:#fff}
.admin-sidebar nav {min-height:0;overflow:auto}
@media(max-width:380px){.platform-brand-name{font-size:15px}.platform-brand img{width:26px;height:26px}.reference-mode .reference-auth-top{gap:4px}}

/* The announcement remains part of the wallet layout. The second copy closes the loop. */
.reference-mode .announcement-ticker {cursor:default;pointer-events:none}
.ticker-window {display:block;flex:1;min-width:0;overflow:hidden;container-type:inline-size;color:#496a76;font-size:11px}
.ticker-track {width:max-content;display:flex;white-space:nowrap;animation:evercrest-ticker var(--ticker-duration) linear var(--ticker-delay) infinite}
.ticker-track>span {flex:none;min-width:100cqw;padding-inline-end:2.5rem}
@keyframes evercrest-ticker {to {transform:translateX(-50%)}}
@media(prefers-reduced-motion:reduce) {
  .ticker-track {width:auto;white-space:normal;animation:none}
  .ticker-track>span {min-width:0;padding:0;overflow-wrap:anywhere}
  .ticker-track>[aria-hidden] {display:none}
}

.team-rates {margin:14px 0;padding:0}
.team-rates>div {display:flex;align-items:baseline;gap:.35em;padding:9px 0;border-top:1px solid #ccdde0;font-size:13px;line-height:1.5}
.team-rates>div:last-child {border-bottom:1px solid #ccdde0}
.team-rates dt {color:#284d5a;font-weight:600}
.team-rates dd {margin:0;color:#23535e;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.reference-mode .level-card-link {color:#fff;text-decoration:none}
.level-card-link>.ico {flex:none;width:16px}
.directory-heading h1 {font-size:clamp(24px,6vw,31px);line-height:1.2;margin:8px 0;letter-spacing:-.7px}
.directory-heading p {font-size:13px;margin:0 0 16px;color:#516f7a}
.directory-counts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:18px 5px;background:linear-gradient(115deg,#284d59,#426e7c);border-radius:16px 29px 16px 16px;color:white}
.directory-counts div {display:grid;gap:7px;padding:0 10px}
.directory-counts div+div {border-inline-start:1px solid #7498a1}
.directory-counts span {font-size:11px;color:#d2e3e8}
.directory-counts strong {font-size:23px;font-weight:550;font-variant-numeric:tabular-nums}
.team-directory h2 {margin:24px 0 12px;font-size:17px}
.directory-list {padding:0 13px;margin:0;list-style:none;background:#fff;border:1px solid #dce8ea;border-radius:15px}
.directory-list li {display:flex;align-items:center;gap:10px;padding:15px 0}
.directory-list li+li {border-top:1px solid #e4edef}
.directory-icon,.channel-icon {height:34px;width:34px;flex:none;display:grid;place-items:center;background:#e6f0f1;color:#367582;border-radius:10px}
.directory-icon .ico,.channel-icon .ico {width:17px;height:17px}
.directory-person,.channel-description {display:grid;min-width:0;gap:5px;color:#284c59}
.directory-person strong {font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.directory-person small,.channel-description small {color:#587480;font-size:11px}
.validity {flex:none;margin-left:auto;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600}
.validity.yes {color:#20624e;background:#e6f5ed}
.validity.no {color:#70552e;background:#f8f0df}
.directory-pager {display:flex;align-items:center;justify-content:space-between;margin-top:14px;color:#52707b;font-size:12px}
.directory-pager a {padding:9px 12px;background:#fff;border:1px solid #ccdcdf;border-radius:9px;color:#315966}
.cycle-note,.cycle-detail b {display:flex;align-items:center;gap:6px}
.cycle-note {font-size:12px;color:#526f79;margin-top:12px}
.cycle-note .ico,.cycle-detail .ico {width:15px;height:15px;flex:none}
.cycle-detail {margin-top:14px;padding:14px;border-radius:12px;background:#edf4f5;color:#305a68;font-size:13px}
.cycle-detail p {margin:6px 0 0}
.deposit-picker {border:0;margin:20px 0;padding:0;min-width:0}
.deposit-picker legend {font-size:17px;font-weight:650;color:#264c59;padding:0}
.deposit-group {margin:13px 0 18px}
.reference-mode .deposit-group h3 {font-size:13px;color:#466570;margin:0 0 8px}
.channel-off {font-size:12px;color:#5a737a;margin:6px 0}
.deposit-option {display:flex;align-items:center;gap:10px;padding:11px 13px;min-height:54px;border:1px solid #cfdee1;margin-top:6px;border-radius:12px;cursor:pointer}
.deposit-option:has(:checked) {border-color:#43848d;background:#eef7f7}
.deposit-option:focus-within {outline:2px solid #3c7885;outline-offset:2px}
.deposit-option input[type=radio] {width:17px;height:17px;order:3;margin:0 0 0 auto;accent-color:#326d78;flex:none}
.channel-description b {font-size:14px;overflow-wrap:anywhere}
.channel-icon.momo {background:#f9e9f4;color:#9a356d}
.channel-icon.zalopay {background:#e7f2fc;color:#28638a}
@media(max-width:350px) {
  .directory-list {padding:0 9px}.directory-list li {gap:6px}.directory-icon {width:27px;height:27px}
  .validity {padding:4px 6px}.reference-mode .level-card-link {gap:7px}.directory-counts div {padding:0 6px}
}

.route-crumb .route-back{box-sizing:border-box;display:inline-flex;align-items:center;gap:.45rem;min-height:40px;padding:.5rem .85rem;border:1px solid #c5d9dd;border-radius:9px;background:#fff;color:#294d5a;font-size:.87rem;line-height:1.2;font-family:inherit;font-weight:600;cursor:pointer}
.route-crumb :focus-visible,.purchase-shortfall a:focus-visible{outline:2px solid #247783;outline-offset:2px}
.reference-product a.product-media{display:block}
.reference-product .product-title a{color:inherit;text-decoration:none}
.product-btn:disabled{opacity:.65;cursor:default}
.purchase-shortfall{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.45rem;margin-top:.75rem;padding:.65rem .8rem;background:#fff6eb;border:1px solid #e8cfac;color:#70461d;border-radius:9px;font-size:.87rem}
.purchase-shortfall a{display:inline-flex;align-items:center;gap:.25rem;color:#255c67;font-weight:700}
.compact-picker{margin:0 0 1rem;border:none;padding:0}
.compact-picker legend{font-weight:700;margin-bottom:.75rem}
.compact-picker label.form-group{cursor:pointer}
.amount-help{margin:-.45rem 0 .6rem;color:#49616b;font-size:.85rem}
#package-total{display:block;padding:.75rem;background:#f0f6f6;border:1px solid #d1e2e5;border-radius:8px;font-weight:700}
.payment-info .summary-line .row{min-width:0;overflow-wrap:anywhere;text-align:right}
.payment-info .summary-line>span:first-child{flex-shrink:0;max-width:46%}
.qr.wallet-preview{max-width:160px;object-fit:contain}
[hidden]{display:none!important}
.route-detail > .qr{background:white;object-fit:contain;display:block;margin:1rem auto .5rem;max-width:100%}
.route-detail > .qr+p{margin-left:auto;margin-right:auto;text-align:center}
.payment-info .row .icon-btn{flex:none}
.payment-info .row strong{min-width:0;overflow-wrap:anywhere}

.simple-settings{align-items:start}
.simple-settings .panel{margin:0;min-width:0}
.simple-settings h2{margin:0 0 16px;font-size:1.1rem}
.simple-settings .form-help{margin:0 0 14px}
.settings-save{margin:14px 0}
.settings-tools,.package-switches{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.package-switches{margin:12px 0 18px}
.setting-toggle{position:relative;display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:3px 0;background:transparent;color:#294d5a;border:0;font:inherit;font-weight:600;cursor:pointer}
.setting-toggle input{position:absolute;height:1px;width:1px;padding:0;opacity:0}
.setting-toggle .switch-track{width:32px;height:19px;flex:none;border-radius:20px;background:#cbd6d9;position:relative;border:1px solid #a7b7bd}
.setting-toggle .switch-track::after{content:"";position:absolute;width:13px;height:13px;top:2px;left:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #193a472e;transition:transform .15s}
.setting-toggle input:checked+.switch-track,.quick-switch[aria-checked="true"] .switch-track{background:#367a82;border-color:#367a82}
.setting-toggle input:checked+.switch-track::after,.quick-switch[aria-checked="true"] .switch-track::after{transform:translateX(13px)}
.setting-toggle input:focus-visible+.switch-track,.quick-switch:focus-visible{outline:2px solid #247783;outline-offset:3px}
.quick-switch{font-size:.84rem;white-space:nowrap}
.quick-switch:disabled{opacity:.65}
.contact-unavailable{cursor:default;color:#637781}
.contact-unavailable small{font-size:.72rem;color:#6b7e85}
.settings-tools .button{min-height:32px;padding:7px 12px}

.route-detail .withdraw-error{padding:0;border:0;background:transparent;color:#974d4d}
.admin-mobile-links{display:none}
@media(max-width:600px){
  .admin-mobile-links{display:flex;gap:6px;overflow:auto;padding:8px 19px;background:#fff;border-bottom:1px solid var(--line)}
  .admin-mobile-links a{display:flex;flex:none;align-items:center;min-height:38px;gap:6px;padding:0 10px;border-radius:8px;color:#294d5a;white-space:nowrap}
  .admin-mobile-links a.active,.admin-mobile-links a:hover{background:#e0edef}
  .admin-mobile-links a:focus-visible{outline:2px solid #247783;outline-offset:-2px}
  .admin-mobile-links .ico{width:15px;height:15px}
}

.account-wallet-actions{display:flex;gap:9px;flex-wrap:wrap}
.reference-mode .account-wallet-actions .reference-withdraw-button{flex:0 1 105px;min-width:88px}
.history-filters{margin-bottom:15px}
.history-list{display:grid;gap:10px;min-width:0}
.history-card,.history-list>.empty{padding:14px;border:1px solid #dce8ea;border-radius:12px;background:#fff}
.history-card.is-selected{border-color:#87aeb5}
.history-card-head,.ledger-card{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.history-card-head>div,.ledger-card>div{min-width:0}
.history-card-head>div:last-child{display:grid;justify-items:end;gap:4px;text-align:right}
.history-card-head h2{font-size:15px;line-height:1.3;margin:0}
.history-card-head strong,.ledger-card>b{font-size:15px;color:#254b59}
.order-ref,.ledger-card time{display:block;color:#56737e;font-size:11px;line-height:1.45}
.history-fields{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;
  border-top:1px solid #e4edef;padding-top:10px;margin:10px 0 0}
.history-fields>div{min-width:0}
.history-field-wide{grid-column:1/-1}
.history-fields dt{font-size:11px;color:#56737e;line-height:1.35;margin-bottom:2px}
.history-fields dd{margin:0;display:flex;align-items:flex-start;gap:4px;font-weight:550;line-height:1.4}
.history-fields dd>span{min-width:0;overflow-wrap:anywhere}
.history-copy{display:grid;place-items:center;flex:none;padding:0 1px 0 3px;min-width:21px;min-height:22px;
  border:0;background:transparent;color:#326d78;cursor:pointer}
.history-copy .ico{width:13px;height:13px}
.history-copy:focus-visible{outline:2px solid #247783;outline-offset:1px}
.history-qr{display:flex;justify-content:center;margin-top:12px}
.history-qr img,.withdrawal-qr{display:block;object-fit:contain;max-width:100%;height:auto;aspect-ratio:1;
  background:white;border:1px solid #dce8ea;border-radius:6px}
.withdrawal-qr-cell{min-width:144px}
.history-timer,.history-instruction{margin:8px 0 0;text-align:center;font-size:12px;color:#4d6976}
.ledger-card{align-items:center}
.ledger-card strong{overflow-wrap:anywhere}
.ledger-card>b{white-space:nowrap}
.ledger-card>b.positive{color:#34705d}

body.deposit-payment-page{background:#fff;min-height:100vh}
.deposit-payment-main{min-height:100dvh;padding:clamp(20px,5vh,48px) 16px;max-width:480px;margin:0 auto}
.deposit-payment-card{padding:clamp(16px,5vw,26px);background:#fff;border:1px solid #dce8ea;border-radius:16px}
.deposit-payment-card h1{font-size:22px;line-height:1.25;text-align:center;margin:0}
.deposit-payment-amount{margin:8px 0 0;text-align:center;font-size:25px;line-height:1.2;font-weight:700;color:#254b59}
.deposit-payment-qr{margin-top:16px}
.deposit-payment-qr img{image-rendering:pixelated}
.deposit-payment-card .history-timer{margin-top:12px;font-size:15px;font-variant-numeric:tabular-nums}
.deposit-payment-back{display:flex;justify-content:center;width:max-content;min-width:96px;margin:16px auto 0}
.deposit-payment-card .history-fields{padding-top:14px;margin-top:16px;gap:12px 14px}
.deposit-payment-card .history-fields dt{font-size:12px}
.deposit-payment-card .history-fields dd{font-size:14px}
.deposit-payment-card .history-instruction{margin-top:14px}
.deposit-payment-card .history-copy{min-width:28px;min-height:24px}
.deposit-payment-result{text-align:center}
.deposit-payment-result .button{margin-top:14px}
.deposit-payment-result .order-ref{overflow-wrap:anywhere}
.deposit-payment-check{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 12px;border-radius:50%;color:#2e795d;background:#e9f5ed}
.deposit-payment-feedback:not(:empty){margin-top:10px;text-align:center;font-size:12px;color:#4d6976}
.pending-count{font-variant-numeric:tabular-nums}
.pending-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:auto;padding:0 5px;
  border-radius:100px;background:#d6f0eb;color:#24534f;font-size:10px;font-weight:700}
.pending-count[hidden]{display:none}

.admin-team-validity{margin:9px 0 16px}
button.service-card{font:inherit;text-align:left;cursor:pointer}
.app-download-dialog{
  width:min(360px,calc(100% - 32px));max-width:100%;padding:22px;
  border:1px solid #d7e6ea;border-radius:16px;background:#fff;color:#254653;
  box-shadow:0 18px 58px #20414e33;
}
.app-download-dialog::backdrop{background:#192e3d70}
.app-download-dialog h2{margin:0;font-size:19px}
.install-choices{display:grid;gap:10px;margin-top:16px}
.install-choices .button{justify-content:flex-start;font-weight:650}
.install-choices small{margin-left:auto;font-weight:500}

.header-options,.admin-auth-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.header-options .reference-page-label {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.language-switch {
  display:inline-flex;
  flex:none;
  justify-self:end;
  align-items:center;
  padding:2px;
  gap:2px;
  border:1px solid #cbdde1;
  border-radius:8px;
  background:#eaf3f4;
}
.language-switch button {
  border:0;
  border-radius:5px;
  padding:0 6px;
  min-width:28px;
  min-height:25px;
  color:#315565;
  background:transparent;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.language-switch button[aria-pressed="true"] {
  background:#294f5b;
  color:#fff;
}
.language-switch button:focus-visible {
  outline:2px solid #3b8695;
  outline-offset:2px;
}
.product-disclosure {
  font-size:.82rem;
  line-height:1.55;
  color:#435e6b;
  margin:12px 0;
}
@media(max-width:360px) {
  .header-options .reference-page-label { display:none; }
}

:root {
  --bg: #f5f8f6;
  --ink: #173d38;
  --muted: #536b64;
  --line: #dbe8e2;
  --dark: #153f38;
  --teal: #277665;
  --teal-soft: #eaf5ef;
  --brand-green: #216457;
  --brand-orange: #b3471b;
  --brand-orange-hover: #913510;
  --brand-orange-soft: #fff1e6;
  --brand-orange-line: #e8b896;
}

.button:not(.secondary,.danger,.ghost),
.filter.active,
.language-switch button[aria-pressed="true"],
.reference-mode .reference-product form .product-btn[type="submit"],
.reference-mode .reference-wallet .wallet-actions a:first-child,
.reference-mode .reference-auth-page .button:not(.secondary,.danger,.ghost) {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.button:not(.secondary,.danger,.ghost):hover,
.reference-mode .reference-product form .product-btn[type="submit"]:hover,
.reference-mode .reference-wallet .wallet-actions a:first-child:hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
}
.button.secondary {
  background: var(--teal-soft);
  border-color: var(--line);
  color: var(--dark);
}
.language-switch { background: var(--teal-soft); border-color: var(--line); }
.language-switch button { color: var(--dark); }
.setting-toggle input:checked + .switch-track,
.quick-switch[aria-checked="true"] .switch-track {
  background: var(--brand-green);
  border-color: var(--brand-green);
}

body.reference-mode { background: #e8eeeb; color: var(--ink); }
.reference-mode #neriva-root,
.reference-mode.reference-auth #neriva-root,
.reference-mode .reference-auth-page { background: var(--bg); }
.reference-mode .topbar,
.reference-mode .bottom-nav { background: #fff; border-color: var(--line); }
.reference-mode .reference-brand .brand-word,
.reference-mode .reference-intro h1,
.reference-mode .reference-auth-page .auth-form h1 { color: var(--dark); }
.reference-mode .reference-brand-caption,
.reference-mode .bottom-nav a.active { color: var(--brand-orange-hover); }
.reference-mode .bottom-nav a.active .nav-ico {
  background: var(--brand-orange);
  border-color: #fff;
  box-shadow: 0 0 0 1px var(--brand-orange-line);
}
.reference-mode .bottom-nav a.active::after,
.reference-mode .reference-level-dots button.active { background: var(--brand-orange); }
.reference-mode .balance-card.reference-wallet,
.reference-mode .reference-team-summary,
.reference-mode .reference-level-card {
  background: linear-gradient(120deg, var(--dark), var(--brand-green));
}
.reference-mode .reference-account-wallet { background: var(--brand-green); }
.reference-mode .reference-account-wallet::before {
  background: linear-gradient(100deg, #123b34dc, #1e62584a);
}
.reference-mode .reference-team-intro,
.reference-mode .reference-product-data {
  background: var(--teal-soft);
  border-color: var(--line);
}
.reference-mode .reference-team-intro { border-left-color: var(--brand-orange-line); }
.reference-mode .reference-product .product-symbol {
  background: var(--brand-orange);
  border-color: #fff;
}
.reference-mode .reference-product .product-tag {
  background: var(--brand-orange-soft);
  color: var(--brand-orange-hover);
  border-color: var(--brand-orange-line);
}
.reference-mode .reference-product-income strong,
.reference-mode .reference-service-icon,
.deposit-payment-amount { color: var(--brand-green); }
.reference-mode .reference-auth-page .auth-tabs a.active,
.route-crumb .route-back {
  color: var(--brand-orange-hover);
  border-color: var(--brand-orange-line);
}
.route-crumb .route-back { background: var(--brand-orange-soft); }
.history-card.is-selected { border-color: var(--brand-orange-line); }
.deposit-payment-card { border-color: var(--line); }
.deposit-payment-card .history-timer { color: var(--brand-orange-hover); }

.admin-sidebar { background: var(--dark); }
.admin-sidebar nav a.active { background: var(--brand-orange); }
@media (max-width: 600px) {
  .admin-mobile-links a.active { background: var(--brand-orange-soft); color: var(--brand-orange-hover); }
}

.telegram-test-form { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.telegram-test-result { color: var(--brand-green); margin: 10px 0 0; font-weight: 600; }
.telegram-test-result:empty { display: none; }
