:root {
  color-scheme: light;
  --ink: #063b28;
  --muted: #668176;
  --green-950: #004128;
  --green-900: #005234;
  --green-700: #008657;
  --green-500: #22b978;
  --lime: #8cca2b;
  --mint: #ebfaf3;
  --surface: #ffffff;
  --canvas: #f7fbf9;
  --line: #d8ebe2;
  --danger: #ad433b;
  --shadow: 0 18px 46px rgba(0, 66, 40, 0.08);
  --soft-shadow: 0 28px 76px rgba(0, 66, 40, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: #eef6f2;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(241, 249, 245, 0.94)),
    url("./assets/hero-bg.png") top center / 1500px auto fixed,
    #eef6f2;
  font-family:
    Inter, "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
    system-ui, sans-serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.button.purchased,
.button.purchased:disabled {
  color: #6f7d78;
  background: #dce3e0;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 248, 0.96)),
    var(--canvas);
  box-shadow: 0 0 90px rgba(0, 50, 30, 0.13);
}

.main-area {
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 13px;
  border-bottom: 1px solid rgba(0, 75, 45, 0.06);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.15);
}

.app-heading,
.topbar-actions,
.user-chip,
.balance-heading,
.card-heading,
.section-heading,
.field-row,
.list-row,
.project-summary,
.project-meta,
.page-summary > div {
  display: flex;
  align-items: center;
}

.app-heading {
  min-width: 0;
  gap: 12px;
}

.secondary-topbar {
  position: sticky;
  justify-content: center;
}

.secondary-heading {
  width: 100%;
  justify-content: center;
}

.secondary-heading .back-button {
  position: absolute;
  left: 18px;
}

.top-logo {
  width: 78px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
}

.page-kicker {
  display: none;
}

.page-title {
  margin: 0;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.topbar-actions {
  flex: 0 0 auto;
  gap: 9px;
}

.icon-button,
.user-chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 10px;
  place-items: center;
  border-radius: 14px;
  color: var(--green-900);
}

.icon-button svg,
.back-button svg,
.language-picker-icon svg,
.language-chevron,
.nav-icon svg,
.metric-icon svg,
.action-icon svg,
.setting-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.language-picker {
  position: relative;
  display: inline-flex;
  color: var(--green-900);
}

.language-trigger {
  display: inline-flex;
  height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--green-950);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 66, 40, 0.05);
  font-size: 12px;
  font-weight: 780;
}

.language-picker-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.language-chevron {
  width: 13px;
  height: 13px;
  transition: transform 160ms ease;
}

.language-picker.open .language-chevron {
  transform: rotate(90deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: none;
  width: 178px;
  max-height: 456px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(0, 82, 52, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(0, 58, 35, 0.18);
  backdrop-filter: blur(22px) saturate(1.12);
  overscroll-behavior: contain;
}

.language-menu::-webkit-scrollbar {
  width: 4px;
}

.language-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 82, 52, 0.16);
}

.language-picker.open .language-menu {
  display: grid;
  gap: 4px;
}

.language-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  color: var(--green-950);
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
}

.language-option.active {
  color: var(--green-700);
  background: var(--mint);
}

.language-option b {
  font-size: 14px;
  line-height: 1;
}

[dir="rtl"] .language-menu {
  /* Keep the wider language panel inside the mobile viewport.  The trigger
     lives at the physical right edge on authentication screens, so anchoring
     the menu by its left edge made it overflow and cover the registration UI. */
  right: 0;
  left: auto;
}

[dir="rtl"] .language-option {
  text-align: right;
}

.auth-language {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 20px;
  z-index: 120;
}

.back-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 10px;
  place-items: center;
  border: 1px solid rgba(0, 82, 52, 0.12);
  border-radius: 14px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(0, 66, 40, 0.07);
}

.user-chip {
  padding: 3px;
  border-radius: 14px;
}

.user-chip > span:last-child {
  display: none;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--lime));
  font-size: 12px;
  font-weight: 800;
}

.page-content {
  padding: 20px 18px calc(112px + env(safe-area-inset-bottom));
}

.mobile-nav {
  position: fixed;
  right: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  width: min(calc(100% - 24px), 496px);
  grid-template-columns: repeat(5, 1fr);
  padding: 7px;
  border: 1px solid rgba(0, 82, 52, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 47, 28, 0.13);
  backdrop-filter: blur(20px);
  transform: translateX(50%);
}

.nav-link {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px 2px 7px;
  place-items: center;
  border-radius: 14px;
  color: #789188;
  font-size: 11px;
  font-weight: 650;
  transition: 160ms ease;
}

.nav-link > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link.has-yield-dot::after {
  position: absolute;
  top: 8px;
  right: 18px;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 6px 14px rgba(255, 59, 48, 0.35);
  content: "";
}

.nav-link.active {
  color: var(--green-900);
  background: linear-gradient(180deg, rgba(235, 250, 243, 0.98), rgba(213, 244, 228, 0.98));
  box-shadow: inset 0 0 0 1px rgba(0, 134, 87, 0.1);
}

.featured-device-nav {
  position: relative;
  margin-top: -22px;
  padding-top: 5px;
  color: white;
}

.featured-device-nav .nav-icon {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 14px;
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  color: var(--green-700);
  background: linear-gradient(180deg, #f2fbf6, #e5f7ee);
  box-shadow: 0 10px 22px rgba(0, 70, 43, 0.12);
}

.featured-device-nav.is-pressing .nav-icon {
  animation: device-nav-press 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-device-nav.is-pressing .nav-icon::after {
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(34, 185, 120, 0.62);
  border-radius: inherit;
  content: "";
  animation: device-nav-ripple 360ms ease-out;
  pointer-events: none;
}

@keyframes device-nav-press {
  0% { transform: scale(1); }
  32% { transform: scale(0.88); }
  68% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes device-nav-ripple {
  0% { opacity: 0.75; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.42); }
}

@media (prefers-reduced-motion: reduce) {
  .featured-device-nav.is-pressing .nav-icon,
  .featured-device-nav.is-pressing .nav-icon::after {
    animation-duration: 1ms;
  }
}

.featured-device-nav span:last-child {
  color: #6f8980;
  font-weight: 720;
}

.featured-device-nav.active {
  background: transparent;
  box-shadow: none;
}

.featured-device-nav.active .nav-icon {
  color: white;
  background: linear-gradient(145deg, var(--green-900), var(--green-500));
  box-shadow:
    0 16px 32px rgba(0, 91, 56, 0.34),
    0 0 0 6px rgba(0, 134, 87, 0.1);
}

.featured-device-nav.active span:last-child {
  color: var(--green-900);
  font-weight: 860;
}

.nav-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.home-balance,
.balance-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--ink);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.96) 0 44%, rgba(233, 250, 241, 0.7) 100%),
    url("./assets/hero-bg.png") 66% center / cover;
  border: 1px solid rgba(0, 82, 52, 0.1);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.home-balance {
  min-height: 226px;
  padding-right: 168px;
}

.balance-object {
  position: absolute;
  right: -38px;
  bottom: -24px;
  z-index: 0;
  width: 220px;
  filter: drop-shadow(0 18px 34px rgba(0, 134, 87, 0.22));
  pointer-events: none;
}

