/* ============================================
   Infinity Flow Group — Dashboard
   ============================================ */

:root {
  --bg-deep: #060b1a;
  --bg-navy: #0a1228;
  --bg-card: rgba(14, 28, 58, 0.72);
  --bg-card-solid: #0e1c3a;
  --border: rgba(0, 229, 255, 0.18);
  --border-strong: rgba(0, 229, 255, 0.35);
  --cyan: #00e5ff;
  --cyan-dim: #00bcd4;
  --purple: #7c4dff;
  --gold: #ffd54f;
  --green: #00e676;
  --mint: #1de9b6;
  --text: #e8eef8;
  --text-muted: #8b9bb8;
  --sidebar-w: 260px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 24px rgba(0, 229, 255, 0.12);
  --font: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
}

/* Ambient layers handled by .bg-layer */

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ---- Layout ---- */

.app {
  display: flex;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-w);
}

.content {
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ---- Glass ---- */

.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.45),
    rgba(124, 77, 255, 0.15) 35%,
    transparent 55%,
    rgba(255, 213, 79, 0.2) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.35s var(--ease);
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 40%, transparent 60%, rgba(0, 229, 255, 0.05));
  opacity: 0.9;
}

.glass:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.16), 0 8px 28px rgba(0, 0, 0, 0.25);
}

.glass:hover::before {
  opacity: 1;
}

.glass--lift:hover {
  transform: translateY(-4px);
}

/* ---- Sidebar ---- */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  background: linear-gradient(180deg, #0c1834 0%, #08101f 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.35s var(--ease);
}

.sidebar__brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
  min-height: 88px;
  border-bottom: 1px solid var(--border);
  background: #000;
  overflow: hidden;
}

.sidebar__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.12), transparent 65%);
  pointer-events: none;
}

.sidebar__brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  min-width: 0;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.15rem;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s var(--ease), filter 0.25s var(--ease);
}

.sidebar__brand-link:hover {
  opacity: 0.95;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
}

.sidebar__brand-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.sidebar__logo-img {
  display: block;
  height: 64px;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

.sidebar__close {
  display: none;
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  background: rgba(14, 28, 58, 0.55);
  border: 1px solid var(--border);
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-item i {
  width: 1.15rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
}

.nav-item:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text);
}

.nav-item.is-active {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.22), rgba(124, 77, 255, 0.14));
  color: var(--cyan);
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 20px rgba(0, 229, 255, 0.08);
  animation: navActiveGlow 2.8s ease-in-out infinite;
}

.sidebar__footer {
  padding: 1rem 1.1rem 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.sidebar__footer i {
  color: var(--cyan);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: block;
  opacity: 0.8;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
  backdrop-filter: blur(2px);
}

/* ---- Topbar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(6, 11, 26, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.topbar__menu {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--cyan);
  cursor: pointer;
  flex-shrink: 0;
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.topbar__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.topbar__user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__user-info strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  width: fit-content;
}

.badge--leader {
  background: linear-gradient(90deg, rgba(255, 213, 79, 0.25), rgba(255, 152, 0, 0.2));
  color: var(--gold);
  border: 1px solid rgba(255, 213, 79, 0.35);
}

.topbar__search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  background: rgba(14, 28, 58, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.topbar__search:focus-within {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.topbar__search i {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.topbar__search input {
  flex: 1;
  min-width: 0;
  outline: none;
}

.topbar__search input::placeholder {
  color: var(--text-muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(14, 28, 58, 0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  color: var(--cyan);
  border-color: var(--border-strong);
}

.icon-btn__dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff1744;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(14, 28, 58, 0.8);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-btn__flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-btn i {
  font-size: 0.65rem;
}

/* ---- Hero ---- */

.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.15), 0 0 80px rgba(124, 77, 255, 0.1);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 11, 26, 0.92) 0%, rgba(6, 11, 26, 0.72) 45%, rgba(6, 11, 26, 0.55) 100%),
    url("../img/hero-infinity.jpg") right center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
}

