:root {
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: #060817;
  color: #f4f6ff;
}

html[data-theme='light'] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(103, 88, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(61, 214, 229, 0.11), transparent 28rem), #060817;
  line-height: 1.65;
}
a {
  color: #78e4ee;
}
a:hover {
  color: #b4f7fc;
}
.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}
.wide-shell {
  width: min(1180px, calc(100% - 32px));
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
nav a {
  color: #b5bdd9;
  font-size: 14px;
  text-decoration: none;
}
.nav-cta {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 15px;
  border: 1px solid #5147a8;
  border-radius: 11px;
  background: rgba(111, 91, 241, 0.12);
  color: #dedaff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.hero {
  padding: 82px 0 54px;
  text-align: center;
}
.eyebrow {
  color: #9b8cff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
h1 {
  margin: 12px auto 18px;
  max-width: 820px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero p {
  max-width: 690px;
  margin: 0 auto;
  color: #b9c0d8;
  font-size: 18px;
}
.landing-hero {
  padding-top: 92px;
}
.landing-hero h1 span {
  background: linear-gradient(100deg, #a99cff 8%, #71dce8 88%);
  background-clip: text;
  color: transparent;
}
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #6d61ed;
  border-radius: 13px;
  background: linear-gradient(135deg, #8574ff, #5c49ec);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.button.secondary {
  background: rgba(17, 23, 50, 0.7);
  border-color: #30385f;
  color: #d9def2;
}
.button.disabled {
  border-color: #343c60;
  background: #171c32;
  box-shadow: none;
  color: #8892ae;
  cursor: not-allowed;
}
.trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  color: #8d97b6;
  font-size: 12px;
}
.product-preview {
  position: relative;
  display: grid;
  min-height: 550px;
  grid-template-columns: minmax(0, 1fr) 350px;
  margin: 22px 0 100px;
  overflow: hidden;
  border: 1px solid #242d50;
  border-radius: 28px;
  background: #f5f7fb;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.42);
}
.sheet-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #f9fafc;
}
.sheet-toolbar {
  display: flex;
  height: 66px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid #dfe3eb;
  background: #fff;
}
.sheet-toolbar i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #eef1f6;
}
.sheet-toolbar span {
  width: 180px;
  height: 28px;
  border-radius: 8px;
  background: #f0f2f7;
}
.sheet-grid {
  position: absolute;
  inset: 66px 0 0;
  background-image:
    linear-gradient(#e4e7ed 1px, transparent 1px),
    linear-gradient(90deg, #e4e7ed 1px, transparent 1px);
  background-size:
    34px 28px,
    120px 28px;
}
.sheet-table {
  position: absolute;
  top: 120px;
  left: 8%;
  display: grid;
  width: min(560px, 84%);
  grid-template-columns: 1.5fr 1fr 0.8fr;
  border: 1px solid #7f8ca8;
  background: #fff;
  box-shadow: 0 16px 42px rgba(46, 57, 87, 0.14);
  color: #263148;
  font-size: 13px;
}
.sheet-table > * {
  min-height: 42px;
  padding: 10px 12px;
  border-right: 1px solid #d6dce7;
  border-bottom: 1px solid #d6dce7;
}
.sheet-table b {
  background: #202c4d;
  color: #fff;
}
.assistant-preview {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
  background: linear-gradient(160deg, #0d1428, #060916 62%, #050712);
  color: #f5f7ff;
}
.preview-head {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #252e50;
  border-radius: 15px;
  background: #121a31;
}
.preview-head img {
  width: 38px;
  height: 38px;
}
.preview-head div {
  display: grid;
  min-width: 0;
}
.preview-head strong {
  font-size: 15px;
}
.preview-head span {
  color: #939ebd;
  font-size: 10px;
}
.preview-head i {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #4ee0a1;
  box-shadow: 0 0 9px #4ee0a1;
}
.preview-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px 4px;
}
.preview-message {
  max-width: 90%;
  padding: 12px;
  border: 1px solid #2b355b;
  border-radius: 14px;
  font-size: 12px;
}
.preview-message.user {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: rgba(113, 94, 240, 0.2);
}
.preview-message.eho {
  display: grid;
  gap: 5px;
  border-bottom-left-radius: 5px;
  background: #111a31;
}
.preview-message.eho b {
  color: #55dce9;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.preview-message.eho span {
  color: #c7cee2;
}
.preview-composer {
  padding: 11px;
  border: 1px solid #342e69;
  border-radius: 14px;
  background: #11182e;
}
.preview-composer span {
  display: block;
  min-height: 58px;
  color: #6f7b9b;
  font-size: 11px;
}
.preview-composer button {
  width: 100%;
  min-height: 35px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #8878ff, #6755ed);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.section-block {
  padding: 30px 0 92px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.section-heading h2,
.final-cta h2 {
  margin: 10px 0 13px;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.section-heading p,
.final-cta p {
  margin: 0;
  color: #aeb6d1;
  font-size: 17px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.feature-card {
  min-height: 230px;
  margin: 0;
  padding: 23px;
  border-radius: 19px;
}
.feature-card h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}
.feature-card p {
  margin: 0;
  color: #aeb6d1;
}
.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(120, 228, 238, 0.24);
  border-radius: 13px;
  background: rgba(120, 228, 238, 0.07);
  color: #78e4ee;
  font-size: 18px;
}
.how-block {
  padding-bottom: 105px;
}
.steps {
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid #222a48;
}
.steps li > b {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #403777;
  border-radius: 12px;
  background: rgba(111, 91, 241, 0.11);
  color: #a99cff;
}
.steps h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.steps p {
  margin: 0;
  color: #aeb6d1;
}
.horizontal-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.horizontal-steps li {
  display: block;
  padding: 20px;
  border: 1px solid #252e52;
  border-radius: 18px;
  background: rgba(12, 17, 39, 0.82);
}
.horizontal-steps li > b {
  margin-bottom: 24px;
}
.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 90px;
  padding: clamp(28px, 6vw, 58px);
  overflow: hidden;
  border: 1px solid #3a3470;
  border-radius: 25px;
  background:
    radial-gradient(circle at 90% 20%, rgba(84, 219, 232, 0.14), transparent 35%),
    linear-gradient(135deg, rgba(40, 31, 94, 0.8), rgba(13, 19, 41, 0.92));
}
.final-cta > div {
  max-width: 700px;
}
.final-cta .button {
  flex: 0 0 auto;
}
.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 8px;
}
.site-footer a {
  text-decoration: none;
}
.footer-brand {
  width: fit-content;
}
.footer-brand img {
  width: 32px;
  height: 32px;
}
.site-footer p {
  margin: 7px 0 0;
}
.legal-line {
  grid-column: 1 / -1;
}
.install-hero {
  padding: 70px 0 28px;
  text-align: center;
}
.install-hero h1 {
  margin-top: 10px;
}
.install-hero > p:not(.meta) {
  max-width: 650px;
  margin: 0 auto;
  color: #b9c0d8;
  font-size: 18px;
}
.install-hero .meta {
  max-width: 680px;
  margin: 18px auto 0;
}
.install-card {
  margin-top: 28px;
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.permission-grid section {
  padding: 17px;
  border: 1px solid #30385f;
  border-radius: 14px;
  background: #0a1026;
}
.permission-grid p {
  margin-bottom: 0;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0 70px;
}
.card,
article {
  border: 1px solid #252e52;
  border-radius: 20px;
  background: rgba(12, 17, 39, 0.88);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}
.card {
  padding: 24px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: #aeb6d1;
}
article {
  margin: 34px 0 70px;
  padding: clamp(24px, 6vw, 58px);
}
article h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 50px);
}
article h2 {
  margin-top: 34px;
  font-size: 22px;
}
article h3 {
  margin-top: 24px;
  font-size: 17px;
}
article p,
article li {
  color: #c3c9dd;
}
article strong {
  color: #f5f7ff;
}
.meta {
  color: #8e98b7;
  font-size: 14px;
}
.notice {
  padding: 16px 18px;
  border: 1px solid #3b4775;
  border-radius: 14px;
  background: #111831;
}
.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.price {
  padding: 20px;
  border: 1px solid #30385f;
  border-radius: 16px;
  background: #0a1026;
}
.price b {
  display: block;
  margin: 8px 0 4px;
  font-size: 28px;
}
footer {
  border-top: 1px solid #1d2441;
  padding: 28px 0 42px;
  color: #7f89a8;
  font-size: 13px;
}
@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  nav {
    justify-content: flex-start;
  }
  .nav-cta {
    display: none;
  }
  .hero {
    padding-top: 48px;
    text-align: left;
  }
  .hero p {
    margin-left: 0;
  }
  .cta-row {
    justify-content: flex-start;
  }
  .grid,
  .prices,
  .feature-grid,
  .permission-grid,
  .horizontal-steps,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .product-preview {
    min-height: 680px;
    grid-template-columns: 1fr;
  }
  .sheet-canvas {
    min-height: 300px;
  }
  .assistant-preview {
    min-height: 380px;
  }
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer {
    display: grid;
  }
}