.home-balance::after,
.balance-card::after {
  position: absolute;
  right: -68px;
  bottom: -82px;
  z-index: 0;
  width: 210px;
  height: 158px;
  background: url("./assets/hero-globe.png") center / contain no-repeat;
  content: "";
  opacity: 0.36;
  pointer-events: none;
}

.home-balance::before,
.balance-card::before {
  position: absolute;
  top: -120%;
  left: -45%;
  width: 45%;
  height: 330%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  content: "";
  pointer-events: none;
  transform: rotate(24deg);
}

.balance-heading {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.home-balance p,
.balance-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.home-balance strong,
.balance-card strong {
  display: inline-block;
  min-width: 178px;
  font-size: clamp(31px, 8vw, 40px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.home-balance small,
.balance-card small {
  display: inline-block;
  min-width: 36px;
  color: var(--muted);
  font-size: 12px;
}

.asset-amount {
  display: flex;
  width: 214px;
  min-height: 44px;
  align-items: flex-end;
}

.asset-unit-placeholder {
  visibility: hidden;
}

.balance-visibility {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(0, 82, 52, 0.08);
}

.balance-breakdown {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.balance-breakdown > div {
  display: grid;
  align-content: start;
  padding: 10px 12px 8px;
  border: 1px solid rgba(0, 134, 87, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.balance-breakdown span {
  display: block;
  min-height: 32px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.balance-breakdown b {
  display: block;
  min-height: 20px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  line-height: 1.22;
}

.balance-breakdown .asset-subunit {
  font-size: 10px;
}

.balance-breakdown b .asset-subunit {
  display: inline;
  min-height: 0;
  margin: 0;
}

.asset-subunit {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-actions {
  margin-top: 16px;
}

.action-card {
  display: grid;
  min-width: 0;
  grid-template-rows: 42px 34px;
  gap: 6px;
  padding: 14px 6px 12px;
  place-items: center;
  width: 100%;
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(0, 62, 37, 0.055);
  text-align: center;
}

.action-icon,
.metric-icon,
.setting-icon {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 11px;
  place-items: center;
  border-radius: 14px;
  color: var(--green-700);
  background: var(--mint);
}

.action-card strong {
  display: grid;
  width: 100%;
  min-height: 34px;
  place-items: center;
  font-size: 14px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.action-card > span {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.action-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.official-website-button {
  margin-top: 16px;
  box-shadow: 0 12px 28px rgba(0, 62, 37, 0.055);
}

.official-website-button:disabled {
  cursor: not-allowed;
  color: #789087;
  background: #edf5f1;
  box-shadow: none;
  opacity: 1;
}

.official-website-icon {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
}

.official-website-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.reward-activity {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.reward-activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.reward-activity-heading > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.reward-activity-heading > div > span {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5b55;
  box-shadow: 0 0 0 5px rgba(255, 91, 85, 0.1);
}

.reward-activity-heading h2 { margin: 0; font-size: 18px; }
.reward-activity-heading small { color: var(--muted); font-size: 11px; text-align: end; }

.reward-feed-viewport {
  display: grid;
  max-height: 260px;
  gap: 10px;
  overflow-y: auto;
  padding: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.reward-feed-viewport::-webkit-scrollbar { display: none; }

.reward-feed-item {
  display: grid;
  min-height: 80px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  scroll-snap-align: start;
}

.reward-feed-purchase { background: linear-gradient(105deg, rgba(236, 251, 244, 0.98), rgba(255, 255, 255, 0.96)); }
.reward-feed-referral { background: linear-gradient(105deg, rgba(236, 251, 244, 0.98), rgba(255, 255, 255, 0.96)); }

.reward-event-icon {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 11px;
  place-items: center;
  border-radius: 14px;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(0, 82, 52, 0.07);
}

.reward-event-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.reward-feed-item p { min-width: 0; margin: 0; color: #49685d; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.reward-feed-item p small { display: block; margin-top: 4px; color: var(--muted); }
.reward-feed-empty { margin: 0; padding: 18px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { .reward-feed-viewport { scroll-behavior: auto; } }

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin: 26px 2px 12px;
}

.projects-heading {
  margin-top: 6px;
}

.section-heading h2,
.card-heading h3 {
  margin: 0;
}

.section-heading h2 {
  font-size: 19px;
}

.section-heading p,
.card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.text-link {
  padding: 8px 0;
  border: 0;
  color: var(--green-700);
  background: transparent;
  font-size: 13px;
  font-weight: 720;
}

.active-project {
  display: block;
  padding: 20px;
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 250, 0.96));
  box-shadow: var(--shadow);
}

.home-device-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.home-device-card {
  min-width: 0;
  padding: 14px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.home-device-card:active {
  transform: scale(0.995);
}

.home-device-card.expanded {
  grid-column: 1 / -1;
  padding: 20px;
}

.home-device-chevron {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 160ms ease;
}

.home-device-card.expanded .home-device-chevron {
  transform: rotate(90deg);
}

.home-device-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 10px;
}

.home-device-compact span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  background: var(--mint);
}

.home-device-compact small,
.home-device-compact strong {
  display: block;
}

.home-device-compact small {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.home-device-compact strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--green-950);
  font-size: 12px;
}

.home-device-detail {
  display: none;
}

.home-device-card.expanded .home-device-detail {
  display: block;
}

.home-device-card.expanded .home-device-compact {
  display: none;
}

.project-summary {
  gap: 12px;
}

.project-summary > div {
  min-width: 0;
  flex: 1;
}

.project-letter {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--lime));
  font-size: 19px;
  font-weight: 800;
}

.project-summary strong {
  display: block;
  font-size: 16px;
}

.project-summary small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Keep the expandable device header readable on narrow screens. The status is
   deliberately placed below the name instead of competing for the same row. */
.home-device-card .project-summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px 8px;
}

.home-device-card .project-letter {
  grid-row: 1;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 15px;
}

.home-device-copy {
  min-width: 0;
}

.home-device-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.home-device-copy small {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-device-card .home-device-chevron {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}

.home-device-status {
  grid-column: 1 / -1;
  justify-self: start;
  max-width: 100%;
  padding: 3px 7px;
  font-size: 10px;
  white-space: normal;
  line-height: 1.35;
}

.home-device-card.expanded .project-summary {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 7px 12px;
}

.home-device-card.expanded .project-letter {
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 19px;
}

.home-device-card.expanded .home-device-copy strong {
  overflow: visible;
  font-size: 16px;
  text-overflow: clip;
  white-space: normal;
}

.home-device-card.expanded .home-device-copy small {
  margin-top: 4px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.home-device-card.expanded .home-device-status {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
  font-size: inherit;
}

.home-device-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.home-device-stats > div {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(7, 131, 82, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #f2fbf6, #eaf7f0);
}

.home-device-stats small,
.home-device-stats strong {
  display: block;
}

.home-device-stats small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.home-device-stats strong {
  overflow-wrap: anywhere;
  color: var(--green-950);
  font-size: 14px;
  line-height: 1.3;
}

.claim-window {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 10px;
}

.claim-window > div {
  padding: 13px;
  border: 1px solid rgba(7, 131, 82, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, #f2fbf6, #eaf7f0);
}

.claim-window small,
.claim-window strong {
  display: block;
}

.claim-window small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.claim-window strong {
  font-size: 14px;
}

.claim-window em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.project-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.claim-button {
  margin-top: 14px;
}

.claim-button.claimed {
  color: var(--green-700);
  background: var(--mint);
  box-shadow: none;
}

.claim-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.project-values span {
  padding: 12px;
  border-radius: 13px;
  background: var(--mint);
}

.project-values small,
.project-values strong {
  display: block;
}

.project-values small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.project-values strong {
  font-size: 14px;
}

.panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.card-heading {
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.card-heading h3 {
  font-size: 19px;
}

.list {
  display: grid;
}

.list-row {
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:first-child {
  padding-top: 0;
}

.list-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.transaction-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.transaction-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--green-700);
  background: var(--mint);
  font-size: 16px;
  font-weight: 800;
}

.transaction-main strong,
.list-row > strong {
  display: block;
  font-size: 14px;
}

.transaction-main small,
.list-row > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.amount {
  flex: 0 0 auto;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 760;
}

.amount.negative {
  color: var(--ink);
}

.disclaimer {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid #dae9b7;
  border-radius: 14px;
  color: #5a6c46;
  background: #f3f8e8;
  font-size: 12px;
  line-height: 1.65;
}

.kyc-home-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #f0d18b;
  border-radius: 16px;
  background: #fff9e9;
  color: #6d571b;
}

.kyc-home-prompt.is-pending {
  border-color: #b9d9ef;
  background: #f1f9ff;
  color: #28617f;
}

.kyc-home-icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 11px;
  background: rgba(255,255,255,.7);
  color: currentColor;
}

.kyc-home-prompt strong,
.kyc-home-prompt p { display: block; margin: 0; }
.kyc-home-prompt strong { font-size: 13px; }
.kyc-home-prompt p { margin-top: 3px; font-size: 11px; line-height: 1.45; opacity: .82; }
.kyc-home-action { min-height: 34px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }

[dir="rtl"] .kyc-home-prompt { grid-template-columns: auto minmax(0, 1fr) auto; }

.withdraw-kyc-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #efcc7d;
  border-radius: 14px;
  background: #fff8e5;
  color: #73540c;
}

.withdraw-kyc-prompt.is-pending { border-color: #b7d9eb; background: #f0f9ff; color: #28627e; }
.withdraw-kyc-icon {
  display: block;
  box-sizing: border-box;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 8px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  color: currentColor;
}
.withdraw-kyc-icon svg { display: block; width: 100%; height: 100%; }
.withdraw-kyc-prompt strong,.withdraw-kyc-prompt span { display: block; }
.withdraw-kyc-prompt strong { font-size: 13px; }
.withdraw-kyc-prompt span { margin-top: 3px; font-size: 11px; line-height: 1.45; opacity: .84; }
.withdraw-kyc-action { min-height: 34px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }

@media (max-width: 360px) {
  .kyc-home-prompt { grid-template-columns: auto minmax(0, 1fr); }
  .kyc-home-action { grid-column: 2; justify-self: start; }
  .withdraw-kyc-prompt { grid-template-columns: auto minmax(0, 1fr); }
  .withdraw-kyc-action { grid-column: 2; justify-self: start; }
}

.page-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.page-summary > div {
  min-width: 0;
  gap: 12px;
}

.page-summary strong,
.page-summary small {
  display: block;
}

.page-summary strong {
  font-size: 15px;
}

.page-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.status,
.project-status,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-weight: 720;
}

.status {
  position: relative;
  padding: 7px 10px;
  color: var(--green-700);
  background: var(--mint);
  font-size: 11px;
}

.status-pending-yield::after {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border: 2px solid white;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.32);
  content: "";
}

.status-verified {
  color: var(--green-700);
  background: var(--mint);
}

.status-submitted {
  color: #9a5b00;
  background: #fff4dc;
}

.status-unverified {
  color: #b2352c;
  background: #fff0ef;
}

.project-grid {
  display: grid;
  gap: 10px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
}

.filter-tab {
  min-height: 38px;
  flex: 1;
  padding: 0 8px;
  border: 0;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.filter-tab.active {
  color: white;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 7px 16px rgba(0, 91, 56, 0.18);
}

.project-card {
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.device-card:active {
  transform: scale(0.99);
}

.project-visual {
  position: relative;
  min-height: 100%;
  padding: 12px;
  color: var(--green-950);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(223, 248, 236, 0.28));
  border-right: 1px solid rgba(0, 82, 52, 0.08);
  overflow: hidden;
}

.project-scene {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.project-status {
  display: inline-flex;
  position: relative;
  z-index: 2;
  max-width: 86px;
  padding: 8px 10px;
  border: 1px solid rgba(32, 173, 112, 0.14);
  border-radius: 17px;
  color: var(--green-700);
  background: rgba(235, 250, 243, 0.92);
  box-shadow: 0 10px 24px rgba(0, 132, 82, 0.08);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

.project-orbit {
  position: absolute;
  z-index: 1;
  right: -62px;
  bottom: -82px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(0, 134, 87, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 23px rgba(34, 185, 120, 0.055),
    0 0 0 46px rgba(34, 185, 120, 0.035);
}

.device-code {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(0, 134, 87, 0.16);
  border-radius: 15px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.project-body {
  min-width: 0;
  padding: 13px;
}

.device-name {
  margin: 0 0 6px;
  color: var(--green-950);
  font-size: 15px;
  line-height: 1.25;
}

.device-description {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.device-description span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.project-meta {
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.project-meta > div {
  min-width: 0;
}

.project-meta small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.project-meta strong {
  font-size: 13px;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 11px;
  padding: 0;
  color: var(--muted);
  font-size: 11px;
  list-style: none;
}

.project-features li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.35;
}

.project-features li::before {
  display: grid;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-700);
  background: var(--mint);
  content: "✓";
  font-size: 9px;
  font-weight: 800;
}

.device-card .button {
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
}

.device-purchase-actions {
  display: grid;
  gap: 8px;
}

.device-support-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 4px 9px;
  border: 1px solid rgba(18, 151, 94, 0.18);
  border-radius: 999px;
  color: var(--green-800);
  background: linear-gradient(135deg, rgba(222, 248, 235, 0.94), rgba(243, 251, 224, 0.94));
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.device-support-callout,
.device-support-progress {
  border-color: rgba(21, 154, 95, 0.16);
  background:
    radial-gradient(circle at 100% 0, rgba(182, 225, 75, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 244, 0.96));
}

.device-support-callout h3,
.device-support-progress h3 {
  margin: 4px 0 5px;
}

.device-support-callout p,
.device-support-progress p {
  margin: 0;
}

.device-support-progress .card-heading > strong {
  color: var(--green-700);
  font-size: 20px;
}

.device-support-progress-track {
  height: 10px;
  margin: 18px 0 12px;
  border-radius: 999px;
  background: rgba(3, 93, 57, 0.1);
  overflow: hidden;
}

.device-support-progress-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-800), var(--lime));
  box-shadow: 0 5px 14px rgba(12, 138, 83, 0.22);
  transition: width 260ms ease;
}

.device-support-progress-values {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
}

.device-support-progress-values span:last-child {
  text-align: right;
}

.device-support-progress-values b {
  display: block;
  margin-top: 3px;
  color: var(--green-950);
  font-size: 13px;
}

[dir="rtl"] .device-support-progress-values span:last-child {
  text-align: left;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 740;
}

.button-primary {
  color: white;
  background: linear-gradient(120deg, var(--green-900), var(--green-500));
  box-shadow: 0 12px 26px rgba(7, 131, 82, 0.2);
}

.button.is-loading:disabled {
  cursor: wait;
  opacity: 0.82;
}

.button.is-loading::after {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: currentColor;
  border-radius: 50%;
  content: "";
  animation: button-loading-spin 700ms linear infinite;
}

@keyframes button-loading-spin {
  to { transform: rotate(360deg); }
}

.withdraw-confirm-button:disabled {
  color: #8b9692;
  background: #dce3e0;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--green-700);
  background: white;
}

.button-block {
  width: 100%;
}

.button-danger {
  min-height: 42px;
  color: var(--danger);
  background: #fff0ef;
}

.content-grid {
  display: grid;
  gap: 16px;
}

.content-grid > * {
  min-width: 0;
}

.form-stack {
  display: grid;
  gap: 17px;
}

.withdraw-form {
  gap: 13px;
}

.field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.field label,
.field-label {
  color: #355347;
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #d4e3dc;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fbfdfc;
  font-size: 15px;
}

.issue-type-picker {
  position: relative;
  z-index: 3;
}

.issue-type-picker.open {
  z-index: 130;
}

.issue-type-trigger {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-weight: 720;
  text-align: start;
}

.issue-type-picker.open .issue-type-trigger {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 185, 120, 0.12);
}

.issue-type-chevron {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform 160ms ease;
}

.issue-type-picker.open .issue-type-chevron {
  transform: rotate(90deg);
}

.issue-type-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 140;
  display: none;
  padding: 8px;
  border: 1px solid rgba(0, 82, 52, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(0, 58, 35, 0.18);
  backdrop-filter: blur(22px) saturate(1.12);
}

.issue-type-picker.open .issue-type-menu {
  display: grid;
  gap: 4px;
}

.issue-type-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  color: var(--green-950);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  text-align: start;
}

.issue-type-option.active {
  color: var(--green-700);
  background: var(--mint);
}

.issue-type-option b {
  font-size: 14px;
  line-height: 1;
}

[dir="rtl"] .issue-type-option {
  text-align: right;
}

.field textarea {
  min-height: 108px;
  padding-block: 13px;
  line-height: 1.55;
  resize: vertical;
}

.verification-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.verification-code-row .button {
  min-height: 52px;
  padding-inline: 14px;
  font-size: 13px;
  white-space: nowrap;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(32, 173, 112, 0.1);
}

.pin-input {
  position: relative;
}

.field .pin-input-native {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
}

.pin-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.pin-slot {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid #d4e3dc;
  border-radius: 14px;
  color: var(--green-950);
  background: #fbfdfc;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.pin-input:focus-within .pin-slot {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(32, 173, 112, 0.1);
}

.pin-slot.filled {
  background: rgba(232, 247, 240, 0.72);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e45b52;
  box-shadow: 0 0 0 3px rgba(228, 91, 82, 0.08);
}

.field.has-error .pin-slot {
  border-color: #e45b52;
  box-shadow: 0 0 0 3px rgba(228, 91, 82, 0.08);
}

.field.has-error .withdraw-wallet-empty,
.field.has-error .withdraw-wallet-card {
  border-color: #e45b52;
  box-shadow: 0 0 0 3px rgba(228, 91, 82, 0.08);
}

.field.has-error .proof-upload,
.kyc-document-options.has-error label {
  border-color: #e45b52;
}

.checkbox.has-error {
  color: #b2352c;
}

.field-error {
  display: block;
  min-height: 16px;
  max-height: 32px;
  margin-top: 4px;
  color: #b2352c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 1;
  transition:
    max-height 140ms ease,
    min-height 140ms ease,
    margin-top 140ms ease,
    opacity 120ms ease;
}

.field-error.is-empty {
  min-height: 2px;
  max-height: 2px;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
}

.form-submit-error {
  padding: 12px 14px;
  border: 1px solid rgba(178, 53, 44, 0.24);
  border-radius: 12px;
  background: rgba(228, 91, 82, 0.08);
  color: #b2352c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.form-submit-error[hidden] {
  display: none;
}

.field input::placeholder {
  color: #a4b1ab;
}

.field-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.field-row > .field {
  flex: 1;
}

.field-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.network-tabs {
  display: flex;
  gap: 8px;
}

.network-tab {
  min-height: 44px;
  flex: 1;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 720;
}

.network-tab.active {
  border-color: var(--green-500);
  color: var(--green-700);
  background: var(--mint);
}

.bep20-fields {
  display: grid;
  gap: 17px;
}

.proof-upload {
  display: grid;
  min-height: 120px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 2px dashed #cbd6e6;
  border-radius: 16px;
  background: white;
  color: #8d9db6;
  cursor: pointer;
  overflow: hidden;
}

.proof-upload-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #c9d2df;
  content: "+";
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.proof-upload-icon::before {
  content: "+";
}

.proof-upload-action {
  color: #8d9db6;
  font-size: 14px;
  font-weight: 720;
}

.proof-upload small {
  display: block;
  max-width: 100%;
  color: #98a5b8;
  font-size: 10px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.qr-placeholder {
  display: grid;
  width: 176px;
  height: 176px;
  margin: 12px auto;
  padding: 15px;
  box-sizing: border-box;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: inset 0 0 0 14px white;
}

.qr-placeholder img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.address-box,
.invite-code-box {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--mint);
}

.address-box code,
.invite-code-box code {
  min-width: 0;
  flex: 1;
  color: var(--green-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--green-700);
  font-size: 11px;
  font-weight: 720;
}

.info-list {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.info-item {
  display: flex;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.info-number {
  display: grid;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--green-700);
  background: var(--mint);
  font-size: 11px;
  font-weight: 800;
}

.summary-box {
  display: grid;
  gap: 12px;
  margin: 17px 0;
  padding: 15px;
  border-radius: 14px;
  background: var(--mint);
}

.withdraw-summary {
  gap: 0;
  margin: 0;
  padding: 11px 13px;
}

.withdraw-wallet-card,
.withdraw-wallet-empty {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(232, 247, 240, 0.7);
}

.withdraw-wallet-card strong,
.withdraw-wallet-empty strong {
  display: block;
  color: var(--green-950);
  font-size: 14px;
}

.withdraw-wallet-card span,
.withdraw-wallet-empty span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.withdraw-wallet-card code {
  overflow-wrap: anywhere;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 700;
}

.withdraw-wallet-empty .button {
  margin-top: 2px;
}

.account-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(0, 82, 52, 0.1);
  border-radius: 16px;
  background: var(--mint);
}

.account-flow > div {
  padding: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.account-flow small,
.account-flow strong,
.account-flow span {
  display: block;
}

.account-flow small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.account-flow strong {
  font-size: 14px;
}

.account-flow span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.account-flow i {
  color: var(--green-700);
  font-style: normal;
  font-weight: 900;
}

.account-route-note {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(0, 134, 87, 0.08);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(235, 250, 243, 0.94), rgba(255, 255, 255, 0.82));
  color: var(--muted);
  font-size: 11px;
}

.account-route-note > span {
  font-weight: 720;
}

.route-steps {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
}

.route-steps b {
  display: grid;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.route-steps i {
  flex: 0 0 12px;
  height: 1px;
  background: rgba(0, 134, 87, 0.28);
  position: relative;
}

.route-steps i::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid rgba(0, 134, 87, 0.45);
  border-right: 1px solid rgba(0, 134, 87, 0.45);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.summary-row strong {
  color: var(--ink);
  text-align: right;
}

.invite-hero {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(0, 82, 52, 0.1);
  border-radius: 22px;
  color: var(--green-950);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(237, 251, 244, 0.78)),
    url("./assets/hero-bg.png") 64% center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.agent-hero {
  position: relative;
  padding: 22px 24px 20px;
  border: 1px solid rgba(0, 82, 52, 0.1);
  border-radius: 24px;
  color: var(--green-950);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(229, 249, 238, 0.76)),
    url("./assets/hero-bg.png") 66% center / cover;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.agent-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}

.agent-hero h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.agent-level-badge {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 62px;
  height: 72px;
  place-items: center;
  filter: drop-shadow(0 12px 18px rgba(0, 82, 52, 0.16));
}

.agent-level-badge img {
  width: 62px;
  height: 72px;
  object-fit: contain;
}

.agent-level-badge b {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--green-900);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
  transform: translate(-50%, -50%);
}

.agent-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.agent-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.agent-stats > div {
  padding: 12px;
  border: 1px solid rgba(0, 82, 52, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.agent-stats small,
.agent-stats strong {
  display: block;
}

.agent-stats small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.agent-stats strong {
  font-size: 14px;
}

.progress-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.agent-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.agent-action-row .button {
  min-height: 44px;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
}

.agent-policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.agent-policy-grid > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.agent-policy-grid small,
.agent-policy-grid strong {
  display: block;
}

.agent-policy-grid small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.agent-policy-grid strong { color: var(--green-800); font-size: 14px; overflow-wrap: anywhere; }
.agent-policy-destination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.agent-policy-destination small { margin: 0; }
.agent-tier-summary ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.agent-tier-summary li { display: grid; gap: 3px; min-width: 0; padding: 9px 10px; border-radius: 10px; color: var(--green-800); background: rgba(230, 248, 239, 0.7); font-size: 12px; line-height: 1.25; }
.agent-tier-summary li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-tier-summary li strong { font-size: 13px; }
.agent-policy-disabled { margin: 16px 0 0; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--canvas); }
.agent-rule-list { display: grid; gap: 7px; margin-top: 15px; color: var(--muted); font-size: 12px; }
.agent-rule-list span::before { content: "✓"; margin-right: 7px; color: var(--green-600); font-weight: 800; }
.agent-team-list { display: grid; gap: 9px; margin-top: 15px; }
.agent-team-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.agent-team-row strong,.agent-team-row small { display: block; }
.agent-team-row strong { font-size: 13px; }
.agent-team-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.agent-tier-list,
.agent-reward-grid {
  margin-top: 0;
}

.eyebrow {
  gap: 7px;
  padding: 7px 10px;
  color: var(--green-700);
  background: rgba(7, 131, 82, 0.09);
  font-size: 11px;
  letter-spacing: 0.07em;
}

.invite-hero h2 {
  max-width: 360px;
  margin: 13px 0 8px;
  font-size: 25px;
  line-height: 1.25;
}

.invite-hero p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.invite-code-box {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.invite-code-box.code-only {
  padding: 15px;
  border-color: rgba(7, 131, 82, 0.18);
}

.invite-code-box.code-only code {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-align: center;
}

.invite-link {
  margin-top: 10px;
}

.invite-link > small {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.invite-link .invite-code-box {
  margin-top: 0;
  padding: 9px 11px;
}

.invite-summary {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.invite-summary > div {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.invite-summary small,
.invite-summary strong {
  display: block;
}

.invite-summary small {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.invite-summary strong {
  font-size: 17px;
}

.tier-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.agent-growth-section {
  margin-top: 20px;
}

.agent-growth-section .section-heading {
  margin-bottom: 0;
}

.tier-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--canvas);
}

.tier-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--green-700);
  background: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.tier-card strong,
.tier-card small {
  display: block;
}

.tier-card strong {
  font-size: 13px;
}

.tier-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.tier-rewards {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.tier-rewards b {
  color: var(--green-700);
  font-size: 13px;
}

.tier-rewards small {
  margin: 0;
  font-size: 11px;
}

.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.asset-balance-panel { margin-top: 18px; }
.asset-balance-list {display: grid;grid-template-columns: repeat(2, 1fr);gap: 9px;margin-top: 12px;}
.asset-balance-list > div { padding: 12px 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--canvas); }
.asset-balance-list span,.asset-balance-list strong { display:block; }
.asset-balance-list span { color:var(--muted); font-size:11px; font-weight:700; }
.asset-balance-list strong { margin-top:5px; color:var(--green-700); font-size:13px; overflow-wrap:anywhere; }

.reward-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}

.reward-grid span {
  color: var(--muted);
  font-size: 12px;
}

.reward-grid strong {
  color: var(--green-700);
  font-size: 13px;
}

.profile-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: 21px;
  color: var(--green-950);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.94), rgba(229, 249, 238, 0.72)),
    url("./assets/hero-bg.png") 66% center / cover;
  border: 1px solid rgba(0, 82, 52, 0.1);
  box-shadow: var(--shadow);
}

.profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(0, 134, 87, 0.14);
  border-radius: 20px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--lime));
  font-size: 21px;
  font-weight: 800;
}

.profile-identity {
  min-width: 0;
}

.profile-email-line {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}

.profile-banner h2 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.profile-email-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 8px;
  place-items: center;
  border-radius: 11px;
}