.hero__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(0, 229, 255, 0.12) 45%, transparent 70%);
  background-size: 200% 100%;
  animation: shineSweep 6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.hero > *:not(.hero__bg):not(.hero__shine) {
  position: relative;
  z-index: 2;
}

.hero__visual {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.hero__img {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.55;
  filter: saturate(1.2) brightness(0.9);
  mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 75%);
}

.hero__orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(145deg, #00e5ff, #7c4dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.45), 0 0 80px rgba(124, 77, 255, 0.25);
  animation: pulse 3s ease-in-out infinite;
  position: relative;
  margin: 10px auto;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35), transparent 70%);
  animation: pulse 3s ease-in-out infinite reverse;
}

.hero__eyebrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
}

.hero__copy h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.hero__checklist {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero__checklist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.hero__checklist i {
  color: var(--green);
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- KPI ---- */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
  animation: fadeUp 0.6s var(--ease) 0.08s both;
}

.kpi {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.kpi:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.kpi__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.kpi__icon--cyan { background: rgba(0, 229, 255, 0.15); color: var(--cyan); }
.kpi__icon--purple { background: rgba(124, 77, 255, 0.18); color: var(--purple); }
.kpi__icon--gold { background: rgba(255, 213, 79, 0.15); color: var(--gold); }
.kpi__icon--green { background: rgba(0, 230, 118, 0.12); color: var(--green); }
.kpi__icon--mint { background: rgba(29, 233, 182, 0.15); color: var(--mint); }

.kpi__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.kpi__label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi__value {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi__trend {
  font-size: 0.72rem;
  font-weight: 600;
}

.kpi__trend.is-up {
  color: var(--green);
}

.btn--withdraw {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #04120a;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--withdraw:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 230, 118, 0.45);
}

/* ---- Panels ---- */

.panel {
  padding: 1.15rem 1.25rem;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.panel__head h2 {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel__head h2 i {
  color: var(--cyan);
  font-size: 0.9rem;
}

.chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

/* ---- Mid grid ---- */

.mid-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.7fr;
  gap: 0.9rem;
  animation: fadeUp 0.6s var(--ease) 0.16s both;
}

/* Matrix tree (widget + shared gauge) */

.matrix {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
}

.matrix__tree {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.matrix__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.matrix__node img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.matrix__node--root img {
  width: 56px;
  height: 56px;
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 213, 79, 0.4);
}

.matrix__node span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.matrix__node--empty {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed rgba(0, 229, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  background: rgba(0, 229, 255, 0.04);
}

.matrix__node--empty span {
  display: none;
}

.matrix__node--sm img,
.matrix__node--sm.matrix__node--empty {
  width: 32px;
  height: 32px;
  font-size: 0.6rem;
}

.matrix__node--sm img {
  border-width: 1.5px;
}

.matrix__row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.matrix__row--l2 {
  gap: 0.4rem;
}

.matrix__lines {
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
  position: relative;
}

.matrix__lines::before,
.matrix__lines::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 10px;
  background: rgba(0, 229, 255, 0.4);
  top: -10px;
  left: 50%;
}

.panel--matrix .panel__head {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel--matrix .mtx-head__chips--compact {
  margin-left: auto;
}

.matrix__gauge {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  align-self: center;
}

.gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge__track {
  fill: none;
  stroke: rgba(0, 229, 255, 0.12);
  stroke-width: 10;
}

.gauge__progress {
  fill: none;
  stroke: url(#none);
  stroke: var(--cyan);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: calc(327 - (327 * var(--pct) / 100));
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
  transition: stroke-dashoffset 1s var(--ease);
}

.gauge__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}

.gauge__label strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cyan);
}

.gauge__label span {
  font-size: 0.7rem;
  font-weight: 600;
}

.gauge__label small {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* Earnings tables */

.earn-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.earn-block h3 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
}

.earn-block h3 i {
  color: var(--gold);
  font-size: 0.75rem;
}

.earn-block:last-child h3 i {
  color: var(--cyan);
}

/* ---- Premium tables (.data-table / .if-table) ---- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 229, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(0, 229, 255, 0.04), transparent 48%),
    rgba(6, 12, 28, 0.35);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.35) rgba(0, 0, 0, 0.2);
}

.table-wrap::-webkit-scrollbar {
  height: 6px;
}

.table-wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.4), rgba(124, 77, 255, 0.45));
  border-radius: 999px;
}

.earn-block .table-wrap {
  border: none;
  background: transparent;
  border-radius: 0;
}

.earn-block table,
.data-table,
.if-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8rem;
  min-width: 280px;
}

.earn-block th,
.data-table th,
.if-table th {
  text-align: left;
  color: rgba(232, 238, 248, 0.72);
  font-weight: 650;
  padding: 0.7rem 0.85rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(0, 229, 255, 0.12) 0%,
    rgba(124, 77, 255, 0.08) 55%,
    rgba(10, 18, 40, 0.55) 100%
  );
  border-bottom: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: inset 0 -1px 0 rgba(255, 213, 79, 0.12);
}

.earn-block th:first-child,
.data-table th:first-child,
.if-table th:first-child {
  padding-left: 1rem;
}

.earn-block th:last-child,
.data-table th:last-child,
.if-table th:last-child {
  padding-right: 1rem;
}

.earn-block td,
.data-table td,
.if-table td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.07);
  font-weight: 500;
  color: var(--text);
  vertical-align: middle;
  white-space: nowrap;
  transition:
    background 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.earn-block td:first-child,
.data-table td:first-child,
.if-table td:first-child {
  padding-left: 1rem;
  font-weight: 650;
  color: #f2f6ff;
  letter-spacing: 0.01em;
}

.earn-block td:last-child,
.data-table td:last-child,
.if-table td:last-child {
  padding-right: 1rem;
  font-variant-numeric: tabular-nums;
}

.earn-block tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) td,
.if-table tbody tr:nth-child(even) td {
  background: rgba(0, 229, 255, 0.025);
}

.earn-block tbody tr:hover td,
.data-table tbody tr:hover td,
.if-table tbody tr:hover td {
  background: rgba(0, 229, 255, 0.07);
  border-bottom-color: rgba(0, 229, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.06), 0 0 18px rgba(0, 229, 255, 0.06);
}

.earn-block tbody tr:hover td:first-child,
.data-table tbody tr:hover td:first-child,
.if-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--cyan);
}

.earn-block tbody tr:last-child td,
.data-table tbody tr:last-child:not(.is-total) td,
.if-table tbody tr:last-child:not(.is-total) td {
  border-bottom: none;
}

/* Fila total / pie */
.earn-block tbody tr.is-total td,
.data-table tbody tr.is-total td,
.if-table tbody tr.is-total td {
  background: linear-gradient(
    90deg,
    rgba(255, 213, 79, 0.08),
    rgba(0, 229, 255, 0.06) 45%,
    rgba(124, 77, 255, 0.08)
  );
  border-top: 1px solid rgba(255, 213, 79, 0.28);
  border-bottom: none;
  font-weight: 700;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 213, 79, 0.12);
}

.earn-block tbody tr.is-total:hover td,
.data-table tbody tr.is-total:hover td,
.if-table tbody tr.is-total:hover td {
  background: linear-gradient(
    90deg,
    rgba(255, 213, 79, 0.12),
    rgba(0, 229, 255, 0.09) 45%,
    rgba(124, 77, 255, 0.12)
  );
  box-shadow: inset 0 1px 0 rgba(255, 213, 79, 0.18);
}

/* Compacto en paneles de ganancias del dashboard */
.earn-block .data-table,
.earn-block .if-table,
.earn-block table {
  min-width: 0;
  font-size: 0.76rem;
}

.earn-block th,
.earn-block td {
  padding: 0.55rem 0.55rem;
}

.earn-block th:first-child,
.earn-block td:first-child {
  padding-left: 0.65rem;
}

.earn-block th:last-child,
.earn-block td:last-child {
  padding-right: 0.65rem;
}

/* Badges / chips de estado en tablas */
.tbl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}

.tbl-badge--ok,
.tbl-badge--pagado,
.tbl-badge--acreditado {
  background: rgba(0, 230, 118, 0.12);
  color: var(--green);
  border-color: rgba(0, 230, 118, 0.32);
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.12);
}

