:root {
  color-scheme: dark;
  --app-bg: #151522;
  --app-bg-deep: #0d0d16;
  --panel: #222132;
  --panel-raised: #282f39;
  --panel-deep: #01080e;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --ink: #f6f7fb;
  --muted: #9f9f9f;
  --muted-bright: #c7c9d5;
  --gold: #f0b90b;
  --gold-soft: #f7c434;
  --green: #01c895;
  --blue: #66b6ff;
  --pink: #f783ac;
  --violet: #a78bfa;
  --red: #f6465d;
  --shadow: 0 18px 50px rgba(0, 0, 0, .26);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--app-bg); }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at 50% -10%, rgba(80, 64, 130, .18), transparent 34rem), var(--app-bg); color: var(--ink); font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.auth-body { background: var(--app-bg-deep); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a, button, input, select { outline-color: var(--gold); outline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(21, 21, 34, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(1180px, calc(100% - 32px)); min-height: 72px; margin: 0 auto; }
.brand-mark { display: inline-flex; align-items: center; gap: .7rem; min-width: 0; }
.brand-glyph { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-soft), #d87d00); color: #1a1300; font-size: .7rem; font-weight: 950; letter-spacing: -.06em; box-shadow: 0 5px 18px rgba(240, 185, 11, .2); }
.brand-copy { display: flex; flex-direction: column; color: var(--ink); font-size: .96rem; font-weight: 900; letter-spacing: .13em; line-height: 1.05; white-space: nowrap; }
.brand-copy > span { color: var(--gold); }
.brand-copy small { margin-top: .24rem; color: var(--muted); font-size: .5rem; font-weight: 700; letter-spacing: .14em; }
.header-account { display: flex; align-items: center; gap: .7rem; }
.account-chip { display: inline-flex; align-items: center; gap: .45rem; max-width: 230px; padding: .4rem .65rem; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-bright); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.account-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(1, 200, 149, .1); }
.logout-form { margin: 0; }
.site-header .header-icon-button { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); }
.header-icon-button:hover { border-color: var(--line-strong); color: var(--ink); }
.logout-label { font-size: .78rem; }
.language-switcher { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.language-switcher label { color: var(--muted); font-size: .72rem; font-weight: 700; }
.language-switcher select { width: auto; min-width: 86px; margin: 0; padding: .4rem .55rem; border-color: var(--line); background: rgba(0, 0, 0, .18); color: var(--muted-bright); font-size: .75rem; }
.engine-topbar .language-switcher { margin-left: 0; }
.engine-topbar .language-switcher label { color: #6f6b64; }
.engine-topbar .language-switcher select { border-color: #d6d0c6; background: rgba(255, 255, 255, .8); color: #0f0e0f; }
.desktop-nav { display: flex; gap: .25rem; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 .7rem; overflow-x: auto; scrollbar-width: none; }
.desktop-nav::-webkit-scrollbar { display: none; }
.nav-link { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .72rem; border-radius: 9px; color: var(--muted); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.nav-link:hover, .nav-link.is-active { background: rgba(240, 185, 11, .1); color: var(--gold-soft); }

.app-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 2.2rem 0 4rem; }
.member-body .app-shell { padding-bottom: 4rem; }
.alert { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid transparent; border-radius: 11px; }
.success { border-color: rgba(1, 200, 149, .22); background: rgba(1, 200, 149, .1); color: var(--green); }
.error { border-color: rgba(246, 70, 93, .25); background: rgba(246, 70, 93, .1); color: #ff8b9a; }
.muted { color: var(--muted); }
.eyebrow { margin: 0; color: var(--gold-soft); font-size: .68rem; font-weight: 850; letter-spacing: .16em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .45rem; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.04em; line-height: 1.08; }
h2 { margin-bottom: 0; font-size: 1.05rem; letter-spacing: -.015em; }
h3 { font-size: .95rem; }

.dashboard-heading, .page-head, .hero, .section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.dashboard-heading { margin-bottom: 1.35rem; }
.dashboard-heading .muted, .page-head p:not(.eyebrow), .hero p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; }
.status-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .7rem; border: 1px solid rgba(1, 200, 149, .2); border-radius: 999px; background: rgba(1, 200, 149, .08); color: var(--green); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; }
.section-head { margin-bottom: 1rem; }
.section-head--compact { margin-bottom: .75rem; }
.section-link { color: var(--gold-soft); font-size: .8rem; font-weight: 750; }
.section-link:hover { color: var(--ink); }

.balance-card { position: relative; min-height: 225px; margin-bottom: 1rem; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: linear-gradient(125deg, #01080e 0%, #11121f 64%, #28204b 130%); box-shadow: inset 0 2px 16px rgba(255, 255, 255, .06), var(--shadow); }
.balance-card::after { position: absolute; right: -9rem; bottom: -11rem; width: 27rem; height: 27rem; border: 1px solid rgba(240, 185, 11, .13); border-radius: 50%; box-shadow: 0 0 0 34px rgba(240, 185, 11, .025), 0 0 0 68px rgba(240, 185, 11, .018); content: ""; pointer-events: none; }
.balance-orb { position: absolute; top: -8rem; left: -7rem; width: 22rem; height: 16rem; border-radius: 50%; background: rgba(124, 93, 180, .14); filter: blur(2px); pointer-events: none; }
.balance-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; min-height: 225px; padding: 1.65rem 1.75rem; }
.balance-label-row { display: flex; align-items: center; gap: .6rem; color: var(--muted-bright); }
.balance-label { font-size: .85rem; font-weight: 550; }
.balance-card .balance-toggle { display: inline-grid; place-items: center; width: 25px; height: 25px; min-height: 25px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: .9rem; }
.balance-toggle:hover { background: rgba(255, 255, 255, .08); color: var(--ink); }
.balance-main { margin-top: .75rem; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 650; letter-spacing: -.06em; line-height: 1; }
.balance-secondary { display: flex; align-items: center; gap: .65rem; margin-top: .7rem; color: var(--muted); font-size: .78rem; }
.balance-secondary strong { color: var(--muted-bright); font-size: .9rem; font-weight: 650; }
.balance-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: 1.35rem; }
.action-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 36px; padding: .55rem .85rem; border: 1px solid transparent; border-radius: 8px; font-size: .78rem; font-weight: 800; }
.action-button--gold { background: var(--gold); color: #1c1500; box-shadow: 0 8px 20px rgba(240, 185, 11, .15); }
.action-button--gold:hover { background: var(--gold-soft); }
.action-button--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--ink); }
.action-button--ghost:hover { background: rgba(255, 255, 255, .09); }
.notice-strip { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.35rem; padding: .7rem .9rem; border: 1px solid rgba(240, 185, 11, .16); border-radius: 10px; background: rgba(240, 185, 11, .06); color: var(--muted-bright); font-size: .78rem; }
.notice-icon { color: var(--gold); }