.profile-email-toggle svg {
  width: 16px;
  height: 16px;
}

.profile-banner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-banner .status {
  margin-top: 9px;
  color: var(--green-700);
  background: rgba(235, 250, 243, 0.92);
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.app-download-page {
  position: relative;
  min-height: calc(100dvh - 116px);
  overflow: hidden;
  padding: 34px 24px 44px;
  border-radius: 0 0 28px 28px;
  color: var(--green-950);
  background:
    radial-gradient(circle at 50% 29%, rgba(80, 222, 152, 0.22), transparent 25%),
    linear-gradient(180deg, #f9fffc 0%, #e8f8f0 100%);
}

.app-download-copy {
  position: relative;
  z-index: 2;
  max-width: 315px;
  margin: 0 auto;
  text-align: center;
}

.app-download-copy .eyebrow {
  color: var(--green-700);
  background: rgba(218, 248, 231, 0.9);
}

.app-download-copy h2 {
  margin: 14px 0 8px;
  font-size: clamp(27px, 7.5vw, 35px);
  letter-spacing: -0.04em;
}

.app-download-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.app-download-phone-wrap {
  position: relative;
  display: grid;
  height: min(55dvh, 510px);
  min-height: 370px;
  margin: 10px auto 0;
  place-items: end center;
}

.app-download-phone {
  position: relative;
  z-index: 2;
  display: block;
  width: min(77vw, 355px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(0, 61, 34, 0.25));
}

.app-download-glow {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(2px);
}

.app-download-glow.glow-one {
  width: 250px;
  height: 250px;
  bottom: 16%;
  background: radial-gradient(circle, rgba(67, 211, 132, 0.35), rgba(67, 211, 132, 0));
}

.app-download-glow.glow-two {
  width: 120%;
  height: 82px;
  bottom: 1%;
  background: radial-gradient(ellipse, rgba(0, 107, 65, 0.22), transparent 66%);
}

.app-download-button {
  position: relative;
  z-index: 3;
  display: flex;
  max-width: 390px;
  margin: 6px auto 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #00965c, #006d45);
  box-shadow: 0 15px 30px rgba(0, 116, 73, 0.28);
}

.app-download-button:hover { color: white; transform: translateY(-1px); }
.app-download-button span { display: grid; gap: 2px; text-align: left; }
.app-download-button strong { font-size: 15px; }
.app-download-button small { color: rgba(255, 255, 255, 0.78); font-size: 11px; }
.app-download-icon { width: 25px; height: 25px; }
.app-download-icon svg { width: 100%; height: 100%; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.app-download-ios {
  width: 100%;
  border: 1px solid rgba(0, 125, 77, 0.2);
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(0, 77, 47, 0.1);
  cursor: pointer;
}

.app-download-ios:hover { color: var(--green-800); background: white; }
.app-download-ios small { color: var(--muted); }

.ios-install-modal { max-width: 440px; }

.ios-install-steps {
  display: grid;
  gap: 10px;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
}

.ios-install-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fffb;
}

.ios-install-steps span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green-700);
  font-size: 12px;
  font-weight: 800;
}

