.app-main:has(.home-page) {
  padding: 0 0 calc(var(--tabbar-height) + var(--safe-bottom));
  background: #020302;
}

.home-page {
  --c-accent: #b6f53a;
  --c-accent-2: #7ec922;
  --c-card: rgba(14, 18, 12, 0.72);
  --c-border: rgba(182, 245, 58, 0.14);
  --c-muted: #7c7c7b;
  --c-soft: #d9d9d9;
  --c-sub: #8f9688;
  position: relative;
  isolation: isolate;
  min-height: 100%;
  padding: 12px 16px 28px;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(126, 201, 34, 0.14), transparent 55%),
    linear-gradient(180deg, #050805 0%, #020302 50%, #000 100%);
  color: #f4f7ef;
  font-feature-settings: "tnum" 1;
}

.home-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.5;
  animation: home-float 10s ease-in-out infinite;
}

.home-orb-a {
  width: 210px;
  height: 210px;
  top: 6%;
  right: -70px;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.32), transparent 68%);
}

.home-orb-b {
  width: 240px;
  height: 240px;
  bottom: 18%;
  left: -100px;
  background: radial-gradient(circle, rgba(90, 160, 30, 0.24), transparent 70%);
  animation-delay: -4s;
}

.home-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(182, 245, 58, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 245, 58, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
  opacity: 0.65;
}

@keyframes home-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(16px) scale(1.05); }
}

@keyframes home-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-reveal {
  animation: home-reveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--d, 0) * 60ms);
}

.home-banner,
.home-section,
.home-notice,
.home-market {
  position: relative;
  z-index: 1;
}

.home-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  z-index: 90;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.home-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 245, 58, 0.08);
  border: 1px solid rgba(182, 245, 58, 0.22);
  box-shadow: 0 0 16px rgba(182, 245, 58, 0.16);
  flex-shrink: 0;
}

.home-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

.home-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  justify-content: center;
}

.home-brand-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.home-lang,
.home-wallet {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(182, 245, 58, 0.14);
  background: rgba(14, 18, 12, 0.75);
  color: #f2f6ea;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-lang img,
.home-wallet img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.home-lang-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  color: #cfd8c2;
}

.home-wallet {
  border-color: rgba(182, 245, 58, 0.45);
  background: rgba(182, 245, 58, 0.08);
  box-shadow: 0 0 14px rgba(182, 245, 58, 0.12);
}

.home-wallet-wrap {
  position: relative;
  flex-shrink: 0;
}

.home-wallet.connected {
  border-color: rgba(182, 245, 58, 0.55);
  box-shadow: 0 0 16px rgba(182, 245, 58, 0.2);
}

.home-wallet-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 118px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 16, 10, 0.96);
  border: 1px solid rgba(182, 245, 58, 0.2);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(182, 245, 58, 0.08);
  z-index: 100;
  backdrop-filter: blur(12px);
}

.home-wallet-menu[hidden] {
  display: none !important;
}

.home-wallet-menu-item {
  width: 100%;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f2f2f2;
  font-size: 13px;
  cursor: pointer;
}

.home-wallet-menu-item:active {
  background: rgba(182, 245, 58, 0.12);
  color: var(--c-accent);
}

.home-banner {
  position: relative;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(182, 245, 58, 0.2);
  background: #000;
  height: 182px;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(182, 245, 58, 0.08);
}

.home-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.home-banner:active {
  cursor: grabbing;
}

.home-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.home-banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.home-banner-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-banner-dots i.is-active {
  width: 14px;
  border-radius: 999px;
  background: var(--c-accent);
  box-shadow: 0 0 10px rgba(182, 245, 58, 0.55);
}

.home-section {
  margin-top: 20px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.home-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-section-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.02em;
}

.home-section-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182, 245, 58, 0.1);
  border: 1px solid rgba(182, 245, 58, 0.2);
  flex-shrink: 0;
}

.home-section-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: var(--c-accent);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.home-section-icon-img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.home-section-icon-news {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' d='M2 3h14v2H2V3zm0 4h10v2H2V7zm0 4h14v2H2v-2zm0 4h8v2H2v-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' d='M2 3h14v2H2V3zm0 4h10v2H2V7zm0 4h14v2H2v-2zm0 4h8v2H2v-2z'/%3E%3C/svg%3E");
}

.home-range-tabs {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(182, 245, 58, 0.1);
}

.home-range-tabs button {
  min-width: 36px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--c-soft);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.home-range-tabs button.is-active {
  background: rgba(182, 245, 58, 0.14);
  color: var(--c-accent);
  box-shadow: 0 0 12px rgba(182, 245, 58, 0.18);
}