.quick-section { margin-bottom: 1.4rem; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; }
.quick-card { position: relative; display: flex; min-height: 132px; flex-direction: column; align-items: flex-start; padding: .8rem .72rem .7rem; overflow: hidden; border: 1px solid transparent; border-radius: 12px; background: var(--panel-raised); transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.quick-card:hover { transform: translateY(-2px); border-color: rgba(240, 185, 11, .25); background: #303845; }
.quick-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: .8rem; border-radius: 9px; background: rgba(255, 255, 255, .1); color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.quick-icon--gold { background: rgba(240, 185, 11, .14); color: var(--gold); }
.quick-icon--blue { background: rgba(102, 182, 255, .14); color: var(--blue); }
.quick-icon--green { background: rgba(1, 200, 149, .14); color: var(--green); }
.quick-icon--pink { background: rgba(247, 131, 172, .14); color: var(--pink); }
.quick-icon--violet { background: rgba(167, 139, 250, .14); color: var(--violet); }
.quick-title { overflow: hidden; color: var(--ink); font-size: .78rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.quick-card small { max-width: 100%; margin-top: .18rem; overflow: hidden; color: var(--muted); font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.quick-arrow { position: absolute; right: .65rem; bottom: .5rem; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: #201700; font-size: 1rem; line-height: 1; }

.panel, .card, .auth-card, .package-card, .metrics article { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.panel { margin-bottom: 1rem; padding: 1.25rem; }
.activity-panel { min-height: 160px; }
.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; align-items: center; gap: .7rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover .activity-arrow { color: var(--gold); transform: translateX(2px); }
.activity-token { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(240, 185, 11, .15); color: var(--gold); font-size: .75rem; font-weight: 850; }
.activity-main { min-width: 0; }
.activity-main strong, .activity-amount strong { display: block; color: var(--ink); font-size: .82rem; }
.activity-main small, .activity-amount small { display: block; color: var(--muted); font-size: .68rem; }
.activity-amount { min-width: 92px; text-align: right; }
.activity-arrow { color: var(--muted); font-size: 1.3rem; transition: transform .15s ease, color .15s ease; }
.progress-track { display: block; width: 100%; height: 4px; margin-top: .45rem; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.empty { padding: 1.8rem 0; color: var(--muted); text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.metrics article { padding: 1rem; }
.metrics article span { display: block; color: var(--muted); font-size: .72rem; }
.metrics article strong { display: block; margin-top: .25rem; color: var(--ink); font-size: 1.35rem; font-weight: 700; }
.metrics--dashboard { margin-top: .15rem; }

.page-head, .hero { margin-bottom: 1.5rem; }
.page-head h1, .hero h1, .auth-card h1 { margin: .2rem 0 .45rem; }
.hero { padding: 1.25rem 1.35rem; border: 1px solid rgba(240, 185, 11, .16); border-radius: var(--radius); background: linear-gradient(120deg, rgba(240, 185, 11, .08), rgba(102, 182, 255, .05)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .78rem .65rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--muted-bright); font-size: .8rem; }
tr:last-child td { border-bottom: 0; }
.pill, .pool-list span { display: inline-flex; padding: .22rem .55rem; border-radius: 999px; background: rgba(240, 185, 11, .12); color: var(--gold-soft); font-size: .68rem; font-weight: 750; }
.positive { color: var(--green) !important; }
.negative, .validation { color: #ff8b9a !important; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; }
.package-card { display: flex; flex-direction: column; padding: 1.2rem; }
.package-card:hover { border-color: rgba(240, 185, 11, .28); }
.package-code { color: var(--gold); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.price { display: block; margin: .55rem 0 .95rem; font-size: 2rem; letter-spacing: -.05em; }
.price small { color: var(--muted); font-size: .65rem; letter-spacing: .05em; }
dl { margin: 0 0 1.1rem; }
dl > div { display: flex; justify-content: space-between; gap: .7rem; padding: .46rem 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: .75rem; }
dd { margin: 0; color: var(--muted-bright); font-size: .75rem; font-weight: 700; text-align: right; }
.package-card form { margin-top: auto; }
.group-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.group-row:last-child { border-bottom: 0; }
.group-row small { display: block; color: var(--muted); }
.group-row em { color: var(--gold); font-size: .68rem; font-style: normal; }
.rank-big { font-size: 1.15rem; font-weight: 800; }
progress { width: 100%; height: 7px; accent-color: var(--gold); }
.pool-list { display: flex; flex-wrap: wrap; gap: .45rem; }

button, .button, .primary { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: .62rem .9rem; border: 0; border-radius: 9px; background: var(--gold); color: #1c1500; font-weight: 800; }
button:hover, .button:hover, .primary:hover { background: var(--gold-soft); }
.inline { width: auto; }
.full { width: 100%; }
.secondary { background: var(--panel-raised); color: var(--ink); }
.secondary:hover { background: #353d4a; }
.link-button { padding: 0; background: transparent; color: var(--muted); }
input, select { width: 100%; margin: .35rem 0 1rem; padding: .72rem .8rem; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--app-bg-deep); color: var(--ink); }
input::placeholder { color: #6e7180; }
label { display: block; color: var(--muted-bright); font-size: .82rem; font-weight: 700; }
.stack { display: grid; gap: .35rem; }
.inline-form, .run-form { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: .65rem; align-items: end; margin-bottom: 1rem; }
.run-form { grid-template-columns: minmax(150px, 1fr) auto; }
.inline-form input, .inline-form select, .run-form input { margin: 0; }
.auth-card { width: min(430px, 100%); margin: 7vh auto; padding: 1.6rem; }
.auth-card .primary { width: 100%; }
.exchange-login-card { width: min(560px, 100%); }
.exchange-callback-box { display: grid; gap: .45rem; margin: 1.2rem 0 .8rem; padding: .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--app-bg-deep); }
.exchange-callback-box span { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.exchange-callback-box code { color: var(--muted-bright); font-size: .74rem; line-height: 1.5; overflow-wrap: anywhere; }
.exchange-callback-help { font-size: .78rem; }
.subtle-link { display: inline-block; margin-top: 1rem; color: var(--muted); text-decoration: underline; }

.mobile-tabbar { display: none; }

@media (max-width: 980px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 64px; }
  .desktop-nav { display: none; }
  .account-chip { max-width: 130px; }
  .logout-label { display: none; }
  .header-icon-button { width: 34px; height: 34px; padding: 0; }
  .app-shell, .member-body .app-shell { width: min(100% - 24px, 560px); padding-top: 1.35rem; padding-bottom: 5.7rem; }
  .dashboard-heading, .page-head, .hero, .section-head { align-items: flex-start; flex-direction: column; }
  .dashboard-heading .status-badge { align-self: flex-start; }
  .balance-card__body { min-height: 235px; padding: 1.35rem 1.2rem; }
  .balance-main { font-size: 2.4rem; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .quick-card { min-height: 122px; }
  .split { grid-template-columns: 1fr; }
  .metrics--dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics article { padding: .85rem; }
  .metrics article strong { font-size: 1.15rem; }
  .activity-row { grid-template-columns: 32px minmax(0, 1fr) 16px; gap: .55rem; }
  .activity-token { width: 30px; height: 30px; }
  .activity-amount { display: none; }
  .mobile-tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); height: 68px; padding: .45rem .5rem calc(.45rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(21, 21, 34, .96); box-shadow: 0 -12px 35px rgba(0, 0, 0, .2); backdrop-filter: blur(18px); }
  .tab-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; border-radius: 9px; color: var(--muted); }
  .tab-link > span { font-size: 1.15rem; line-height: 1; }
  .tab-link small { font-size: .6rem; font-weight: 700; }
  .tab-link.is-active { background: rgba(240, 185, 11, .1); color: var(--gold-soft); }
  .table-wrap { margin-inline: -.5rem; padding-inline: .5rem; }
  .page-head .primary, .hero .primary { width: 100%; }
  .inline-form, .run-form { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-copy { font-size: .86rem; }
  .brand-copy small { font-size: .42rem; }
  .account-chip { max-width: 92px; padding-inline: .45rem; font-size: .68rem; }
  .balance-main { font-size: 2.05rem; }
  .balance-actions { width: 100%; }
  .action-button { flex: 1; }
}

/* Cloud Engine route — matched to the supplied /wc/engine reference. */
.engine-body {
  background: #e9e9e9;
  color: #0f0e0f;
}
.engine-body a:focus-visible,
.engine-body button:focus-visible {
  outline-color: #604500;
}

.engine-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 40px;
  align-items: center;
  width: min(450px, 100%);
  height: 60px;
  padding: 0 10px;
  transform: translateX(-50%);
  background: rgba(250, 248, 244, .96);
  color: #0f0e0f;
  backdrop-filter: blur(12px);
}

.engine-topbar > a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #0f0e0f;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.engine-topbar > strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engine-topbar form { margin: 0; }
.engine-topbar button {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #0f0e0f;
  font-size: 17px;
}
.engine-topbar button:hover { background: rgba(15, 14, 15, .06); }

.engine-app-shell {
  width: min(450px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 60px 0 110px;
  overflow: hidden;
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  box-shadow: 0 0 34px rgba(0, 0, 0, .12);
}

.engine-app-shell > .alert {
  position: relative;
  z-index: 20;
  margin: 12px 16px;
  border-radius: 8px;
}
.engine-app-shell > .alert.success {
  border-color: #1e6b4a;
  background: #eefaf4;
  color: #15563d;
}
.engine-app-shell > .alert.error {
  border-color: #a72434;
  background: #fff0f1;
  color: #711322;
}

.win-cloud-page {
  --engine-gold: #fbc42c;
  --engine-dark: #0f0e0f;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #faf8f4 0%, #fff 100%);
  color: var(--engine-dark);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.engine-banner {
  position: relative;
  width: 100%;
}

.engine-banner > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 420 / 280;
  object-fit: cover;
}

.engine-banner__mask {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}

.engine-banner__mask--top {
  top: 0;
  height: 60px;
  background: linear-gradient(180deg, #faf8f4, rgba(250, 248, 244, 0));
}

.engine-banner__mask--bottom {
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, rgba(250, 248, 244, 0), rgba(250, 248, 244, .7) 45%, #faf8f4);
}

.engine-level {
  position: absolute;
  top: 42px;
  left: 39px;
  z-index: 10;
  display: flex;
  width: 60px;
  height: 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: url("/images/cloud-engine/level-badge.png") center / contain no-repeat;
  color: #edbf27;
  line-height: 1.05;
}

.engine-level span { font-size: 8px; font-weight: 500; }
.engine-level strong { max-width: 48px; margin-top: 3px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.engine-content {
  padding: 0 16px;
}

.engine-assets {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: -55px;
  margin-bottom: 16px;
}

.engine-asset-card {
  display: flex;
  min-width: 0;
  height: 130px;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 4px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 5px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(15, 14, 15, .05);
  color: #0f0e0f;
  text-align: center;
  backdrop-filter: blur(10px);
}

.engine-asset-icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(251, 243, 222, .85);
}

.engine-asset-icon img { width: 32px; height: 32px; object-fit: contain; }
.engine-asset-icon--burn { color: #efb82f; font-size: 24px; }
.engine-asset-label {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.1;
}
.engine-asset-label--two { flex-direction: column; gap: 2px; font-size: 10px; }
.engine-asset-card strong { max-width: 100%; overflow: hidden; font-size: 14px; line-height: 1.1; text-overflow: ellipsis; }
.engine-asset-card small { margin-top: 4px; font-size: 10px; font-weight: 550; }

.engine-currency-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -6px 0 16px; }
.engine-currency-strip article { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 7px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .1); }
.engine-currency-strip article > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.engine-currency-strip small { color: #777; font-size: 9px; }
.engine-currency-strip strong { color: #222; font-size: 13px; }
.engine-currency-mark { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; }
.engine-currency-mark--usdf { background: linear-gradient(135deg, #8050c4, #b47cf0); }
.engine-currency-mark--usdt { background: linear-gradient(135deg, #0f9f78, #5dd2a9); }

.engine-daily-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}

.engine-daily-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 550;
}
.engine-daily-row strong { font-size: 14px; font-weight: 700; }

.engine-progress {
  position: relative;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 10px;
  background: #101010;
}
.engine-progress > span {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--engine-gold);
  font-size: 8px;
  font-weight: 600;
}
.engine-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--engine-progress) * 1%);
  background: var(--engine-gold);
  opacity: .34;
}

.engine-network-card {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 14px 10px 24px;
  border-radius: 8px;
  background: #101010;
  color: #fff;
}

.engine-network-card article {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.engine-network-card article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 28px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  content: "";
}

.engine-network-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #2d2b28, #1e1d1b);
  color: var(--engine-gold);
  font-size: 18px;
}
.engine-network-icon img { width: 22px; height: 22px; object-fit: contain; }
.engine-network-copy { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.engine-network-copy small { display: flex; height: 28px; align-items: center; color: #fff; font-size: 9px; line-height: 1.1; }
.engine-network-copy strong { max-width: 58px; margin-top: 4px; overflow: hidden; color: var(--engine-gold); font-size: 13px; text-overflow: ellipsis; }
.engine-network-copy em { position: absolute; top: 100%; margin-top: 2px; color: #fff; font-size: 8px; font-style: normal; }

.engine-quick-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.engine-quick-actions a {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
  color: #0f0e0f;
}
.engine-quick-actions a > span { display: flex; min-width: 0; align-items: center; gap: 6px; overflow: hidden; font-size: 9px; font-weight: 650; white-space: nowrap; }
.engine-quick-actions img { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.engine-quick-actions b { display: grid; width: 12px; height: 12px; flex: 0 0 auto; place-items: center; border-radius: 2px; font-size: 14px; font-weight: 500; }

.engine-subpage .engine-content { padding-top: 16px; }
.engine-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}
.engine-page-heading-copy { display: flex; min-width: 0; align-items: center; gap: 10px; }
.engine-page-heading-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #fff8e7;
}
.engine-page-heading-icon img { width: 34px; height: 34px; object-fit: contain; }
.engine-page-kicker { margin: 0 0 2px; color: #966600; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.engine-page-heading h1 { margin: 0 0 3px; overflow: hidden; color: #111; font-size: 18px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; text-overflow: ellipsis; }
.engine-page-heading p:last-child { max-width: 290px; margin: 0; color: #777; font-size: 10px; line-height: 1.35; }
.engine-page-heading-action { display: inline-flex; min-height: 30px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 6px; background: linear-gradient(180deg, #fbc42c, #fba804); color: #111; font-size: 10px; font-weight: 750; }
.engine-page-heading-action:hover { background: linear-gradient(180deg, #ffd557, #fbae18); }

.engine-team-profile {
  position: relative;
  display: flex;
  min-height: 188px;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 16px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #fffdf7 62%, #fff5d8 100%);
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}
.engine-team-profile-copy { position: relative; z-index: 1; display: grid; min-width: 0; flex: 1; gap: 10px; }
.engine-team-profile-heading { display: flex; align-items: center; gap: 8px; }
.engine-team-profile-heading .engine-page-kicker { margin: 0; }
.engine-team-profile-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #fff8e7; }
.engine-team-profile-icon img { width: 23px; height: 23px; object-fit: contain; }
.engine-team-profile-row { display: grid; min-width: 0; gap: 4px; }
.engine-team-profile-label { color: #888; font-size: 9px; line-height: 1.2; }
.engine-team-profile-row > div { display: flex; min-width: 0; align-items: center; gap: 6px; }
.engine-team-profile-row code, .engine-team-profile-row strong { min-width: 0; overflow: hidden; color: #333; font-size: 10px; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.engine-team-profile-row > div > .engine-team-profile-code-value { color: #171717; font-size: 22px; font-weight: 750; letter-spacing: .1em; line-height: 1; }
.engine-team-profile-row code { font-family: inherit; }
.engine-copy-button { display: inline-flex; min-height: 24px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 4px 8px; border: 1px solid #f0c54a; border-radius: 5px; background: #fff; color: #966600; cursor: pointer; font: inherit; font-size: 9px; font-weight: 750; }
.engine-copy-button:hover, .engine-copy-button.is-copied { background: #fff2c7; }
.engine-copy-button.is-copy-failed { border-color: #cf7580; color: #a72434; }
.engine-team-cube { position: relative; width: 84px; height: 84px; flex: 0 0 auto; align-self: center; margin-right: 6px; transform: rotate(-18deg); opacity: .9; }
.engine-team-cube span { position: absolute; display: block; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .7); }
.engine-team-cube-top { top: 6px; left: 18px; background: linear-gradient(135deg, #ffe48b, #f6bb32); transform: skewX(-28deg) scaleY(.58); }
.engine-team-cube-front { top: 31px; left: 7px; background: linear-gradient(135deg, #fbc832, #e69a08); transform: skewY(28deg) scaleX(.58); }
.engine-team-cube-side { top: 31px; right: 7px; background: linear-gradient(135deg, #f2b21b, #c97b00); transform: skewY(-28deg) scaleX(.58); }
.engine-team-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.engine-team-summary article { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 12px 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .1); }
.engine-team-summary-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff8e7; }
.engine-team-summary-icon img { width: 24px; height: 24px; object-fit: contain; }
.engine-team-summary article div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.engine-team-summary small { color: #777; font-size: 9px; line-height: 1.2; }
.engine-team-summary strong { color: #171717; font-size: 18px; font-weight: 750; line-height: 1.15; }
.engine-team-summary em { color: #777; font-size: 10px; font-style: normal; font-weight: 600; }

.engine-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.engine-metric-card {
  display: grid;
  min-width: 0;
  min-height: 104px;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 8px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}
.engine-metric-card--wide { grid-column: 1 / -1; }
.engine-metric-icon { display: grid; width: 34px; height: 34px; grid-row: 1 / span 2; place-items: center; border-radius: 50%; background: #fff8e7; }
.engine-metric-icon img { width: 24px; height: 24px; object-fit: contain; }
.engine-metric-card > span:not(.engine-metric-icon) { align-self: end; color: #777; font-size: 9px; line-height: 1.2; }
.engine-metric-card strong { align-self: start; margin-top: 3px; overflow: hidden; color: #171717; font-size: 16px; font-weight: 750; line-height: 1.15; text-overflow: ellipsis; }

.engine-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.engine-panel { min-width: 0; margin-bottom: 16px; padding: 14px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .1); }
.engine-panel-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.engine-panel-heading img { width: 24px; height: 24px; object-fit: contain; }
.engine-panel-heading h2 { margin: 0; color: #171717; font-size: 13px; font-weight: 750; }
.engine-subpage table { color: #252525; }
.engine-subpage th { color: #888; font-size: 8px; letter-spacing: .06em; }
.engine-subpage td { color: #555; font-size: 10px; }
.engine-subpage th, .engine-subpage td { padding: 8px 5px; border-bottom-color: #ececec; }
.engine-subpage .positive { color: #16805e !important; }
.engine-subpage .negative { color: #a72434 !important; }
.engine-empty { padding: 20px 8px; color: #777; font-size: 11px; text-align: center; }
.engine-group-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #ececec; color: #555; font-size: 10px; }
.engine-group-row:last-child { border-bottom: 0; }
.engine-group-row strong { display: block; color: #222; font-size: 11px; }
.engine-group-row small { display: block; margin-top: 2px; color: #888; font-size: 9px; }
.engine-group-row em { display: inline-flex; margin-left: 3px; color: #966600; font-size: 8px; font-style: normal; }
.engine-rank-big { margin: 5px 0 12px; color: #222; font-size: 13px; font-weight: 750; line-height: 1.35; }
.engine-panel h3 { margin: 18px 0 8px; color: #777; font-size: 10px; }
.engine-subpage progress { width: 100%; height: 7px; accent-color: #f0ad18; }

.engine-investment-list { display: grid; gap: 12px; }
.engine-investment-card { padding: 12px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .1); }
.engine-investment-main { display: flex; min-width: 0; align-items: center; gap: 10px; }
.engine-investment-image { display: flex; width: 58px; height: 58px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 10px; background: #f6f6f6; }
.engine-investment-image img { width: 45px; height: 45px; object-fit: contain; }
.engine-investment-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.engine-investment-copy .engine-product-name { gap: 5px; }
.engine-investment-copy .engine-run-days { overflow: hidden; text-overflow: ellipsis; }
.engine-investment-win { display: flex; min-width: 58px; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 1px; }
.engine-investment-win small { color: #888; font-size: 8px; }
.engine-investment-win strong { color: #222; font-size: 16px; line-height: 1.1; }
.engine-investment-win em { color: #966600; font-size: 8px; font-style: normal; }
.engine-investment-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 12px; padding-top: 9px; border-top: 1px solid #ececec; }
.engine-investment-stats > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.engine-investment-stats span { color: #888; font-size: 8px; }
.engine-investment-stats strong { overflow: hidden; color: #333; font-size: 10px; line-height: 1.2; text-overflow: ellipsis; }
.engine-investment-progress { display: grid; gap: 5px; margin-top: 10px; }
.engine-investment-progress small { color: #888; font-size: 8px; text-align: right; }

.engine-shop-container {
  margin-bottom: 16px;
  padding: 16px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}
.engine-shop-container > header { margin-bottom: 12px; }
.engine-shop-container > header h1 { margin: 0 0 4px; color: #0f0e0f; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.engine-shop-container > header p { margin: 0; color: #626262; font-size: 10px; font-weight: 550; }
.engine-shop-list { display: grid; gap: 12px; }

.engine-shop-item {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}

.engine-shop-main {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  gap: 12px;
}

.engine-product-image {
  display: flex;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f6f6f6;
}
.engine-product-image img { width: 46px; max-height: 46px; object-fit: contain; }

.engine-product-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.engine-product-name { display: flex; align-items: center; gap: 4px; }
.engine-product-name h2 { margin: 0; overflow: hidden; color: #0f0e0f; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.engine-diamond { color: #ffb300; font-size: 13px; filter: drop-shadow(0 1px 1px rgba(255, 179, 0, .3)); }
.engine-tier-label { padding: 2px 5px; border-radius: 999px; background: rgba(118, 87, 0, .1); color: #765700; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.engine-run-days { color: #454444; font-size: 10px; font-weight: 550; white-space: nowrap; }
.engine-power { display: flex; align-items: center; gap: 3px; color: #765700; font-size: 10px; font-weight: 700; white-space: nowrap; }
.engine-power b { font-size: 12px; }
.engine-product-description { margin: 2px 0; overflow: hidden; color: #626262; font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.engine-benefit {
  align-self: flex-start;
  min-height: 22px;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #8742ee, #7343ac);
  box-shadow: 0 2px 4px rgba(135, 66, 238, .2);
  color: #fff;
  font-size: 9px;
  font-weight: 650;
}
.engine-benefit:hover { background: linear-gradient(180deg, #9459ee, #7343ac); }

.engine-product-price {
  display: flex;
  min-width: 86px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.engine-product-price del { color: #656565; font-size: 10px; font-weight: 600; }
.engine-product-price > strong { display: flex; align-items: baseline; gap: 2px; color: #0f0e0f; font-size: 10px; line-height: 1.1; }
.engine-product-price > strong span { font-size: 18px; font-weight: 750; }
.engine-product-price em { padding: 4px; border-radius: 10px; background: linear-gradient(135deg, #b42328, #7f1418); box-shadow: 0 2px 4px rgba(127, 20, 24, .22); color: #fff; font-size: 8px; font-style: normal; font-weight: 750; line-height: 1; white-space: nowrap; }

.engine-buy-button {
  min-width: 74px;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 5px;
  background: linear-gradient(180deg, #fbc42c, #fba804);
  color: #0f0e0f;
  font-size: 10px;
  font-weight: 700;
}
.engine-buy-button:hover { background: linear-gradient(180deg, #ffd557, #fbae18); }

.engine-activation-banner {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}
.engine-activation-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.engine-activation-banner > span { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 14px 16px 14px 30%; color: #f7d39d; }
.engine-activation-banner strong { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; }
.engine-activation-banner strong i { width: 4px; height: 4px; flex: 0 0 auto; border-radius: 50%; background: #f7d39d; }
.engine-activation-banner small { font-size: 9px; font-weight: 500; line-height: 1.25; }

.engine-catalog-page { padding-top: 16px; }
.engine-catalog-page .engine-content { padding-top: 0; }

.engine-dialog {
  width: min(400px, calc(100% - 32px));
  max-height: min(720px, calc(100vh - 32px));
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #0f0e0f;
  text-align: center;
}
.engine-dialog::backdrop { background: #0e0e0e99; backdrop-filter: blur(2px); }
.engine-dialog[open] { animation: engine-dialog-in .18s ease-out both; }
@keyframes engine-dialog-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.engine-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(15, 14, 15, .06);
  color: #0f0e0f;
  font-size: 24px;
  font-weight: 400;
}
.engine-dialog-close:hover { background: rgba(15, 14, 15, .12); }
.engine-dialog h2 { margin: 0 0 6px; color: #0f0e0f; font-size: 20px; }
.engine-dialog-kicker { display: block; margin-bottom: 6px; color: #80500d; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.engine-dialog-secondary, .engine-dialog-confirm { width: 100%; min-height: 40px; border-radius: 8px; font-size: 12px; font-weight: 750; }
.engine-dialog-secondary { border: 1px solid #ddd; background: #fff; color: #0f0e0f; }
.engine-dialog-secondary:hover { background: #f5f5f5; }
.engine-dialog-confirm { background: linear-gradient(180deg, #fbc42c, #fba804); color: #0f0e0f; }

.engine-rights-dialog { width: min(296px, calc(100% - 32px)); }
.engine-rights-card {
  position: relative;
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  text-align: left;
}
.engine-rights-card--gold { --rights-accent: #b47918; --rights-soft: #fff5dc; --rights-deep: #6c4300; }
.engine-rights-card--purple { --rights-accent: #8050c4; --rights-soft: #f6efff; --rights-deep: #4b2a78; }
.engine-rights-card .engine-dialog-close { z-index: 5; color: #fff; background: rgba(15, 14, 15, .22); }
.engine-rights-ribbon {
  position: absolute;
  top: 12px;
  left: -3px;
  z-index: 4;
  padding: 5px 12px 5px 10px;
  border-radius: 0 10px 10px 0;
  background: var(--rights-accent);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.engine-rights-banner { position: relative; height: 120px; overflow: hidden; background: linear-gradient(135deg, var(--rights-deep), var(--rights-accent)); }
.engine-rights-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.engine-rights-banner-glow { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .45)); pointer-events: none; }
.engine-rights-heading { padding: 12px 16px 0; text-align: center; }
.engine-rights-heading h2 { margin: 0; font-size: 18px; font-weight: 800; }
.engine-rights-heading p { margin: 4px 0 0; color: #777; font-size: 10px; }
.engine-rights-price { display: flex; align-items: baseline; justify-content: center; gap: 5px; padding: 8px 16px 10px; color: var(--rights-deep); }
.engine-rights-price strong { font-size: 27px; letter-spacing: -.05em; }
.engine-rights-price span { color: #888; font-size: 9px; }
.engine-rights-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px 10px; border-block: 1px solid #ededed; }
.engine-rights-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; text-align: center; }
.engine-rights-stats > div + div { border-left: 1px solid #ededed; }
.engine-rights-stats span { color: #888; font-size: 9px; }
.engine-rights-stats strong { color: #222; font-size: 14px; }
.engine-rights-wt { margin: 0 16px 10px; padding: 10px; border-radius: 8px; background: var(--rights-soft); }
.engine-rights-wt-title { display: flex; align-items: center; gap: 6px; color: var(--rights-deep); }
.engine-rights-wt-title strong { font-size: 11px; }
.engine-rights-wt-title b { margin-left: auto; font-size: 12px; }
.engine-rights-wt-icon { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--rights-accent); color: #fff; font-size: 10px; font-weight: 800; }
.engine-rights-wt p { margin: 7px 0; color: #555; font-size: 9px; line-height: 1.35; }
.engine-rights-daily { display: flex; justify-content: space-between; padding-top: 7px; border-top: 1px solid rgba(128, 80, 196, .14); color: #777; font-size: 9px; }
.engine-rights-daily strong { color: var(--rights-deep); font-size: 11px; }
.engine-rights-benefits { margin: 0 16px 14px; }
.engine-rights-benefits h3 { margin: 0 0 7px; color: #222; font-size: 11px; }
.engine-rights-benefits p { display: flex; align-items: center; gap: 6px; margin: 5px 0; color: #626262; font-size: 9px; }
.engine-rights-benefits p span { color: var(--rights-accent); font-size: 11px; font-weight: 800; }
.engine-rights-card > .engine-dialog-secondary { width: calc(100% - 32px); margin: 0 16px 16px; }

.engine-buy-dialog { width: min(390px, calc(100% - 32px)); }
.engine-buy-card { position: relative; max-height: min(720px, calc(100vh - 32px)); overflow: auto; padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.engine-buy-heading { display: flex; align-items: center; gap: 12px; padding: 2px 18px 14px 0; text-align: left; }
.engine-buy-heading img { width: 66px; height: 66px; flex: 0 0 auto; border-radius: 10px; background: #f5f5f5; object-fit: contain; }
.engine-buy-heading h2 { margin: 0 0 3px; font-size: 18px; }
.engine-buy-heading p { margin: 0; color: #777; font-size: 10px; }
.engine-buy-heading .engine-dialog-kicker { margin-bottom: 4px; }
.engine-buy-card form { display: block; }
.engine-payment-options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; text-align: left; }
.engine-payment-options legend { margin-bottom: 7px; color: #222; font-size: 11px; font-weight: 800; }
.engine-payment-option { display: flex; min-height: 54px; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid #e6e6e6; border-radius: 9px; background: #fff; cursor: pointer; }
.engine-payment-option:hover, .engine-payment-option.is-selected { border-color: var(--engine-gold); background: #fffaf0; }
.engine-payment-option input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #f0ad18; }
.engine-payment-option-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.engine-payment-option-copy strong { color: #222; font-size: 11px; }
.engine-payment-option-copy small { color: #888; font-size: 8px; }
.engine-payment-option-amount { margin-left: auto; color: #493000; font-size: 9px; font-weight: 800; text-align: right; }
.engine-buy-note { margin: 10px 0 14px; color: #888; font-size: 9px; line-height: 1.35; text-align: left; }
.engine-dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; }
.engine-dialog-actions .engine-dialog-secondary, .engine-dialog-actions .engine-dialog-confirm { width: auto; }
.engine-price-pair { flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.engine-price-pair span { font-size: 13px !important; }
.engine-price-pair i { color: #777; font-size: 10px; font-style: normal; }

/* Dashboard-only reference geometry. Engine subpages keep their compact layout. */
.engine-dashboard-performance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.engine-dashboard-performance article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px;
  border: 2px solid #fbc42c;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .1);
}
.engine-dashboard-performance small { color: #777; font-size: 9px; line-height: 1.2; }
.engine-dashboard-performance strong { overflow: hidden; color: #222; font-size: 17px; font-weight: 750; text-overflow: ellipsis; }

.engine-dashboard-body { overflow: hidden; background: #faf8f4; }
.engine-dashboard-body .engine-topbar--dashboard { right: 0; left: 0; width: 100%; height: 60px; grid-template-columns: 43px minmax(0, 1fr) 24px; padding: 0 15px; border: 0; border-radius: 0; transform: none; }
.engine-dashboard-body .engine-topbar--dashboard > a { width: 43px; transform: translateX(-12px); }
.engine-dashboard-body .engine-topbar--dashboard > strong { font-size: 18px; font-weight: 600; text-align: left; }
.engine-topbar__spacer { display: block; width: 24px; height: 36px; }
.engine-dashboard-body .engine-app-shell--dashboard { width: 100%; height: 100vh; min-height: 0; margin: 0; padding: 60px 0 24px; overflow-y: auto; overscroll-behavior: contain; border-radius: 0; background: #faf8f4; box-shadow: none; scrollbar-width: none; }
.engine-dashboard-body .engine-app-shell--dashboard::-webkit-scrollbar { display: none; }
.engine-dashboard .engine-banner > img { aspect-ratio: 3 / 2; }
.engine-dashboard .engine-level { top: 42px; left: 39px; width: 60px; height: 60px; }
.engine-dashboard .engine-level span { font-size: 8px; }
.engine-dashboard .engine-level strong { font-size: 12px; }
.engine-dashboard .engine-content { max-width: none; margin: 0; padding: 0 16px; }
.engine-dashboard .engine-assets { gap: 10px; margin-top: -55px; }
.engine-dashboard .engine-asset-card { height: 130px; padding: 12px 4px; border: 2px solid #d99535; border-radius: 14px; box-shadow: none; }
.engine-dashboard .engine-asset-icon { width: 44px; height: 44px; }
.engine-dashboard .engine-asset-card:first-child .engine-asset-icon { height: 30.08px; margin-top: 6px; }
.engine-dashboard .engine-asset-icon img { width: 32px; height: auto; }
.engine-dashboard .engine-asset-card:nth-child(3) .engine-asset-icon img { width: 43px; height: 43px; }
.engine-dashboard .engine-asset-label { min-height: 30px; font-size: 12px; }
.engine-dashboard .engine-asset-label--split, .engine-dashboard .engine-performance-label--split { flex-direction: column; gap: 0; }
.engine-dashboard .engine-asset-card strong { font-size: 15px; line-height: 16.5px; }
.engine-dashboard .engine-asset-unit { margin-top: 4px; }
.engine-dashboard .engine-dashboard-performance { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.engine-dashboard .engine-dashboard-performance article { height: 155.594px; align-items: center; justify-content: flex-start; gap: 0; overflow: visible; padding: 12px 6px; border-color: #d99535; text-align: center; }
.engine-performance-icon { display: grid; width: 72px; height: 72px; flex: 0 0 auto; margin-bottom: 8px; place-items: center; border-radius: 0; background: transparent; }
.engine-performance-icon img { width: 72px; height: 72px; object-fit: contain; }
.engine-dashboard .engine-dashboard-performance article:nth-child(1) .engine-performance-icon img { transform: scale(1.65); }
.engine-dashboard .engine-dashboard-performance article:nth-child(2) .engine-performance-icon img { transform: scale(1.35); }
.engine-dashboard .engine-dashboard-performance article:nth-child(4) .engine-performance-icon img { transform: scale(1.6); }
.engine-dashboard .engine-dashboard-performance small { height: 28px; min-height: 28px; color: #0f0e0f; font-size: 11px; line-height: 1.25; text-align: center; }
.engine-dashboard .engine-dashboard-performance .engine-performance-label--split { display: flex; }
.engine-dashboard .engine-dashboard-performance strong { max-width: 100%; margin-top: 4px; color: #e9b12e; font-size: 13px; line-height: 1.2; }
.engine-dashboard .engine-daily-card { display: grid; height: 72px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 14px; row-gap: 12px; margin-bottom: 16px; padding: 14px 16px; border-radius: 10px; }
.engine-dashboard .engine-daily-row { font-size: 12px; }
.engine-dashboard .engine-daily-row strong { font-size: 14px; }
.engine-dashboard .engine-progress { grid-column: 1 / -1; }
.engine-dashboard .engine-progress-copy { display: inline; }
.engine-dashboard .engine-network-card { display: grid; height: 18.6667vw; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; padding: 1.77778vw .66667vw; border-radius: 2.66667vw; }
.engine-dashboard .engine-network-card article { flex-direction: row; gap: 1.11111vw; }
.engine-dashboard .engine-network-card article:not(:last-child)::after { height: 13.77778vw; }
.engine-dashboard .engine-network-icon { width: 8vw; height: 8vw; border-radius: 0; background: transparent; }
.engine-dashboard .engine-network-icon img { width: 100%; height: 100%; }
.engine-dashboard .engine-network-copy { align-items: flex-start; text-align: left; }
.engine-dashboard .engine-network-copy small { height: auto; font-size: 1.77778vw; line-height: 1.12; }
.engine-dashboard .engine-network-copy em { position: static; display: block; color: inherit; font-size: 1.77778vw; font-style: normal; line-height: 1.12; white-space: nowrap; }
.engine-dashboard .engine-network-copy strong { max-width: 100%; margin-top: .22222vw; color: #e9b12e; font-size: 2.11111vw; line-height: 1.12; }
.engine-dashboard .engine-quick-actions { gap: 8px; margin-bottom: 16px; }
.engine-dashboard .engine-quick-actions a { height: 40px; padding: 6px 8px; border-radius: 6px; }
.engine-dashboard .engine-quick-actions a > span { font-size: clamp(8px, 1vw, 12px); }
.engine-dashboard .engine-quick-actions b img { display: block; width: 12px; height: 12px; }
.engine-dashboard .engine-shop-container { padding: 16px 12px; }
.engine-dashboard .engine-shop-container > header { margin-bottom: 12px; }
.engine-dashboard .engine-shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.engine-dashboard .engine-shop-container > header h1 { margin-bottom: 4px; font-size: 14px; }
.engine-dashboard .engine-shop-container > header p { font-size: 10px; }
.engine-dashboard .engine-wt-accelerator { display: inline-flex; height: 5.77778vw; align-items: center; gap: .88889vw; padding: 0 2.22222vw 0 1.77778vw; border-radius: 999px; background: #d94848; color: #fff; font-size: 2.22222vw; font-weight: 800; }
.engine-dashboard .engine-wt-accelerator i { font-style: normal; }
.engine-dashboard .engine-shop-list { grid-template-columns: 1fr; gap: 2.66667vw; }
.engine-dashboard .engine-shop-item { height: 24.66667vw; min-height: 0; gap: 1.77778vw; padding: 2.22222vw 1.77778vw; border: 0; border-radius: 2.22222vw; }
.engine-dashboard .engine-shop-main { gap: 1.77778vw; }
.engine-dashboard .engine-product-image { width: 14.44444vw; height: 14.44444vw; border-radius: 2.22222vw; }
.engine-dashboard .engine-product-image img { width: 100%; height: 100%; max-height: none; }
.engine-dashboard .engine-product-name { gap: .88889vw; }
.engine-dashboard .engine-product-name h2 { font-size: 3.11111vw; }
.engine-dashboard .engine-tier-label { padding: .44444vw 1.11111vw; font-size: 1.77778vw; }
.engine-dashboard .engine-product-copy, .engine-dashboard .engine-product-price { gap: .44444vw; }
.engine-dashboard .engine-run-days, .engine-dashboard .engine-power { font-size: 2.22222vw; }
.engine-dashboard .engine-power b { font-size: 2.66667vw; }
.engine-dashboard .engine-product-description { margin: .44444vw 0; font-size: 2vw; }
.engine-dashboard .engine-benefit { min-height: 4.88889vw; margin-top: .88889vw; padding: .44444vw 2.22222vw; border-radius: 1.11111vw; font-size: 2vw; }
.engine-dashboard .engine-product-price { min-width: 19.11111vw; }
.engine-dashboard .engine-price-pair { font-size: 2.66667vw; }
.engine-dashboard .engine-price-pair span { font-size: 4vw !important; }
.engine-dashboard .engine-price-pair i { font-size: 2.22222vw; }
.engine-dashboard .engine-buy-button { min-width: 16.44444vw; min-height: 4.88889vw; padding: .88889vw 2.22222vw; border-radius: .88889vw; font-size: 2.22222vw; }
.engine-dashboard .engine-activation-banner { min-height: 66px; margin-bottom: 16px; border-radius: 10px; }
.engine-dashboard .engine-activation-banner > span { padding: 12px 16px 12px 30%; }
.engine-dashboard .engine-activation-form { position: absolute; inset: 0; z-index: 3; margin: 0; }
.engine-dashboard .engine-activation-submit { position: absolute; inset: 0; width: 100%; min-height: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; color: transparent; cursor: pointer; }
.engine-dashboard .engine-activation-submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.engine-dashboard .engine-activation-submit:focus-visible { outline: 2px solid #f7d39d; outline-offset: -3px; }
.engine-dashboard .engine-activation-banner.is-activated .engine-activation-form { display: none; }
.engine-dashboard-body.engine-body .mobile-tabbar.engine-dashboard-tabbar { position: fixed; right: 16px; bottom: 0; left: 16px; z-index: 101; display: grid; width: auto; height: 64px; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 8px 10px; border-radius: 40px; background: linear-gradient(180deg, #282f39, #22262f); transform: none; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link { min-width: 0; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link > span { font-size: 24px; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link > span img { display: block; width: 24px; height: 24px; object-fit: contain; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link small { font-size: 12px; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link.is-active { background: transparent; color: #c3c3c3; font-weight: 700; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link.is-active::after { display: none; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link:nth-child(4) > span img { width: 36px; height: 24px; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link--wt > span { position: absolute; top: -45px; display: grid; width: 74px; height: 74px; place-items: center; border: 3px solid #faf8f4; border-radius: 50%; background: linear-gradient(180deg, #393b42, #17181c); color: #fff; font-size: 18px; font-weight: 900; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link--wt > span img { width: 42px; height: 42px; }
.engine-dashboard-body.engine-body .engine-dashboard-tabbar .tab-link--wt small { margin-top: 25px; line-height: 14px; }

@media (max-width: 450px) {
  .engine-dashboard .engine-dashboard-performance article { height: 165.875px; }
  .engine-dashboard .engine-dashboard-performance .engine-performance-label--split { height: 38.28125px; min-height: 38.28125px; }
}

.engine-body .mobile-tabbar {
  position: fixed;
  right: auto;
  bottom: 12px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(418px, calc(100% - 32px));
  height: 66px;
  padding: 8px 8px 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 40px;
  background: linear-gradient(180deg, #292a2f 0%, #15151a 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}
.engine-body .mobile-tabbar .tab-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .18rem;
  border-radius: 9px;
  color: #c3c3c3;
}
.engine-body .mobile-tabbar .tab-link > span { font-size: 1.15rem; line-height: 1; }
.engine-body .mobile-tabbar .tab-link small { font-size: .6rem; font-weight: 700; }
.engine-body .mobile-tabbar .tab-link.is-active {
  background: rgba(255, 255, 255, .08);
  color: #f0b90b;
  font-weight: 850;
}
.engine-body .mobile-tabbar .tab-link.is-active::after {
  position: absolute;
  bottom: 1px;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

@media (max-width: 370px) {
  .engine-content { padding-inline: 12px; }
  .engine-assets { gap: 6px; }
  .engine-asset-card { padding-inline: 2px; }
  .engine-network-card { padding-inline: 5px; }
  .engine-network-card article { gap: 4px; }
  .engine-network-icon { width: 30px; height: 30px; }
  .engine-shop-item { gap: 5px; padding-inline: 8px; }
  .engine-shop-main { gap: 8px; }
  .engine-product-image { width: 52px; height: 52px; }
  .engine-product-image img { width: 42px; max-height: 42px; }
  .engine-product-name h2 { font-size: 12px; }
  .engine-product-price { min-width: 76px; }
  .engine-product-price > strong span { font-size: 16px; }
}

@media (max-width: 390px) {
  .engine-page-heading { align-items: flex-start; flex-direction: column; }
  .engine-page-heading-copy { width: 100%; }
  .engine-page-heading-action { width: 100%; }
  .engine-team-profile { min-height: 0; padding: 13px 11px; }
  .engine-team-cube { position: absolute; right: -4px; bottom: -10px; width: 72px; height: 72px; opacity: .55; }
  .engine-team-profile-copy { max-width: calc(100% - 30px); }
  .engine-team-profile-row > div > .engine-team-profile-code-value { font-size: 19px; }
  .engine-team-profile-row code { max-width: 180px; }
  .engine-team-summary { gap: 6px; }
  .engine-team-summary article { gap: 6px; padding-inline: 7px; }
  .engine-team-summary-icon { width: 29px; height: 29px; }
  .engine-team-summary-icon img { width: 20px; height: 20px; }
  .engine-team-summary strong { font-size: 15px; }
  .engine-split { grid-template-columns: 1fr; gap: 0; }
  .engine-investment-main { align-items: flex-start; }
  .engine-investment-win { margin-left: auto; }
  .engine-investment-stats { grid-template-columns: 1fr; gap: 8px; }
}

.engine-unilevel-tree { display: grid; gap: 5px; }
.engine-unilevel-node { padding: 8px 0 8px 12px; border-left: 1px solid rgba(47, 45, 41, .16); }
.engine-unilevel-node summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; list-style: none; }
.engine-unilevel-node summary::-webkit-details-marker { display: none; }
.engine-unilevel-level { min-width: 28px; color: #b5793f; font-size: 11px; font-weight: 800; }
.engine-unilevel-rank { padding: 3px 7px; border-radius: 999px; background: rgba(181, 121, 63, .12); color: #9a6330; font-size: 10px; font-weight: 800; }
.engine-unilevel-node small { color: #8e8981; font-size: 11px; }
.engine-unilevel-children { margin-left: 14px; }