.tbl-badge--cyan,
.tbl-badge--completado,
.tbl-badge--activo {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.12);
}

.tbl-badge--gold,
.tbl-badge--pendiente {
  background: rgba(255, 213, 79, 0.1);
  color: var(--gold);
  border-color: rgba(255, 213, 79, 0.32);
  box-shadow: 0 0 10px rgba(255, 213, 79, 0.12);
}

.tbl-badge--purple,
.tbl-badge--matrix {
  background: rgba(124, 77, 255, 0.14);
  color: #b388ff;
  border-color: rgba(124, 77, 255, 0.35);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.14);
}

.tbl-badge--muted,
.tbl-badge--aplicado {
  background: rgba(139, 155, 184, 0.1);
  color: var(--text-muted);
  border-color: rgba(139, 155, 184, 0.28);
}

.tbl-badge--faststart {
  background: rgba(255, 213, 79, 0.1);
  color: var(--gold);
  border-color: rgba(255, 213, 79, 0.3);
}

.tbl-badge--residual {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.tbl-badge--rango {
  background: rgba(255, 213, 79, 0.12);
  color: var(--gold);
  border-color: rgba(255, 213, 79, 0.35);
}

.text-gold { color: var(--gold); font-weight: 650; }
.text-cyan { color: var(--cyan); font-weight: 650; }
.text-green { color: var(--green); font-weight: 650; }
.text-purple { color: var(--purple); font-weight: 650; }
.text-muted { color: var(--text-muted); }
.text-danger { color: #ff5252; font-weight: 650; }

/* Rank */

.rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.5rem 0 0.25rem;
}

.rank__trophy {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, rgba(255, 213, 79, 0.35), rgba(10, 18, 40, 0.9));
  border: 2px solid rgba(255, 213, 79, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 36px rgba(255, 213, 79, 0.4), inset 0 0 20px rgba(255, 213, 79, 0.15);
  margin-bottom: 0.35rem;
  animation: trophyFloat 4s ease-in-out infinite;
}

.rank__trophy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.rank__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.rank__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rank__progress {
  width: 100%;
  margin-top: 0.5rem;
}

.rank__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 213, 79, 0.12);
  overflow: hidden;
}