@media (max-width: 430px) {
  .product-preview {
    min-height: 620px;
  }
  .sheet-table {
    font-size: 10px;
  }
  .sheet-table > * {
    min-height: 36px;
    padding: 8px;
  }
  .assistant-preview {
    min-height: 360px;
  }
  .trust-row {
    justify-content: flex-start;
  }
}

/* Lightweight motion: one observer, transform/opacity only, and a complete
   reduced-motion fallback. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.js .reveal.revealed {
  opacity: 1;
  transform: none;
}
.feature-grid .reveal:nth-child(2),
.sheet-story-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}
.feature-grid .reveal:nth-child(3) {
  transition-delay: 140ms;
}

.sheet-stories {
  padding-top: 0;
}
.sheet-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.mini-sheet {
  position: relative;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border-color: #30395d;
  background: #f8fafc;
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.28);
  color: #1f2937;
}
.mini-sheet::before {
  position: absolute;
  inset: 62px 0 0;
  background-image:
    linear-gradient(#e5e7eb 1px, transparent 1px),
    linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
  background-size:
    32px 28px,
    110px 28px;
  content: '';
  opacity: 0.62;
}
.mini-sheet header {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 0 19px;
  border-bottom: 1px solid #dce1e9;
  background: #fff;
}
.mini-sheet header b {
  font-size: 14px;
}
.mini-sheet header em {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf8f1;
  color: #18794e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.sheet-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.sheet-dot.green {
  background: #25a96b;
}
.sheet-dot.blue {
  background: #4b78e6;
}
.mini-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.65fr;
  margin: 58px 32px 0;
  overflow: hidden;
  border: 1px solid #b7c0cf;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(32, 49, 78, 0.12);
  font-size: 12px;
}
.mini-grid > * {
  min-width: 0;
  padding: 10px;
  border-right: 1px solid #d9dee8;
  border-bottom: 1px solid #d9dee8;
}
.mini-grid > b {
  background: #243b64;
  color: #fff;
}
.mini-grid strong {
  background: #e5f7ed;
  color: #147748;
}
.mini-grid i {
  background: #fff4df;
  color: #a65d00;
  font-style: normal;
}
.sheet-command {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 2;
  padding: 12px 15px;
  border: 1px solid rgba(91, 75, 225, 0.28);
  border-radius: 12px;
  background: rgba(242, 240, 255, 0.94);
  color: #4d3dcc;
  font-size: 12px;
  font-weight: 750;
}
.chart-bars {
  position: absolute;
  z-index: 1;
  top: 108px;
  right: 38px;
  left: 38px;
  display: flex;
  height: 150px;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  padding: 16px 18px 0;
  border-bottom: 1px solid #8794aa;
}
.chart-bars span {
  width: 11%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #5fcbd6, #6655e9);
  box-shadow: 0 8px 18px rgba(95, 85, 233, 0.18);
}
.chart-bars .bar-1 {
  height: 42%;
}
.chart-bars .bar-2 {
  height: 68%;
}
.chart-bars .bar-3 {
  height: 54%;
}
.chart-bars .bar-4 {
  height: 88%;
}
.chart-bars .bar-5 {
  height: 72%;
}
.chart-bars .bar-6 {
  height: 96%;
}
.sheet-kpis {
  position: absolute;
  z-index: 1;
  right: 34px;
  bottom: 74px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sheet-kpis span {
  display: grid;
  padding: 11px 13px;
  border: 1px solid #d4dae5;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
}
.sheet-kpis small {
  color: #6b7280;
}
.sheet-kpis b {
  font-size: 15px;
}

/* Account */
.account-body {
  background:
    radial-gradient(circle at 10% 5%, rgba(104, 87, 242, 0.21), transparent 30rem),
    radial-gradient(circle at 95% 30%, rgba(55, 203, 219, 0.1), transparent 28rem), #060817;
}
.account-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
}
.account-topbar {
  border-bottom: 1px solid rgba(45, 54, 91, 0.7);
}
.account-status,
.secure-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #313a62;
  border-radius: 999px;
  background: #10162d;
  color: #9fa8c7;
  font-size: 12px;
  font-weight: 750;
}
.account-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7a839f;
}
.account-status.online {
  border-color: rgba(50, 206, 148, 0.32);
  color: #7fe8bd;
}
.account-status.online i {
  background: #44dc9d;
  box-shadow: 0 0 10px #44dc9d;
}
.account-center-card {
  width: min(620px, 100%);
  margin: 12vh auto;
  padding: clamp(30px, 7vw, 58px);
  border: 1px solid #293255;
  border-radius: 28px;
  background: rgba(14, 20, 43, 0.9);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.36);
  text-align: center;
}
.account-center-card h1 {
  margin: 14px auto 12px;
  font-size: clamp(30px, 6vw, 48px);
}
.account-center-card p {
  color: #acb5d0;
}
.account-loader {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 3px solid #2c355a;
  border-top-color: #8b7aff;
  border-radius: 50%;
  animation: account-spin 750ms linear infinite;
}
@keyframes account-spin {
  to {
    transform: rotate(360deg);
  }
}
.login-card > img {
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
}
.google-button {
  width: min(360px, 100%);
  margin: 22px auto 14px;
  gap: 12px;
}
.google-button span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
}
.login-card small {
  display: block;
  color: #7f89a8;
}
.account-app {
  padding: 54px 0 80px;
}
.account-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.account-welcome h1 {
  margin: 8px 0 4px;
  font-size: clamp(38px, 6vw, 64px);
}
.account-welcome p {
  margin: 0;
  color: #9ca6c5;
}
.balance-orb {
  position: relative;
  display: grid;
  min-width: 230px;
  padding: 22px 25px;
  overflow: hidden;
  border: 1px solid #3a3a79;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(77, 57, 181, 0.42), rgba(14, 23, 50, 0.92));
}
.balance-orb::after {
  position: absolute;
  width: 120px;
  height: 120px;
  right: -30px;
  top: -50px;
  border-radius: 50%;
  background: rgba(99, 222, 232, 0.12);
  content: '';
}
.balance-orb span,
.balance-orb small {
  color: #aeb7d4;
  font-size: 12px;
}
.balance-orb b {
  margin: 3px 0;
  font-size: 32px;
  line-height: 1.1;
}
.account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
}
.account-nav {
  display: grid;
  align-content: start;
  gap: 7px;
}
.account-nav button {
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #929dbd;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.account-nav button:hover,
.account-nav button.active {
  border-color: #343d68;
  background: #111831;
  color: #fff;
}
.account-content,
.account-view {
  min-width: 0;
}
.account-view.active {
  animation: account-view-in 260ms ease both;
}
@keyframes account-view-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}
.account-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.account-metric-grid article,
.account-panel,
.account-plan {
  margin: 0;
  padding: 22px;
  border: 1px solid #252e52;
  border-radius: 20px;
  background: rgba(12, 17, 39, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.14);
}
.account-metric-grid article {
  display: grid;
}
.account-metric-grid span {
  color: #939dbb;
  font-size: 12px;
}
.account-metric-grid b {
  margin-top: 15px;
  font-size: 30px;
  line-height: 1;
}
.account-metric-grid small {
  margin-top: 5px;
  color: #6edbe6;
}
.account-panel {
  margin-bottom: 14px;
}
.account-panel h2 {
  margin: 5px 0 0;
  font-size: 22px;
}
.account-panel p {
  color: #aeb6d1;
}
.account-panel-head,
.payment-intro,
.security-card,
.profile-card,
.topup-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.text-button,
.dialog-cancel,
.theme-switch button {
  border: 0;
  background: transparent;
  color: #8e82ff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.activity-list {
  display: grid;
  margin-top: 18px;
}
.activity-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #202844;
}
.activity-row > div {
  display: grid;
  min-width: 0;
}
.activity-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-row small {
  color: #7f89a8;
}
.activity-row > b {
  flex: 0 0 auto;
}
.positive {
  color: #58daa4;
}
.negative {
  color: #ff9aaf;
}
.account-empty {
  margin: 18px 0 0;
}
.account-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0;
}
.account-plan {
  position: relative;
  display: grid;
}
.account-plan.featured {
  border-color: #6254d8;
  background: linear-gradient(160deg, rgba(51, 39, 117, 0.8), rgba(12, 17, 39, 0.96));
}
.plan-label {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(116, 98, 239, 0.14);
  color: #a99cff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-plan h3 {
  margin: 16px 0 5px;
  font-size: 20px;
}
.account-plan > b {
  color: #aeb6d1;
  font-size: 14px;
  font-weight: 600;
}
.account-plan > strong {
  margin: 17px 0;
  font-size: 26px;
}
.full-button {
  width: 100%;
  border: 0;
}
.topup-panel {
  padding: 28px;
}
.topup-panel .account-panel-head > b {
  color: #7de3ed;
  font-size: 20px;
}
.token-slider {
  width: 100%;
  height: 8px;
  margin: 30px 0 4px;
  accent-color: #725ff2;
  cursor: pointer;
}
.slider-scale {
  display: flex;
  justify-content: space-between;
  color: #697492;
  font-size: 11px;
}
.topup-total {
  margin: 23px 0 15px;
  padding-top: 18px;
  border-top: 1px solid #252e4d;
}
.topup-total b {
  font-size: 24px;
}
.continue-payment {
  width: fit-content;
  margin-top: 4px;
  color: #79e2ec;
  font-size: 12px;
}
.profile-avatar {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #5144a4;
  border-radius: 20px;
  background: linear-gradient(145deg, #463591, #131b36);
  font-size: 28px;
  font-weight: 800;
}
.profile-card {
  justify-content: flex-start;
}
.profile-card h2 {
  overflow-wrap: anywhere;
}
.theme-switch {
  display: inline-flex;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid #2c3558;
  border-radius: 12px;
  background: #090e21;
}
.theme-switch button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  color: #aab2cb;
}
.theme-switch button:hover {
  background: #1a2240;
  color: #fff;
}
.account-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.payment-dialog {
  width: min(480px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #f4f6ff;
}
.payment-dialog::backdrop {
  background: rgba(2, 4, 13, 0.78);
  backdrop-filter: blur(8px);
}
.payment-dialog-card {
  position: relative;
  padding: 34px;
  border: 1px solid #3a4070;
  border-radius: 24px;
  background: #0e142b;
  box-shadow: 0 40px 120px #000;
}
.payment-dialog h2 {
  margin: 8px 0 18px;
  font-size: 28px;
}
.payment-dialog p {
  color: #99a4c2;
  font-size: 13px;
}
.dialog-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid #30385f;
  border-radius: 10px;
  background: #151c35;
  color: #c7cee2;
  font-size: 20px;
  cursor: pointer;
}
.payment-lock {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(66, 220, 161, 0.35);
  border-radius: 14px;
  background: rgba(66, 220, 161, 0.08);
  color: #5cdda9;
}
.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #2a3357;
  border-radius: 14px;
  background: #0a1023;
}
.payment-summary span {
  color: #b2bad2;
}
.payment-summary b {
  font-size: 20px;
}
.dialog-cancel {
  display: block;
  margin: 14px auto 0;
  color: #929cb9;
}
.account-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 17px;
  border: 1px solid #305c65;
  border-radius: 13px;
  background: #101e30;
  color: #c8f7fb;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: 0.2s ease;
}
.account-toast.visible {
  opacity: 1;
  transform: none;
}
.account-toast.error {
  border-color: #713343;
  background: #28121f;
  color: #ffc4d0;
}
.secure-chip {
  color: #79dfaa;
  border-color: rgba(60, 209, 147, 0.28);
}
.skeleton-price {
  min-height: 120px;
  align-content: center;
  color: #7f89a8;
}
.price-link {
  display: flex;
  width: max-content;
  margin-top: 14px;
  font-weight: 750;
}
.legal-consent-check {
  display: flex;
  max-width: 540px;
  align-items: flex-start;
  gap: 11px;
  margin: 18px auto 4px;
  padding: 13px 15px;
  border: 1px solid #30395f;
  border-radius: 13px;
  background: rgba(18, 25, 51, 0.78);
  color: #b9c2dc;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
.legal-consent-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: #7867f5;
}