.home-funding-slider {
  margin-top: 2px;
  overflow: hidden;
  touch-action: pan-y;
}

.home-funding-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
}

.home-funding-card {
  flex: 0 0 100%;
  width: 100%;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.07), transparent 42%),
    var(--c-card);
  border: 1px solid var(--c-border);
  padding: 14px 14px 12px;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-funding-body {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.home-funding-left {
  flex: 6;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-funding-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-funding-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(182, 245, 58, 0.25));
}

.home-funding-brand span {
  font-size: 13px;
  line-height: 1.2;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-funding-chart {
  margin-top: 10px;
  width: 100%;
  max-width: none;
  height: 58px;
}

.home-funding-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-funding-updated {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1;
  color: #959698;
}

.home-funding-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  flex: 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-funding-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-funding-list img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.home-funding-list span {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  line-height: 1;
  color: #fff;
}

.home-funding-list strong {
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  color: var(--c-accent);
  text-shadow: 0 0 8px rgba(182, 245, 58, 0.25);
}

.home-funding-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-funding-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  min-height: 5px;
}

.home-funding-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-funding-dots i.is-active {
  width: 14px;
  border-radius: 999px;
  background: var(--c-accent);
  box-shadow: 0 0 10px rgba(182, 245, 58, 0.5);
}

.home-notice {
  margin-top: 16px;
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  background:
    linear-gradient(90deg, rgba(182, 245, 58, 0.08), transparent 40%),
    var(--c-card);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.home-notice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--c-accent);
  filter: drop-shadow(0 0 6px rgba(182, 245, 58, 0.45));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3 10v4c0 1.1.9 2 2 2h1l4 4V6L6 10H5c-1.1 0-2 .9-2 2zm13.5 2a3.5 3.5 0 0 0-1.5-2.85v5.7A3.5 3.5 0 0 0 16.5 12zM14 6.23v1.11a6 6 0 0 1 0 9.32v1.11A7.5 7.5 0 0 0 14 6.23z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3 10v4c0 1.1.9 2 2 2h1l4 4V6L6 10H5c-1.1 0-2 .9-2 2zm13.5 2a3.5 3.5 0 0 0-1.5-2.85v5.7A3.5 3.5 0 0 0 16.5 12zM14 6.23v1.11a6 6 0 0 1 0 9.32v1.11A7.5 7.5 0 0 0 14 6.23z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-notice strong {
  color: var(--c-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.home-notice-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  color: #eef3e4;
}

.home-notice-more {
  border: 0;
  background: transparent;
  color: var(--c-accent);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.home-notice-more::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 3L7.5 6 4.5 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 3L7.5 6 4.5 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-market {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(182, 245, 58, 0.22);
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.1), transparent 45%),
    var(--c-card);
  padding: 16px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(182, 245, 58, 0.08);
  backdrop-filter: blur(12px);
}

.home-market-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182, 245, 58, 0.22), transparent 70%);
  pointer-events: none;
}

.home-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-market-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.home-market-chip {
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  border: 1px solid rgba(182, 245, 58, 0.28);
  background: rgba(182, 245, 58, 0.1);
  box-shadow: 0 0 12px rgba(182, 245, 58, 0.16);
}

.home-market-price {
  margin-top: 14px;
}

.home-market-value {
  font-size: 30px;
  font-weight: 780;
  line-height: 1.1;
  color: var(--c-accent);
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(182, 245, 58, 0.3);
}

.home-market-unit {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: rgba(182, 245, 58, 0.65);
}

.home-news-section {
  margin-top: 22px;
}

.home-more-link {
  border: 0;
  background: transparent;
  color: var(--c-accent);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.home-more-link::after {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 3L7.5 6 4.5 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M4.5 3L7.5 6 4.5 9'/%3E%3C/svg%3E") center / contain no-repeat;
}

.home-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-news-empty {
  padding: 22px 0;
  text-align: center;
  font-size: 12px;
  color: var(--c-sub);
}

.home-news-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--c-border);
  background:
    linear-gradient(145deg, rgba(182, 245, 58, 0.05), transparent 50%),
    var(--c-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.home-news-item:active {
  transform: scale(0.99);
  border-color: rgba(182, 245, 58, 0.3);
}

.home-news-thumb {
  width: 92px;
  height: 63px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #121612;
  border: 1px solid rgba(182, 245, 58, 0.16);
}

.home-news-body {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}

.home-news-body h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #f2f6ea;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-body p {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-sub);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-body time {
  display: block;
  margin-top: 10px;
  font-size: 9px;
  line-height: 1;
  color: var(--c-sub);
}

@media (prefers-reduced-motion: reduce) {
  .home-orb,
  .home-reveal {
    animation: none !important;
  }
}