.rank__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb300, #ffd54f);
  box-shadow: 0 0 10px rgba(255, 213, 79, 0.5);
  transition: width 1s var(--ease);
}

.rank__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rank__meta strong {
  color: var(--gold);
}

.rank__link {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.rank__link:hover {
  gap: 0.55rem;
}

/* ---- Bottom grid ---- */

.bot-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1fr 0.85fr;
  gap: 0.9rem;
  animation: fadeUp 0.6s var(--ease) 0.24s both;
}

/* Projection */

.proj-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.proj {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 213, 79, 0.06);
  border: 1px solid rgba(255, 213, 79, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.proj span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proj strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.proj small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Bars */

.bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 140px;
  padding-top: 0.5rem;
}

.bars__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  height: 100%;
  justify-content: flex-end;
}

.bars__fill {
  width: 100%;
  max-width: 36px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--gold));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  animation: growBar 0.8s var(--ease) both;
}

.bars__col span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Donut */

.donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.donut {
  --m: 40%;
  --f: 20%;
  --r: 10%;
  --o: 30%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--cyan) 0 var(--m),
    var(--purple) var(--m) calc(var(--m) + var(--f)),
    var(--gold) calc(var(--m) + var(--f)) calc(var(--m) + var(--f) + var(--r)),
    #455a64 calc(var(--m) + var(--f) + var(--r)) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.donut__hole {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.donut__hole strong {
  font-size: 1.1rem;
  font-weight: 800;
}

