/* alfa/styles-warm.css — "Crextio"-style warm direction.
   Reuses .alfa component classes from styles.css via data-theme="warm",
   adds warm tokens + cx-* top-nav layout. */

.alfa[data-theme="warm"] {
  --accent: #F5C84B;
  --bg-flat: #f3ecd9;
  --ink: #1f1e1b; --muted: #8c8775;
  --card-bg: #fcfaf3; --card-border: rgba(40, 35, 10, .06); --card-blur: 0px;
  --card-shadow: 0 1px 2px rgba(90, 75, 25, .04), 0 14px 32px rgba(120, 100, 40, .08);
  --pop-bg: #ffffff;
  --chip-bg: #ffffff; --chip-border: rgba(40, 35, 10, .08);
  --seg-on-bg: #1f1e1b; --seg-on-ink: #ffffff;
  --row-border: rgba(40, 35, 10, .07);
  --news-bg: #ffffff; --ph-a: rgba(40,35,10,.05); --ph-b: rgba(40,35,10,.02);
  --radius: 26px;

  display: block; width: 100%; height: 100%; overflow-y: auto;
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  background: linear-gradient(140deg, #edeef0 0%, #f2ecd6 48%, #f7e6a2 100%);
}
.alfa[data-theme="warm"] .alfa-btn.primary { color: #1f1e1b; }
.alfa[data-theme="warm"] .alfa-card { transition: transform .18s, box-shadow .18s; }

.cx { padding: 28px clamp(16px, 3vw, 34px) 32px; display: flex; flex-direction: column; gap: 22px; min-height: 100%; width: 100%; max-width: 1440px; margin-inline: auto; box-sizing: border-box; }

/* ---- top bar ---- */
.cx-top { display: flex; align-items: center; gap: 12px; }
.cx-logo {
  font-size: 20px; font-weight: 700; letter-spacing: -.3px;
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(31,30,27,.16); color: var(--ink); flex: 0 0 auto;
}
.cx-nav {
  display: flex; align-items: center; gap: 1px; margin: 0 auto; min-width: 0;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px; padding: 4px; backdrop-filter: blur(10px);
}
.cx-nav-item { position: relative; }
.cx-nav button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #6a6557; white-space: nowrap; transition: color .15s, background .15s; }
.cx-nav button:hover { color: var(--ink); }
.cx-nav button.on { background: #1f1e1b; color: #fff; font-weight: 600; }
.cx-nav button.open { background: rgba(31,30,27,.06); color: var(--ink); }
.cx-nav button.on.open { background: #1f1e1b; color: #fff; }
.cx-nav a.cx-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #6a6557; white-space: nowrap; text-decoration: none; transition: color .15s, background .15s; }
.cx-nav a.cx-nav-link:hover { color: var(--ink); }
.cx-nav a.cx-nav-link.on { background: #1f1e1b; color: #fff; font-weight: 600; }
.cx-nav-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60;
  min-width: 210px; background: #fff; border: 1px solid rgba(40,35,10,.08); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(70,55,15,.16); padding: 6px;
}
.cx-nav-menu button { display: flex; width: 100%; padding: 10px 13px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left; }
.cx-nav-menu button:hover { background: #f5f1e6; color: var(--ink); }
.cx-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cx-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); color: var(--ink);
  font-size: 14px; font-weight: 500; backdrop-filter: blur(10px);
}
.cx-pill:hover { background: rgba(255,255,255,.85); }
.cx-iconbtn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8);
  display: grid; place-items: center; color: var(--ink); backdrop-filter: blur(10px);
}
.cx-iconbtn:hover { background: rgba(255,255,255,.85); }
.cx-iconbtn .badge { position: absolute; top: 9px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid #f6ecc8; }
.cx-lang { display: flex; border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.55); }
.cx-lang button { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cx-lang button.on { background: #1f1e1b; color: #fff; }
/* language dropdown */
.cx-lang-wrap { position: relative; }
.cx-lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px 9px 13px; border-radius: 999px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); color: var(--ink);
  font-size: 13px; font-weight: 600; backdrop-filter: blur(10px);
}
.cx-lang-btn:hover { background: rgba(255,255,255,.85); }
.cx-lang-btn .fl { display: inline-flex; line-height: 0; }
.cx-flag { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.cx-flag svg { width: 100%; height: 100%; display: block; }
.cx-lang-btn .cd { letter-spacing: .3px; }
.cx-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 210px; max-height: 336px; overflow-y: auto;
  background: #fff; border: 1px solid rgba(40,35,10,.08); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(70,55,15,.16); padding: 6px;
}
.cx-lang-opt {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 11px; border-radius: 11px; font-size: 14px; color: var(--ink); text-align: left;
}
.cx-lang-opt:hover { background: #f5f1e6; }
.cx-lang-opt.on { font-weight: 600; }
.cx-lang-opt .fl { display: inline-flex; line-height: 0; }
.cx-lang-opt .fl .cx-flag { width: 24px; height: 16px; }
.cx-lang-opt .nm { flex: 1; min-width: 0; }
.cx-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #2c2b27, #56544c); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
/* avatar dropdown */
.cx-ava-wrap { position: relative; }
.cx-ava-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 3px; border-radius: 999px; }
.cx-ava-btn:hover { background: rgba(255,255,255,.55); }
.cx-ava-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px;
  background: #fff; border: 1px solid rgba(40,35,10,.08); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(70,55,15,.16); padding: 6px;
}
.cx-ava-menu button, .alfa .cx-ava-menu a.cx-ava-link { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 11px; font-size: 14px; color: var(--ink); text-align: left; text-decoration: none; box-sizing: border-box; }
.cx-ava-menu button:hover, .alfa .cx-ava-menu a.cx-ava-link:hover { background: #f5f1e6; }
.cx-ava-menu .sep { height: 1px; background: rgba(40,35,10,.08); margin: 5px 6px; }
.cx-ava-menu .danger { color: #d4554a; }
.cx-ava-menu .danger:hover { background: #fbecea; }

/* ---- notifications dropdown ---- */
.cx-notif-wrap { position: relative; }
.cx-notif-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  width: 384px; background: #fff; border: 1px solid rgba(40,35,10,.08);
  border-radius: 20px; box-shadow: 0 22px 54px rgba(70,55,15,.20); overflow: hidden;
}
.cx-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px 12px 18px; border-bottom: 1px solid rgba(40,35,10,.07); }
.cx-notif-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cx-notif-count { font-size: 11px; font-weight: 700; color: #8c6d0a; background: rgba(245,200,75,.32); padding: 1px 8px; border-radius: 999px; }
.alfa .cx-notif-clear { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; transition: background .15s, color .15s; }
.alfa .cx-notif-clear:hover { background: #f5f1e6; color: var(--ink); }
.cx-notif-list { max-height: 340px; overflow-y: scroll; scrollbar-gutter: stable; padding: 5px 6px; scrollbar-width: auto !important; }
.alfa .cx-notif-list::-webkit-scrollbar { display: block !important; width: 11px; }
.alfa .cx-notif-list::-webkit-scrollbar-track { background: transparent; }
.alfa .cx-notif-list::-webkit-scrollbar-thumb { background: rgba(40,35,10,.28); border-radius: 999px; border: 3px solid #fff; }
.alfa .cx-notif-list::-webkit-scrollbar-thumb:hover { background: rgba(40,35,10,.42); }
.cx-notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 14px; transition: background .12s; }
.cx-notif-row:hover { background: #f7f3e8; }
.cx-notif-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: rgba(31,30,27,.06); display: grid; place-items: center; color: #6a6557; margin-top: 1px; }
.cx-notif-ic.warn { background: rgba(212,85,74,.12); color: #c0463b; }
.cx-notif-main { flex: 1; min-width: 0; }
.cx-notif-type { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.cx-notif-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-notif-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-left: 4px; }
.cx-notif-amt { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.cx-notif-amt.pos { color: #7a5f08; }
.cx-notif-amt.neg { color: #c0463b; }
.cx-notif-time { font-size: 11.5px; color: #a49e8c; white-space: nowrap; }
.cx-notif-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 20px; color: var(--muted); }
.cx-notif-empty svg { opacity: .38; }
.cx-notif-empty span { font-size: 13.5px; }

/* ---- hero ---- */
.cx-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 6px 0 2px; }
.cx-hero { font-size: 54px; font-weight: 500; letter-spacing: -1.6px; line-height: 1.02; margin: 0; color: var(--ink); }
.cx-hero b { font-weight: 700; }
.alfa .cx-buy-btn {
  display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto;
  padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: #1f1e1b; color: #fff;
  box-shadow: 0 10px 24px rgba(31,30,27,.28); transition: filter .15s, transform .15s;
}
.cx-buy-btn .cx-plus { color: var(--accent); display: inline-flex; }
.alfa .cx-buy-btn:hover { filter: brightness(1.55); transform: translateY(-1px); }
.cx-buy-btn:active { transform: translateY(0); }
.alfa a.cx-buy-btn.cx-buy-card { display: flex; justify-content: center; width: 100%; margin-top: 4px; text-decoration: none; box-sizing: border-box; }

/* ---- breadcrumbs ---- */
.cx-crumbs { display: flex; align-items: center; gap: 4px; }
/* on the dashboard stat strip, crumbs grow to push the metrics to the right edge */
.cx-strip .cx-crumbs { flex: 1 1 auto; }
.cx-crumbs .crumb {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: #6a6557;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(10px); transition: background .15s, color .15s;
}
.cx-crumbs button.crumb:hover { background: rgba(255,255,255,.85); color: var(--ink); }
.cx-crumbs .crumb.current { background: #1f1e1b; color: #fff; font-weight: 600; border-color: #1f1e1b; }
.cx-crumbs .sep { color: #a49e8c; display: grid; place-items: center; margin: 0 2px; }

/* ---- stat strip ---- */
.cx-strip { display: flex; align-items: flex-end; gap: 36px; flex-wrap: wrap; }
.cx-alloc { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 9px; }
.cx-alloc-title { font-size: 13px; color: var(--muted); font-weight: 500; }
.cx-bars { display: flex; gap: 8px; align-items: center; }
.cx-bar { height: 42px; border-radius: 999px; display: flex; align-items: center; padding: 0 18px; font-size: 13px; font-weight: 600; white-space: nowrap; gap: 7px; }
.cx-bar .pct { opacity: .65; font-weight: 600; }
.cx-bar.ink { background: #1f1e1b; color: #fff; }
.cx-bar.acc { background: var(--accent); color: #1f1e1b; }
.cx-bar.stripe { background: repeating-linear-gradient(115deg, rgba(31,30,27,.07) 0 6px, rgba(31,30,27,.02) 6px 12px); color: var(--muted); border: 1px solid rgba(31,30,27,.08); }
.cx-bar.soft { background: rgba(255,255,255,.6); color: var(--muted); border: 1px solid rgba(31,30,27,.07); }

.cx-bignums { display: flex; gap: 34px; }
.cx-bignum .n { font-size: 46px; font-weight: 700; letter-spacing: -2px; line-height: 1; display: flex; align-items: center; gap: 9px; color: var(--ink); }
.cx-bignum .n .ic { width: 22px; height: 22px; color: var(--muted); }
.cx-bignum .l { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 5px; }

/* ---- onboarding banner ---- */
.cx-onb {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
  box-shadow: var(--card-shadow); padding: 20px 24px;
  display: flex; align-items: center; gap: 18px;
}
.cx-onb-ava {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); background: #fff; border: 1px solid rgba(40,35,10,.12); align-self: flex-start;
}
.cx-onb-main { flex: 1; min-width: 0; }
.cx-onb-title { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cx-onb-sub { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

.cx-onb-steps { display: flex; gap: 20px; margin-top: 16px; }
.cx-onb-step { flex: 1; min-width: 0; }
.cx-onb-step-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cx-onb-step-label {
  display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.cx-onb-step-ic { flex: 0 0 auto; display: grid; place-items: center; color: #b7b09a; }
.cx-onb-step.done .cx-onb-step-label { color: var(--ink); }
.cx-onb-step.done .cx-onb-step-ic { color: #16a34a; }
.alfa .cx-onb-step-btn {
  display: inline-flex; align-items: center; flex: 0 0 auto; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--ink); background: var(--accent);
  border: none; cursor: pointer; transition: filter .15s, transform .15s; white-space: nowrap;
  text-decoration: none;
}
.alfa .cx-onb-step-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.cx-onb-step-bar { height: 3px; border-radius: 999px; background: rgba(40,35,10,.1); }
.cx-onb-step.done .cx-onb-step-bar { background: #35a838; }

@media (max-width: 820px) {
  .cx-onb { flex-wrap: wrap; }
  .cx-onb-steps { flex-direction: column; gap: 12px; }
}

/* ---- grid ---- */
.cx-grid { display: grid; grid-template-columns: 320px minmax(0,1fr) 360px; gap: 20px; align-items: stretch; }
.cx-col { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.cx-col > *:first-child { flex: 0 0 300px; }
.cx-col > *:last-child { flex: 1 1 auto; min-height: 0; }
/* middle column: chart grows tall, news takes natural (shorter) height */
.cx-col-mid > *:first-child { flex: 1 1 auto; min-height: 0; }
.cx-col-mid > *:last-child { flex: 0 0 auto; }
.cx-grid .alfa-panel, .cx-grid .cx-dark { overflow: hidden; }

/* profile */
.cx-profile { padding: 26px 24px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cx-ring { position: relative; width: 108px; height: 108px; margin-bottom: 16px; }
.cx-ava-photo {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, #2c2b27, #56544c); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 30px; letter-spacing: .5px;
}
.cx-profile-name { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.cx-profile-role { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cx-profile-prog { width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.cx-profile-prog-bar { height: 8px; border-radius: 999px; background: rgba(31,30,27,.08); overflow: hidden; }
.cx-profile-prog-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cx-profile-prog-meta { display: flex; justify-content: space-between; font-size: 12.5px; }
.cx-profile-prog-meta span:first-child { color: var(--muted); }
.cx-profile-prog-meta span:last-child { font-weight: 700; color: var(--ink); }

/* active packages */
.cx-pkg-list { display: flex; flex-direction: column; }
.cx-pkg-row { padding: 13px 0; border-bottom: 1px solid var(--row-border); display: flex; flex-direction: column; gap: 7px; }
.cx-pkg-row:last-child { border-bottom: none; padding-bottom: 2px; }
.cx-pkg-top { display: flex; justify-content: space-between; align-items: baseline; }
.cx-pkg-name { font-weight: 600; font-size: 14.5px; }
.cx-pkg-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-prog { height: 7px; border-radius: 999px; background: rgba(31,30,27,.07); overflow: hidden; }
.cx-prog i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cx-pkg-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* active packages — donut */
.cx-donut-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 10px 0 4px; }
.cx-donut { position: relative; width: 225px; height: 225px; flex: 0 0 auto; }
.cx-donut svg { width: 100%; height: 100%; display: block; }
.cx-donut-seg { cursor: pointer; transition: opacity .18s, stroke-width .18s; }
.cx-donut-seg.dim { opacity: .28; }
.cx-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.cx-donut-sum { font-size: 27px; font-weight: 700; letter-spacing: -1px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.cx-donut-lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .6px; }
.cx-donut-legend { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.alfa .cx-donut-leg { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 12px; text-align: left; transition: background .14s; }
.alfa .cx-donut-leg:hover, .alfa .cx-donut-leg.on { background: rgba(31,30,27,.05); }
.cx-donut-leg .dot { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 auto; }
.cx-donut-leg .lg-lbl { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cx-donut-leg .lg-meta { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }


/* yield card */
.cx-yield-figs { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cx-yield-usd { font-size: 38px; font-weight: 700; letter-spacing: -1.2px; color: var(--ink); line-height: 1; }
.cx-yield-pct {
  font-size: 15px; font-weight: 700; color: #8c6d0a;
  background: rgba(245,200,75,.28); padding: 4px 11px; border-radius: 999px;
}
.cx-yield-meta { font-size: 12.5px; color: var(--muted); margin-top: -2px; }
.cx-yield-chart { height: 92px; margin-top: 4px; }

/* dark operations card */
.cx-dark { background: #232220; color: #f3efe4; border-radius: 26px; padding: 20px 22px; box-shadow: 0 16px 36px rgba(40,32,10,.18); display: flex; flex-direction: column; }
.cx-op-list { margin: 0 -6px; padding: 0 6px; }
.cx-dark .head-row h3 { color: #fff; }
.cx-dark .head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 10px; }
.cx-dark .head-row h3 { font-size: 15px; white-space: nowrap; flex: 1; min-width: 0; }
.cx-dark .cx-allops { flex: 0 0 auto; }
.cx-dark .cx-allops { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: #d9d4c6; font-size: 12px; font-weight: 600; }
.cx-dark .cx-allops:hover { background: rgba(255,255,255,.14); color: #fff; }
.cx-op-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cx-op-row:last-child { border-bottom: none; padding-bottom: 0; }
.cx-op-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfcabb; }
.cx-op-main { flex: 1; min-width: 0; }
.cx-op-type { font-size: 14px; font-weight: 600; color: #fff; }
.cx-op-date { font-size: 12px; color: #9b968a; margin-top: 1px; }
.cx-op-amt { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; text-align: right; }
.cx-op-amt.pos { color: var(--accent); }
.cx-op-amt.neg { color: #ef9a9a; }
.cx-op-st { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cx-op-st.ok { background: var(--accent); color: #1f1e1b; }
.cx-op-st.pending { border: 2px dashed rgba(255,255,255,.35); }
.cx-op-st.declined { background: #ef9a9a; color: #3a1414; }

/* ---- warmside: original sidebar layout + Crextio palette ---- */
.alfa[data-theme="warmside"] {
  --bg: linear-gradient(140deg, #edeef0 0%, #f2ecd6 48%, #f7e6a2 100%);
  --bg-flat: #f3ecd9;
  --ink: #1f1e1b; --muted: #8c8775;
  --card-bg: #fcfaf3; --card-border: rgba(40, 35, 10, .07); --card-blur: 0px;
  --card-shadow: 0 1px 2px rgba(90, 75, 25, .04), 0 14px 32px rgba(120, 100, 40, .08);
  --pop-bg: #ffffff;
  --side-bg: rgba(255, 255, 255, .5); --side-border: rgba(255, 255, 255, .75);
  --side-ink: #1f1e1b; --side-muted: #7c7767;
  --side-hover: rgba(255, 255, 255, .7);
  --side-active-bg: #1f1e1b; --side-active-ink: #ffffff;
  --side-active-shadow: 0 8px 20px rgba(31, 30, 27, .25);
  --head-bg: rgba(255, 255, 255, .4); --head-border: rgba(255, 255, 255, .7);
  --chip-bg: rgba(255, 255, 255, .6); --chip-border: rgba(40, 35, 10, .08);
  --seg-on-bg: #1f1e1b; --seg-on-ink: #ffffff;
  --row-border: rgba(40, 35, 10, .07);
  --news-bg: #ffffff;
  --ph-a: rgba(40, 35, 10, .05); --ph-b: rgba(40, 35, 10, .02);
  --radius: 24px;
  font-family: "Outfit", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
.alfa[data-theme="warmside"] .alfa-nav-item { border-radius: 999px; }
.alfa[data-theme="warmside"] .alfa-logo-mark { background: #1f1e1b; box-shadow: 0 6px 16px rgba(31, 30, 27, .25); }
.alfa[data-theme="warmside"] .alfa-btn.primary { color: #1f1e1b; box-shadow: 0 6px 16px rgba(210, 165, 30, .35); }
.alfa[data-theme="warmside"] .alfa-up,
.alfa[data-theme="warmside"] .alfa-status.ok,
.alfa[data-theme="warmside"] .alfa-table .amt.pos,
.alfa[data-theme="warmside"] .alfa-tag.company,
.alfa[data-theme="warmside"] .alfa-stat .icon-chip { color: #8c6d0a; }
.alfa[data-theme="warmside"] .alfa-up,
.alfa[data-theme="warmside"] .alfa-status.ok,
.alfa[data-theme="warmside"] .alfa-tag.company,
.alfa[data-theme="warmside"] .alfa-stat .icon-chip { background: rgba(245, 200, 75, .25); }
.alfa[data-theme="warmside"] .alfa-status.ok i { background: #b98f0e; }
.alfa[data-theme="warmside"] .alfa-chips button.on { color: #8c6d0a; background: rgba(245, 200, 75, .3); border-color: rgba(185, 143, 14, .3); }
.alfa[data-theme="warmside"] .alfa-side-active-note { display: none; }
.alfa[data-theme="warmside"] .alfa-rank { background: rgba(255,255,255,.6); border-color: rgba(40,35,10,.1); color: #6a6557; }
.alfa[data-theme="warmside"] .alfa-lang button.on { background: #1f1e1b; color: #fff; }

/* shared card title in warm */
.alfa[data-theme="warm"] .alfa-panel h3 { font-weight: 700; }

/* ---- footer ---- */
.cx-footer { margin-top: 8px; }
.cx-footer-main {
  background: #fcfaf3; border: 1px solid rgba(40,35,10,.07); border-radius: 26px;
  padding: 34px 40px;
  box-shadow: 0 1px 2px rgba(90,75,25,.04), 0 14px 32px rgba(120,100,40,.06);
}
.cx-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.cx-footer-logo { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }
.cx-footer-tag { font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; }
.cx-footer-reg { font-size: 12.5px; color: #6a6557; line-height: 1.6; }
.cx-footer-reg.muted { color: var(--muted); }
.cx-footer-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 14px; }
.cx-footer-col { display: flex; flex-direction: column; gap: 10px; }
.cx-footer-col a { font-size: 14px; color: #4a463d; text-decoration: none; transition: color .15s; }
.cx-footer-col a:hover { color: var(--ink); }
.cx-footer-social { display: flex; gap: 10px; }
.cx-footer-copy { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(40,35,10,.08); font-size: 12.5px; color: var(--muted); }
.alfa .cx-soc {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: #4a463d; background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.06);
  transition: background .15s, color .15s, transform .15s;
}
.alfa .cx-soc:hover { background: #1f1e1b; color: var(--accent); transform: translateY(-2px); }

/* ============================================================
   PARTNER PROGRAM PAGE (pt-*)
   ============================================================ */
.pt-lead { margin: 10px 0 0; font-size: 15.5px; color: var(--muted); max-width: 620px; }
.alfa a.pt-back {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); backdrop-filter: blur(10px);
  transition: background .15s;
}
.alfa a.pt-back:hover { background: rgba(255,255,255,.95); }
.cx-crumbs a.crumb { text-decoration: none; }

/* referral link */
.pt-reflink { display: flex; align-items: center; gap: 28px; padding: 22px 24px; flex-wrap: wrap; }
.pt-reflink-main { flex: 1 1 420px; min-width: 0; }
.pt-reflink-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pt-reflink-field { display: flex; gap: 10px; align-items: stretch; }
.pt-reflink-input {
  flex: 1; min-width: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 13px 18px; border-radius: 14px; border: 1.5px solid rgba(40,35,10,.12);
  background: #fff; letter-spacing: .2px;
}
.pt-reflink-input:focus { outline: none; border-color: var(--accent); }
.alfa .pt-copy {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; white-space: nowrap;
  padding: 0 22px; border-radius: 14px; font-size: 14px; font-weight: 700; color: #1f1e1b;
  background: var(--accent); box-shadow: 0 8px 20px rgba(210,165,30,.3); transition: filter .15s, transform .12s;
}
.alfa .pt-copy:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pt-reflink-side { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.pt-code-block { display: flex; flex-direction: column; gap: 3px; }
.pt-code-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.pt-code-val { font-size: 17px; font-weight: 700; letter-spacing: .5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.alfa .pt-share {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s;
}
.alfa .pt-share:hover { background: rgba(31,30,27,.09); }

/* stats */
.pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pt-stat { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.pt-stat.accent { background: #1f1e1b; }
.pt-stat-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #6a6557; background: rgba(31,30,27,.06); margin-bottom: 10px; }
.pt-stat.accent .pt-stat-ic { background: rgba(255,255,255,.12); color: var(--accent); }
.pt-stat-value { font-size: 34px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-stat.accent .pt-stat-value { color: #fff; }
.pt-stat-label { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 5px; }
.pt-stat.accent .pt-stat-label { color: #b7b2a5; }
.pt-stat-sub { font-size: 12.5px; font-weight: 600; color: #7a5f08; margin-top: 2px; }
.pt-stat.accent .pt-stat-sub { color: var(--accent); }

/* tabs */
.pt-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; align-self: flex-start;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(10px); }
.alfa .pt-tabs button { padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #6a6557; white-space: nowrap; transition: color .15s, background .15s; }
.alfa .pt-tabs button:hover { color: var(--ink); }
.alfa .pt-tabs button.on { background: #1f1e1b; color: #fff; }

/* network */
.pt-net-you { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 18px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.8); border-radius: 20px; backdrop-filter: blur(10px); }
.pt-net-you-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.pt-net-you-role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pt-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pt-level { padding: 22px; }
.pt-level-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pt-level-badge { font-size: 13px; font-weight: 700; color: #1f1e1b; background: var(--accent); padding: 4px 12px; border-radius: 999px; }
.pt-level-comm { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pt-level-people { font-size: 38px; font-weight: 700; letter-spacing: -1.4px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-level-sub { font-size: 13px; color: var(--muted); margin-top: 4px; margin-bottom: 16px; }
.pt-level-bar { height: 7px; border-radius: 999px; background: rgba(31,30,27,.08); overflow: hidden; }
.pt-level-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.pt-level-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pt-level-earned { font-weight: 700; color: #7a5f08; font-variant-numeric: tabular-nums; }
.pt-net-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* filters + table */
.pt-filters { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pt-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(40,35,10,.12); color: var(--muted); }
.pt-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 14.5px; color: var(--ink); padding: 13px 0; }
.pt-select { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); padding: 12px 40px 12px 16px; border-radius: 999px;
  border: 1.5px solid rgba(40,35,10,.12); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c8775' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 15px center;
  -webkit-appearance: none; appearance: none; cursor: pointer; }
.pt-select:focus { outline: none; border-color: var(--accent); }
.pt-table-card { padding: 6px 6px 0; overflow: hidden; }
.pt-table-scroll { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; }
.pt-table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 14px 16px; white-space: nowrap; }
.pt-table th.r, .pt-table td.r { text-align: right; }
.pt-table td { padding: 13px 16px; border-top: 1px solid rgba(40,35,10,.07); font-size: 14px; color: var(--ink); white-space: nowrap; }
.pt-table tbody tr:hover { background: #f7f3e8; }
.pt-ref-name { display: flex; align-items: center; gap: 12px; }
.pt-ref-ava { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, #2c2b27, #56544c); }
.pt-ref-fn { font-weight: 600; }
.pt-ref-hn { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.pt-muted { color: var(--muted); }
.pt-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.pt-earn { color: #7a5f08; }
.pt-lv-chip { font-size: 12.5px; font-weight: 600; color: #6a6557; background: rgba(31,30,27,.06); padding: 3px 10px; border-radius: 999px; }
.pt-st { font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.pt-st.ok { color: #2f7d47; background: rgba(58,168,90,.14); }
.pt-st.new { color: #8c6d0a; background: rgba(245,200,75,.28); }
.pt-st.off { color: #b0533f; background: rgba(212,85,74,.13); }
.pt-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.pt-table-foot { padding: 14px 16px; font-size: 12.5px; color: var(--muted); border-top: 1px solid rgba(40,35,10,.07); }

/* promo */
.pt-promo-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.pt-promo-h { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 14px; }
.pt-promo-h:first-of-type { margin-top: 0; }
.pt-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pt-banner { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.alfa .pt-banner-canvas { display: grid; place-items: center; border-radius: 14px; background: repeating-linear-gradient(45deg, rgba(40,35,10,.03) 0 10px, rgba(40,35,10,.06) 10px 20px); cursor: pointer; overflow: hidden; }
.pt-banner-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%; background: linear-gradient(135deg, #232220 0%, #3a3833 100%); border-radius: 8px; color: #fff; padding: 8px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.pt-banner-logo { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: -.3px; }
.pt-banner-cta { font-size: 11px; font-weight: 600; opacity: .92; }
.pt-banner-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 6px 4px; }
.pt-banner-size { font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pt-banner-label { font-size: 12px; color: var(--muted); margin-top: 1px; }
.alfa .pt-banner-dl { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s, color .15s; }
.alfa .pt-banner-dl:hover { background: #1f1e1b; color: var(--accent); }
.pt-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pt-text { padding: 20px 22px; display: flex; flex-direction: column; }
.pt-text-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pt-text-body { font-size: 13.5px; line-height: 1.55; color: #55524b; margin: 0 0 16px; flex: 1; word-break: break-word; }
.alfa .pt-text-copy { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s; }
.alfa .pt-text-copy:hover { background: rgba(31,30,27,.1); }

/* banner preview modal */
.pt-modal-scrim { position: fixed; inset: 0; z-index: 220; display: grid; place-items: safe center; padding: 24px; overflow-y: auto;
  background: rgba(24,20,8,.5); backdrop-filter: blur(3px); animation: cx-fade .18s ease; }
.pt-modal { width: min(820px, 100%); background: #fbf8ef; border-radius: 24px; padding: 20px; box-shadow: 0 30px 80px rgba(40,30,8,.4); }
.pt-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pt-modal-stage { display: grid; place-items: center; min-height: 300px; border-radius: 16px; padding: 24px;
  background: repeating-linear-gradient(45deg, rgba(40,35,10,.03) 0 12px, rgba(40,35,10,.06) 12px 24px); }

/* ============================================================
   RESPONSIVE — fluid layout, container capped at 1440px.
   Step 1: grids collapse; top bar wraps; nav scrolls.
   ============================================================ */

/* --- tablet / small laptop: main grid → 2 columns --- */
@media (max-width: 1200px) {
  .cx-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* chart + news column spans full width on top */
  .cx-col-mid { grid-column: 1 / -1; order: -1; }
  /* let stacked panels size to content instead of stretching */
  .cx-col { height: auto; }
  .cx-col > *:first-child,
  .cx-col > *:last-child,
  .cx-col-mid > *:first-child,
  .cx-col-mid > *:last-child { flex: 0 0 auto; min-height: 0; }
  .pt-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- burger: hidden on desktop, shown on mobile --- */
.cx-burger {
  display: none; width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  place-items: center; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(10px);
}
.cx-burger:hover { background: rgba(255,255,255,.85); }

/* --- top bar: swap centered pill nav for a burger + slide-in drawer --- */
@media (max-width: 1080px) {
  .cx-nav { display: none; }
  .cx-burger { display: grid; }
  .cx-tools { margin-left: auto; }
  .cx-logo { margin-right: auto; }
}

/* --- mobile drawer --- */
.cx-drawer-scrim {
  position: fixed; inset: 0; z-index: 200; display: flex;
  background: rgba(24,20,8,.42); backdrop-filter: blur(2px);
  animation: cx-fade .18s ease;
}
.cx-drawer {
  width: min(320px, 84vw); height: 100%; display: flex; flex-direction: column;
  background: #fbf8ef; box-shadow: 24px 0 60px rgba(40,30,8,.28);
  padding: 18px 16px 24px; overflow-y: auto; animation: cx-slide-in .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes cx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cx-slide-in { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.cx-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cx-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.alfa a.cx-drawer-link { text-decoration: none; }
.alfa .cx-drawer-link {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 13px 14px; border-radius: 14px; font-size: 15px; font-weight: 500; color: var(--ink); text-align: left;
  transition: background .14s, color .14s;
}
.alfa .cx-drawer-link .ic { display: inline-flex; color: #6a6557; }
.alfa .cx-drawer-link:hover { background: #f2ecdc; }
.alfa .cx-drawer-link.on { background: #1f1e1b; color: #fff; font-weight: 600; }
.alfa .cx-drawer-link.on .ic { color: #fff; }
.cx-drawer-sub { display: flex; flex-direction: column; padding: 2px 0 6px 47px; }
.alfa .cx-drawer-sub button {
  display: flex; width: 100%; padding: 10px 12px; border-radius: 11px;
  font-size: 14px; font-weight: 500; color: #6a6557; text-align: left; transition: background .14s, color .14s;
}
.alfa .cx-drawer-sub button:hover { background: #f2ecdc; color: var(--ink); }

/* --- phone: everything stacks into one column --- */
@media (max-width: 780px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-col-mid { order: 0; }
  .cx-strip { gap: 24px; }
  .cx-bignums { gap: 24px; flex-wrap: wrap; }
  .cx-bignum .n { font-size: 38px; }
  .cx-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cx-footer-main { padding: 26px 22px; }
  .cx-notif-menu { width: min(384px, calc(100vw - 32px)); }
  .pt-levels { grid-template-columns: 1fr; }
  .pt-texts { grid-template-columns: 1fr; }
  .pt-reflink-side { width: 100%; justify-content: space-between; }
  .cx-hero-row { flex-wrap: wrap; }
}

/* --- small phone --- */
@media (max-width: 520px) {
  .cx { padding: 18px 14px 24px; gap: 18px; }
  .cx-logo { font-size: 18px; padding: 7px 15px; }
  .cx-bignum .n { font-size: 32px; }
  .cx-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .cx-notif-menu {
    position: fixed; top: 70px; left: 16px; right: 16px; width: auto;
  }
  .pt-stats { grid-template-columns: 1fr; }
  .pt-stat-value { font-size: 30px; }
}

/* ============================================================
   PARTNER STATISTICS PAGE (ps-*)
   ============================================================ */

/* nav submenu anchors (desktop + drawer) */
.alfa .cx-nav-menu a.cx-nav-suba { display: flex; width: 100%; padding: 10px 13px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--ink); text-align: left; text-decoration: none; transition: background .14s; }
.alfa .cx-nav-menu a.cx-nav-suba:hover { background: #f5f1e6; }
.alfa .cx-nav-menu a.cx-nav-suba.on { background: #1f1e1b; color: #fff; font-weight: 600; }
.alfa .cx-drawer-sub a.cx-drawer-suba { display: flex; width: 100%; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 500; color: #6a6557; text-align: left; text-decoration: none; transition: background .14s, color .14s; }
.alfa .cx-drawer-sub a.cx-drawer-suba:hover { background: #f2ecdc; color: var(--ink); }
.alfa .cx-drawer-sub a.cx-drawer-suba.on { color: var(--ink); font-weight: 700; }

/* tooltip */
.ps-tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.alfa .ps-tip-q { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(31,30,27,.08); flex: 0 0 auto; font-size: 11px; font-weight: 700; line-height: 1; transition: background .15s, color .15s; }
.alfa .ps-tip-q:hover { background: #1f1e1b; color: #fff; }
.ps-tip-bub {
  position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); z-index: 90;
  width: 250px; padding: 11px 13px; border-radius: 12px; font-size: 12.5px; font-weight: 500; line-height: 1.45;
  color: #f3efe4; background: #232220; box-shadow: 0 14px 34px rgba(30,22,6,.32);
  text-transform: none; letter-spacing: 0; white-space: normal; pointer-events: none;
}
.ps-tip-bub::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #232220; }

/* crumb + CTA row */
.ps-crumbrow { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ps-crumbrow .cx-crumbs { flex: 1 1 auto; }
.ps-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; }
.ps-cta-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 15px; border-radius: 999px; background: #fff; border: 1.5px solid rgba(40,35,10,.12); }
.ps-cta-field .ic { color: var(--muted); display: inline-flex; flex: 0 0 auto; }
.ps-cta-input { border: none; outline: none; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 210px; letter-spacing: .2px; }
.alfa .ps-cta-copy { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #1f1e1b; background: var(--accent); box-shadow: 0 6px 16px rgba(210,165,30,.28); transition: filter .15s, transform .12s; }
.alfa .ps-cta-copy:hover { filter: brightness(1.06); transform: translateY(-1px); }
.alfa .ps-qr { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: #1f1e1b; box-shadow: 0 8px 20px rgba(31,30,27,.24); transition: filter .15s, transform .12s; }
.alfa .ps-qr:hover { filter: brightness(1.5); transform: translateY(-1px); }
.alfa .ps-qr svg { color: var(--accent); }

/* stat cards */
.ps-stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.ps-stat { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.ps-stat:hover { z-index: 30; }
.ps-stat.accent { background: #1f1e1b; }
.ps-stat-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #6a6557; background: rgba(31,30,27,.06); margin-bottom: 12px; }
.ps-stat.accent .ps-stat-ic { background: rgba(255,255,255,.12); color: var(--accent); }
.ps-stat-value { font-size: 29px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.ps-stat.accent .ps-stat-value { color: #fff; }
.ps-stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 6px; line-height: 1.35; display: flex; align-items: flex-start; }
.ps-stat.accent .ps-stat-label { color: #b7b2a5; }
.ps-stat.accent .ps-tip-q { background: rgba(255,255,255,.14); color: #d9d4c6; }
.ps-stat.accent .ps-tip-q:hover { background: var(--accent); color: #1f1e1b; }

/* section blocks */
.ps-block { padding: 26px 28px; }
.ps-block-head { display: flex; align-items: center; margin-bottom: 20px; }
.ps-h { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); margin: 0; }

.ps-summary { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.ps-sum { flex: 1 1 180px; background: rgba(31,30,27,.04); border: 1px solid rgba(40,35,10,.06); border-radius: 16px; padding: 15px 17px; }
.ps-sum.accent { background: var(--accent); border-color: transparent; }
.ps-sum-l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ps-sum.accent .ps-sum-l { color: #7a5f08; }
.ps-sum-v { font-size: 20px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }

.ps-toward { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.ps-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 34px; }
.ps-req-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 9px; }
.ps-req-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ps-req-goal { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-req-label { color: var(--muted); }
.ps-req-pct { font-weight: 700; color: #7a5f08; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.ps-bar { height: 9px; border-radius: 999px; background: rgba(31,30,27,.08); overflow: hidden; }
.ps-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s ease; }

.ps-btn-row { margin-top: 24px; }
.ps-btn-row.center { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.alfa .ps-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: #1f1e1b; box-shadow: 0 8px 20px rgba(31,30,27,.22); transition: filter .15s, transform .12s; text-decoration: none; }
.alfa .ps-btn svg { color: var(--accent); }
.alfa .ps-btn:hover { filter: brightness(1.5); transform: translateY(-1px); }
.alfa .ps-btn.ghost { color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); box-shadow: none; }
.alfa .ps-btn.ghost svg { color: var(--ink); }
.alfa .ps-btn.ghost:hover { filter: none; background: rgba(31,30,27,.09); }

/* quarterly */
.ps-rate { display: inline-block; font-size: 15px; font-weight: 700; color: #7a5f08; background: rgba(245,200,75,.26); padding: 11px 17px; border-radius: 14px; }
.ps-desc { font-size: 14px; color: #55524b; line-height: 1.55; margin: 15px 0 22px; max-width: 660px; }
.ps-qb-grid { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 24px; }
.ps-qb-turn { flex: 1 1 320px; min-width: 260px; }
.ps-qb-bonus { flex: 0 0 auto; }
.ps-metric-l { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.ps-metric-v { font-size: 24px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ps-metric-v.accent { color: #7a5f08; font-size: 30px; }
.ps-metric-sep { color: var(--muted); font-weight: 500; margin: 0 2px; }
.ps-count-wrap { border-top: 1px solid rgba(40,35,10,.08); padding-top: 20px; }
.ps-count { display: flex; gap: 10px; margin-top: 10px; }
.ps-count-seg { background: #232220; border-radius: 14px; padding: 11px 8px; min-width: 66px; text-align: center; }
.ps-count-n { font-size: 26px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }
.ps-count-l { font-size: 11px; color: #9b968a; margin-top: 5px; font-weight: 600; }

/* matching */
.ps-mb-grid { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.ps-mb-item { flex: 0 0 auto; }
.ps-rank-chip { display: inline-block; font-size: 14px; font-weight: 700; color: #1f1e1b; background: var(--accent); padding: 3px 13px; border-radius: 999px; }

/* transactions */
.ps-tx-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ps-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.ps-table td { vertical-align: middle; }
.ps-desc-cell { white-space: normal !important; min-width: 300px; max-width: 460px; color: #55524b !important; line-height: 1.45; }
.ps-ty-chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.ps-ty-chip.ref { color: #2f6d8c; background: rgba(70,150,190,.14); }
.ps-ty-chip.career { color: #8c6d0a; background: rgba(245,200,75,.28); }
.ps-ty-chip.quarter { color: #6b4fa0; background: rgba(140,110,200,.15); }
.ps-ty-chip.match { color: #2f7d47; background: rgba(58,168,90,.15); }

/* QR modal */
.ps-qr-modal { width: min(620px, 100%); }
.ps-qr-stage { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.ps-qr-card { flex: 0 0 auto; background: #fff; padding: 14px; border-radius: 18px; box-shadow: 0 10px 28px rgba(40,30,8,.14); border: 1px solid rgba(40,35,10,.08); line-height: 0; }
.ps-qr-info { flex: 1 1 220px; min-width: 220px; }
.ps-qr-info .ps-qr-desc { font-size: 14px; color: #55524b; line-height: 1.5; margin: 0 0 14px; }
.ps-qr-link { font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); border-radius: 12px; padding: 11px 14px; word-break: break-all; margin-bottom: 16px; }
.ps-qr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* calc modal */
.ps-calc-modal { width: min(720px, 100%); }
.ps-calc-table th, .ps-calc-table td { white-space: nowrap; }
.ps-calc-table tfoot td { border-top: 2px solid rgba(40,35,10,.14); padding: 15px 16px; }
.ps-calc-total-l { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.ps-calc-total-v { font-weight: 800; color: #7a5f08; font-size: 17px; font-variant-numeric: tabular-nums; }

/* rounded controls */
.pt-select { border-radius: 999px; }

/* rank journey */
.ps-journey { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; background: rgba(31,30,27,.03); border: 1px solid rgba(40,35,10,.06); border-radius: 22px; padding: 22px 26px; }
.ps-journey-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; flex: 0 0 auto; width: 128px; }
.ps-node-badge { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; box-shadow: 0 8px 20px rgba(40,32,10,.16); }
.ps-node-badge.cur { background: linear-gradient(140deg, #c7c9cd, #9a9ca1); color: #fff; }
.ps-node-badge.next { background: linear-gradient(140deg, #f7d774, var(--accent)); color: #6b520a; }
.ps-node-l { font-size: 12px; color: var(--muted); font-weight: 500; }
.ps-node-v { font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.ps-journey-track { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0 6px; }
.ps-journey-reward { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.ps-journey-reward svg { color: #b98f0e; }
.ps-journey-reward b { color: #7a5f08; font-size: 15px; font-weight: 800; }
.ps-journey-line { width: 100%; height: 9px; border-radius: 999px; background: rgba(31,30,27,.1); overflow: hidden; }
.ps-journey-line i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #c7c9cd, var(--accent)); transition: width .4s ease; }
.ps-journey-pct { font-size: 12px; font-weight: 700; color: #7a5f08; }
.ps-journey-arrow { flex: 0 0 auto; color: var(--muted); display: grid; place-items: center; }

/* rank ladder */
.ps-ladder { display: flex; align-items: center; padding: 10px 6px 58px; margin-bottom: 6px; }
.ps-ladder-conn { flex: 1 1 auto; min-width: 26px; height: 6px; border-radius: 999px; background: rgba(31,30,27,.1); overflow: hidden; margin: 0 -3px; }
.ps-ladder-conn i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ecca63, var(--accent)); transition: width .55s ease; }
.ps-ladder-node { position: relative; flex: 0 0 auto; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.ps-ladder-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid rgba(31,30,27,.12); color: var(--muted); position: relative; z-index: 1; transition: transform .2s, box-shadow .2s; }
.ps-ladder-node.done .ps-ladder-dot { background: var(--accent); border-color: var(--accent); color: #6b520a; }
.ps-ladder-node.current .ps-ladder-dot { width: 56px; height: 56px; background: linear-gradient(140deg, #2c2b27, #4a4842); border-color: #2c2b27; color: var(--accent); box-shadow: 0 0 0 5px rgba(245,200,75,.3), 0 12px 26px rgba(40,32,10,.34); }
.ps-ladder-node.next .ps-ladder-dot { background: #fffdf5; border: 2px dashed var(--accent); color: #8c6d0a; }
.ps-ladder-node.locked .ps-ladder-dot { background: rgba(31,30,27,.04); border-color: rgba(31,30,27,.1); color: #b7b2a5; }
.ps-ladder-cap { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; white-space: nowrap; }
.ps-ladder-name { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.ps-ladder-node.locked .ps-ladder-name { color: var(--muted); font-weight: 600; }
.ps-ladder-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.ps-ladder-tag.cur { color: #fff; background: #1f1e1b; }
.ps-ladder-tag.next { color: #6b520a; background: var(--accent); }
.ps-ladder-tag.next svg { color: #6b520a; }

.ps-toward-pct { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 800; color: #6b520a; background: rgba(245,200,75,.3); padding: 2px 10px; border-radius: 999px; }

/* condition rings (2x2) */
.ps-conds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-cond { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: rgba(31,30,27,.03); border: 1px solid rgba(40,35,10,.06); }
.ps-cond-ring { position: relative; width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; }
.ps-ring { position: absolute; inset: 0; }
.ps-cond-ring-ic { color: #7a5f08; display: grid; place-items: center; z-index: 1; }
.ps-cond-body { flex: 1; min-width: 0; }
.ps-cond-val { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.ps-cond-goal { color: var(--muted); font-weight: 600; }
.ps-cond-label { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.ps-cond-pct { font-size: 20px; font-weight: 800; color: #7a5f08; font-variant-numeric: tabular-nums; flex: 0 0 auto; }

/* quarterly layout: content + timer aside */
.ps-qb-body { display: flex; gap: 36px; align-items: stretch; flex-wrap: wrap; }
.ps-qb-main { flex: 1 1 340px; min-width: 260px; }
.ps-qb-figs { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; margin-top: 18px; }
.ps-qb-figs .ps-qb-turn { flex: 1 1 260px; min-width: 220px; }
.ps-qb-timer { flex: 0 0 auto; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: rgba(31,30,27,.03); border: 1px solid rgba(40,35,10,.06); border-radius: 20px; padding: 20px 22px; }

/* matching layout: content + button aside */
.ps-mb-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ps-mb-row .ps-mb-grid { flex: 1 1 auto; }

/* transactions toolbar */
.ps-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ps-toolbar-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ps-daterange { display: inline-flex; align-items: center; gap: 8px; }
.ps-dr-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.ps-date { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 12px 16px; border-radius: 999px; border: 1.5px solid rgba(40,35,10,.12); background: #fff; }
.ps-date:focus { outline: none; border-color: var(--accent); }
.alfa .ps-reset-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s, color .15s; }
.alfa .ps-reset-btn:hover { background: rgba(31,30,27,.1); color: var(--ink); }
.ps-perpage { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.ps-perpage .pt-select { padding: 12px 38px 12px 16px; }

/* ---- unified custom dropdown (.wsel) ---- */
.wsel { position: relative; display: inline-block; }
.alfa .wsel-trigger { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); padding: 12px 14px 12px 16px;
  border-radius: 999px; border: 1.5px solid rgba(40,35,10,.12); background: #fff; cursor: pointer;
  white-space: nowrap; transition: border-color .15s, box-shadow .15s; min-width: 100%; }
.alfa .wsel-trigger:hover { border-color: rgba(40,35,10,.24); }
.wsel.open .wsel-trigger { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.22); }
.wsel-chev { display: inline-flex; color: var(--muted); transition: transform .18s; flex: 0 0 auto; }
.wsel.open .wsel-chev { transform: rotate(180deg); }
.wsel-val { overflow: hidden; text-overflow: ellipsis; }
.wsel-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 100%;
  background: #fff; border: 1.5px solid rgba(40,35,10,.1); border-radius: 16px; padding: 6px;
  box-shadow: 0 18px 44px rgba(31,30,20,.18); display: flex; flex-direction: column; gap: 2px;
  max-height: 320px; overflow-y: auto; animation: wselIn .14s ease; }
@keyframes wselIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.alfa .wsel-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: left;
  padding: 10px 12px; border-radius: 11px; background: none; cursor: pointer; white-space: nowrap;
  transition: background .12s; }
.alfa .wsel-opt:hover { background: rgba(31,30,27,.06); }
.alfa .wsel-opt.on { background: rgba(245,200,75,.2); font-weight: 600; }
.wsel-opt-check { display: inline-flex; color: #8c6d0a; flex: 0 0 auto; }
.wsel.wsel-pp .wsel-trigger { min-width: 72px; }

/* pagination */
.ps-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid rgba(40,35,10,.07); flex-wrap: wrap; }
.ps-pager-info { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ps-pager-nav { display: flex; align-items: center; gap: 6px; }
.alfa .ps-page-btn { min-width: 36px; height: 36px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.alfa .ps-page-btn:hover:not(:disabled) { background: rgba(31,30,27,.1); }
.alfa .ps-page-btn.on { background: #1f1e1b; color: #fff; border-color: #1f1e1b; }
.alfa .ps-page-btn:disabled { opacity: .4; cursor: default; }

/* ps responsive */
@media (max-width: 1200px) {
  .ps-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .ps-stats { grid-template-columns: repeat(3, 1fr); }
  .ps-cta { width: 100%; }
  .ps-cta-field { flex: 1 1 auto; }
  .ps-cta-input { min-width: 0; flex: 1; }
  .ps-journey-node { width: 108px; }
  .ps-toolbar { align-items: flex-start; }
}
@media (max-width: 640px) {
  .ps-stats { grid-template-columns: repeat(2, 1fr); }
  .ps-block { padding: 22px 18px; }
  .ps-qb-figs, .ps-mb-grid { gap: 22px; }
  .ps-metric-v.accent { font-size: 26px; }
  .ps-count-seg { min-width: 0; flex: 1; }
  .ps-reqs { grid-template-columns: 1fr; }
  .ps-conds { grid-template-columns: 1fr; }
  .ps-qb-timer { width: 100%; }
  .ps-ladder { overflow-x: auto; scrollbar-width: none; padding-bottom: 56px; }
  .ps-ladder::-webkit-scrollbar { display: none; }
  .ps-ladder-conn { min-width: 30px; }
  .ps-ladder-name { font-size: 12px; }
  .ps-journey { flex-direction: column; align-items: stretch; }
  .ps-journey-node { flex-direction: row; width: 100%; justify-content: flex-start; text-align: left; gap: 14px; }
  .ps-journey-node .ps-node-badge { margin-bottom: 0; }
  .ps-journey-arrow { transform: rotate(90deg); justify-self: center; margin: 2px 0; }
  .ps-btn-row.center { flex-direction: column; }
  .ps-btn-row.center .ps-btn { justify-content: center; }
  .ps-mb-row .ps-btn { width: 100%; justify-content: center; }
  .ps-daterange { width: 100%; }
  .ps-date { flex: 1; }
}
@media (max-width: 420px) {
  .ps-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   PARTNER MATERIALS PAGE (pm-*)
   ============================================================ */
.pm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; }
.pm-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.alfa .pm-tabs button { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #6a6557; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(10px); transition: background .15s, color .15s; white-space: nowrap; }
.alfa .pm-tabs button:hover:not(.on) { background: rgba(255,255,255,.9); color: var(--ink); }
.alfa .pm-tabs button.on { background: #1f1e1b; color: #fff; border-color: #1f1e1b; }
.pm-langsw { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.pm-langsw-l { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.pm-langsw-opts { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); backdrop-filter: blur(10px); }
.alfa .pm-langsw-opts button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #6a6557; transition: background .15s, color .15s; }
.alfa .pm-langsw-opts button:hover:not(.on) { color: var(--ink); }
.alfa .pm-langsw-opts button.on { background: #1f1e1b; color: #fff; }
.pm-langsw-opts .cx-flag { width: 19px; height: 13px; }

.pm-count { font-size: 13px; color: var(--muted); margin-top: -6px; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 18px; align-content: start; }
.pm-card { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.alfa .pm-preview-btn { display: block; width: 100%; padding: 0; border-radius: 16px; overflow: hidden; position: relative; cursor: pointer; }
.pm-preview { position: relative; border-radius: 16px; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #2b2a27, #423f38); color: var(--accent); }
.pm-preview.company_pres, .pm-preview.partner_pres { background: linear-gradient(135deg, #262520, #3d3a30); }
.pm-preview.brand { background: linear-gradient(135deg, #1f1e1b, #35332c); }
.pm-preview.video, .pm-preview.webinar { background: linear-gradient(135deg, #232a30, #3a4048); }
.pm-preview-logo { position: absolute; top: 12px; left: 14px; font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: -.3px; }
.pm-preview-ic { color: rgba(245,200,75,.92); }
.pm-preview.company_pres .pm-preview-ic, .pm-preview.partner_pres .pm-preview-ic { color: rgba(243,239,228,.9); }
.pm-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); display: grid; place-items: center; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.pm-preview.big .pm-play { width: 74px; height: 74px; }
.pm-swatches { display: flex; gap: 9px; }
.pm-swatch { width: 30px; height: 46px; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.pm-preview.big .pm-swatch { width: 46px; height: 70px; }
.pm-badge { position: absolute; bottom: 10px; right: 10px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 999px; backdrop-filter: blur(4px); letter-spacing: .2px; }
.pm-preview-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; background: rgba(24,20,8,.5); opacity: 0; transition: opacity .18s; backdrop-filter: blur(2px); }
.pm-preview-btn:hover .pm-preview-hover { opacity: 1; }
.pm-body { padding: 2px 6px; flex: 1; }
.pm-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -.2px; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-lang { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 9px; }
.pm-lang .cx-flag { width: 20px; height: 14px; }
.pm-actions { display: flex; gap: 8px; padding: 0 2px 2px; }
.alfa .pm-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s, filter .15s; }
.alfa .pm-act:hover { background: rgba(31,30,27,.1); }
.alfa .pm-act.primary { color: #1f1e1b; background: var(--accent); border-color: transparent; box-shadow: 0 6px 14px rgba(210,165,30,.24); }
.alfa .pm-act.primary:hover { filter: brightness(1.06); background: var(--accent); }
.pm-empty { padding: 60px 24px; text-align: center; color: var(--muted); font-size: 14.5px; }

.pm-modal { width: min(680px, 100%); }
.pm-modal .pm-preview { aspect-ratio: 16 / 9; }
.pm-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .pm-bar { align-items: flex-start; }
  .pm-langsw { width: 100%; justify-content: space-between; }
}

/* ============================================================
   MY NETWORK PAGE (mn-*)
   ============================================================ */
/* top tiles */
.mn-tiles { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 16px; }
.mn-tile { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 3px; }
.mn-tile.accent { background: #1f1e1b; }
.mn-tile-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #6a6557; background: rgba(31,30,27,.06); margin-bottom: 12px; }
.mn-tile.accent .mn-tile-ic { background: rgba(255,255,255,.12); color: var(--accent); }
.mn-tile-value { font-size: 30px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.mn-tile.accent .mn-tile-value { color: #fff; }
.mn-tile-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 6px; }
.mn-tile.accent .mn-tile-label { color: #b7b2a5; }
/* upline tile */
.mn-upline { position: relative; }
.mn-upline .mn-tile-ic { color: #7a5f08; background: rgba(245,200,75,.22); }
.mn-upline-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.mn-upline-name { font-size: 20px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); margin-top: 4px; }
.mn-upline-un { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.mn-rankchip { font-size: 11.5px; font-weight: 700; color: #1f1e1b; background: var(--accent); padding: 2px 10px; border-radius: 999px; }
.alfa .mn-upline-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: rgba(31,30,27,.06); border: 1px solid rgba(40,35,10,.08); align-self: flex-start; transition: background .15s; }
.alfa .mn-upline-btn:hover { background: rgba(31,30,27,.11); }
.alfa .mn-upline-btn svg { color: var(--accent); }

/* levels heading */
.mn-levels-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.mn-levels-sub { font-size: 13px; color: var(--muted); }
.mn-levels { display: flex; flex-direction: column; gap: 12px; }

/* level row */
.mn-level { border-radius: 22px; background: var(--card, #fbf8ef); border: 1px solid rgba(40,35,10,.09); box-shadow: 0 1px 2px rgba(40,30,8,.04); overflow: hidden; transition: box-shadow .18s, border-color .18s; }
.mn-level.open { box-shadow: 0 14px 40px rgba(40,30,8,.1); border-color: rgba(40,35,10,.14); }
.mn-level.locked { background: rgba(31,30,27,.025); border-style: dashed; }
.mn-level-row { display: flex; align-items: center; gap: 22px; padding: 18px 22px; cursor: pointer; }
.mn-level.locked .mn-level-row { cursor: default; }
.mn-level:not(.locked) .mn-level-row:hover { background: #f7f3e8; }
.mn-level-badge { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 16px; background: #1f1e1b; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.mn-level.locked .mn-level-badge { background: rgba(31,30,27,.14); color: #6a6557; }
.mn-level-n { font-size: 24px; font-weight: 700; letter-spacing: -.5px; }
.mn-level-u { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; margin-top: 3px; opacity: .8; }
.mn-level-figs { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: center; }
.mn-fig-v { font-size: 18px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mn-fig-v.accent { color: #7a5f08; }
.mn-fig-v.earn { color: #2f7d47; }
.mn-fig-l { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.mn-fig-locked { grid-column: span 2; }
.mn-locked-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #8a6d0e; background: rgba(245,200,75,.2); padding: 7px 14px; border-radius: 999px; }
.mn-locked-badge svg { color: #a8862a; }
.mn-level-lock { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; color: #b3ad9d; }
.alfa .mn-level-chev { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: rgba(31,30,27,.05); transition: transform .22s ease, background .15s; }
.alfa .mn-level:hover .mn-level-chev { background: rgba(31,30,27,.1); }
.mn-level.open .mn-level-chev { transform: rotate(180deg); background: var(--accent); }

/* level detail */
.mn-detail { padding: 4px 22px 24px; animation: cx-fade .2s ease; }
.mn-dstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 24px; }
.mn-dstat { padding: 16px 16px 14px; border-radius: 16px; background: rgba(31,30,27,.035); border: 1px solid rgba(40,35,10,.06); }
.mn-dstat.accent { background: #1f1e1b; border-color: #1f1e1b; }
.mn-dstat-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #6a6557; background: rgba(31,30,27,.06); margin-bottom: 10px; }
.mn-dstat.accent .mn-dstat-ic { background: rgba(255,255,255,.12); color: var(--accent); }
.mn-dstat-value { font-size: 22px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mn-dstat.accent .mn-dstat-value { color: #fff; }
.mn-dstat-label { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; line-height: 1.3; }
.mn-dstat.accent .mn-dstat-label { color: #b7b2a5; }

.mn-sub-h { font-size: 16px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); margin: 0; }
.mn-members-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mn-sample { font-size: 12.5px; color: var(--muted); }
.mn-toolbar { margin-bottom: 14px; }
.mn-search { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 13px; height: 40px; border-radius: 11px; background: #fff; border: 1.5px solid rgba(40,35,10,.12); color: var(--muted); }
.mn-search:focus-within { border-color: var(--accent); }
.mn-search-input { border: none; outline: none; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); width: 180px; }
.alfa .mn-search-clr { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(31,30,27,.08); }
.alfa .mn-search-clr:hover { background: #1f1e1b; color: #fff; }

/* members table extras */
.mn-name-cell { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.mn-name-ava { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2c2a26, #4a453b); }
.mn-country { display: inline-flex; align-items: center; gap: 8px; }
.mn-country .cx-flag { width: 20px; height: 14px; flex: 0 0 auto; }
.alfa .mn-show-ct { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s; }
.alfa .mn-show-ct:hover { background: rgba(31,30,27,.1); }
.alfa .mn-show-ct svg { color: var(--accent); }
.mn-ct-na { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #a8a294; }
.mn-pkg-chip { font-size: 12.5px; font-weight: 600; color: #6a6557; background: rgba(31,30,27,.06); padding: 3px 10px; border-radius: 999px; }
.mn-pkg-amt { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* contacts modal */
.mn-ct-modal { width: min(440px, 100%); }
.mn-ct-person { display: flex; align-items: center; gap: 14px; padding: 4px 2px 18px; border-bottom: 1px solid rgba(40,35,10,.08); }
.mn-ct-ava { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2c2a26, #4a453b); }
.mn-ct-name { font-size: 16px; font-weight: 700; color: var(--ink); }
.mn-ct-un { font-weight: 500; color: var(--muted); }
.mn-ct-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mn-ct-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mn-ct-row { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 14px; background: rgba(31,30,27,.035); border: 1px solid rgba(40,35,10,.06); }
.mn-ct-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #7a5f08; background: rgba(245,200,75,.18); }
.mn-ct-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mn-ct-l { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.mn-ct-v { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.alfa .mn-ct-copy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #1f1e1b; background: var(--accent); transition: filter .15s; }
.alfa .mn-ct-copy:hover { filter: brightness(1.06); }

/* tree */
.mn-tree-wrap { margin-top: 0; }
.mn-tree-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.mn-tree-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mn-tree-actions { display: flex; gap: 8px; }
.alfa .mn-tree-btn { padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.08); transition: background .15s; }
.alfa .mn-tree-btn:hover { background: rgba(31,30,27,.1); }
.mn-tree { padding: 12px 18px; }
.mn-node { position: relative; }
.mn-node-kids { margin-left: 20px; padding-left: 20px; border-left: 1.5px solid rgba(40,35,10,.1); }
.mn-node-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; transition: background .14s; }
.mn-node-row.has { cursor: pointer; }
.mn-node-row.has:hover { background: #f7f3e8; }
.mn-node-row.you { background: rgba(245,200,75,.14); }
.mn-node-toggle { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted); transition: transform .2s ease; }
.mn-node-toggle.open { transform: rotate(180deg); }
.mn-node-toggle.leaf { color: transparent; }
.mn-node-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(40,35,10,.28); }
.mn-node-ava { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #2c2a26, #4a453b); }
.mn-node-ava.you { background: var(--accent); color: #1f1e1b; font-size: 14px; }
.mn-node-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.mn-node-flag { width: 19px !important; height: 13px !important; flex: 0 0 auto; }
.mn-node-pkg { font-size: 12px; font-weight: 600; color: #6a6557; background: rgba(31,30,27,.06); padding: 2px 10px; border-radius: 999px; }
.mn-node-count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-node-count-l { color: var(--muted); font-weight: 500; }

@media (max-width: 1080px) {
  .mn-tiles { grid-template-columns: repeat(2, 1fr); }
  .mn-upline { grid-column: span 2; }
  .mn-dstats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mn-level-figs { grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
  .mn-fig-locked { grid-column: span 2; }
}
@media (max-width: 620px) {
  .mn-tiles { grid-template-columns: 1fr; }
  .mn-upline { grid-column: auto; }
  .mn-dstats { grid-template-columns: 1fr; }
  .mn-level-row { gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
  .mn-level-figs { flex-basis: 100%; order: 3; }
  .mn-detail { padding: 4px 14px 20px; }
  .mn-node-count { margin-left: 41px; flex-basis: 100%; order: 5; }
}

/* ============================================================
   BUY A PACKAGE PAGE (bp-*)
   ============================================================ */
.bp-stage { display: flex; flex-direction: column; gap: 22px; }
.bp-narrow { max-width: 820px; width: 100%; margin-inline: auto; }
.alfa .bp-btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 700; transition: filter .15s, transform .15s, background .15s; }
.alfa .bp-btn.primary { color: #1f1e1b; background: var(--accent); box-shadow: 0 10px 24px rgba(210,165,30,.28); }
.alfa .bp-btn.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.alfa .bp-btn.primary:disabled { background: rgba(31,30,27,.1); color: #a8a294; box-shadow: none; cursor: not-allowed; transform: none; filter: none; }
.alfa .bp-btn.ghost { color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.1); }
.alfa .bp-btn.ghost:hover { background: rgba(31,30,27,.09); }

/* stepper */
.bp-stepper { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 2px 0; flex-wrap: wrap; }
.bp-step { display: flex; align-items: center; gap: 11px; }
.bp-step-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 700; flex: 0 0 auto; background: rgba(31,30,27,.07); color: #8a8578; transition: background .2s, color .2s; }
.bp-step.cur .bp-step-dot { background: #1f1e1b; color: #fff; box-shadow: 0 0 0 4px rgba(31,30,27,.1); }
.bp-step.done .bp-step-dot { background: var(--accent); color: #1f1e1b; }
.bp-step-lbl { font-size: 14px; font-weight: 600; color: #8a8578; white-space: nowrap; }
.bp-step.cur .bp-step-lbl { color: var(--ink); }
.bp-step.done .bp-step-lbl { color: var(--ink); }
.bp-step-line { width: clamp(30px, 6vw, 80px); height: 2px; border-radius: 2px; background: rgba(31,30,27,.12); margin: 0 8px; }
.bp-step-line.done { background: var(--accent); }

/* step 1 — package cards */
.bp-pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.bp-pkg { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; cursor: pointer; border-radius: 26px; border: 1.5px solid transparent; transition: border-color .16s, box-shadow .18s, transform .16s; }
.bp-pkg:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(40,30,8,.12); }
.bp-pkg.on { border-color: var(--accent); box-shadow: 0 14px 34px rgba(210,165,30,.2); }
.bp-pkg-check { position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #1f1e1b; display: grid; place-items: center; }
.bp-pkg-name { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.bp-pkg-cost { font-size: 34px; font-weight: 700; letter-spacing: -1.4px; color: var(--ink); line-height: 1; }
.bp-pkg-rows { display: flex; flex-direction: column; gap: 9px; }
.bp-pkg-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bp-pkg-row-l { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 500; }
.bp-pkg-row-l svg { color: #b3ad9d; }
.bp-pkg-row-v { font-size: 14px; font-weight: 700; color: var(--ink); }
.bp-pkg-row-v.accent { color: #7a5f08; }
.bp-pkg-row-x { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.bp-pkg-split { border-top: 1px solid rgba(40,35,10,.08); padding-top: 13px; }
.bp-split-head { font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.bp-split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(31,30,27,.06); }
.bp-split-client { background: var(--accent); }
.bp-split-company { background: #35332c; }
.bp-split-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.bp-split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bp-dot { width: 8px; height: 8px; border-radius: 3px; }
.bp-dot.client { background: var(--accent); }
.bp-dot.company { background: #35332c; }
.alfa .bp-pkg-btn { margin-top: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink); background: rgba(31,30,27,.06); border: 1px solid rgba(40,35,10,.08); transition: background .15s; }
.bp-pkg:hover .bp-pkg-btn:not(.on) { background: rgba(31,30,27,.1); }
.alfa .bp-pkg-btn.on { background: #1f1e1b; color: #fff; border-color: #1f1e1b; }
.alfa .bp-pkg-btn.on svg { color: var(--accent); }

/* nav row */
.bp-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bp-nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.bp-nav-hint { font-size: 13px; color: #b0533f; font-weight: 500; }

/* panels */
.bp-panel { padding: 26px 28px; }
.bp-panel-h { font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); margin: 0 0 20px; }

/* step 2 — methods */
.bp-methods { display: flex; flex-direction: column; gap: 12px; }
.bp-method { border-radius: 18px; border: 1.5px solid rgba(40,35,10,.1); background: #fff; overflow: visible; transition: border-color .16s, box-shadow .16s; }
.bp-method.on { border-color: var(--accent); box-shadow: 0 8px 22px rgba(210,165,30,.14); position: relative; z-index: 5; }
.bp-method.off { background: rgba(31,30,27,.02); border-style: dashed; }
.alfa .bp-method-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 20px; text-align: left; }
.bp-method.off .bp-method-head { cursor: not-allowed; opacity: .72; }
.bp-radio { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(40,35,10,.25); display: grid; place-items: center; transition: border-color .15s; }
.bp-method.on .bp-radio, .bp-acct.on .bp-radio { border-color: var(--accent); }
.bp-radio i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.bp-method-ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #6a6557; background: rgba(31,30,27,.06); }
.bp-method.on .bp-method-ic { background: rgba(245,200,75,.2); color: #7a5f08; }
.bp-method-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-method-title { font-size: 15px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.bp-method-sub { font-size: 12.5px; color: var(--muted); }
.bp-soon { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #8a6d0e; background: rgba(245,200,75,.28); padding: 2px 8px; border-radius: 999px; }
.bp-method-chev { color: var(--muted); transition: transform .2s; }
.bp-method.on .bp-method-chev { transform: rotate(180deg); color: var(--ink); }
.bp-method-body { padding: 4px 20px 20px 76px; animation: cx-fade .2s ease; }
.bp-field-lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 9px; }

/* coin dropdown (custom) */
.bp-coinico { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: 0 0 auto; line-height: 1; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.bp-csel-wrap { position: relative; }
.alfa .bp-csel { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 16px; background: #fbf8ef; border: 1.5px solid rgba(40,35,10,.14); text-align: left; transition: border-color .15s, box-shadow .15s; }
.alfa .bp-csel:hover { border-color: rgba(40,35,10,.28); }
.alfa .bp-csel.open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.18); }
.bp-csel-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.bp-csel-txt b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bp-csel-txt span { font-size: 12px; color: var(--muted); font-weight: 500; }
.bp-csel-chev { color: var(--muted); transition: transform .2s; }
.bp-csel.open .bp-csel-chev { transform: rotate(180deg); color: var(--ink); }
.bp-cmenu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid rgba(40,35,10,.1); border-radius: 18px; box-shadow: 0 20px 50px rgba(40,30,8,.2); padding: 8px; max-height: 320px; overflow-y: auto; animation: cx-fade .16s ease; }
.alfa .bp-copt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 13px; text-align: left; transition: background .13s; }
.alfa .bp-copt:hover { background: #f7f3e8; }
.alfa .bp-copt.on { background: rgba(245,200,75,.14); }
.bp-copt-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.bp-copt-txt b { font-size: 14px; font-weight: 700; color: var(--ink); }
.bp-copt-txt span { font-size: 12px; color: var(--muted); font-weight: 500; }
.bp-copt-check { color: #7a5f08; flex: 0 0 auto; }
.bp-sum-method { display: inline-flex; align-items: center; gap: 8px; }
.bp-coin-preview { margin-top: 11px; font-size: 13px; color: var(--muted); }
.bp-coin-preview b { color: #7a5f08; font-variant-numeric: tabular-nums; }

/* accounts */
.bp-accts { display: flex; flex-direction: column; gap: 10px; }
.alfa .bp-acct { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid rgba(40,35,10,.12); background: #fbf8ef; text-align: left; flex-wrap: wrap; transition: border-color .15s; }
.alfa .bp-acct.on { border-color: var(--accent); background: rgba(245,200,75,.08); }
.alfa .bp-acct.low { opacity: .85; }
.bp-acct-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #6a6557; background: rgba(31,30,27,.06); }
.bp-acct-txt { display: flex; flex-direction: column; gap: 2px; }
.bp-acct-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.bp-acct-bal { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bp-acct-warn { margin-left: auto; font-size: 12px; font-weight: 600; color: #b0533f; background: rgba(212,85,74,.12); padding: 5px 11px; border-radius: 999px; }

/* step 3 — summary */
.bp-summary { display: flex; flex-direction: column; gap: 2px; }
.bp-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0; }
.bp-sum-l { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.bp-sum-v { font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; }
.bp-sum-net { font-size: 12px; font-weight: 600; color: var(--muted); }
.bp-sum-pkg { font-weight: 700; }
.bp-sum-div { height: 1px; background: rgba(40,35,10,.09); margin: 6px 0; }
.bp-sum-row.big .bp-sum-l { font-size: 15px; color: var(--ink); font-weight: 600; }
.bp-sum-row.big .bp-sum-v { font-size: 26px; font-weight: 700; letter-spacing: -.6px; }
.bp-sum-coin { font-size: 17px; font-weight: 700; color: #7a5f08; font-variant-numeric: tabular-nums; }

/* invoice modal */
.bp-invoice { width: min(640px, 100%); }
.bp-inv-body { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.bp-inv-qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bp-inv-qr svg { background: #fff; padding: 12px; border-radius: 16px; box-shadow: 0 10px 26px rgba(40,30,8,.14); border: 1px solid rgba(40,35,10,.08); }
.bp-inv-scan { font-size: 11.5px; color: var(--muted); max-width: 200px; text-align: center; line-height: 1.4; }
.bp-inv-info { flex: 1 1 260px; min-width: 240px; display: flex; flex-direction: column; gap: 15px; }
.bp-inv-l { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-bottom: 5px; }
.bp-inv-amount { background: rgba(245,200,75,.12); border: 1px solid rgba(245,200,75,.4); border-radius: 14px; padding: 13px 15px; }
.bp-inv-amt-row { display: flex; align-items: center; gap: 10px; }
.bp-inv-amt { font-size: 24px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.bp-inv-usd { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.bp-inv-net { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bp-inv-net svg { color: #7a5f08; }
.bp-inv-addr { display: flex; align-items: center; gap: 8px; background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.1); border-radius: 12px; padding: 10px 12px; }
.bp-inv-addr code { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--ink); word-break: break-all; flex: 1; }
.alfa .bp-inv-copy { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: rgba(31,30,27,.07); transition: background .15s; }
.alfa .bp-inv-copy:hover { background: var(--accent); }
.bp-inv-timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #1f1e1b; border-radius: 12px; padding: 12px 15px; }
.bp-timer-l { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #b7b2a5; font-weight: 500; }
.bp-timer-l svg { color: var(--accent); }
.bp-timer-v { font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.bp-inv-await { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); }
.bp-pulse { width: 9px; height: 9px; border-radius: 50%; background: #3aa85a; box-shadow: 0 0 0 0 rgba(58,168,90,.5); animation: bp-pulse 1.6s infinite; }
@keyframes bp-pulse { 0% { box-shadow: 0 0 0 0 rgba(58,168,90,.5); } 70% { box-shadow: 0 0 0 8px rgba(58,168,90,0); } 100% { box-shadow: 0 0 0 0 rgba(58,168,90,0); } }
.alfa .bp-inv-cancel { display: block; width: 100%; margin-top: 20px; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 700; color: #b0533f; background: rgba(212,85,74,.1); border: 1px solid rgba(212,85,74,.2); transition: background .15s; }
.alfa .bp-inv-cancel:hover { background: rgba(212,85,74,.16); }
.bp-inv-note { display: flex; gap: 9px; margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.bp-inv-note svg { flex: 0 0 auto; color: #b3ad9d; margin-top: 1px; }

/* done screen */
.bp-done { padding: 48px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 560px; margin-inline: auto; }
.bp-done-ic { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #1f1e1b; background: var(--accent); box-shadow: 0 12px 30px rgba(210,165,30,.3); margin-bottom: 22px; }
.bp-done-title { font-size: 28px; font-weight: 700; letter-spacing: -.6px; color: var(--ink); margin: 0 0 10px; }
.bp-done-sub { font-size: 15px; color: #55524b; line-height: 1.55; margin: 0 0 26px; max-width: 420px; }
.bp-done-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.bp-done .bp-btn { text-decoration: none; }

@media (max-width: 620px) {
  .bp-step-lbl { display: none; }
  .bp-step.cur .bp-step-lbl { display: inline; }
  .bp-panel { padding: 20px 18px; }
  .bp-method-body { padding-left: 20px; }
  .bp-nav, .bp-nav-right { width: 100%; }
  .bp-nav .bp-btn { flex: 1; justify-content: center; }
  .bp-inv-body { justify-content: center; }
}

/* ============ ACTIVE PACKAGES PAGE (.ap-*) ============ */
/* buy-package CTA next to breadcrumbs */
.alfa a.ap-buy-cta { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; white-space: nowrap;
  padding: 13px 22px 13px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 700; color: #fff;
  background: #1f1e1b; border: none; text-decoration: none; transition: transform .16s, filter .16s; }
.alfa a.ap-buy-cta:hover { filter: brightness(1.5); transform: translateY(-1px); }
.ap-buy-cta .ap-plus { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--accent); color: #1f1e1b; flex: 0 0 auto; }

/* package tiles grid */
.ap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 4px 0 34px; }
.ap-card { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 18px; }
.ap-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ap-card-name { font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); line-height: 1.1; }
.ap-card-id { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; font-variant-numeric: tabular-nums; }
.ap-badge { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  color: #1f6b3e; background: rgba(31,138,91,.14); letter-spacing: .2px; }

.ap-split-top { margin-bottom: 8px; }
.ap-split-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ap-split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(31,30,27,.06); }
.ap-split-co { background: #2A2825; }
.ap-split-us { background: var(--accent); }
.ap-split-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 12.5px;
  color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-split-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.ap-split-legend .dot.co { background: #2A2825; }
.ap-split-legend .dot.us { background: var(--accent); }

.ap-rows { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(40,35,10,.09); }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ap-row-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.ap-row-l svg { color: var(--muted); flex: 0 0 auto; }
.ap-row-v { font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ap-row-v.earn { color: #1f8a5b; }

/* date range control */
.ap-daterange { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-daterange > .ic { color: var(--muted); display: inline-flex; }
.ap-custom { display: inline-flex; align-items: center; gap: 8px; }

/* table cells */
.ap-td-date { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; white-space: nowrap; }
.ap-td-pkg { display: flex; flex-direction: column; }
.ap-td-name { font-weight: 700; color: var(--ink); }
.ap-td-id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-op { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ap-op-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; }
.ap-op.buy .ap-op-ic { background: rgba(42,40,37,.1); color: #2A2825; }
.ap-op.accrual .ap-op-ic { background: rgba(245,200,75,.28); color: #8c6d0a; }

@media (max-width: 1180px) { .ap-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .ap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .ap-grid { grid-template-columns: 1fr; }
  .ap-buy-cta { width: 100%; justify-content: center; }
  .ap-daterange, .ap-custom { flex-wrap: wrap; }
}

/* ============ MY FINANCES PAGE (.fin-*) ============ */
.fin-acc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 4px 0 34px; }
.fin-acc { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 20px; }
.fin-acc-top { display: flex; align-items: center; gap: 12px; }
.fin-acc-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px;
  background: rgba(31,30,27,.06); color: var(--ink); flex: 0 0 auto; }
.fin-acc-name { font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: -.2px; }
.fin-acc-bal { display: flex; flex-direction: column; gap: 4px; }
.fin-acc-bal-l { font-size: 13px; color: var(--muted); font-weight: 500; }
.fin-acc-bal-v { font-size: 34px; font-weight: 700; letter-spacing: -1.4px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.fin-acc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.alfa .fin-act { display: inline-flex; align-items: center; gap: 7px; padding: 11px 17px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; transition: filter .15s, transform .14s, background .15s; white-space: nowrap; }
.alfa .fin-act.primary { background: var(--accent); color: #1f1e1b; box-shadow: 0 8px 18px rgba(210,165,30,.28); }
.alfa .fin-act.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.alfa .fin-act.ghost { background: rgba(31,30,27,.05); color: var(--ink); border: 1.5px solid rgba(40,35,10,.1); }
.alfa .fin-act.ghost:hover { background: rgba(31,30,27,.09); }

/* primary (current) account — dark emphasis */
.fin-acc.primary { background: #232220; color: #f3efe4; }
.fin-acc.primary .fin-acc-ic { background: rgba(255,255,255,.1); color: var(--accent); }
.fin-acc.primary .fin-acc-name { color: #fff; }
.fin-acc.primary .fin-acc-bal-l { color: #b7b1a2; }
.fin-acc.primary .fin-acc-bal-v { color: #fff; }
.alfa .fin-acc.primary .fin-act.ghost { background: rgba(255,255,255,.1); color: #f3efe4; border-color: rgba(255,255,255,.16); }
.alfa .fin-acc.primary .fin-act.ghost:hover { background: rgba(255,255,255,.18); }

/* transactions table */
.fin-td-date { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; white-space: nowrap; }
.fin-acc-tag { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.fin-acc-tag.current { color: #6a6557; background: rgba(31,30,27,.07); }
.fin-acc-tag.invest { color: #8c6d0a; background: rgba(245,200,75,.26); }
.fin-acc-tag.partner { color: #1f6b3e; background: rgba(31,138,91,.13); }
.fin-op { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.fin-op-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; }
.fin-op-ic.pos { background: rgba(31,138,91,.13); color: #1f8a5b; }
.fin-op-ic.neg { background: rgba(31,30,27,.08); color: #6a6557; }
.fin-pos { color: #1f8a5b; }
.fin-neg { color: var(--ink); }

@media (max-width: 900px) { .fin-acc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .fin-acc-bal-v { font-size: 30px; }
  .fin-act { flex: 1; justify-content: center; }
}

/* ============================================================
   TECHNICAL SUPPORT — .sup-*
   ============================================================ */
.sup-panel {
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 28px;
  box-shadow: var(--card-shadow); padding: clamp(20px, 3vw, 30px);
  display: flex; flex-direction: column;
}
.sup-panel-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.sup-panel-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.sup-panel-sub { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); }
.sup-count { margin-left: auto; flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  color: var(--ink); background: var(--accent); }

/* ticket list */
.sup-list { display: flex; flex-direction: column; gap: 10px; }
.alfa .sup-row {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(40,35,10,.08);
  transition: box-shadow .16s, border-color .16s, transform .16s; cursor: pointer;
}
.alfa .sup-row:hover { box-shadow: 0 12px 30px rgba(120,100,40,.1); border-color: rgba(40,35,10,.16); transform: translateY(-1px); }
.sup-row-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  color: #7a5f08; background: rgba(245,200,75,.2); }
.sup-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sup-row-top { display: flex; align-items: center; gap: 10px; }
.sup-row-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sup-row-id { font-size: 12px; font-weight: 600; color: #b7b09a; font-variant-numeric: tabular-nums; }
.sup-row-subj { font-size: 15.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-row-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sup-row-meta svg { opacity: .7; }
.sup-row-right { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.sup-row-chev { color: #c3bca6; display: grid; place-items: center; }

/* status chip */
.sup-st { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sup-st-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.sup-st.answered { color: #7a5f08; background: rgba(245,200,75,.2); }
.sup-st.answered .sup-st-dot { background: #e0a800; }
.sup-st.waiting { color: #8a6d1a; background: rgba(31,30,27,.06); }
.sup-st.waiting .sup-st-dot { background: #b7b09a; }
.sup-st.resolved { color: #1f8a5b; background: rgba(31,138,91,.13); }
.sup-st.resolved .sup-st-dot { background: #1f8a5b; }

/* empty state */
.sup-empty { text-align: center; padding: 46px 20px; }
.sup-empty-ic { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px;
  color: #7a5f08; background: rgba(245,200,75,.18); margin-bottom: 16px; }
.sup-empty-t { font-size: 16px; font-weight: 700; color: var(--ink); }
.sup-empty-s { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

/* new-ticket button */
.alfa .sup-new-btn {
  margin-top: 18px; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  color: #fff; background: #1f1e1b; border: 1px solid #1f1e1b; transition: background .16s, transform .16s; cursor: pointer;
}
.alfa .sup-new-btn:hover { background: #33302a; transform: translateY(-1px); }

/* shared buttons */
.alfa .sup-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s, transform .15s; }
.alfa .sup-btn.solid { color: #1f1e1b; background: var(--accent); border: 1px solid transparent; }
.alfa .sup-btn.solid:hover { transform: translateY(-1px); filter: brightness(.97); }
.alfa .sup-btn.solid:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.alfa .sup-btn.ghost { color: var(--ink); background: rgba(31,30,27,.06); border: 1px solid rgba(40,35,10,.1); }
.alfa .sup-btn.ghost:hover { background: rgba(31,30,27,.11); }

/* modal */
.sup-modal { width: min(520px, 100%); }
.sup-field { margin-bottom: 18px; }
.sup-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.sup-field .wsel { width: 100%; }
.sup-field .wsel-trigger { width: 100%; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid rgba(40,35,10,.14); }
.sup-textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 120px; padding: 13px 15px;
  border-radius: 16px; border: 1px solid rgba(40,35,10,.14); background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.5;
}
.sup-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.sup-textarea::placeholder { color: #b7b09a; }

.sup-attach-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.alfa .sup-attach-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05);
  border: 1px dashed rgba(40,35,10,.25); cursor: pointer; transition: background .15s; }
.alfa .sup-attach-btn:hover { background: rgba(31,30,27,.09); }
.sup-attach-hint { font-size: 12px; color: var(--muted); }
.sup-file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 12px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(245,200,75,.2); max-width: 100%; }
.sup-file-chip svg { flex: 0 0 auto; color: #7a5f08; }
.alfa .sup-file-x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  color: #7a5f08; background: rgba(31,30,27,.1); cursor: pointer; flex: 0 0 auto; }
.alfa .sup-file-x:hover { background: rgba(31,30,27,.2); }
.sup-modal-foot { display: flex; justify-content: flex-end; gap: 10px; }

/* success */
.sup-success { text-align: center; padding: 14px 6px 8px; }
.sup-success-ic { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  color: #1f8a5b; background: rgba(31,138,91,.15); margin-bottom: 16px; }
.sup-success-t { margin: 0; font-size: 21px; font-weight: 700; color: var(--ink); }
.sup-success-s { margin: 8px auto 22px; max-width: 340px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.sup-success-actions { display: flex; justify-content: center; gap: 10px; }

/* chat detail */
.sup-detail { padding: 0; overflow: hidden; }
.sup-detail-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px clamp(18px, 3vw, 26px); border-bottom: 1px solid rgba(40,35,10,.08); }
.alfa .sup-back { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px 8px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05);
  border: 1px solid rgba(40,35,10,.08); cursor: pointer; flex: 0 0 auto; transition: background .15s; }
.alfa .sup-back:hover { background: rgba(31,30,27,.1); }
.sup-detail-hgroup { flex: 1; min-width: 200px; }
.sup-detail-title { display: flex; align-items: baseline; gap: 10px; }
.sup-detail-subj { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.sup-detail-id { font-size: 13px; font-weight: 600; color: #b7b09a; font-variant-numeric: tabular-nums; }
.sup-detail-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; flex-wrap: wrap; }
.sup-detail-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sup-detail-cta { flex: 0 0 auto; }

/* thread */
.sup-thread { padding: 24px clamp(18px, 3vw, 26px); display: flex; flex-direction: column; gap: 18px;
  max-height: 560px; overflow-y: auto; background: rgba(120,100,40,.03); }
.sup-msg { display: flex; gap: 12px; max-width: 78%; }
.sup-msg.mine { margin-left: auto; flex-direction: row-reverse; }
.sup-ava { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #7a5f08; background: rgba(245,200,75,.28); }
.sup-bubble-wrap { display: flex; flex-direction: column; min-width: 0; }
.sup-msg.mine .sup-bubble-wrap { align-items: flex-end; }
.sup-bubble-who { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 4px 5px; }
.sup-bubble { padding: 12px 15px; border-radius: 18px; font-size: 14px; line-height: 1.5; color: var(--ink);
  background: #fff; border: 1px solid rgba(40,35,10,.07); border-top-left-radius: 6px; box-shadow: 0 2px 8px rgba(120,100,40,.05); }
.sup-msg.mine .sup-bubble { background: var(--accent); border-color: transparent; border-top-left-radius: 18px; border-top-right-radius: 6px; }
.sup-bubble-text { white-space: pre-wrap; word-break: break-word; }
.sup-bubble-file { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; padding: 7px 11px;
  border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: rgba(31,30,27,.06); text-decoration: none; }
.sup-msg.mine .sup-bubble-file { background: rgba(31,30,27,.12); }
.sup-bubble-file:hover { background: rgba(31,30,27,.14); }
.sup-bubble-time { font-size: 11.5px; color: #b7b09a; margin: 6px 4px 0; font-variant-numeric: tabular-nums; }

/* typing indicator */
.sup-typing { display: inline-flex; align-items: center; gap: 5px; padding: 15px 16px; border-radius: 18px;
  border-top-left-radius: 6px; background: #fff; border: 1px solid rgba(40,35,10,.07); }
.sup-typing span { width: 7px; height: 7px; border-radius: 50%; background: #c3bca6; animation: sup-bounce 1.2s infinite ease-in-out; }
.sup-typing span:nth-child(2) { animation-delay: .18s; }
.sup-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes sup-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.sup-resolved-note { display: flex; align-items: center; gap: 9px; align-self: center; margin-top: 4px;
  padding: 11px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #1f8a5b;
  background: rgba(31,138,91,.12); text-align: center; }

/* composer */
.sup-composer { padding: 14px clamp(18px, 3vw, 26px) 18px; border-top: 1px solid rgba(40,35,10,.08); background: var(--card-bg); }
.sup-composer-row { display: flex; align-items: flex-end; gap: 10px; }
.sup-composer .sup-file-chip.in-composer { margin-bottom: 10px; }
.alfa .sup-clip { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; }
.sup-composer-input { flex: 1; box-sizing: border-box; resize: none; max-height: 140px; padding: 12px 16px;
  border-radius: 16px; border: 1px solid rgba(40,35,10,.14); background: #fff; color: var(--ink);
  font: inherit; font-size: 14px; line-height: 1.45; }
.sup-composer-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.sup-composer-input::placeholder { color: #b7b09a; }
.alfa .sup-send { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #1f1e1b; background: var(--accent); border: 1px solid transparent; cursor: pointer; transition: filter .15s, opacity .15s; }
.alfa .sup-send:hover { filter: brightness(.96); }
.alfa .sup-send:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 640px) {
  .sup-row { flex-wrap: wrap; }
  .sup-row-right { width: 100%; justify-content: space-between; padding-left: 60px; }
  .sup-msg { max-width: 90%; }
  .sup-detail-cta { width: 100%; justify-content: center; }
}

/* ---- FAQ ---- */
.sup-faq { margin-top: 22px; }
.sup-faq-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px;
  border-radius: 16px; background: #fff; border: 1px solid rgba(40,35,10,.14); margin-bottom: 16px; transition: border-color .15s, box-shadow .15s; }
.sup-faq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.sup-faq-search svg { color: var(--muted); flex: 0 0 auto; }
.sup-faq-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); }
.sup-faq-search input::placeholder { color: #b7b09a; }
.alfa .sup-faq-clear { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  color: var(--muted); background: rgba(31,30,27,.07); cursor: pointer; flex: 0 0 auto; }
.alfa .sup-faq-clear:hover { background: rgba(31,30,27,.14); color: var(--ink); }

.sup-faq-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.alfa .sup-faq-tab { padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #6a6557;
  background: rgba(255,255,255,.7); border: 1px solid rgba(40,35,10,.1); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.alfa .sup-faq-tab:hover:not(.on) { color: var(--ink); background: #fff; }
.alfa .sup-faq-tab.on { color: #1f1e1b; background: var(--accent); border-color: transparent; }

.sup-faq-list { display: flex; flex-direction: column; gap: 10px; }
.sup-faq-item { border-radius: 18px; background: #fff; border: 1px solid rgba(40,35,10,.08); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.sup-faq-item.open { border-color: rgba(40,35,10,.16); box-shadow: 0 10px 26px rgba(120,100,40,.08); }
.alfa .sup-faq-q { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 17px 20px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; background: none; }
.sup-faq-qtext { flex: 1; min-width: 0; }
.sup-faq-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #7a5f08; background: rgba(245,200,75,.22); padding: 4px 9px; border-radius: 999px; }
.sup-faq-chev { flex: 0 0 auto; color: var(--muted); display: grid; place-items: center; transition: transform .22s ease; }
.sup-faq-item.open .sup-faq-chev { transform: rotate(180deg); }
.sup-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.sup-faq-item.open .sup-faq-a { grid-template-rows: 1fr; }
.sup-faq-a-inner { overflow: hidden; padding: 0 20px; font-size: 14px; line-height: 1.6; color: #5f5a4c; }
.sup-faq-item.open .sup-faq-a-inner { padding: 0 20px 18px; }

/* ============================================================
   ALL NEWS — .nw-*
   ============================================================ */
/* striped image placeholder */
.nw-ph { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(40,35,10,.05) 0 14px, rgba(40,35,10,.09) 14px 28px),
    linear-gradient(135deg, #efe7d3, #e7ddc4); }
.nw-ph-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; letter-spacing: .04em;
  color: #8c8060; background: rgba(252,250,243,.75); padding: 5px 11px; border-radius: 999px; white-space: nowrap; }

/* tag chips */
.nw-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.nw-chip.company { color: #7a5f08; background: rgba(245,200,75,.24); }
.nw-chip.announce { color: #2f5fae; background: rgba(47,95,174,.13); }
.nw-chip.events { color: #2f7d47; background: rgba(58,168,90,.16); }

/* hero slider */
.nw-hero { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border); }
.nw-hero-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.alfa .nw-hero-slide { position: relative; flex: 0 0 100%; height: clamp(320px, 40vw, 420px); text-align: left;
  cursor: pointer; background: none; display: block; padding: 0; }
.nw-hero-ph { position: absolute; inset: 0; border-radius: 0; }
.nw-hero-ph .nw-ph-label { display: none; }
.nw-hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,6,.82) 0%, rgba(20,17,6,.35) 45%, rgba(20,17,6,.05) 75%); }
.nw-hero-body { position: absolute; left: 0; bottom: 0; padding: clamp(24px, 4vw, 42px); max-width: 720px; }
.nw-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nw-hero-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.nw-hero-title { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.nw-hero-excerpt { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 560px; }
.nw-hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #1f1e1b; background: var(--accent); transition: transform .16s; }
.nw-hero-slide:hover .nw-hero-cta { transform: translateX(2px); }
.nw-hero-badge { position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(20,17,6,.4); backdrop-filter: blur(6px); }
.alfa .nw-hero-arrow { position: absolute; top: 18px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #1f1e1b; background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  cursor: pointer; transition: background .15s; z-index: 3; }
.alfa .nw-hero-arrow:hover { background: #fff; }
.nw-hero-arrow.left { right: 68px; } .nw-hero-arrow.right { right: 18px; }
.nw-hero-dots { position: absolute; bottom: 18px; right: 22px; display: flex; gap: 8px; z-index: 3; }
.alfa .nw-dot { width: 9px; height: 9px; border-radius: 50%; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: background .15s, width .2s; }
.alfa .nw-dot.on { width: 26px; border-radius: 999px; background: #fff; }

/* filter tabs */
.nw-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.alfa .nw-tab { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #6a6557;
  background: rgba(255,255,255,.7); border: 1px solid rgba(40,35,10,.1); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.alfa .nw-tab:hover:not(.on) { color: var(--ink); background: #fff; }
.alfa .nw-tab.on { color: #1f1e1b; background: var(--accent); border-color: transparent; }

/* grid */
.nw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.alfa .nw-card { display: flex; flex-direction: column; text-align: left; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 22px; overflow: hidden; cursor: pointer; padding: 0;
  box-shadow: 0 1px 2px rgba(90,75,25,.04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.alfa .nw-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(120,100,40,.12); border-color: rgba(40,35,10,.14); }
.nw-card-ph { height: 168px; }
.nw-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.nw-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nw-card-date { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.nw-card-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.nw-card-excerpt { margin: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: #6a6557;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.nw-card-read { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nw-card-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #7a5f08; }
.alfa .nw-card:hover .nw-card-more { gap: 8px; }
.nw-empty { padding: 60px 24px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---- article ---- */
.nw-article { display: flex; flex-direction: column; }
.alfa .nw-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 9px 16px 9px 12px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.7);
  border: 1px solid rgba(40,35,10,.1); cursor: pointer; margin-bottom: 22px; transition: background .15s; }
.alfa .nw-back:hover { background: #fff; }
.nw-art-head { max-width: 760px; margin: 0 auto; width: 100%; }
.nw-art-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nw-art-metaitem { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.nw-art-title { margin: 16px 0 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.nw-art-byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(40,35,10,.1); }
.nw-art-author { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nw-art-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #7a5f08; background: rgba(245,200,75,.24); }
.alfa .nw-share { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.1); cursor: pointer; transition: background .15s; }
.alfa .nw-share:hover { background: rgba(31,30,27,.1); }
.nw-art-cover, .nw-figure.nw-art-cover { max-width: 900px; margin: 28px auto 0; width: 100%; }
.nw-art-cover .nw-figure-ph { height: clamp(240px, 34vw, 380px); }

/* body typography */
.nw-body { max-width: 760px; margin: 0 auto; width: 100%; padding-top: 30px; }
.nw-lead { margin: 0 0 26px; font-size: 19px; line-height: 1.6; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.nw-h2 { margin: 40px 0 14px; font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.nw-h3 { margin: 30px 0 12px; font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.nw-p { margin: 0 0 18px; font-size: 16px; line-height: 1.72; color: #45413a; }
.nw-figure { margin: 26px 0; }
.nw-figure-ph { height: 300px; border-radius: 20px; }
.nw-caption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); font-style: italic; }

.nw-ul, .nw-ol { margin: 0 0 22px; padding-left: 4px; list-style: none; counter-reset: nw; }
.nw-ul li, .nw-ol li { position: relative; padding-left: 32px; margin-bottom: 11px; font-size: 16px; line-height: 1.6; color: #45413a; }
.nw-ul li::before { content: ""; position: absolute; left: 8px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,200,75,.2); }
.nw-ol li { counter-increment: nw; }
.nw-ol li::before { content: counter(nw); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #7a5f08; background: rgba(245,200,75,.24); }

.nw-check { margin: 0 0 22px; padding: 0; list-style: none; }
.nw-check li { position: relative; padding-left: 34px; margin-bottom: 12px; font-size: 16px; line-height: 1.55; color: #45413a; }
.nw-check-box { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  color: transparent; border: 1.5px solid rgba(40,35,10,.22); background: #fff; }
.nw-check li.done { color: var(--ink); }
.nw-check li.done .nw-check-box { color: #fff; background: #1f8a5b; border-color: #1f8a5b; }
.nw-check li:not(.done) { color: #8c8775; }

.nw-table-wrap { margin: 24px 0; border: 1px solid rgba(40,35,10,.1); border-radius: 16px; overflow: hidden; }
.nw-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nw-table th { text-align: left; padding: 13px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: rgba(40,35,10,.04); border-bottom: 1px solid rgba(40,35,10,.1); }
.nw-table td { padding: 13px 18px; color: #45413a; border-bottom: 1px solid rgba(40,35,10,.06); font-variant-numeric: tabular-nums; }
.nw-table tr:last-child td { border-bottom: none; }
.nw-table .r { text-align: right; }
.nw-table tbody tr:hover { background: rgba(245,200,75,.06); }

.nw-quote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); }
.nw-quote p { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 500; font-style: italic; color: var(--ink); text-wrap: pretty; }
.nw-quote cite { display: block; margin-top: 12px; font-size: 13.5px; font-style: normal; font-weight: 600; color: var(--muted); }

.nw-callout { display: flex; gap: 14px; margin: 26px 0; padding: 18px 20px; border-radius: 18px;
  background: rgba(245,200,75,.14); border: 1px solid rgba(245,200,75,.4); }
.nw-callout-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #7a5f08; background: rgba(245,200,75,.3); }
.nw-callout p { margin: 0; align-self: center; font-size: 15px; line-height: 1.6; font-weight: 500; color: #5a4a13; }
.nw-divider { margin: 32px 0; border: none; border-top: 1px solid rgba(40,35,10,.1); }

/* more news */
.nw-more { max-width: 900px; margin: 44px auto 0; width: 100%; }
.nw-more-title { margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--ink); }
.nw-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 1000px) {
  .nw-grid, .nw-more-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nw-grid, .nw-more-grid { grid-template-columns: 1fr; }
  .nw-hero-excerpt { display: none; }
  .nw-hero-arrow { display: none; }
}

/* ============ FINANCE MODALS (.fm-*) ============ */
.fm-modal { width: min(560px, 100%); display: flex; flex-direction: column; padding: 22px 22px 18px; margin: auto; }
.pt-modal-head .fm-title { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.fm-title-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #1f1e1b; flex: 0 0 auto; }
.fm-body { display: flex; flex-direction: column; gap: 18px; padding: 2px 2px 4px; margin: 0 -2px; }

.fm-field { display: flex; flex-direction: column; gap: 9px; }
.fm-lbl { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fm-sublbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }

/* segmented control */
.fm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(31,30,27,.06); border-radius: 13px; padding: 5px; }
.alfa .fm-seg-btn { padding: 11px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); background: transparent; transition: background .16s, color .16s, box-shadow .16s; }
.alfa .fm-seg-btn.on { background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(40,30,8,.1); }
.alfa .fm-seg-btn:not(.on):hover { color: var(--ink); }

/* inputs */
.fm-input { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(40,35,10,.14); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; -moz-appearance: textfield; }
.fm-input.solo { border-radius: 12px; }
.fm-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.fm-input::-webkit-outer-spin-button, .fm-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fm-amount { display: flex; align-items: center; gap: 0; background: #fff; border: 1.5px solid rgba(40,35,10,.14); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fm-amount:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.fm-cur { padding: 0 4px 0 14px; font-size: 15px; font-weight: 700; color: var(--muted); }
.fm-amount .fm-input { border: none; box-shadow: none; padding-left: 6px; font-variant-numeric: tabular-nums; }
.alfa .fm-maxbtn { flex: 0 0 auto; margin-right: 6px; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #8c6d0a; background: rgba(245,200,75,.24); transition: background .15s; }
.alfa .fm-maxbtn:hover { background: rgba(245,200,75,.4); }

.fm-err { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #b0533f; }
.fm-avail { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fm-found { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #1f8a5b; }
.fm-found svg { color: #1f8a5b; }
.fm-found b { color: var(--ink); }

/* payment method rows */
.fm-methods { display: flex; flex-direction: column; gap: 10px; }
.fm-method { border: 1.5px solid rgba(40,35,10,.12); border-radius: 15px; overflow: hidden; transition: border-color .15s, background .15s; }
.fm-method { position: relative; }
.fm-method.on { border-color: var(--accent); background: rgba(245,200,75,.06); z-index: 20; overflow: visible; }
.fm-method.off { opacity: .62; }
.alfa .fm-method-head { display: flex; align-items: center; gap: 13px; width: 100%; padding: 14px 16px; background: transparent; text-align: left; }
.alfa .fm-method-head:disabled { cursor: not-allowed; }
.fm-radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(40,35,10,.2); display: grid; place-items: center; transition: border-color .15s; }
.fm-method.on .fm-radio { border-color: var(--accent); }
.fm-radio i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.fm-method-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(31,30,27,.06); color: var(--ink); }
.fm-method.on .fm-method-ic { background: var(--accent); color: #1f1e1b; }
.fm-method-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.fm-method-title { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.fm-method-sub { font-size: 12.5px; color: var(--muted); }
.fm-soon { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #8c6d0a; background: rgba(245,200,75,.26); }
.fm-method-body { padding: 4px 16px 16px 16px; border-top: 1px solid rgba(40,35,10,.08); margin-top: 2px; padding-top: 14px; }

/* withdraw address */
.fm-addr { margin-top: 14px; }
.fm-addr-box { display: flex; align-items: center; gap: 10px; background: rgba(31,30,27,.05); border: 1px solid rgba(40,35,10,.1); border-radius: 12px; padding: 11px 13px; }
.fm-addr-box code { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--ink); word-break: break-all; flex: 1; }
.fm-addr-lock { flex: 0 0 auto; color: var(--muted); display: inline-flex; }
.fm-addr-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.fm-noaddr { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: rgba(212,85,74,.08); border: 1px solid rgba(212,85,74,.2); border-radius: 12px; padding: 13px 14px; }
.fm-noaddr-ic { flex: 0 0 auto; color: #b0533f; display: inline-flex; }
.fm-noaddr-txt { flex: 1; min-width: 140px; font-size: 12.5px; font-weight: 600; color: #8a3f30; }
.alfa a.fm-noaddr-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #1f1e1b; background: var(--accent); text-decoration: none; white-space: nowrap; transition: filter .15s; }
.alfa a.fm-noaddr-btn:hover { filter: brightness(1.05); }

/* summary block */
.fm-summary { background: rgba(31,30,27,.035); border: 1px solid rgba(40,35,10,.08); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 11px; }
.fm-sum-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 2px; }
.fm-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.fm-sum-l { color: var(--muted); font-weight: 500; flex: 0 0 auto; }
.fm-sum-v { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.fm-sum-x { color: var(--muted); font-weight: 500; font-size: 12px; }
.fm-sum-addr { font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 12px; }
.fm-sum-row.big { font-size: 15px; }
.fm-sum-row.big .fm-sum-l { font-weight: 700; color: var(--ink); }
.fm-sum-row.big .fm-sum-v { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.fm-sum-v.accent { color: #8c6d0a; }
.fm-sum-div { height: 1px; background: rgba(40,35,10,.1); margin: 3px 0; }

.fm-info { display: flex; gap: 9px; margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.fm-info svg { flex: 0 0 auto; color: #b3ad9d; margin-top: 1px; }

/* footer */
.fm-foot { display: flex; gap: 12px; padding-top: 16px; margin-top: 4px; border-top: 1px solid rgba(40,35,10,.08); }
.fm-foot .bp-btn { flex: 1; justify-content: center; }

/* success */
.fm-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 12px 20px; }
.fm-ok-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; color: #1f1e1b; background: var(--accent); box-shadow: 0 12px 30px rgba(210,165,30,.3); margin-bottom: 20px; }
.fm-ok-title { font-size: 23px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); margin: 0 0 9px; }
.fm-ok-sub { font-size: 14px; color: #55524b; line-height: 1.55; margin: 0 0 24px; max-width: 380px; }

/* top-up invoice */
.fm-invoice { display: flex; flex-direction: column; gap: 14px; }
.fm-inv-ok { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.fm-inv-ok-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #1f1e1b; flex: 0 0 auto; }
.fm-inv-lead { font-size: 13px; color: var(--muted); line-height: 1.5; margin: -4px 0 6px; }

@media (max-width: 560px) {
  .fm-modal { border-radius: 20px 20px 0 0; }
  .bp-inv-body { justify-content: center; }
}

/* ============================================================
   SETTINGS PAGE (set-*)
   ============================================================ */
.set-shell { display: grid; grid-template-columns: 268px 1fr; gap: 24px; align-items: start; }

/* left tab nav */
.set-nav { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 20px; }
.alfa .set-navbtn { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 15px 16px; border-radius: 18px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  background: var(--card-bg); border: 1px solid var(--card-border); cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s; }
.alfa .set-navbtn:hover:not(.on) { background: #fff; transform: translateX(2px); }
.set-navbtn-ic { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px;
  background: rgba(31,30,27,.06); color: var(--ink); flex: 0 0 auto; transition: background .15s, color .15s; }
.set-navbtn-lb { flex: 1 1 auto; line-height: 1.25; }
.set-navbtn-chev { display: inline-flex; color: var(--muted); opacity: .5; transition: transform .15s, opacity .15s; }
.alfa .set-navbtn.on { background: #232220; color: #fff; border-color: transparent; box-shadow: 0 14px 30px rgba(30,22,6,.22); }
.alfa .set-navbtn.on .set-navbtn-ic { background: var(--accent); color: #1f1e1b; }
.alfa .set-navbtn.on .set-navbtn-chev { opacity: 1; color: var(--accent); transform: translateX(2px); }

/* panel + cards */
.set-panel { min-width: 0; }
.set-stack { display: flex; flex-direction: column; gap: 22px; }
.set-card { padding: 26px 28px; }
.set-card-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.set-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(31,30,27,.06); color: var(--ink); flex: 0 0 auto; }
.set-card-htxt { flex: 1 1 240px; min-width: 0; }
.set-card-title { margin: 2px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.set-card-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 620px; }

/* status badge */
.set-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; flex: 0 0 auto; }
.set-badge-dot { width: 8px; height: 8px; border-radius: 50%; }
.set-badge.off { color: #8a6a12; background: #fbf1cf; } .set-badge.off .set-badge-dot { background: #d9a520; }
.set-badge.on { color: #1c6b39; background: #dcf3e2; } .set-badge.on .set-badge-dot { background: #2fa155; }

/* forms */
.set-form { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; max-width: 520px; }
.set-field { display: flex; flex-direction: column; gap: 8px; }
.set-flabel { font-size: 13px; font-weight: 600; color: var(--ink); }
.set-input-wrap { position: relative; display: flex; align-items: center; }
.set-input { width: 100%; box-sizing: border-box; padding: 13px 16px; border-radius: 16px;
  border: 1px solid rgba(40,35,10,.14); background: #fff; color: var(--ink); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.set-input.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; letter-spacing: .2px; }
.set-input-wrap .set-input { padding-right: 46px; }
.set-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.set-input::placeholder { color: #b7b09a; }
.set-input-wrap.err .set-input { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.15); }
.alfa .set-eye { position: absolute; right: 6px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 12px; color: var(--muted); background: none; cursor: pointer; transition: background .14s, color .14s; }
.alfa .set-eye:hover { background: rgba(31,30,27,.06); color: var(--ink); }
.set-err { font-size: 12.5px; font-weight: 600; color: #c9433f; }
.set-hint { font-size: 12.5px; color: var(--muted); }
.set-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.set-form-foot.end { justify-content: flex-end; }

/* password strength */
.set-pw-strength { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.set-pw-meter-row { display: flex; align-items: center; gap: 12px; }
.set-pw-bars { display: flex; gap: 6px; flex: 1 1 auto; }
.set-pw-bars span { flex: 1; height: 6px; border-radius: 999px; background: rgba(40,35,10,.12); transition: background .2s; }
.set-pw-bars.lvl-1 span:nth-child(-n+1),
.set-pw-bars.lvl-2 span:nth-child(-n+2),
.set-pw-bars.lvl-3 span:nth-child(-n+3),
.set-pw-bars.lvl-4 span:nth-child(-n+4) { background: currentColor; }
.set-pw-bars.lvl-1 { color: #e0574f; } .set-pw-bars.lvl-2 { color: #e5a13a; }
.set-pw-bars.lvl-3 { color: #6fb04a; } .set-pw-bars.lvl-4 { color: #2fa155; }
.set-pw-lvl { font-size: 12.5px; font-weight: 700; flex: 0 0 auto; }
.set-pw-lvl.weak { color: #d0554d; } .set-pw-lvl.medium { color: #cf9227; }
.set-pw-lvl.good { color: #5f9c3e; } .set-pw-lvl.strong { color: #268a48; }
.set-pw-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.set-pw-checks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); transition: color .15s; }
.set-pw-checks li svg { color: #c4bda9; flex: 0 0 auto; transition: color .15s; }
.set-pw-checks li.ok { color: var(--ink); }
.set-pw-checks li.ok svg { color: #2fa155; }

.alfa .set-save-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #1f1e1b; background: var(--accent); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: filter .15s, transform .12s, opacity .15s; }
.alfa .set-save-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.alfa .set-save-btn:disabled { opacity: .45; cursor: not-allowed; }
.alfa .set-save-btn.full { width: 100%; justify-content: center; }

/* pin input */
.set-pin-field { display: flex; flex-direction: column; gap: 9px; }
.set-pin { display: flex; gap: 10px; }
.set-pin-cell { width: 48px; height: 56px; text-align: center; border-radius: 16px; border: 1px solid rgba(40,35,10,.16);
  background: #fff; color: var(--ink); font: inherit; font-size: 22px; font-weight: 700; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.set-pin-cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }

/* 2fa */
.set-2fa-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 24px; align-items: start; }
.set-2fa-how { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.set-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.set-steps li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.set-step-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #232220; color: #fff; font-size: 13px; font-weight: 700; }
.set-2fa-secret { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.set-secret-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.set-secret { flex: 1 1 auto; padding: 12px 15px; border-radius: 14px; background: #f5f1e6; border: 1px dashed rgba(40,35,10,.2);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--ink); }
.alfa .set-copy { display: inline-flex; align-items: center; gap: 7px; padding: 11px 15px; border-radius: 14px;
  font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.06); border: 1px solid rgba(40,35,10,.1);
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.alfa .set-copy:hover { background: rgba(31,30,27,.11); }
.alfa .set-copy.done { color: #1c6b39; background: #dcf3e2; border-color: transparent; }
.set-2fa-connect { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 20px;
  background: #faf7ef; border: 1px solid var(--card-border); min-width: 0; }
.set-qr { align-self: center; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid rgba(40,35,10,.1); line-height: 0; }
.set-qr svg { display: block; width: 200px; height: 200px; max-width: 100%; }
.set-2fa-code-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.set-2fa-code-field .set-pin { gap: 8px; }
.set-2fa-code-field .set-pin-cell { flex: 1 1 0; width: auto; min-width: 0; height: 48px; font-size: 19px; border-radius: 13px; }

.set-2fa-active { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 22px;
  padding: 24px; border-radius: 18px; background: #f2f9f3; border: 1px solid #cfebd6; }
.set-2fa-active-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: #2fa155; color: #fff; }
.set-2fa-active-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); max-width: 560px; }
.alfa .set-disc-btn { padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #c9433f;
  background: #fff; border: 1px solid #e7b7b5; cursor: pointer; transition: background .15s; }
.alfa .set-disc-btn:hover { background: #fdeeed; }

/* wallets */
.set-wallets { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.set-wallet { padding: 18px 20px; border-radius: 18px; background: #faf7ef; border: 1px solid var(--card-border); }
.set-wallet-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.set-wallet-id { display: flex; flex-direction: column; line-height: 1.3; flex: 1 1 auto; min-width: 0; }
.set-wallet-id b { font-size: 15px; font-weight: 700; color: var(--ink); }
.set-wallet-id span { font-size: 12.5px; color: var(--muted); }
.set-wallet-st { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.set-wallet-st.ok { color: #1c6b39; background: #dcf3e2; }
.set-wallet-st.no { color: #8a6a12; background: #fbf1cf; }
.set-wallet-row { display: flex; gap: 12px; align-items: center; }
.set-wallet-row .set-input { flex: 1 1 auto; }

/* notifications */
.set-notif-list { display: flex; flex-direction: column; }
.set-notif-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(40,35,10,.08); }
.set-notif-row:first-child { border-top: none; }
.set-notif-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.set-notif-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.set-notif-sub { font-size: 13px; line-height: 1.45; color: var(--muted); }
.set-form .set-notif-list { margin-top: 22px; }
.set-notif-list + .set-form-foot, .set-form .set-form-foot { margin-top: 8px; }

/* switch */
.alfa .set-switch { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 0; background: none; border: none; cursor: pointer; }
.set-switch-knob { position: relative; width: 46px; height: 27px; border-radius: 999px; background: #d9d2c1; transition: background .18s; flex: 0 0 auto; }
.set-switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.alfa .set-switch.on .set-switch-knob { background: var(--accent); }
.alfa .set-switch.on .set-switch-knob::after { transform: translateX(19px); }
.set-switch-txt { font-size: 12.5px; font-weight: 700; color: var(--muted); width: 26px; text-align: left; }
.alfa .set-switch.on .set-switch-txt { color: var(--ink); }

/* toast */
.set-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 200;
  display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #fff; background: #232220; box-shadow: 0 16px 40px rgba(30,22,6,.34);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.set-toast.show { opacity: 1; transform: translate(-50%, 0); }
.set-toast-ic { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #1f1e1b; flex: 0 0 auto; }

@media (max-width: 1080px) {
  .set-shell { grid-template-columns: 1fr; }
  .set-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .alfa .set-navbtn { flex: 1 1 200px; }
  .set-navbtn-chev { display: none; }
}
@media (max-width: 720px) {
  .set-2fa-grid { grid-template-columns: 1fr; }
  .set-card { padding: 22px 18px; }
  .alfa .set-navbtn { flex: 1 1 100%; }
  .set-form-foot { flex-direction: column-reverse; align-items: stretch; }
  .alfa .set-save-btn { justify-content: center; }
  .set-wallet-row { flex-direction: column; align-items: stretch; }
  .set-notif-row { flex-wrap: wrap; }
  .set-pw-checks { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .set-pin { gap: 7px; }
  .set-pin-cell { width: 42px; height: 52px; font-size: 19px; }
}

/* ============================================================
   PROFILE PAGE (pf-*)
   ============================================================ */
.pf-stack { display: flex; flex-direction: column; gap: 22px; }
.pf-card { padding: 26px 28px; }
.pf-card-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pf-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(31,30,27,.06); color: var(--ink); flex: 0 0 auto; }
.pf-card-htxt { flex: 1 1 240px; min-width: 0; }
.pf-card-title { margin: 2px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pf-card-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 640px; }

/* avatar */
.pf-avatar-block { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.alfa .pf-avatar { position: relative; width: 104px; height: 104px; border-radius: 50%; flex: 0 0 auto; padding: 0;
  cursor: pointer; overflow: hidden; background: linear-gradient(135deg, #2c2b27, #56544c); box-shadow: 0 8px 22px rgba(30,22,6,.2); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-init { display: grid; place-items: center; width: 100%; height: 100%; color: #fff; font-size: 34px; font-weight: 600; letter-spacing: .5px; }
.pf-avatar-cam { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px;
  color: #fff; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); opacity: 0; transition: opacity .18s; }
.alfa .pf-avatar:hover .pf-avatar-cam { opacity: 1; }
.pf-avatar-side { display: flex; flex-direction: column; gap: 8px; }
.alfa .pf-avatar-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(31,30,27,.06); border: 1px solid rgba(40,35,10,.1);
  cursor: pointer; align-self: flex-start; transition: background .15s; }
.alfa .pf-avatar-btn:hover { background: rgba(31,30,27,.11); }
.pf-avatar-hint { font-size: 12.5px; color: var(--muted); }

/* note */
.pf-note { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 4px; padding: 13px 16px; border-radius: 14px;
  background: #f7f2e6; border: 1px solid rgba(40,35,10,.1); font-size: 13px; line-height: 1.5; color: #7a6f52; }
.pf-note svg { flex: 0 0 auto; margin-top: 1px; color: #b79a3e; }

/* registration grid (locked) */
.pf-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 18px; }
.pf-locked { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 16px;
  background: #f3efe4; border: 1px solid rgba(40,35,10,.1); }
.pf-locked-val { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-locked-ic { color: #a89f88; flex: 0 0 auto; }
.pf-locked-flag { width: 24px !important; height: 16px !important; flex: 0 0 auto; }

/* contacts form */
.pf-form { margin-top: 22px; }
.pf-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-radius: 16px;
  background: #faf7ef; border: 1px solid var(--card-border); margin-bottom: 22px; }
.pf-toggle-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-toggle-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pf-toggle-sub { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pf-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; transition: opacity .2s; }
.pf-contacts-grid.dim { opacity: .5; }
.pf-contact { display: flex; align-items: flex-end; gap: 12px; }
.pf-contact-badge { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; margin-bottom: 1px; }
.pf-contact-char { font-size: 20px; font-weight: 800; line-height: 1; }
.pf-contact-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.pf-contact-main .set-flabel { font-size: 12.5px; }
.pf-form-foot { display: flex; justify-content: flex-end; margin-top: 24px; }

/* sessions */
.pf-sessions { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.pf-session { display: flex; align-items: center; gap: 15px; padding: 16px 18px; border-radius: 16px;
  background: #faf7ef; border: 1px solid var(--card-border); }
.pf-session.current { background: #fbf6e6; border-color: rgba(214,165,30,.35); }
.pf-session-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(40,35,10,.1); color: var(--ink); flex: 0 0 auto; }
.pf-session.current .pf-session-ic { background: var(--accent); border-color: transparent; color: #1f1e1b; }
.pf-session-main { flex: 1 1 auto; min-width: 0; }
.pf-session-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-session-dev { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.pf-session-badge { font-size: 11.5px; font-weight: 700; color: #8a6a12; background: #fbf1cf; padding: 3px 10px; border-radius: 999px; }
.pf-session-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 4px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-session-dot { width: 3px; height: 3px; border-radius: 50%; background: #c4bda9; }
.alfa .pf-session-end { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #c9433f; background: #fff; border: 1px solid #e7b7b5; cursor: pointer; transition: background .15s; }
.alfa .pf-session-end:hover { background: #fdeeed; }
.pf-sessions-empty { padding: 24px; text-align: center; font-size: 14px; color: var(--muted); }

@media (max-width: 720px) {
  .pf-card { padding: 22px 18px; }
  .pf-reg-grid, .pf-contacts-grid { grid-template-columns: 1fr; }
  .pf-toggle-row { flex-wrap: wrap; }
  .pf-form-foot .set-save-btn { width: 100%; justify-content: center; }
  .pf-session { flex-wrap: wrap; }
  .pf-session-end { margin-left: 59px; }
}
@media (max-width: 460px) {
  .pf-avatar-block { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ERROR PAGES (er-*)
   ============================================================ */
.er-cx { min-height: 100%; justify-content: flex-start; }
.er-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alfa .er-top .cx-logo { text-decoration: none; }
.er-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 0 60px; gap: 4px; }
.er-badge { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 26px;
  background: var(--accent); color: #1f1e1b; box-shadow: 0 16px 38px rgba(210,165,30,.32); margin-bottom: 8px; }
.er-code { font-size: clamp(96px, 18vw, 172px); font-weight: 700; line-height: .92; letter-spacing: -.04em;
  color: var(--ink); }
.er-title { margin: 10px 0 0; font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.er-sub { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); max-width: 480px; text-wrap: pretty; }
.er-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.alfa .er-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: filter .15s, transform .12s, background .15s; }
.alfa .er-btn.solid { color: #1f1e1b; background: var(--accent); border: 1px solid transparent; box-shadow: 0 10px 24px rgba(210,165,30,.28); }
.alfa .er-btn.solid:hover { filter: brightness(1.05); transform: translateY(-1px); }
.alfa .er-btn.ghost { color: var(--ink); background: #fff; border: 1px solid rgba(40,35,10,.14); }
.alfa .er-btn.ghost:hover { background: #faf7ef; }
.er-meta { margin-top: 22px; font-size: 12.5px; color: #a89f88; font-variant-numeric: tabular-nums; letter-spacing: .3px; }

/* ============================================================
   UI COMPONENTS SHOWCASE (cmp-*)
   ============================================================ */
.cmp-intro { margin: -6px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.cmp-stack { display: flex; flex-direction: column; gap: 22px; }
.cmp-card { padding: 26px 28px; }
.cmp-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.cmp-card-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px;
  background: rgba(31,30,27,.06); color: var(--ink); flex: 0 0 auto; }
.cmp-card-htxt { flex: 1 1 auto; min-width: 0; }
.cmp-card-title { margin: 2px 0 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cmp-card-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 640px; }

/* inline preview row */
.cmp-preview { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px;
  background: #faf7ef; border: 1px solid var(--card-border); margin-bottom: 20px; }

/* triggers */
.cmp-triggers { display: flex; flex-wrap: wrap; gap: 12px; }
.alfa .cmp-trigger { display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--tc, var(--ink)); background: var(--ts, #fff);
  border: 1px solid color-mix(in srgb, var(--tc, #999) 24%, transparent); cursor: pointer; transition: transform .12s, filter .15s; }
.alfa .cmp-trigger:hover { transform: translateY(-1px); filter: brightness(.98); }
.cmp-trigger-ic { display: inline-flex; }
.alfa .cmp-trigger.dark { color: #fff; background: #232220; border-color: transparent; }
.alfa .cmp-trigger.dark:hover { filter: brightness(1.25); }

/* toast */
.cmp-toasts { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 12px;
  width: min(380px, calc(100vw - 40px)); pointer-events: none; }
.cmp-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 13px; padding: 15px 16px;
  border-radius: 16px; background: #fff; border: 1px solid rgba(40,35,10,.1);
  box-shadow: 0 18px 44px rgba(60,48,12,.16); border-left: 4px solid var(--tc);
  animation: cmpToastIn .32s cubic-bezier(.2,.9,.3,1.3); }
.cmp-toast.static { animation: none; box-shadow: 0 1px 2px rgba(90,75,25,.05); }
@keyframes cmpToastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
.cmp-toast-ic { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; }
.cmp-toast-body { flex: 1 1 auto; min-width: 0; }
.cmp-toast-title { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cmp-toast-msg { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.alfa .cmp-toast-x { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px;
  color: var(--muted); background: none; cursor: pointer; transition: background .14s, color .14s; margin: -3px -4px 0 0; }
.alfa .cmp-toast-x:hover { background: rgba(31,30,27,.07); color: var(--ink); }

/* modal */
.cmp-scrim { display: grid; place-items: safe center; overflow-y: auto; padding: 24px; }
.cmp-modal { position: relative; width: min(440px, 100%); margin: auto; background: #fff; border-radius: 24px;
  padding: 34px 32px 28px; text-align: center; box-shadow: 0 30px 80px rgba(30,22,6,.34);
  display: flex; flex-direction: column; align-items: center;
  animation: cmpModalIn .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes cmpModalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.alfa .cmp-modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; color: var(--muted); background: none; cursor: pointer; transition: background .14s, color .14s; }
.alfa .cmp-modal-x:hover { background: rgba(31,30,27,.07); color: var(--ink); }
.cmp-modal-ic { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 22px; }
.cmp-modal-title { margin: 20px 0 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.cmp-modal-msg { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); max-width: 340px; }
.cmp-modal-foot { display: flex; gap: 12px; justify-content: center; width: 100%; margin-top: 26px; }
.alfa .cmp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; cursor: pointer; transition: filter .15s, transform .12s, background .15s; }
.alfa .cmp-btn.solid { color: #1f1e1b; background: var(--accent); border: 1px solid transparent; }
.alfa .cmp-btn.solid:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.alfa .cmp-btn.solid:disabled { opacity: .45; cursor: not-allowed; }
.alfa .cmp-btn.ghost { color: var(--ink); background: rgba(31,30,27,.06); border: 1px solid rgba(40,35,10,.1); }
.alfa .cmp-btn.ghost:hover { background: rgba(31,30,27,.11); }
.alfa .cmp-btn.wide { flex: 1 1 auto; max-width: 240px; }

/* pin modal */
.cmp-pin-modal { padding-bottom: 24px; }
.cmp-pin { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.cmp-pin-cell { width: 46px; height: 56px; text-align: center; border-radius: 15px; border: 1px solid rgba(40,35,10,.16);
  background: #fff; color: var(--ink); font: inherit; font-size: 22px; font-weight: 700; box-sizing: border-box; transition: border-color .15s, box-shadow .15s; }
.cmp-pin-cell:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,200,75,.25); }
.cmp-pin.invalid .cmp-pin-cell { border-color: #d9534f; }
.cmp-pin.invalid { animation: cmpShake .35s; }
@keyframes cmpShake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.cmp-pin-tip { margin-top: 14px; font-size: 12.5px; color: #a89f88; }
.cmp-pin-err { margin-top: 14px; font-size: 13px; font-weight: 600; color: #c9433f; }
.cmp-pin-modal .cmp-btn.wide { margin-top: 20px; width: 100%; max-width: none; }
.alfa .cmp-pin-forgot { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.alfa .cmp-pin-forgot:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 720px) {
  .cmp-card { padding: 22px 18px; }
  .cmp-toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
  .cmp-modal { padding: 30px 22px 24px; }
}

/* ============================================================
   AUTH PAGES (au-*) — login + password recovery
   ============================================================ */
.au-cx { min-height: 100%; justify-content: flex-start; }
.au-top { width: min(430px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.au-main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 0 52px; gap: 22px; }
.alfa .au-logo { font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: var(--ink);
  text-decoration: none; padding: 8px 20px; border-radius: 999px; border: 1.5px solid rgba(31,30,27,.16); }

/* card */
.au-card { width: min(430px, 100%); background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 28px; box-shadow: var(--card-shadow); padding: 40px 38px 34px; box-sizing: border-box; }
.au-head { text-align: center; margin-bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.au-badge { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px;
  border-radius: 20px; background: var(--accent); color: #1f1e1b; box-shadow: 0 12px 28px rgba(210,165,30,.3);
  margin-bottom: 6px; }
.au-title { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); text-wrap: balance; }
.au-sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.au-email-b { color: var(--ink); font-weight: 600; }
.alfa .au-link { color: #8c6d0a; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(140,109,10,.3); }
.alfa .au-link:hover { border-bottom-color: #8c6d0a; }

/* form */
.au-form { display: flex; flex-direction: column; gap: 16px; }
.au-field { display: flex; flex-direction: column; gap: 7px; }
.au-flabel { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.au-flabel.center { text-align: center; }
.au-input-wrap { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid rgba(40,35,10,.13);
  border-radius: 14px; padding: 0 14px; transition: border-color .15s, box-shadow .15s; }
.au-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,200,75,.22); }
.au-input-wrap.err { border-color: #cf5a48; box-shadow: 0 0 0 4px rgba(207,90,72,.13); }
.au-input-ic { flex: 0 0 auto; color: #a89f88; display: grid; place-items: center; }
.au-input-wrap:focus-within .au-input-ic { color: var(--muted); }
.au-input { flex: 1 1 auto; min-width: 0; border: none; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); padding: 13px 0; }
.au-input::placeholder { color: #b7ae97; }
.au-eye { flex: 0 0 auto; color: #a89f88; padding: 4px; display: grid; place-items: center; cursor: pointer; }
.au-eye:hover { color: var(--ink); }
.au-err { font-size: 12.5px; color: #b0533f; font-weight: 500; }
.au-err.center { text-align: center; }

/* password strength */
.au-pw-strength { display: flex; align-items: center; gap: 11px; margin-top: -4px; }
.au-pw-bars { display: flex; gap: 5px; flex: 1 1 auto; }
.au-pw-bars span { height: 5px; flex: 1; border-radius: 999px; background: rgba(40,35,10,.11); transition: background .2s; }
.au-pw-bars.lvl-1 span:nth-child(-n+1), .au-pw-bars.lvl-2 span:nth-child(-n+2) { background: #d0554d; }
.au-pw-bars.lvl-3 span:nth-child(-n+3) { background: #e0a83a; }
.au-pw-bars.lvl-4 span { background: #1f8a5b; }
.au-pw-lvl { flex: 0 0 auto; font-size: 12px; font-weight: 700; }
.au-pw-lvl.weak { color: #b0533f; }
.au-pw-lvl.medium { color: #b47f16; }
.au-pw-lvl.good { color: #b47f16; }
.au-pw-lvl.strong { color: #1f8a5b; }
.au-hint { font-size: 12px; color: #b7ae97; text-align: center; margin-top: 2px; }

/* buttons */
.alfa .au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 14px 22px; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; border: 1px solid transparent; transition: filter .15s, transform .12s, background .15s; margin-top: 4px; }
.alfa .au-btn.solid { color: #1f1e1b; background: var(--accent); box-shadow: 0 10px 24px rgba(210,165,30,.26); }
.alfa .au-btn.solid:hover { filter: brightness(1.05); transform: translateY(-1px); }
.alfa .au-btn.ghost { color: var(--ink); background: #fff; border-color: rgba(40,35,10,.14); box-shadow: none; margin-top: 0; }
.alfa .au-btn.ghost:hover { background: #faf7ef; }
.au-btn.full { margin-top: 8px; }

/* consent checkbox */
.au-check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; margin-top: 2px; }
.au-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.au-check-box { flex: 0 0 auto; width: 21px; height: 21px; border-radius: 7px; border: 1.5px solid rgba(40,35,10,.22);
  background: #fff; display: grid; place-items: center; color: transparent; margin-top: 1px; transition: all .15s; }
.au-check input:checked + .au-check-box { background: var(--accent); border-color: var(--accent); color: #1f1e1b; }
.au-check input:focus-visible + .au-check-box { box-shadow: 0 0 0 4px rgba(245,200,75,.3); }
.au-check.err .au-check-box { border-color: #cf5a48; }
.au-check-txt { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* captcha placeholder */
.au-captcha { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #f7f6f1; border: 1px solid rgba(40,35,10,.14); border-radius: 12px; padding: 12px 16px 12px 14px; }
.au-captcha.err { border-color: #cf5a48; }
.au-captcha-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.au-captcha-empty, .au-captcha-tick, .au-captcha-spin { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 4px;
  display: grid; place-items: center; background: #fff; border: 2px solid rgba(40,35,10,.28); box-sizing: border-box; }
.au-captcha.done .au-captcha-tick { border-color: transparent; background: transparent; color: #1f8a5b; }
.au-captcha-spin { border: 2.5px solid rgba(40,35,10,.16); border-top-color: #2a6fdb; background: transparent;
  animation: au-spin .7s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-captcha-lb { font-size: 14px; font-weight: 500; color: var(--ink); }
.au-captcha-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.au-captcha-logo { width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(#4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75% 100%);
  -webkit-mask: radial-gradient(circle 6px at 50% 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 6px at 50% 50%, transparent 98%, #000 100%); }
.au-captcha-sub { font-size: 8.5px; color: #a89f88; max-width: 74px; line-height: 1.3; }

/* forgot link */
.alfa .au-forgot { display: block; text-align: center; margin-top: 20px; font-size: 14px; font-weight: 600;
  color: var(--muted); text-decoration: none; }
.alfa .au-forgot:hover { color: var(--ink); }

/* bottom back link */
.alfa .au-bottom-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); text-decoration: none; }
.alfa .au-bottom-link:hover { color: var(--ink); }

/* recovery stepper dots */
.au-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.au-step-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(40,35,10,.14); transition: all .2s; }
.au-step-dot.done { background: var(--accent); }
.au-step-dot.on { width: 26px; background: var(--accent); }

/* 6-cell code input */
.au-code { display: flex; gap: 10px; justify-content: center; }
.au-code-cell { width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; color: var(--ink);
  background: #fff; border: 1.5px solid rgba(40,35,10,.13); border-radius: 14px; outline: none;
  font-variant-numeric: tabular-nums; transition: border-color .15s, box-shadow .15s; }
.au-code-cell:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,200,75,.22); }
.au-code.err .au-code-cell { border-color: #cf5a48; }

/* success */
.au-success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0; }
.au-success-ic { display: inline-flex; align-items: center; justify-content: center; width: 78px; height: 78px;
  border-radius: 50%; background: rgba(31,138,91,.14); color: #1f8a5b; margin-bottom: 8px; }

/* compact footer (no card backdrop) */
.au-footer { margin-top: auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 18px; padding: 14px 0 4px; }
.au-footer-copy { font-size: 12.5px; color: #a89f88; }
.au-footer-links { display: inline-flex; gap: 16px; }
.alfa .au-footer-links a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.alfa .au-footer-links a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .au-card { padding: 32px 22px 26px; border-radius: 22px; }
  .alfa .au-logo { font-size: 26px; }
  .au-code { gap: 7px; }
  .au-code-cell { width: 44px; height: 54px; font-size: 22px; }
}


