:root {
  --bg: #080b16;
  --bg-grad: #0b1024;
  --card: #0f1630;
  --card2: #111a38;
  --border: rgba(96, 140, 255, 0.16);
  --border-strong: rgba(96, 140, 255, 0.32);
  --text: #eef1fb;
  --text-dim: #8892ab;
  --text-dim2: #5f6883;
  --blue: #2f6bff;
  --blue-light: #5b9bff;
  --purple: #9b6bff;
  --green: #22c77a;
  --red: #ef5566;
  --gold: #ffd76a;
  --radius: 16px;
}
.refer-card{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    overflow:hidden;
    margin:15px 0;
}

.refer-box{
    display:flex;
    align-items:center;
    width:100%;
    border:1px solid #2ecc71;
    border-radius:10px;
    overflow:hidden;
    background:#101820;
}

.refer-input{
    flex:1;
    min-width:0;
    width:100%;
    padding:12px;
    border:none;
    outline:none;
    background:transparent;
    color:#fff;
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.copy-btn{
    flex-shrink:0;
    padding:12px 18px;
    border:none;
    background:#2ecc71;
    color:#fff;
    cursor:pointer;
}

@media (max-width:768px){

    .refer-card{
        width:100%;
        order:0;
    }

    .refer-box{
        flex-direction:column;
    }

    .refer-input{
        text-align:center;
    }

    .copy-btn{
        width:100%;
        border-radius:0;
    }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(47, 107, 255, 0.14),
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 10%,
      rgba(155, 107, 255, 0.1),
      transparent 45%
    ),
    linear-gradient(180deg, #070a14, #0a0e1e 40%, #080b16);
  color: var(--text);
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------------- ANIMATED BACKGROUND ---------------- */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-animation .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.7;
  animation: orbFloat 24s ease-in-out infinite;
  will-change: transform;
}
.bg-animation .orb1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.7), transparent 70%);
  animation-duration: 22s;
}
.bg-animation .orb2 {
  width: 360px;
  height: 360px;
  top: 30%;
  right: -120px;
  background: radial-gradient(
    circle,
    rgba(155, 107, 255, 0.6),
    transparent 70%
  );
  animation-duration: 28s;
  animation-delay: -6s;
}
.bg-animation .orb3 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: 20%;
  background: radial-gradient(
    circle,
    rgba(34, 199, 122, 0.28),
    transparent 70%
  );
  animation-duration: 32s;
  animation-delay: -12s;
}
.bg-animation .orb4 {
  width: 220px;
  height: 220px;
  top: 60%;
  left: 55%;
  background: radial-gradient(circle, rgba(91, 155, 255, 0.3), transparent 70%);
  animation-duration: 19s;
  animation-delay: -3s;
}
.bg-animation .stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      1.6px 1.6px at 12% 22%,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(
      1.2px 1.2px at 28% 65%,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(
      1.8px 1.8px at 45% 15%,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(
      1.3px 1.3px at 63% 80%,
      rgba(255, 255, 255, 0.45),
      transparent
    ),
    radial-gradient(
      1.6px 1.6px at 78% 35%,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(
      1.2px 1.2px at 88% 68%,
      rgba(255, 255, 255, 0.4),
      transparent
    ),
    radial-gradient(
      1.4px 1.4px at 8% 85%,
      rgba(255, 255, 255, 0.5),
      transparent
    ),
    radial-gradient(
      1.5px 1.5px at 95% 12%,
      rgba(255, 255, 255, 0.5),
      transparent
    );
  animation: twinkle 6s ease-in-out infinite alternate;
}
.bg-animation .grid-floor {
  position: absolute;
  bottom: -15%;
  left: -60%;
  width: 220%;
  height: 55%;
  background-image:
    linear-gradient(rgba(91, 155, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 155, 255, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    transparent 85%
  );
  animation: gridMove 5s linear infinite;
  opacity: 0.55;
}
@keyframes gridMove {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      0 64px,
      0 0;
  }
}
.bg-animation .particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, #cddcff, #5b9bff 60%, transparent 100%);
  box-shadow: 0 0 10px 2px rgba(91, 155, 255, 0.8);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-115vh) translateX(var(--drift, 30px));
    opacity: 0;
  }
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-40px, 30px) scale(0.92);
  }
}
@keyframes twinkle {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 0.85;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bg-animation .orb,
  .bg-animation .stars,
  .bg-animation .grid-floor,
  .globe,
  .globe::after,
  .crown-ico,
  .arrow-ico,
  .badge-pro,
  .hero-copy h1 span,
  .dashboard section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- entrance animation for dashboard cards ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dashboard section {
  animation: fadeInUp 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

/* card tilt transform + glow driven by JS (see script at bottom) */
@media (hover: hover) {
  .plan-card {
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;
  }
  .plan-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px -16px rgba(59, 123, 255, 0.45);
  }
  .plan-card:hover h3 {
    transform: scale(1.2);
    font-weight: 900;
    text-shadow: 0 0 24px rgba(155, 107, 255, 0.95);
  }
}
.card {
  background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03) inset,
    0 12px 30px -14px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  padding: 20px;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--mx, 50%) var(--my, 50%),
      var(--spot, rgba(91, 155, 255, 0)),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
  pointer-events: none;
}
.card.tilt-hover {
  --spot: rgba(91, 155, 255, 0.2);
}
.card.tilt-hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 34px 60px -18px rgba(0, 0, 0, 0.9),
    0 0 60px -6px rgba(59, 123, 255, 0.7),
    0 0 0 1px rgba(120, 160, 255, 0.55);
}
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, #2f6bff, #9b6bff, #22c77a, #2f6bff);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spinBorder 4s linear infinite;
  pointer-events: none;
}
.card.tilt-hover::after {
  opacity: 0.9;
}
@keyframes spinBorder {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease,
    letter-spacing 0.3s ease;
  transform-origin: left center;
}
.card.tilt-hover .card-title,
.card:hover .card-title {
  transform: scale(1.12);
  font-weight: 900;
  letter-spacing: 0.4px;
  text-shadow: 0 0 22px rgba(91, 155, 255, 0.85);
}
.view-all {
  font-size: 12.5px;
  color: var(--blue-light);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pill-green {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}
.pill-red {
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.25s ease,
    font-weight 0.2s ease,
    letter-spacing 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.035);
  font-weight: 800;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, #3b7bff, #2255e8);
  color: #fff;
  box-shadow:
    0 8px 20px -6px rgba(47, 107, 255, 0.6),
    0 0 0 1px rgba(120, 160, 255, 0.3) inset;
}
.btn-primary:hover {
  box-shadow:
    0 14px 34px -8px rgba(47, 107, 255, 0.85),
    0 0 30px -4px rgba(91, 155, 255, 0.8),
    0 0 0 1px rgba(150, 180, 255, 0.5) inset;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  border-color: rgba(150, 180, 255, 0.7);
  box-shadow: 0 0 24px -4px rgba(91, 155, 255, 0.6);
  color: #fff;
}
img.icon-coin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