.donut__hole span {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.donut__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.donut__legend li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--matrix { background: var(--cyan); }
.dot--fast { background: var(--purple); }
.dot--res { background: var(--gold); }
.dot--op { background: #455a64; }

/* Potential */

.potential {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
}

.potential p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.potential__value {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.potential__hint {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---- Quick actions ---- */

.quick-actions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  animation: fadeUp 0.6s var(--ease) 0.32s both;
}

.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  color: #fff;
}

.qa i {
  font-size: 1.25rem;
}

.qa:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.qa--cyan { background: linear-gradient(145deg, #00bcd4, #00838f); }
.qa--blue { background: linear-gradient(145deg, #2979ff, #1565c0); }
.qa--teal { background: linear-gradient(145deg, #26a69a, #00695c); }
.qa--sky { background: linear-gradient(145deg, #29b6f6, #0277bd); }
.qa--indigo { background: linear-gradient(145deg, #5c6bc0, #283593); }
.qa--purple { background: linear-gradient(145deg, #7c4dff, #4527a0); }

/* ---- Animations ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes growBar {
  from { height: 0; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1280px) {
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .mid-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel--rank {
    grid-column: 1 / -1;
  }

  .rank {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    text-align: left;
  }

  .rank__progress {
    max-width: 280px;
  }

  .bot-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .panel--potential {
    grid-column: 1 / -1;
  }

  .potential {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-w: 240px;
  }

  .hero {
    grid-template-columns: auto 1fr;
  }

  .hero__checklist {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .earn-tables {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar__brand {
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    min-height: 76px;
  }

  .sidebar__brand-link {
    max-width: 180px;
  }

  .sidebar__logo-img {
    height: 52px;
    max-width: 168px;
  }

  .sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-overlay.is-visible {
    display: block;
  }

  .topbar__menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .topbar__search {
    display: none;
  }

  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .mid-grid {
    grid-template-columns: 1fr;
  }

  .panel--rank {
    grid-column: auto;
  }

  .bot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel--potential {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 1rem 0.85rem 1.5rem;
    gap: 1rem;
  }

  .topbar {
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
  }

  .topbar__user-info strong {
    font-size: 0.85rem;
  }

  .lang-btn span:not(.lang-btn__flag),
  .lang-btn i {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .hero__visual {
    margin: 0 auto;
  }

  .hero__checklist {
    justify-content: center;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  .kpi--wallet .kpi__body {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .matrix {
    flex-direction: column;
  }

  .matrix__gauge {
    margin-top: 0.5rem;
  }

  .bot-grid {
    grid-template-columns: 1fr;
  }

  .panel--potential {
    grid-column: auto;
  }

  .potential {
    flex-direction: column;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .qa {
    padding: 1rem 0.5rem;
    font-size: 0.7rem;
  }

  .rank {
    flex-direction: column;
    text-align: center;
  }

  .rank__progress {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .icon-btn:nth-of-type(2) {
    display: none;
  }
}

/* ============================================
   Visual upgrades — backgrounds, glow, motion
   ============================================ */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer__img {
  position: absolute;
  inset: 0;
  background: url("../img/bg-ambient.jpg") center / cover no-repeat;
  opacity: 0.52;
  filter: saturate(1.35) brightness(0.58) contrast(1.05);
  animation: bgDrift 40s ease-in-out infinite alternate;
}

.bg-layer__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  opacity: 0.5;
}

.bg-layer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite;
}

.bg-layer__orb--1 {
  width: 420px;
  height: 420px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.55), transparent 70%);
}

.bg-layer__orb--2 {
  width: 360px;
  height: 360px;
  top: 20%;
  right: -10%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.4), transparent 70%);
  animation-delay: -6s;
}

.bg-layer__orb--3 {
  width: 300px;
  height: 300px;
  bottom: -8%;
  left: 35%;
  background: radial-gradient(circle, rgba(255, 213, 79, 0.18), transparent 70%);
  animation-delay: -12s;
}

.bg-layer__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.text-glow {
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.45), 0 0 48px rgba(124, 77, 255, 0.25);
}

.text-glow-gold {
  text-shadow: 0 0 18px rgba(255, 213, 79, 0.55), 0 0 36px rgba(255, 152, 0, 0.3);
}

.chip--pulse {
  animation: chipPulse 2s ease-in-out infinite;
}

.kpi {
  background:
    linear-gradient(160deg, rgba(0, 229, 255, 0.06), transparent 50%),
    var(--bg-card);
}

.kpi:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(124, 77, 255, 0.08), transparent 50%),
    var(--bg-card);
}

.kpi:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(255, 213, 79, 0.08), transparent 50%),
    var(--bg-card);
}

.kpi:nth-child(4) {
  background:
    linear-gradient(160deg, rgba(0, 230, 118, 0.07), transparent 50%),
    var(--bg-card);
}

.kpi--wallet {
  background:
    linear-gradient(160deg, rgba(29, 233, 182, 0.1), transparent 45%),
    var(--bg-card);
  border-color: rgba(29, 233, 182, 0.35);
  box-shadow: 0 0 28px rgba(29, 233, 182, 0.12);
}

.kpi__icon {
  animation: iconBob 3.5s ease-in-out infinite;
  box-shadow: 0 0 16px currentColor;
}

.kpi:nth-child(2) .kpi__icon { animation-delay: 0.3s; }
.kpi:nth-child(3) .kpi__icon { animation-delay: 0.6s; }
.kpi:nth-child(4) .kpi__icon { animation-delay: 0.9s; }
.kpi:nth-child(5) .kpi__icon { animation-delay: 1.2s; }

.panel {
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.panel:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.18);
  transform: translateY(-2px);
}

.matrix__node img {
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.matrix__node:hover img {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}

.matrix__node--empty {
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  animation: emptyPulse 2.8s ease-in-out infinite;
}

.panel--matrix .mtx-scroll--compact {
  overflow: hidden;
  min-width: 0;
}

.panel--matrix .mtx-stage--compact {
  border-color: rgba(0, 229, 255, 0.08);
}

.gauge__progress {
  animation: gaugeSpin 1.4s var(--ease) both;
}

.donut {
  animation: donutIn 1s var(--ease) both;
  position: relative;
}

.donut::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 229, 255, 0.35), transparent 40%);
  animation: spinSlow 8s linear infinite;
  z-index: -1;
}