.ios-install-steps p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }

.deposit-automatic-notice {
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid #ccebdd;
  border-radius: 13px;
  color: var(--green-800);
  background: #effbf5;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

[data-manual-deposit-fields] {
  display: grid;
  gap: 16px;
}

.setting-card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  box-shadow: 0 7px 18px rgba(0, 62, 37, 0.035);
  text-align: left;
}

.setting-card .setting-copy {
  min-width: 0;
  flex: 1;
}

.setting-card strong,
.setting-card small {
  display: block;
}

.setting-card strong {
  font-size: 14px;
}

.setting-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.auth-layout {
  width: min(100%, 520px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.96)),
    var(--canvas);
  box-shadow: 0 0 70px rgba(0, 50, 30, 0.12);
}

.auth-brand {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  padding: max(34px, env(safe-area-inset-top)) 28px 70px;
  color: var(--green-950);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 239, 0.78)),
    url("./assets/hero-bg.png") 72% center / cover;
}

.auth-brand .brand {
  display: block;
}

.auth-logo {
  width: 190px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.auth-brand > span {
  margin-top: 18px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.auth-brand h1 {
  max-width: 330px;
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.3;
}

.auth-panel {
  position: relative;
  z-index: 2;
  padding: 0 18px calc(34px + env(safe-area-inset-bottom));
}

.auth-card {
  width: 100%;
  margin-top: -42px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: white;
  box-shadow: 0 22px 54px rgba(0, 64, 39, 0.12);
}

.auth-card h2 {
  margin: 0 0 7px;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.auth-card > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.auth-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3fbf7;
}

.auth-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-method label {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.auth-method input:checked + label {
  color: white;
  background: linear-gradient(135deg, var(--green-950), var(--green-500));
  box-shadow: 0 10px 22px rgba(0, 134, 87, 0.18);
}

.auth-contact-field {
  display: none;
}

.auth-contact-fields[data-mode="email"] [data-contact-panel="email"],
.auth-contact-fields[data-mode="phone"] [data-contact-panel="phone"] {
  display: grid;
}

.phone-input-group {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.phone-input-group .country-code-picker,
.phone-input-group input {
  width: 100%;
}

.country-code-picker {
  position: relative;
  z-index: 3;
}

.country-code-picker.open {
  z-index: 130;
}

.country-code-trigger {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 720;
}

.country-code-picker.open .country-code-trigger {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34, 185, 120, 0.12);
}

.country-code-chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform 160ms ease;
}

.country-code-picker.open .country-code-chevron {
  transform: rotate(90deg);
}

.country-code-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 140;
  display: none;
  width: 126px;
  max-height: 332px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(0, 82, 52, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 54px rgba(0, 58, 35, 0.18);
  backdrop-filter: blur(22px) saturate(1.12);
  overscroll-behavior: contain;
}

.country-code-picker.open .country-code-menu {
  display: grid;
  gap: 4px;
}

.country-code-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  border: 0;
  border-radius: 12px;
  color: var(--green-950);
  background: transparent;
  font-size: 13px;
  font-weight: 760;
  text-align: left;
}

.country-code-option.active {
  color: var(--green-700);
  background: var(--mint);
}

.country-code-option b {
  font-size: 14px;
  line-height: 1;
}

[dir="rtl"] .country-code-menu {
  right: 0;
  left: auto;
}

[dir="rtl"] .country-code-option {
  text-align: right;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--green-700);
}