/* ---------------- DESKTOP HEADER ---------------- */
.desktop-only {
  display: block;
}
.mobile-only {
  display: none;
}

header.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 22, 0.85);
  backdrop-filter: blur(14px);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
}
.mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #3b7bff, #9b6bff);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 4px 14px -2px rgba(59, 123, 255, 0.7);
}
nav.mainnav {
  display: flex;
  gap: 30px;
  font-size: 14.5px;
  color: var(--text-dim);
}
nav.mainnav a {
  display: inline-block;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1),
    color 0.25s ease,
    text-shadow 0.25s ease;
  transform-origin: center;
}
nav.mainnav a:hover {
  color: #fff;
  font-weight: 900;
  transform: scale(1.28);
  text-shadow:
    0 0 22px rgba(91, 155, 255, 1),
    0 0 44px rgba(91, 155, 255, 0.6);
}
nav.mainnav a.active {
  color: var(--text);
  font-weight: 600;
  position: relative;
}
nav.mainnav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: linear-gradient(90deg, #3b7bff, #9b6bff);
  border-radius: 2px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
}
.wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  padding: 6px 12px 6px 6px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
}
.wallet-chip .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b7bff, #5b9bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ---------------- LAYOUT GRID ---------------- */
.dashboard {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 20px;
  padding: 26px 36px 60px;
  max-width: 1560px;
  margin: 0 auto;
  align-items: start;
}
.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.area-profile {
  grid-area: profile;
  animation-delay: 0.03s;
}
.area-hero {
  grid-area: hero;
  animation-delay: 0.08s;
}
.area-portval {
  grid-area: portval;
  animation-delay: 0.13s;
}
.area-market {
  grid-area: market;
  animation-delay: 0.18s;
}
.area-plans {
  grid-area: plans;
  animation-delay: 0.23s;
}
.area-orderpanel {
  grid-area: orderpanel;
  animation-delay: 0.28s;
}
.area-volume {
  grid-area: volume;
  animation-delay: 0.33s;
}
.area-stats {
  grid-area: stats;
  animation-delay: 0.38s;
}
.area-mission {
  grid-area: mission;
  animation-delay: 0.43s;
}
.area-roadmap {
  grid-area: roadmap;
  animation-delay: 0.48s;
}
.area-announce {
  grid-area: announce;
  animation-delay: 0.53s;
}
.area-cta {
  grid-column: 1 / -1;
  background:
    linear-gradient(
      135deg,
      rgba(59, 123, 255, 0.15) 0%,
      rgba(155, 107, 255, 0.15) 100%
    ),
    var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 0 40px -10px rgba(91, 155, 255, 0.25);
  animation-delay: 0.58s;
}
.area-cta::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(91, 155, 255, 0.2) 0%,
    transparent 70%
  );
  top: -150px;
  right: -50px;
  pointer-events: none;
}
.cta-content {
  flex: 1;
  z-index: 1;
}
.cta-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #fff, #cddcff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.5;
}
.cta-actions {
  display: flex;
  gap: 14px;
  z-index: 1;
  flex-shrink: 0;
}