.bars__fill {
  position: relative;
  overflow: hidden;
}

.bars__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%);
  opacity: 0.5;
}

.qa {
  position: relative;
  overflow: hidden;
}

.qa::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.18), transparent 60%);
  transform: translateX(-60%);
  transition: transform 0.6s var(--ease);
}

.qa:hover::before {
  transform: translateX(40%);
}

.btn--withdraw {
  animation: withdrawGlow 2.4s ease-in-out infinite;
}

.nav-item.is-active {
  position: relative;
}

.nav-item.is-active i {
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.8));
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes bgDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-2%, 1%); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -24px); }
}

@keyframes shineSweep {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 229, 255, 0.4); }
  50% { box-shadow: 0 0 28px rgba(124, 77, 255, 0.55); }
}

@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(0, 230, 118, 0); }
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes emptyPulse {
  0%, 100% { border-color: rgba(0, 229, 255, 0.25); }
  50% { border-color: rgba(0, 229, 255, 0.55); color: var(--cyan); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes donutIn {
  from { transform: scale(0.7) rotate(-30deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes withdrawGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 230, 118, 0.3); }
  50% { box-shadow: 0 4px 22px rgba(0, 230, 118, 0.55); }
}

@keyframes gaugeSpin {
  from { stroke-dashoffset: 327; }
}

@keyframes navActiveGlow {
  0%, 100% { box-shadow: inset 3px 0 0 var(--cyan), 0 0 14px rgba(0, 229, 255, 0.06); }
  50% { box-shadow: inset 3px 0 0 var(--cyan), 0 0 22px rgba(0, 229, 255, 0.16); }
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.95; }
}

@keyframes shimmerSlide {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.glass--shine {
  isolation: isolate;
}

.glass--shine > .shine-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
  z-index: 2;
  animation: shimmerSlide 5.5s ease-in-out infinite;
  opacity: 0.55;
}

.sidebar__footer {
  position: relative;
}

.sidebar__footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, 40%);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12), transparent 70%);
  pointer-events: none;
  animation: floatSoft 8s ease-in-out infinite;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-layer__particles {
    display: none;
  }
}