.auth-links a,
.auth-switch a {
  color: var(--green-700);
  font-weight: 730;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.lottery-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 26px;
  color: #fff;
  background: radial-gradient(circle at 85% 12%, rgba(255,220,94,.7), transparent 26%), linear-gradient(135deg, #075b43, #10a970);
  box-shadow: 0 18px 42px rgba(4,100,72,.2);
}
.lottery-hero p,.lottery-hero h2 { margin: 0; }
.lottery-hero p { opacity: .82; font-size: 13px; }
.lottery-hero h2 { margin-top: 5px; font-size: clamp(26px,7vw,38px); }
.lottery-sparkle { position: absolute; top: 15px; right: 25px; color: #ffe270; font-size: 42px; transform: rotate(18deg); }
.lottery-balance { display: flex; align-items: end; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.lottery-balance strong { font-size: 34px; line-height: 1; }
.lottery-rule-panel { margin-top: 16px; }
.lottery-rule-panel h3,.lottery-rule-panel p { margin: 0; }
.lottery-rule-panel p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.lottery-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.lottery-summary span { padding: 12px; border-radius: 14px; background: var(--canvas); }
.lottery-summary small,.lottery-summary b { display: block; }
.lottery-summary small { color: var(--muted); }
.lottery-summary b { margin-top: 5px; color: var(--green-800); }
.lottery-stage { margin-top: 24px; }
.lottery-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; padding-top: 20px; perspective: 900px; }
.lottery-choice { position: relative; display: flex; min-width: 0; min-height: 190px; padding: 38px 6px 14px; flex-direction: column; align-items: center; overflow: visible; border: 2px solid rgba(255,255,255,.48); border-radius: 12px 12px 17px 17px; color: #fff; cursor: pointer; transition: transform .25s ease,filter .25s ease,opacity .25s ease; box-shadow: 0 14px 28px rgba(37,55,49,.18),inset 0 0 0 1px rgba(0,0,0,.04); }
.lottery-choice::before { content:""; position:absolute; z-index:0; top:0; bottom:0; left:50%; width:20px; transform:translateX(-50%); background:var(--gift-ribbon); opacity:.58; }
.lottery-choice::after { content:""; position:absolute; z-index:0; top:52%; left:0; width:100%; height:18px; transform:translateY(-50%); background:var(--gift-ribbon); opacity:.58; box-shadow:0 1px 0 rgba(255,255,255,.28),0 -1px 0 rgba(0,0,0,.05); }
.lottery-choice:not(:disabled):hover { transform: translateY(-4px); }
.lottery-choice:disabled { cursor: default; }
.lottery-red { --gift-light:#ff7272;--gift-dark:#c92c45;--gift-ribbon:#ffd8dc;background:linear-gradient(155deg,var(--gift-light),var(--gift-dark)); }
.lottery-green { --gift-light:#50d49e;--gift-dark:#087052;--gift-ribbon:#d5fff0;background:linear-gradient(155deg,var(--gift-light),var(--gift-dark)); }
.lottery-yellow { --gift-light:#ffe477;--gift-dark:#e5a91c;--gift-ribbon:#fff7c9;color:#674800;background:linear-gradient(155deg,var(--gift-light),var(--gift-dark)); }
.gift-lid { position:absolute; z-index:2; top:-5px; left:-5px; width:calc(100% + 10px); height:29px; border:2px solid rgba(255,255,255,.5); border-radius:9px 9px 5px 5px; background:linear-gradient(160deg,var(--gift-light),var(--gift-dark)); box-shadow:0 5px 8px rgba(37,36,25,.14); }
.gift-lid::after { content:""; position:absolute; top:0; bottom:0; left:50%; width:20px; transform:translateX(-50%); background:var(--gift-ribbon); opacity:.68; }
.gift-bow { position:absolute; z-index:4; top:-21px; left:50%; width:17px; height:17px; transform:translateX(-50%) rotate(45deg); border:2px solid rgba(255,255,255,.52); border-radius:4px; background:var(--gift-ribbon); box-shadow:0 3px 7px rgba(45,35,20,.15); }
.gift-bow::before,.gift-bow::after { content:""; position:absolute; width:22px; height:15px; border:3px solid var(--gift-ribbon); background:rgba(255,255,255,.18); }
.gift-bow::before { right:10px; bottom:9px; border-radius:14px 14px 4px 14px; transform:rotate(-20deg); }
.gift-bow::after { left:10px; top:9px; border-radius:4px 14px 14px 14px; transform:rotate(-20deg); }
.lottery-choice.is-drawing .plush-toy { animation: plushBounce .55s ease-in-out infinite alternate; }
.lottery-choice.is-drawing:not(.is-selected) { opacity: .62; filter: saturate(.65); }
.lottery-choice.is-revealed { transform: rotateY(360deg); }
.lottery-choice.is-winner { border-color: #fff; transform: translateY(-8px) scale(1.035); box-shadow: 0 16px 38px rgba(11,87,62,.28); }
.plush-toy { position: relative; z-index:3; display: block; flex:0 0 auto; width: 72px; height: 92px; margin:auto auto 7px; filter: drop-shadow(0 7px 7px rgba(36,28,18,.2)); }
.plush-head,.plush-body,.plush-ear { position: absolute; display: block; background: currentColor; }
.plush-head { z-index: 2; top: 12px; left: 11px; width: 50px; height: 47px; border-radius: 48% 48% 44% 44%; color: rgba(255,255,255,.88); }
.lottery-yellow .plush-head,.lottery-yellow .plush-body,.lottery-yellow .plush-ear { color: #fff3bd; }
.plush-body { z-index: 1; left: 15px; bottom: 5px; width: 42px; height: 43px; border-radius: 45% 45% 38% 38%; color: rgba(255,255,255,.75); }
.plush-ear { top: 4px; width: 23px; height: 23px; border-radius: 50%; color: rgba(255,255,255,.78); }
.plush-ear-left { left: 6px; }.plush-ear-right { right: 6px; }
.plush-eye { position: absolute; top: 19px; width: 5px; height: 6px; border-radius: 50%; background: #46362f; }
.plush-eye-left { left: 13px; }.plush-eye-right { right: 13px; }
.plush-muzzle { position: absolute; left: 17px; bottom: 8px; width: 16px; height: 12px; border-radius: 50%; background: #fff; }
.plush-muzzle::after { content:""; position:absolute; top:2px; left:6px; width:5px; height:4px; border-radius:50%; background:#4b3930; }
.lottery-amount { position:relative; z-index:3; display: block; min-height: 24px; font-size: 14px; font-weight: 800; white-space: nowrap; text-shadow:0 1px 2px rgba(0,0,0,.16); }
.lottery-choice small { position:relative; z-index:3; display: block; margin-top: 3px; opacity: .88; font-size: 10px; line-height: 1.2; }
.lottery-result { min-height: 66px; margin-top: 15px; text-align: center; }
.lottery-result strong,.lottery-result small { display: block; }
.lottery-result strong { color: var(--green-800); font-size: 21px; }
.lottery-result small { margin-top: 5px; color: var(--muted); }
.lottery-history { margin-top: 5px; }
@keyframes plushBounce { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
@media (max-width:380px) { .lottery-choices { gap: 9px; }.plush-toy { width:64px;height:82px;transform:scale(.88); }.lottery-choice { min-height:178px;padding-inline:2px; }.lottery-choice::before,.gift-lid::after { width:17px; } }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(0, 35, 21, 0.42);
  backdrop-filter: blur(9px);
}

.modal {
  width: min(100%, 470px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 253, 250, 0.98));
  box-shadow: 0 35px 90px rgba(0, 35, 21, 0.34);
}

.purchase-highlight {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid rgba(7, 131, 82, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(165, 205, 53, 0.18), transparent 9rem),
    var(--mint);
}

.purchase-highlight > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--lime));
  font-size: 14px;
  font-weight: 800;
}

.purchase-highlight small,
.purchase-highlight strong {
  display: block;
}

.purchase-highlight small {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}

.purchase-highlight strong {
  font-size: 18px;
}

.fee-note,
.timezone-note {
  padding: 12px 13px;
  border: 1px solid #e1eabd;
  border-radius: 13px;
  color: #5d6c48;
  background: #f5f9eb;
  font-size: 11px;
  line-height: 1.6;
}

.settings-backdrop {
  align-items: end;
  padding: 12px;
}

.settings-sheet {
  display: flex;
  max-height: min(88dvh, 760px);
  flex-direction: column;
  padding: 0;
  border-radius: 26px 26px 20px 20px;
  overflow: hidden;
}

.settings-heading {
  flex: 0 0 auto;
  margin: 0;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.settings-heading h2 {
  font-size: 23px;
}

.settings-content {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: 16px;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 100% 0, rgba(165, 205, 53, 0.08), transparent 15rem),
    #fbfdfc;
}

.verification-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 22px rgba(0, 62, 37, 0.04);
}

.verification-card > div {
  min-width: 0;
  flex: 1;
}

.verification-card strong,
.verification-card small {
  display: block;
}

.verification-card strong {
  font-size: 14px;
}

.verification-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.logout-section {
  margin-top: 18px;
}

.logout-section .button-danger {
  border: 1px solid rgba(178, 53, 44, 0.22);
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list span {
  color: var(--muted);
}

.detail-list strong {
  text-align: right;
}

.kyc-progress {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(0, 134, 87, 0.12);
  border-radius: 15px;
  background: rgba(235, 250, 243, 0.72);
}

.kyc-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.kyc-progress span {
  color: var(--muted);
  font-weight: 700;
}

.kyc-progress strong {
  color: var(--green-900);
  font-weight: 800;
}

.kyc-progress i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 82, 52, 0.08);
  overflow: hidden;
}

.kyc-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-900), var(--green-500));
}

.kyc-document-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kyc-document-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kyc-document-options label {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 760;
}

.kyc-document-options input:checked + label {
  border-color: var(--green-500);
  color: var(--green-900);
  background: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(0, 134, 87, 0.08);
}

.kyc-upload-grid {
  display: grid;
  gap: 12px;
}

.kyc-upload {
  position: relative;
  min-height: 118px;
}

.kyc-upload.has-preview {
  padding: 0;
  border-style: solid;
  border-color: rgba(0, 134, 87, 0.35);
}

.kyc-upload.has-preview .proof-upload-icon,
.kyc-upload.has-preview .proof-upload-action,
.kyc-upload.has-preview small {
  display: none;
}

.kyc-preview {
  display: block;
  width: 100%;
  min-height: 154px;
  max-height: 250px;
  object-fit: contain;
  background: #f5f8f6;
}

.kyc-success-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 134, 87, 0.16);
  border-radius: 16px;
  color: var(--green-900);
  background: var(--mint);
}