html[data-theme='light'] .account-body {
  color: #172038;
  background: #f4f6fb;
}
html[data-theme='light'] .account-topbar {
  border-color: #dce1ec;
}
html[data-theme='light'] .account-body .brand,
html[data-theme='light'] .account-body nav a {
  color: #202943;
}
html[data-theme='light'] .account-metric-grid article,
html[data-theme='light'] .account-panel,
html[data-theme='light'] .account-plan,
html[data-theme='light'] .account-nav button.active {
  border-color: #dce1ec;
  background: #fff;
  box-shadow: 0 15px 45px rgba(39, 49, 76, 0.08);
}
html[data-theme='light'] .account-panel p,
html[data-theme='light'] .account-welcome p {
  color: #65708d;
}
html[data-theme='light'] .activity-row {
  border-color: #e4e7ef;
}
html[data-theme='light'] .theme-switch {
  border-color: #d8ddea;
  background: #f0f2f8;
}
html[data-theme='light'] .account-nav button {
  color: #5f6984;
}
html[data-theme='light'] .account-nav button:hover {
  background: #fff;
  color: #202943;
}

@media (max-width: 880px) {
  .sheet-story-grid,
  .account-plans {
    grid-template-columns: 1fr;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-nav {
    grid-template-columns: repeat(3, 1fr);
  }
  .account-nav button {
    text-align: center;
  }
}
@media (max-width: 680px) {
  .sheet-story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mini-grid {
    margin-right: 14px;
    margin-left: 14px;
    font-size: 10px;
  }
  .account-topbar nav {
    display: none;
  }
  .account-status {
    display: none;
  }
  .account-welcome {
    align-items: stretch;
    flex-direction: column;
  }
  .balance-orb {
    min-width: 0;
  }
  .account-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .account-nav button {
    min-width: max-content;
  }
  .account-metric-grid {
    grid-template-columns: 1fr;
  }
  .account-panel-head,
  .payment-intro,
  .security-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .activity-row {
    align-items: flex-start;
  }
  .account-footer {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Shared navigation, launch animation and first-party analytics consent. */
.topbar:not(.account-topbar) {
  position: sticky;
  z-index: 40;
  top: 0;
  margin: 0 -14px;
  padding: 14px;
  border-bottom: 1px solid rgba(55, 66, 110, 0.72);
  background: rgba(6, 8, 23, 0.84);
  backdrop-filter: blur(18px) saturate(135%);
}
.topbar nav {
  gap: 8px;
}
.topbar nav a:not(.nav-cta) {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c6cee6;
  font-size: 15px;
  font-weight: 680;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}
.topbar nav a:not(.nav-cta):hover,
.topbar nav a:not(.nav-cta):focus-visible {
  border-color: #3b4676;
  background: rgba(121, 105, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}
.topbar nav a.active:not(.nav-cta) {
  border-color: #5b52bd;
  background: linear-gradient(135deg, rgba(133, 116, 255, 0.22), rgba(73, 202, 221, 0.1));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 137, 255, 0.08);
}
.nav-cta {
  min-height: 42px;
  padding: 0 17px;
  font-size: 14px;
}

.site-splash {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(95, 82, 242, 0.22), transparent 27rem), #050713;
  opacity: 0;
  transition: opacity 320ms ease;
}
.site-splash.visible {
  opacity: 1;
}
.site-splash.leaving {
  opacity: 0;
  pointer-events: none;
}
.site-splash img {
  z-index: 2;
  width: 88px;
  height: 88px;
  animation: splash-logo 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  filter: drop-shadow(0 0 32px rgba(105, 228, 238, 0.3));
}
.site-splash strong {
  z-index: 2;
  margin-top: 17px;
  font-size: 32px;
  letter-spacing: 0.16em;
}
.site-splash > span:not(.splash-halo) {
  z-index: 2;
  margin-top: 5px;
  color: #9588ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
}
.splash-halo {
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(116, 105, 255, 0.28);
  border-radius: 50%;
  animation: splash-halo 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-shadow:
    0 0 70px rgba(92, 76, 235, 0.14),
    inset 0 0 70px rgba(92, 76, 235, 0.08);
}
@keyframes splash-logo {
  from {
    opacity: 0;
    transform: scale(0.56) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes splash-halo {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.consent-banner {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(560px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid #394573;
  border-radius: 19px;
  background: rgba(12, 18, 39, 0.97);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
}
.consent-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.consent-banner p {
  margin: 0 0 4px;
  color: #aeb8d4;
  font-size: 13px;
  line-height: 1.5;
}
.consent-banner a {
  font-size: 12px;
}
.consent-banner > div:last-child {
  display: grid;
  gap: 8px;
}
.consent-banner button,
.legal-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #3b4676;
  border-radius: 11px;
  background: #131b35;
  color: #dce2f5;
  font: inherit;
  font-size: 13px;
  font-weight: 730;
  cursor: pointer;
}
.consent-banner .consent-accept {
  border-color: #6f60ec;
  background: linear-gradient(135deg, #8574ff, #5c49ec);
  color: #fff;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 42px;
}
.legal-card {
  display: grid;
  gap: 8px;
  min-height: 165px;
  padding: 22px;
  border: 1px solid #293356;
  border-radius: 18px;
  background: #0b1126;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}
.legal-card:hover {
  border-color: #665bd8;
  color: inherit;
  transform: translateY(-2px);
}
.legal-card strong {
  font-size: 18px;
}
.legal-card span {
  color: #aeb6d1;
  font-size: 14px;
}
.legal-version {
  margin-top: 26px;
  padding: 14px 17px;
  border: 1px solid #2c3559;
  border-radius: 13px;
  background: rgba(111, 91, 241, 0.08);
  color: #b8c0db;
  font-size: 13px;
}

@media (max-width: 720px) {
  .topbar:not(.account-topbar) {
    margin: 0 -8px;
    padding: 12px 8px;
  }
  .topbar nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .topbar nav a:not(.nav-cta) {
    min-width: max-content;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .consent-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }
  .consent-banner > div:last-child {
    grid-template-columns: 1fr 1fr;
  }
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