/* ---- Profile card ---- */
.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.profile-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-pro {
  background: linear-gradient(135deg, #3b7bff, #9b6bff);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  color: #fff;
  animation: badgeGlow 2.6s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(155, 107, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(155, 107, 255, 0.9);
  }
}
.profile-balance {
  font-size: 24px;
  font-weight: 700;
  margin-top: 14px;
  transition:
    transform 0.25s ease,
    text-shadow 0.25s ease;
  transform-origin: left center;
  display: inline-block;
  cursor: default;
}
.profile-balance:hover {
  transform: scale(1.06);
  text-shadow: 0 0 20px rgba(91, 155, 255, 0.6);
}
.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.profile-actions .btn {
  flex: 1;
}

/* ---- Market overview / lists ---- */
.market-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: padding 0.25s ease;
}
.market-row:last-of-type {
  border-bottom: none;
}
.coin-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coin-symbol {
  font-weight: 600;
  font-size: 14px;
  transition:
    transform 0.25s ease,
    text-shadow 0.25s ease;
  transform-origin: left center;
  display: inline-block;
}
.market-row:hover .coin-symbol {
  transform: scale(1.15);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(91, 155, 255, 0.75);
}
.market-row:hover .coin-icon {
  transform: scale(1.15);
  box-shadow: 0 0 18px -2px currentColor;
}
.coin-price {
  text-align: right;
}
.coin-price .p {
  font-weight: 600;
  font-size: 14px;
}
.sparkline {
  width: 60px;
  height: 26px;
}
.coin-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(
      circle at 75% 30%,
      rgba(59, 123, 255, 0.35),
      transparent 55%
    ),
    linear-gradient(135deg, #0c1330, #0a1a3d 60%, #0c1330);
  border: 1px solid var(--border-strong);
  min-height: 300px;
  display: flex;
  align-items: center;
  padding: 38px;
  gap: 20px;
}
.hero-copy {
  flex: 1;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  font-size: 38px;
  line-height: 1.12;
  margin: 0 0 14px 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  cursor: default;
}
.hero-copy h1 span {
  background: linear-gradient(90deg, #5b9bff, #9b6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  transform-origin: left center;
  animation: heroGlow 3.5s ease-in-out infinite;
}
.hero-copy h1 span:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 26px rgba(91, 155, 255, 0.9));
}
@keyframes heroGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(91, 155, 255, 0.35));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(155, 107, 255, 0.55));
  }
}
.hero-copy p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 22px 0;
}
.globe-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 260px;
}
.globe {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #6fb3ff,
    #2f6bff 45%,
    #0b1c4a 85%
  );
  box-shadow:
    0 0 60px -5px rgba(59, 123, 255, 0.8),
    inset -14px -14px 30px rgba(0, 0, 0, 0.5),
    inset 10px 10px 24px rgba(255, 255, 255, 0.15);
  position: relative;
  animation: globeFloat 6s ease-in-out infinite;
}
.globe::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 0 2px,
    transparent 2px 22px
  );
  opacity: 0.5;
  animation: globeSpin 14s linear infinite;
}
@keyframes globeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes globeSpin {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 120px 0;
  }
}
.crown-ico {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%) rotate(-6deg);
  font-size: 44px;
  filter: drop-shadow(0 6px 14px rgba(255, 215, 106, 0.5));
  animation: crownBob 4s ease-in-out infinite;
}
@keyframes crownBob {
  0%,
  100% {
    transform: translateX(-50%) rotate(-6deg) translateY(0);
  }
  50% {
    transform: translateX(-50%) rotate(-2deg) translateY(-6px);
  }
}
.arrow-ico {
  position: absolute;
  top: 10px;
  right: -30px;
  font-size: 60px;
  color: #5b9bff;
  filter: drop-shadow(0 0 14px rgba(91, 155, 255, 0.7));
  transform: rotate(8deg);
  animation: arrowPulse 3s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: rotate(8deg) translate(0, 0);
  }
  50% {
    opacity: 1;
    transform: rotate(8deg) translate(4px, -4px);
  }
}
.currency-row {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  font-size: 26px;
  font-weight: 800;
}
.currency-row span:nth-child(1) {
  color: #8fb8ff;
}
.currency-row span:nth-child(2) {
  color: #fff;
  font-size: 34px;
}
.currency-row span:nth-child(3) {
  color: #c3d6ff;
}
.coin-stack {
  position: absolute;
  bottom: -20px;
  left: -40px;
  display: flex;
}
.coin-stack div {
  width: 34px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe08a, #c99a34);
  margin-left: -14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ---- Plans ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plan-card {
  background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.plan-card.pro {
  border-color: rgba(155, 107, 255, 0.4);
  box-shadow:
    0 0 0 1px rgba(155, 107, 255, 0.15) inset,
    0 14px 30px -16px rgba(155, 107, 255, 0.5);
}
.plan-icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
  transition: transform 0.3s ease;
}
.plan-card:hover .plan-icon {
  transform: scale(1.25) rotate(-6deg);
}
.plan-card h3 {
  margin: 0 0 12px 0;
  font-size: 15.5px;
  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease;
  transform-origin: left center;
}
.plan-card ul {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.plan-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}
/* ---- Plan Cards Action Styles ---- */
.plan-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.plan-input {
  background: rgba(8, 11, 22, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.plan-input:focus {
  border-color: var(--blue-light);
}
.btn-activate-plan {
  padding: 8px 12px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  width: 100%;
}



/* Active Plan State */
.plan-card.active-subscription {
  border-color: var(--green) !important;
  box-shadow:
    0 0 0 1px rgba(34, 199, 122, 0.25) inset,
    0 10px 24px -10px rgba(34, 199, 122, 0.4) !important;
  position: relative;
}
.plan-card.active-subscription::before {
  content: "ACTIVE";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--green);
  color: #070a14;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 5;
}

/* ---- Portfolio value ---- */
.big-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
}
.portval-timeframes {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.portval-timeframes span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.portval-timeframes span.active {
  background: var(--blue);
  color: #fff;
}
.portval-subtext {
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.portval-subtext.up::before {
  content: "↑";
}
.portval-bar {
  display: flex;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px 0 16px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.portval-bar-segment {
  height: 100%;
  position: relative;
  transition: width 0.3s ease;
}
.portval-bar-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent);
}
.portval-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.legend-item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.legend-name {
  font-weight: 600;
}
.legend-pct {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}
.legend-val {
  font-weight: 600;
  text-align: right;
}

/* ---- Swap & Staking Hub ---- */
.hub-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.hub-tab-btn {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s ease;
}
.hub-tab-btn.active {
  background: linear-gradient(135deg, #3b7bff, #2255e8);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(47, 107, 255, 0.4);
}
.swap-input-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}
.swap-input-group:focus-within {
  border-color: var(--blue-light);
}
.swap-input-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim2);
  margin-bottom: 6px;
}
.swap-input-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.swap-input-body input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  width: 100%;
  outline: none;
  padding: 0;
}
.swap-token-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.swap-token-select:hover {
  background: rgba(255, 255, 255, 0.1);
}
.quick-pct {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  align-items: center;
}
.quick-pct button.pct-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-pct button.pct-btn:hover {
  background: rgba(91, 155, 255, 0.1);
  border-color: var(--blue-light);
  color: #fff;
}
.quick-pct input.pct-input {
  width: 60px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}