.kyc-success-card strong,
.kyc-success-card small {
  display: block;
}

.kyc-success-card strong {
  font-size: 15px;
}

.kyc-success-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.setting-section-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.setting-divider {
  height: 1px;
  background: var(--line);
}

.toggle-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  overflow: hidden;
}

.toggle-row {
  position: relative;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row > span {
  min-width: 0;
  flex: 1;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  font-size: 13px;
}

.toggle-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle-row i {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: #d9e4df;
  transition: 160ms ease;
}

.toggle-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 48, 28, 0.18);
  content: "";
  transition: 160ms ease;
}

.toggle-row input:checked + i {
  background: linear-gradient(90deg, var(--green-700), var(--green-500));
}

.toggle-row input:checked + i::after {
  transform: translateX(19px);
}

.wallet-network-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wallet-network-option {
  min-height: 54px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: white;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.wallet-network-option.active {
  border-color: var(--green-500);
  color: var(--green-700);
  background: var(--mint);
  box-shadow: 0 10px 24px rgba(0, 132, 82, 0.08);
}

.saved-address {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.saved-address span {
  font-size: 13px;
  font-weight: 700;
}

.saved-address code {
  overflow-wrap: anywhere;
  color: var(--green-950);
  font-size: 13px;
  font-weight: 700;
}

.saved-address button {
  grid-row: 1 / 3;
  grid-column: 2;
  min-width: 58px;
  height: 34px;
  border: 1px solid rgba(32, 173, 112, 0.18);
  border-radius: 999px;
  color: var(--green-700);
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.record-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: #eaf2ee;
}

.managed-device {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(7, 131, 82, 0.13);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(165, 205, 53, 0.14), transparent 10rem),
    white;
}

.managed-device-list {
  display: grid;
  gap: 12px;
}

.managed-device > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.managed-device > div > div {
  min-width: 0;
}

.managed-device strong,
.managed-device small {
  display: block;
}

.managed-device strong {
  font-size: 13px;
}

.managed-device small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.managed-device .button {
  min-height: 42px;
}

.managed-device p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.record-tabs button {
  min-height: 36px;
  flex: 1;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.record-tabs button.active {
  color: var(--green-700);
  background: white;
  box-shadow: 0 5px 13px rgba(0, 55, 33, 0.08);
}

.record-list {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.record-row {
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid rgba(0, 134, 87, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fcfa);
}

.record-row:first-child,
.record-row:last-child {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(0, 134, 87, 0.08);
}

.record-row .transaction-main {
  align-items: flex-start;
}

.record-row .transaction-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 14px;
}

.record-row .transaction-main strong {
  max-width: 230px;
  line-height: 1.25;
}

.record-row .amount {
  padding-top: 2px;
  text-align: right;
  white-space: nowrap;
}

.records-page-heading {
  margin-top: 2px;
}

.records-page-content {
  display: grid;
  gap: 14px;
}

.progress-item {
  display: grid;
  gap: 8px;
}

.progress-item > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.progress-item strong {
  color: var(--ink);
}

.progress-item > i {
  height: 9px;
  border-radius: 999px;
  background: #e5eee9;
  overflow: hidden;
}

.progress-item > i > b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--lime));
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}

.faq-list summary {
  padding: 14px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 15px 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.support-empty {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.support-conversations {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.support-thread {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.support-thread-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.support-thread-title small,
.support-chat-row small {
  color: var(--muted);
  font-size: 10px;
}

.support-thread-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 280px;
  padding: 12px 0;
  overflow-y: auto;
}

.support-chat-row {
  max-width: 86%;
}

.support-chat-row.admin {
  align-self: flex-start;
}

.support-chat-row.client {
  align-self: flex-end;
  text-align: end;
}

.support-chat-row p {
  margin: 4px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f1f4f2;
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
  text-align: start;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-chat-row.client p {
  background: var(--green-50);
}

.support-reply-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.support-reply-form textarea {
  min-height: 48px;
}

.support-reply-form .button {
  min-width: 96px;
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.modal-heading > div {
  min-width: 0;
  flex: 1;
}

.modal h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.modal p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: white;
  font-size: 20px;
}

[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .back-button svg,
[dir="rtl"] .nav-icon:last-child svg {
  transform: scaleX(-1);
}

[dir="rtl"] .top-logo,
[dir="rtl"] .auth-logo {
  object-position: right center;
}

[dir="rtl"] .device-code {
  right: auto;
  left: 18px;
}

[dir="rtl"] .toast {
  text-align: right;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom));
  z-index: 200;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 16px;
  border-radius: 13px;
  color: white;
  background: var(--green-950);
  box-shadow: 0 16px 40px rgba(0, 55, 33, 0.24);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 10px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (min-width: 521px) {
  .page-content {
    padding-inline: 22px;
  }

  .project-visual {
    min-height: 100%;
  }
}

@media (max-width: 390px) {
  .top-logo {
    width: 68px;
  }

  .page-title {
    font-size: 19px;
  }

  .account-route-note {
    grid-template-columns: 1fr;
  }

  .route-steps {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .home-balance,
  .balance-card {
    padding: 20px;
  }

  .home-balance {
    padding-right: 132px;
  }

  .balance-object {
    right: -64px;
    bottom: -18px;
    width: 205px;
  }

  .action-grid {
    gap: 8px;
  }

  .action-card {
    padding-inline: 3px;
  }

  .action-card small {
    display: none;
  }

  .project-meta {
    flex-direction: column;
  }

  .device-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .device-card .project-meta {
    flex-direction: row;
  }

  .tier-card {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .tier-rewards {
    grid-column: auto;
    justify-items: end;
  }
}

/* iOS Safari enlarges the page when a text control is smaller than 16px. */
@media (max-width: 520px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ── Tier List / Transaction Cards ──────────────────────────────────────── */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--canvas, #f7fbf9);
  border-radius: var(--radius-sm, 13px);
  border: 1px solid var(--line, #d8ebe2);
}

.tier-card .tier-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--green-500, #22b978);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.tier-card > div {
  flex: 1;
  min-width: 0;
}

.tier-card > div strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-card > div small {
  display: block;
  font-size: 12px;
  color: var(--muted, #668176);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-card .tier-rewards {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tier-card .tier-rewards b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.tier-card .tier-rewards small {
  display: block;
  font-size: 11px;
  color: var(--muted, #668176);
}

/* notification-badge on the bell icon */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger, #ad433b);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}