.quick-pct input.pct-input:focus {
  border-color: var(--blue-light);
}
.quick-pct button.pct-btn-set {
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.quick-pct button.pct-btn-set:hover {
  background: var(--blue-light);
}
.swap-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -4px 0 6px;
  position: relative;
  z-index: 2;
}
.swap-arrow-btn {
  width: 32px;
  height: 32px;
  background: var(--card2);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--blue-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.swap-arrow-btn:hover {
  transform: rotate(180deg);
  border-color: var(--blue);
  color: #fff;
}
.swap-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}
.swap-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-dim);
}
.swap-details-val {
  color: var(--text);
  font-weight: 500;
}
.stake-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.stake-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.stake-stat-label {
  font-size: 11px;
  color: var(--text-dim2);
  margin-bottom: 4px;
}
.stake-stat-val {
  font-size: 16px;
  font-weight: 700;
}
.stake-pool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
}
.stake-pool-row:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.pool-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pool-apy {
  color: var(--green);
  font-weight: 700;
}

/* ---- volume bars ---- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  margin-top: 12px;
}
.bars div {
  flex: 1;
  background: linear-gradient(180deg, #5b9bff, #2255e8);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

/* ---- stats trio ---- */
.stats-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13.5px;
}

/* fear greed gauge */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}
.gauge {
  width: 130px;
  height: 70px;
}
.gauge-num {
  font-size: 26px;
  font-weight: 800;
  margin-top: -30px;
}
.gauge-label {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

/* ---- mission ---- */
.mission-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b7bff, #9b6bff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.mission-card p {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- roadmap ---- */
.roadmap-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-top: 26px;
}
.roadmap-track::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(
    90deg,
    #22c77a,
    #22c77a 40%,
    #9b6bff 40%,
    #9b6bff
  );
  opacity: 0.5;
  z-index: 0;
}
.rm-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.rm-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 2px solid var(--border-strong);
  background: var(--card2);
}
.rm-circle.done {
  border-color: #22c77a;
  color: #22c77a;
  box-shadow: 0 0 16px -2px rgba(34, 199, 122, 0.6);
}
.rm-circle.progress {
  border-color: #9b6bff;
  color: #9b6bff;
  box-shadow: 0 0 16px -2px rgba(155, 107, 255, 0.6);
}
.rm-quarter {
  font-size: 12px;
  color: var(--text-dim2);
  font-weight: 600;
}
.rm-title {
  font-size: 13.5px;
  font-weight: 600;
  margin: 4px 0;
  transition:
    transform 0.25s ease,
    text-shadow 0.25s ease;
  display: inline-block;
}
.rm-step:hover .rm-title {
  transform: scale(1.12);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(91, 155, 255, 0.7);
}
.rm-step:hover .rm-circle {
  transform: scale(1.15);
}
.rm-circle {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.rm-status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rm-status.done {
  color: #22c77a;
}
.rm-status.progress {
  color: #9b6bff;
}
.rm-status.upcoming {
  color: var(--text-dim2);
}

/* ---- announcements ---- */
.ann-row {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ann-row:last-of-type {
  border-bottom: none;
}
.ann-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(59, 123, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.ann-title {
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.25s ease,
    text-shadow 0.25s ease;
  transform-origin: left center;
}
.ann-row:hover .ann-title {
  transform: scale(1.06);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(91, 155, 255, 0.6);
}
.ann-row:hover .ann-icon {
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 0 16px -2px rgba(59, 123, 255, 0.7);
}
.ann-icon {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.ann-date {
  font-size: 11.5px;
  color: var(--text-dim2);
  margin-top: 2px;
}
.new-tag {
  background: var(--blue);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
}

/* ============ MOBILE ============ */
.phone-frame {
  display: none;
}

@media (max-width: 980px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }

  body {
    background: linear-gradient(180deg, #070a14, #0a0e1e 40%, #080b16);
  }

  header.mobile-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(8, 11, 22, 0.9);
    backdrop-filter: blur(12px);
    z-index: 50;
  }
  header.mobile-top .left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
  }
  header.mobile-top .left .mark {
    width: 26px;
    height: 26px;
    box-shadow: 0 2px 8px -1px rgba(59, 123, 255, 0.6);
  }
  header.mobile-top .right {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-dim);
  }

  .dashboard {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 14px 100px;
    grid-template-columns: unset;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .dashboard-col {
    display: contents;
  }
  .dashboard section {
    width: 100%;
    max-width: 100%;
  }
  .area-profile {
    order: 1;
  }
  .area-hero {
    order: 2;
  }
  .area-portval {
    order: 3;
  }
  .area-market {
    order: 4;
  }
  .area-plans {
    order: 5;
  }
  .area-orderpanel {
    order: 6;
  }
  .area-volume {
    order: 7;
  }
  .area-stats {
    order: 8;
  }
  .area-mission {
    order: 9;
  }
  .area-roadmap {
    order: 10;
  }
  .area-announce {
    order: 11;
  }
  .area-cta {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
    padding: 30px 20px;
    gap: 20px;
    order: 12;
  }
  .area-cta .cta-actions {
    flex-direction: column;
    gap: 10px;
  }
  .area-stats.stats-trio {
    display: grid;
  } /* keep its own grid, but stretch full width */

  .card {
    padding: 18px;
    border-radius: 14px;
  }
  .card-title {
    margin-bottom: 12px;
  }

  .profile-top {
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stats-trio {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .stats-trio .card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero {
    flex-direction: column;
    text-align: left;
    padding: 22px 22px 18px;
    min-height: 0;
    gap: 0;
  }
  .hero-copy h1 {
    font-size: 27px;
    margin-bottom: 10px;
  }
  .hero-copy p {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .globe-wrap {
    height: 172px;
    margin-top: 6px;
  }
  .globe {
    width: 120px;
    height: 120px;
  }
  .crown-ico {
    font-size: 36px;
    top: -28px;
  }
  .arrow-ico {
    font-size: 46px;
    right: -18px;
    top: 6px;
  }
  .currency-row {
    font-size: 20px;
    bottom: -2px;
  }
  .currency-row span:nth-child(2) {
    font-size: 26px;
  }
  .coin-stack {
    bottom: -14px;
    left: -24px;
  }
  .coin-stack div {
    width: 26px;
    height: 10px;
  }

  .mobile-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mobile-card-row .card {
    padding: 16px;
  }

  .roadmap-track {
    overflow-x: auto;
    gap: 10px;
  }
  .rm-step {
    min-width: 90px;
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: rgba(10, 14, 28, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
  }
  .bottom-nav .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-dim2);
    transition:
      transform 0.2s ease,
      text-shadow 0.2s ease,
      color 0.2s ease;
  }
  .bottom-nav .item.active {
    color: var(--blue-light);
    font-weight: 800;
    text-shadow: 0 0 14px rgba(91, 155, 255, 0.7);
  }
  .bottom-nav .item.active .ic {
    filter: drop-shadow(0 0 10px rgba(91, 155, 255, 0.8));
    transform: translateY(-2px);
  }
  .bottom-nav .item:active {
    transform: scale(0.92);
  }
  .bottom-nav .item .ic {
    font-size: 19px;
    transition:
      transform 0.2s ease,
      filter 0.2s ease;
  }
}

@media (max-width: 520px) {
  .stats-trio {
    grid-template-columns: 1fr !important;
  }
  .stats-trio .card:nth-child(3) {
    grid-column: unset !important;
  }
}
@media (max-width: 768px) {
  .dashboard {
    display: flex;
    flex-direction: column;
  }
/* ===================== FOOTER ===================== */
.footer {
    width: 100%;
    text-align: center;
    padding: 18px 15px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(10, 15, 30, 0.9);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer p {
    margin: 0;
}
  .area-plans {
    order: -1;
  }

  /* keep the rest in their natural document order */
  .area-hero { order: 1; }
  .area-market { order: 2; }
  .area-volume { order: 3; }
  .area-mission { order: 4; }
  .area-stats { order: 5; }
  .area-portval { order: 6; }
  .area-announce { order: 7; }
  .area-cta { order: 8; }
}