/* EzGrowth Global — User Portal */
@import url('../../../assets/cosmic-theme.css');

:root {
  --ez-primary: #4FACFE;
  --ez-primary-light: #00E5FF;
  --ez-primary-dark: #00D9FF;
  --ez-cyan: #00E5FF;
  --ez-cyan-dark: #00D9FF;
  --ez-accent: #00E5FF;
  --ez-accent-light: #4FACFE;
  --ez-pink: #4FACFE;
  --ez-bg: #000000;
  --ez-bg-mid: #000000;
  --ez-bg-purple: #000000;
  --ez-surface: #000000;
  --ez-surface-2: #000000;
  --ez-border: rgba(0, 229, 255, 0.35);
  --ez-text: #FFFFFF;
  --ez-text-muted: #B0B8D1;
  --ez-on-primary: #ffffff;
  --ez-gradient: linear-gradient(135deg, #4FACFE 0%, #00E5FF 50%, #00D9FF 100%);
  --ez-gradient-btn: linear-gradient(90deg, #4FACFE 0%, #00E5FF 50%, #00D9FF 100%);
  --ez-gradient-wallet: #000000;
  --ez-card-icon-bg: #000000;
  --ez-gradient-coin: linear-gradient(135deg, #00D9FF 0%, #4FACFE 50%, #00E5FF 100%);
  --ez-sidebar-w: 260px;
  --ez-header-h: 64px;
  --ez-radius: 14px;
  --ez-glow-blue: rgba(79, 172, 254, 0.45);
  --ez-glow-cyan: rgba(0, 217, 255, 0.4);
  --ez-glow-purple: var(--ez-glow-blue);
  --ez-glow: var(--ez-glow-blue);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.ezp {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000000;
  background-attachment: fixed;
  color: var(--ez-text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--ez-primary-light); text-decoration: none; }
a:hover { color: var(--ez-primary); }
a.ezp-btn:hover { text-decoration: none; }

/* App shell */
.ezp-app { display: flex; min-height: 100vh; overflow-x: hidden; max-width: 100%; }

/* Sidebar */
.ezp-sidebar {
  width: var(--ez-sidebar-w);
  background: #000000;
  border-right: 1px solid rgba(0, 229, 255, 0.28);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.ezp-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--ez-border);
}
.ezp-logo { display: flex; flex-direction: column; line-height: 1.1; align-items: flex-start; }
.ezp-logo__img { display: block; height: auto; max-width: 100%; object-fit: contain; }
.ezp-logo--sidebar .ezp-logo__img { max-height: 52px; width: auto; }
.ezp-logo--auth { align-items: center; }
.ezp-logo--auth .ezp-logo__img { max-height: 72px; margin: 0 auto; }
.ezp-logo__main { font-size: 1.15rem; font-weight: 800; color: var(--ez-primary-light); }
.ezp-logo__sub { font-size: 0.5rem; font-weight: 700; color: var(--ez-text-muted); letter-spacing: 0.35em; }
.ezp-sidebar__close { display: none; background: none; border: none; color: var(--ez-text); font-size: 1.25rem; cursor: pointer; }

.ezp-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0.5rem 1rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.5) transparent;
  -webkit-overflow-scrolling: touch;
}
.ezp-nav::-webkit-scrollbar {
  width: 5px;
}
.ezp-nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
  border-radius: 999px;
}
.ezp-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.75) 0%, rgba(79, 172, 254, 0.55) 50%, rgba(0, 217, 255, 0.45) 100%);
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.35);
}
.ezp-nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.95) 0%, rgba(79, 172, 254, 0.8) 100%);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.5);
}
.ezp-nav::-webkit-scrollbar-thumb:active {
  background: var(--ez-cyan);
}
.ezp-nav__section { margin-bottom: 1.25rem; }
.ezp-nav__title {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ez-text-muted);
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.ezp-nav ul { list-style: none; margin: 0; padding: 0; }
.ezp-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--ez-text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.ezp-nav__link i { width: 18px; text-align: center; font-size: 0.9rem; }
.ezp-nav__link:hover, .ezp-nav__link.is-active {
  color: var(--ez-cyan);
  background: rgba(79, 172, 254, 0.1);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.12);
}
.ezp-nav__link--muted { opacity: 0.7; }
.ezp-nav__soon {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(148, 144, 171, 0.2);
  color: var(--ez-text-muted);
}

.ezp-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 450;
}
.ezp-overlay.is-visible { display: block; }

body.ezp-menu-open {
  overflow: hidden;
}

body.ezp-menu-open .ezp-mobile-nav {
  z-index: 200;
}

/* Main */
.ezp-main {
  flex: 1;
  margin-left: var(--ez-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Header */
.ezp-header {
  height: var(--ez-header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.28);
  position: sticky;
  top: 0;
  z-index: 100;
}
.ezp-burger {
  display: none;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  color: var(--ez-text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}
.ezp-header__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}
.ezp-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ezp-header__balance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--ez-cosmic-bg);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ez-primary-light);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.08);
}
.ezp-header__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ez-text-muted);
}
.ezp-header__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ez-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-on-primary);
  font-size: 0.8rem;
}

/* Content */
.ezp-content {
  padding: 1.25rem;
  flex: 1;
  max-width: 1400px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Buttons */
.ezp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
}
.ezp-btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.ezp-btn--block { width: 100%; }
.ezp-btn--primary {
  background: var(--ez-gradient-btn);
  color: var(--ez-on-primary);
  box-shadow: 0 4px 18px var(--ez-glow-purple);
}
.ezp-btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 24px var(--ez-glow-cyan);
  color: var(--ez-on-primary);
}
.ezp-btn--outline {
  background: transparent;
  color: var(--ez-text);
  border: 1px solid var(--ez-border);
}
.ezp-btn--outline:hover {
  border-color: var(--ez-primary);
  color: var(--ez-primary-light);
}
.ezp-btn--accent {
  background: var(--ez-gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--ez-glow-purple);
}
.ezp-btn--accent:hover {
  color: #ffffff;
  filter: brightness(1.1);
  box-shadow: 0 6px 24px var(--ez-glow-cyan);
  transform: translateY(-1px);
}
.ezp-btn--danger {
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}
.ezp-btn--danger:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.16);
}

/* Cards */
.ezp-grid {
  display: grid;
  gap: 1.25rem;
}
.ezp-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ezp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ezp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ezp-grid--tight { gap: 0.75rem; }

.ezp-card {
  background-color: var(--ez-card-icon-bg);
  background-image: var(--ez-cosmic-radial);
  border-radius: var(--ez-radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--ez-cosmic-glow-outer);
  transition: box-shadow 0.25s;
}
.ezp-card:hover {
  box-shadow: var(--ez-cosmic-glow-hover);
}
.ezp-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ez-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.ezp-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--ez-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.ezp-card__sub { font-size: 0.8rem; color: var(--ez-text-muted); margin-top: 0.35rem; }
.ezp-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(79, 172, 254, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

/* Stat cards — text left, neon icon right */
.ezp-card--stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ezp-card--stat .ezp-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}
.ezp-card--stat .ezp-card__icon-img {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ezp-card--stat .ezp-card__icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.15);
  mix-blend-mode: normal;
  filter: none;
}

/* Dashboard hero + stat cards (mockup layout) */
.ezp-dash-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ezp-dash-grid--dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ezp-dash-grid--dashboard > .ezp-dash-card--grid-wide {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.ezp-icon-badge {
  width: 52px;
  height: 52px;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: none;
}
.ezp-icon-badge--sm {
  width: 46px;
  height: 46px;
  margin-bottom: 0.5rem;
}
.ezp-icon-badge img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: normal;
  filter: none;
}

/* Cosmic dashboard cards use animated gradient border from cosmic-theme.css */

.ezp-card-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.ezp-sparkle {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: var(--ss, 2px);
  height: var(--ss, 2px);
  border-radius: 50%;
  opacity: 0;
  animation: ezp-sparkle-twinkle var(--sd, 3s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}
.ezp-sparkle--white {
  background: #ffffff;
  box-shadow: 0 0 4px #fff, 0 0 8px rgba(255, 255, 255, 0.5);
}
.ezp-sparkle--cyan {
  background: var(--ez-cyan);
  box-shadow: 0 0 5px var(--ez-cyan), 0 0 10px rgba(0, 229, 255, 0.55);
}
.ezp-sparkle--blue {
  background: var(--ez-primary-light);
  box-shadow: 0 0 5px var(--ez-primary-light), 0 0 10px rgba(79, 172, 254, 0.5);
}
.ezp-card-sparkles::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(0,229,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(79,172,254,0.25), transparent),
    radial-gradient(1px 1px at 40% 85%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(0,229,255,0.25), transparent);
  animation: ezp-dust-shimmer 6s ease-in-out infinite alternate;
  opacity: 0.55;
}
@keyframes ezp-sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  45%, 55% { opacity: 1; transform: scale(1.15) translateY(-3px); }
}
@keyframes ezp-dust-shimmer {
  0% { opacity: 0.35; transform: translateY(2px); }
  100% { opacity: 0.65; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .ezp-sparkle,
  .ezp-card-sparkles::after,
  .ezp-panel::after,
  .ezp-auth__card::after {
    animation: none !important;
    opacity: 0.35;
  }
}

/* Spread card art — large on pure-black cards */
.ezp-card-art {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ezp-card--cosmic .ezp-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  transform: scale(1.02);
  transform-origin: center center;
  filter: none;
  border: none;
  box-shadow: none;
}
.ezp-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
  transform: scale(1.2);
  transform-origin: center center;
  -webkit-mask-image: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    #000 0%,
    #000 92%,
    rgba(0, 0, 0, 0.55) 96%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    #000 0%,
    #000 92%,
    rgba(0, 0, 0, 0.55) 96%,
    transparent 100%
  );
  filter: drop-shadow(0 0 16px var(--ez-glow-cyan)) drop-shadow(0 0 22px var(--ez-glow-blue));
}

.ezp-wallet-hero {
  position: relative;
  padding: 1.35rem 1.35rem 1.15rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.ezp-wallet-hero__row {
  position: relative;
  z-index: 1;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.ezp-wallet-hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.ezp-wallet-hero__value {
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 800;
  background: var(--ez-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.05;
  margin: 0.15rem 0;
}
.ezp-wallet-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.25rem;
}
.ezp-wallet-hero__withdraw {
  font-size: 0.82rem;
  color: var(--ez-text-muted);
}
/* Dashboard card art — flex layout, large icons (override generic .ezp-card-art) */
.ezp-dash-card .ezp-dash-card__visual.ezp-card-art,
.ezp-wallet-hero .ezp-wallet-hero__visual.ezp-card-art,
.ezp-income-card .ezp-income-card__icon.ezp-card-art {
  position: relative;
  inset: auto;
  overflow: visible;
}

.ezp-dash-card .ezp-dash-card__visual.ezp-card-art img,
.ezp-wallet-hero .ezp-wallet-hero__visual.ezp-card-art img,
.ezp-income-card .ezp-income-card__icon.ezp-card-art img {
  mix-blend-mode: normal;
  filter: none;
  mask-image: none;
  -webkit-mask-image: none;
  box-shadow: none;
}

.ezp-wallet-hero__visual {
  position: relative;
  flex-shrink: 0;
  width: clamp(80px, 24vw, 132px);
  height: clamp(80px, 24vw, 132px);
  top: auto;
  right: auto;
  bottom: auto;
  overflow: hidden;
}
.ezp-wallet-hero__visual.ezp-card-art img {
  transform: scale(1.12);
  object-position: center;
}
.ezp-wallet-hero__actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ez-border);
}

.ezp-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ezp-dash-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1.15rem 1.15rem 0.85rem;
  color: inherit;
  overflow: hidden;
  min-height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ezp-dash-card:hover {
  transform: translateY(-2px);
}
.ezp-dash-card:focus-within {
  box-shadow: var(--ez-cosmic-glow-hover);
}
.ezp-dash-card--wide {
  min-height: 190px;
}
.ezp-dash-card__row {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.ezp-dash-card__content {
  position: relative;
  z-index: 3;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.ezp-dash-card__value {
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  font-weight: 800;
  color: var(--ez-primary-light);
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ezp-dash-card__value {
    background: var(--ez-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.ezp-dash-card__content .ezp-card__sub {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}
.ezp-dash-card__visual {
  position: relative;
  flex-shrink: 0;
  width: clamp(72px, 22vw, 128px);
  height: clamp(72px, 22vw, 128px);
  top: auto;
  right: auto;
  bottom: auto;
  overflow: hidden;
}
.ezp-dash-card--wide .ezp-dash-card__visual {
  width: clamp(80px, 24vw, 140px);
  height: clamp(80px, 24vw, 140px);
}
.ezp-dash-card__visual.ezp-card-art img {
  transform: scale(1.15);
  object-position: center;
}
.ezp-dash-card--wide .ezp-dash-card__visual.ezp-card-art img {
  transform: scale(1.18);
}
.ezp-mini-ring {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  z-index: 3;
}
.ezp-mini-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ezp-mini-ring__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}
.ezp-mini-ring__fill {
  fill: none;
  stroke: var(--ez-cyan);
  stroke-width: 3;
  stroke-linecap: round;
}
.ezp-mini-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ez-cyan);
}
.ezp-dash-card__footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ez-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ez-text-muted);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
  transition: color 0.2s;
}
.ezp-dash-card__footer:hover {
  color: var(--ez-cyan);
}
.ezp-dash-card__footer span {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.ezp-dash-card__footer i {
  font-size: 0.65rem;
  color: var(--ez-cyan);
  flex-shrink: 0;
}

/* Stat strip */
.ezp-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Earnings breakdown (user) */
.ezp-earnings-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ezp-earnings-breakdown__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  flex-wrap: wrap;
}
.ezp-earnings-breakdown__total-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.ezp-earnings-breakdown__total-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ez-cyan);
}
.ezp-earnings-breakdown__total-link {
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.ezp-earnings-breakdown__total-link:hover { color: var(--ez-cyan); }
.ezp-earnings-breakdown__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.75rem;
}
.ezp-earnings-card {
  display: block;
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.ezp-earnings-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.35);
}
.ezp-earnings-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ezp-earnings-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Admin finance cards */
.ezp-finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.ezp-finance-card--revenue .ezp-card__value { color: #4ade80; }
.ezp-finance-card--fee .ezp-card__value { color: #fbbf24; }
.ezp-finance-card--liability .ezp-card__value { color: #f87171; }
.ezp-finance-card--reserve .ezp-card__value { color: var(--ez-cyan); }

/* Compact panels & stats */
.ezp-panel {
  position: relative;
  overflow: hidden;
  background-color: var(--ez-cosmic-bg);
  background-image: var(--ez-cosmic-radial);
  border-radius: var(--ez-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--ez-cosmic-glow-outer);
}
.ezp-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background-image: var(--ez-cosmic-dust-image);
  animation: ez-cosmic-dust-shimmer 6s ease-in-out infinite alternate;
  opacity: 0.45;
}
.ezp-panel > * {
  position: relative;
  z-index: 1;
}
.ezp-panel .ezp-section__head { margin-bottom: 0.75rem; }
.ezp-panel .ezp-section__title { font-size: 1rem; }
.ezp-card--compact { padding: 0.85rem 1rem; }
.ezp-card--compact .ezp-card__icon { width: 36px; height: 36px; margin-bottom: 0.5rem; font-size: 0.95rem; }
.ezp-card--compact .ezp-card__value { font-size: 1.35rem; }
.ezp-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
.ezp-stat-cell {
  position: relative;
  overflow: hidden;
  background-color: var(--ez-cosmic-bg);
  background-image: var(--ez-cosmic-radial);
  border: 1px solid var(--ez-cosmic-border-soft);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 217, 255, 0.08);
}
.ezp-stat-cell__label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ez-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ezp-stat-cell__value {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--ez-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 0.15rem;
  line-height: 1.2;
}
.ezp-income-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.ezp-income-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-height: 118px;
  overflow: hidden;
}
.ezp-income-card:hover {
  transform: translateY(-2px);
}
.ezp-income-card.ezp-card--cosmic {
  background-color: var(--ez-card-icon-bg);
}
.ezp-income-card__body {
  position: relative;
  z-index: 3;
  flex: 1;
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 0.25rem;
  padding-right: 0.35rem;
}
.ezp-income-card__icon {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  top: auto;
  right: auto;
  bottom: auto;
}
.ezp-income-card__icon.ezp-card-art img {
  transform: scale(1.35);
}
.ezp-income-card__name { font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.ezp-income-card__sub { font-size: 0.72rem; color: var(--ez-text-muted); line-height: 1.35; }
.ezp-income-card__earned {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ez-cyan);
  margin-top: 0.15rem;
}
.ezp-hint { font-size: 0.8rem; color: var(--ez-text-muted); margin: 0 0 0.65rem; }
.ezp-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--ez-text-muted);
  line-height: 1.45;
}
.ezp-steps li { margin-bottom: 0.15rem; }
.ezp-empty-note { text-align: center; padding: 1rem; color: var(--ez-text-muted); font-size: 0.85rem; }
.ezp-page-card {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: 1.25rem 1.5rem;
}
.ezp-page-card__icon { font-size: 2rem; color: var(--ez-accent-light); margin-bottom: 0.5rem; }
.ezp-page-card h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.ezp-page-card p { margin: 0 0 1rem; font-size: 0.85rem; color: var(--ez-text-muted); }

/* FAQ page */
.ezp-auth__card--faq { max-width: 820px; text-align: left; }
.ezp-faq__header { margin-bottom: 1.25rem; }
.ezp-faq__title { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.35rem; }
.ezp-faq__subtitle { margin: 0; font-size: 0.85rem; color: var(--ez-text-muted); font-weight: 600; }
.ezp-faq-mission { margin-bottom: 1.25rem; }
.ezp-faq-mission__heading { font-size: 0.95rem; font-weight: 700; margin: 0 0 0.65rem; }
.ezp-faq-mission__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.ezp-faq-mission__card {
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.ezp-faq-mission__card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ez-primary-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ezp-faq-mission__card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ez-text-muted);
  line-height: 1.45;
}
.ezp-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.ezp-faq-nav__link {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
  text-decoration: none;
  line-height: 1.3;
}
.ezp-faq-nav__link:hover { border-color: var(--ez-primary); color: var(--ez-primary-light); }
.ezp-faq-section { margin-bottom: 1.25rem; scroll-margin-top: 5rem; }
.ezp-faq-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ezp-faq-section__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ez-accent-light);
  flex-shrink: 0;
}
.ezp-faq-list { display: flex; flex-direction: column; gap: 0.45rem; }
.ezp-faq-item {
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 10px;
  overflow: hidden;
}
.ezp-faq-item[open] { border-color: rgba(79, 172, 254, 0.4); }
.ezp-faq-item__q {
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ezp-faq-item__q::-webkit-details-marker { display: none; }
.ezp-faq-item__q::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  color: var(--ez-text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ezp-faq-item[open] .ezp-faq-item__q::after { transform: rotate(180deg); }
.ezp-faq-item__a {
  padding: 0 0.85rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  line-height: 1.5;
}
.ezp-faq-cta {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.12), rgba(0, 229, 255, 0.08));
  border: 1px solid rgba(79, 172, 254, 0.3);
  border-radius: var(--ez-radius);
  margin-bottom: 1.25rem;
}
.ezp-faq-cta p { margin: 0 0 0.85rem; font-size: 0.88rem; font-weight: 600; }
.ezp-faq-terms {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  line-height: 1.5;
  padding: 0.85rem 1rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 10px;
}
.ezp-faq-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ez-text-muted);
  margin-top: 1rem;
}
.ezp-faq-auth-links { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; }

/* Leadership salary */
.ezp-table--salary tbody tr.is-qualified { background: rgba(34, 197, 94, 0.08); }
.ezp-table--salary tbody tr.is-qualified td { border-color: rgba(34, 197, 94, 0.2); }
.ezp-table--salary tbody tr.is-hold { background: rgba(0, 217, 255, 0.08); }
.ezp-table--salary tbody tr.is-current-pool td:first-child strong { color: var(--ez-primary-light); }
.ezp-salary-rules { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.85rem; }
.ezp-salary-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  line-height: 1.45;
}
.ezp-salary-rule i { color: var(--ez-primary-light); margin-top: 0.15rem; flex-shrink: 0; width: 1rem; text-align: center; }
.ezp-salary-example {
  font-size: 0.8rem;
  color: var(--ez-text-muted);
  padding: 0.75rem 0.85rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 10px;
  line-height: 1.5;
}

/* Section */
.ezp-section { margin-bottom: 1.25rem; }
.ezp-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.ezp-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

/* Table */
.ezp-table-wrap {
  overflow-x: auto;
  border-radius: var(--ez-radius);
  border: 1px solid var(--ez-cosmic-border-soft);
  background-color: var(--ez-cosmic-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 217, 255, 0.06);
}
.ezp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.ezp-table th, .ezp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--ez-border);
}
.ezp-table th {
  background: var(--ez-surface-2);
  color: var(--ez-text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ezp-table tr:last-child td { border-bottom: none; }
.ezp-table tr:hover td { background: rgba(79, 172, 254, 0.04); }

/* Badge */
.ezp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(79, 172, 254, 0.15);
  color: var(--ez-primary-light);
  border: 1px solid rgba(79, 172, 254, 0.3);
}
.ezp-badge--success { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.ezp-badge--warn { background: rgba(0, 217, 255, 0.15); color: var(--ez-accent-light); border-color: rgba(0, 217, 255, 0.3); }
.ezp-badge--accent { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: rgba(249, 115, 22, 0.35); }
.ezp-badge--muted { background: rgba(148, 144, 171, 0.15); color: var(--ez-text-muted); border-color: var(--ez-border); }

/* Progress */
.ezp-progress {
  height: 8px;
  background: var(--ez-surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.ezp-progress__bar {
  height: 100%;
  background: var(--ez-gradient);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Dashboard pool progress */
.ezp-pool-dashboard {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.ezp-pool-dashboard .ezp-section__head,
.ezp-pool-progress-head {
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
}
.ezp-pool-progress-head__copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.ezp-pool-progress-head__copy .ezp-hint {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ezp-pool-ring {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.ezp-pool-ring__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ezp-pool-ring__track {
  fill: none;
  stroke: var(--ez-surface-2);
  stroke-width: 3;
}
.ezp-pool-ring__fill {
  fill: none;
  stroke: var(--ez-primary-light);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}
.ezp-pool-ring__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ez-primary-light);
}
.ezp-matrix-progress {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.ezp-matrix-progress__lane {
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.ezp-matrix-progress__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ez-text-muted);
  margin-bottom: 0.55rem;
}
.ezp-matrix-progress__head strong { color: var(--ez-primary-light); font-size: 0.85rem; }
.ezp-matrix-progress__head i { margin-right: 0.25rem; color: var(--ez-primary-light); }
.ezp-matrix-progress__slots {
  display: flex;
  gap: 0.45rem;
}
.ezp-slot-pill {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px dashed var(--ez-border);
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--ez-text-muted);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.ezp-slot-pill.is-filled {
  border-style: solid;
  border-color: rgba(79, 172, 254, 0.55);
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 229, 255, 0.12));
  color: var(--ez-primary-light);
  box-shadow: 0 0 12px rgba(79, 172, 254, 0.25);
}
.ezp-slot-pill--spill.is-filled {
  border-color: rgba(0, 217, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(79, 172, 254, 0.1));
  color: var(--ez-accent-light);
}
.ezp-pool-roadmap {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ezp-pool-roadmap__item {
  position: relative;
  flex: 1;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.ezp-pool-roadmap__node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ez-border);
  background: var(--ez-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ez-text-muted);
  z-index: 1;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.ezp-pool-roadmap__item.is-current .ezp-pool-roadmap__node {
  border-color: var(--ez-primary);
  background: var(--ez-gradient);
  color: #fff;
  box-shadow: 0 0 18px var(--ez-glow);
  transform: scale(1.12);
}
.ezp-pool-roadmap__item.is-done .ezp-pool-roadmap__node {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.ezp-pool-roadmap__meta {
  margin-top: 0.4rem;
  font-size: 0.65rem;
  line-height: 1.3;
}
.ezp-pool-roadmap__meta strong { display: block; color: var(--ez-primary-light); font-size: 0.72rem; }
.ezp-pool-roadmap__meta span { color: var(--ez-text-muted); }
.ezp-pool-roadmap__item.is-current .ezp-pool-roadmap__meta strong { color: var(--ez-accent-light); }
.ezp-pool-roadmap__line {
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--ez-border);
  z-index: 0;
}
.ezp-pool-roadmap__line.is-done {
  background: linear-gradient(90deg, #4ade80, rgba(79, 172, 254, 0.5));
}

/* Daily tasks */
.ezp-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ezp-task-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 0.65rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
}
.ezp-task-row.is-active {
  border-color: rgba(79, 172, 254, 0.4);
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 229, 255, 0.05));
}
.ezp-task-row.is-done {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}
.ezp-task-row--muted { opacity: 0.72; }
.ezp-task-row__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ez-surface);
  border: 1px solid var(--ez-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ez-primary-light);
  flex-shrink: 0;
}
.ezp-task-row__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(79, 172, 254, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-primary-light);
  flex-shrink: 0;
}
.ezp-task-row__body { min-width: 0; }
.ezp-task-row__body strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.ezp-task-row__body > span { font-size: 0.72rem; color: var(--ez-text-muted); }
.ezp-task-row__bar {
  height: 4px;
  background: var(--ez-surface);
  border-radius: 999px;
  margin-top: 0.45rem;
  overflow: hidden;
}
.ezp-task-row__bar span {
  display: block;
  height: 100%;
  background: var(--ez-gradient);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.ezp-task-row__badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 144, 171, 0.15);
  color: var(--ez-text-muted);
  white-space: nowrap;
}
.ezp-task-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.ezp-task-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--ez-border);
  background: var(--ez-surface);
  color: var(--ez-text-muted);
  text-decoration: none;
}
.ezp-task-chip:hover { border-color: var(--ez-primary); color: var(--ez-primary-light); }
.ezp-task-chip.is-done {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
  background: rgba(34, 197, 94, 0.1);
}

/* Social tasks page */
.ezp-social-latest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 10px;
  margin-top: 0.5rem;
}
.ezp-social-latest i { font-size: 1.5rem; color: var(--ez-cyan); flex-shrink: 0; }
.ezp-social-latest strong { display: block; font-size: 0.78rem; }
.ezp-social-latest span { font-size: 0.72rem; color: var(--ez-text-muted); }
.ezp-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0;
}
.ezp-social-card {
  padding: 1rem;
  background: var(--ez-surface);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
}
.ezp-social-card.is-done { border-color: rgba(34, 197, 94, 0.35); }
.ezp-social-card.is-focus { border-color: var(--ez-primary); box-shadow: 0 0 16px var(--ez-glow); }
.ezp-social-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.ezp-social-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(79, 172, 254, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-primary-light);
}
.ezp-social-card__desc {
  font-size: 0.78rem;
  color: var(--ez-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.ezp-social-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

/* Legacy task cards (unused) */
.ezp-daily-tasks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.ezp-task-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
}
.ezp-task-card--active {
  border-color: rgba(79, 172, 254, 0.35);
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.08), rgba(0, 229, 255, 0.04));
}
.ezp-task-card--muted { opacity: 0.75; }
.ezp-task-card__icon {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(79, 172, 254, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-primary-light);
  font-size: 1rem;
}
.ezp-task-card__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.ezp-task-card__body strong { font-size: 0.85rem; }
.ezp-task-card__body span { font-size: 0.72rem; color: var(--ez-text-muted); }
.ezp-task-card__status {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ez-text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(148, 144, 171, 0.15);
}
.ezp-task-card__progress {
  grid-column: 2 / -1;
  height: 4px;
  background: var(--ez-surface);
  border-radius: 999px;
  overflow: hidden;
}
.ezp-task-card__bar {
  height: 100%;
  background: var(--ez-gradient);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.ezp-task-card .ezp-btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

/* Matrix grid */
.ezp-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  max-width: 100%;
}
.ezp-matrix__tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.ezp-matrix__slot {
  aspect-ratio: 1;
  background: var(--ez-surface-2);
  border: 1px dashed var(--ez-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--ez-text-muted);
  text-align: center;
  padding: 0.5rem;
}
.ezp-matrix__slot--filled {
  border-style: solid;
  border-color: rgba(79, 172, 254, 0.35);
  background: rgba(79, 172, 254, 0.08);
  color: var(--ez-text);
}

/* 2×2 matrix genealogy tree — single unified root over leg 1 / leg 2 */
.ezp-matrix-tree-unified {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.75rem;
}
.ezp-matrix-tree__root { width: 100%; max-width: 200px; }
.ezp-matrix-tree__card--root {
  border-color: var(--ez-accent);
  background: rgba(124, 92, 255, 0.1);
}
.ezp-matrix-tree__connector { width: 2px; height: 18px; background: var(--ez-border); }
.ezp-matrix-tree-unified .ezp-matrix-tree { width: 100%; position: relative; margin-top: 0; }
.ezp-matrix-tree-unified .ezp-matrix-tree::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--ez-border);
}
.ezp-matrix-tree-unified .ezp-matrix-tree__leg { position: relative; }
.ezp-matrix-tree-unified .ezp-matrix-tree__leg::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 2px;
  height: 9px;
  background: var(--ez-border);
}
.ezp-matrix-tree {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}
.ezp-matrix-tree__leg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 14px;
}
.ezp-matrix-tree__head { width: 100%; max-width: 160px; }
.ezp-matrix-tree__tail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.ezp-matrix-tree__card {
  background: var(--ez-surface);
  border: 1px dashed var(--ez-border);
  border-radius: 10px;
  padding: 0.55rem 0.45rem;
  text-align: center;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}
.ezp-matrix-tree__card--filled {
  border-style: solid;
  border-color: rgba(79, 172, 254, 0.35);
}
.ezp-matrix-tree__card--direct {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.06);
}
.ezp-matrix-tree__card--empty { opacity: 0.75; }
.ezp-matrix-tree__pos {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ez-text-muted);
}
.ezp-matrix-tree__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ez-text);
  word-break: break-word;
}
.ezp-matrix-tree__meta { font-size: 0.65rem; color: var(--ez-text-muted); }
.ezp-matrix-tree__link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}
.ezp-matrix-tree__link:hover .ezp-matrix-tree__name { color: var(--ez-primary-light); }

.ezp-matrix__slot--self {
  border-color: var(--ez-accent);
  background: rgba(0, 217, 255, 0.1);
  color: var(--ez-accent-light);
}

/* Pool timeline */
.ezp-pools-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.ezp-pool-step {
  flex: 0 0 auto;
  min-width: 90px;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  font-size: 0.75rem;
}
.ezp-pool-step.is-current {
  border-color: var(--ez-primary);
  background: rgba(79, 172, 254, 0.12);
  box-shadow: 0 0 20px var(--ez-glow);
}
.ezp-pool-step.is-done {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}
.ezp-pool-step strong { display: block; font-size: 1rem; color: var(--ez-primary-light); }

/* Forms */
.ezp-form { max-width: 420px; }
.ezp-form--wide { max-width: 560px; }
.ezp-list { margin: 0.5rem 0 0; padding-left: 1.15rem; color: var(--ez-text); }
.ezp-list li { margin-bottom: 0.35rem; }
.ezp-field { margin-bottom: 1rem; }
.ezp-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ez-text-muted);
  margin-bottom: 0.4rem;
}
.ezp-field input, .ezp-field select, .ezp-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #000000;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 10px;
  color: var(--ez-text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.ezp-field input:focus, .ezp-field select:focus, .ezp-field textarea:focus {
  outline: none;
  border-color: var(--ez-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), 0 0 16px rgba(0, 217, 255, 0.12);
}

/* Alert */
.ezp-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.ezp-alert--success { background: rgba(34, 197, 94, 0.12); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.ezp-alert--error { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.ezp-alert--info { background: rgba(79, 172, 254, 0.12); color: var(--ez-primary-light); border: 1px solid rgba(79, 172, 254, 0.3); }
.ezp-alert--warn { background: rgba(0, 217, 255, 0.12); color: var(--ez-accent-light); border: 1px solid rgba(0, 217, 255, 0.3); }

/* Auth pages */
.ezp-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #000000;
}
.ezp-auth__card {
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
  background-color: var(--ez-cosmic-bg);
  background-image: var(--ez-cosmic-radial);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--ez-cosmic-glow-outer);
}
.ezp-auth__card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  background-image: var(--ez-cosmic-dust-image);
  animation: ez-cosmic-dust-shimmer 6s ease-in-out infinite alternate;
  opacity: 0.45;
}
.ezp-auth__card > * {
  position: relative;
  z-index: 1;
}
.ezp-auth__logo { text-align: center; margin-bottom: 1.5rem; }
.ezp-auth__title { font-size: 1.5rem; font-weight: 800; text-align: center; margin: 0 0 0.5rem; }
.ezp-auth__sub { text-align: center; color: var(--ez-text-muted); font-size: 0.9rem; margin: 0 0 1.5rem; }
.ezp-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ezp-field--captcha {
  margin-bottom: 0.75rem;
}

/* Auto withdraw toggle */
.ezp-panel--auto-withdraw {
  margin-bottom: 1rem;
}
.ezp-auto-withdraw__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.ezp-auto-withdraw__desc {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--ez-text-muted);
  max-width: 36rem;
}
.ezp-auto-withdraw__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 280px;
  justify-content: flex-end;
}
.ezp-auto-withdraw__fields {
  flex: 1 1 100%;
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.ezp-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}
.ezp-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ezp-switch__track {
  position: relative;
  width: 3rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgba(148, 144, 171, 0.25);
  border: 1px solid var(--ez-border);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ezp-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.ezp-switch input:checked + .ezp-switch__track {
  background: rgba(0, 217, 255, 0.35);
  border-color: rgba(0, 217, 255, 0.55);
}
.ezp-switch input:checked + .ezp-switch__track .ezp-switch__thumb {
  transform: translateX(1.35rem);
}
.ezp-switch__text {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 1.75rem;
}
.ezp-field--captcha .g-recaptcha {
  display: inline-block;
}
@media (max-width: 400px) {
  .ezp-field--captcha .g-recaptcha {
    transform: scale(0.92);
    transform-origin: left top;
  }
}

/* Ad / video watch card */
.ezp-watch-card {
  text-align: center;
  padding: 2rem;
}
.ezp-watch-card__preview {
  aspect-ratio: 16/9;
  background-color: var(--ez-cosmic-bg);
  background-image: var(--ez-cosmic-radial);
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 3rem;
  color: var(--ez-primary);
}
.ezp-watch-card__timer {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ez-accent-light);
  margin-bottom: 1rem;
}

/* Referral link box */
.ezp-copy-box {
  display: flex;
  gap: 0.5rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 10px;
  padding: 0.5rem;
}
.ezp-copy-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--ez-text);
  font-size: 0.85rem;
  padding: 0.5rem;
}
.ezp-copy-box input:focus { outline: none; }

/* Activation banner */
.ezp-banner {
  position: relative;
  overflow: hidden;
  background-color: var(--ez-cosmic-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(0, 229, 255, 0.08) 0%, transparent 55%),
    var(--ez-cosmic-radial);
  border: 1px solid var(--ez-cosmic-border-soft);
  border-radius: var(--ez-radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  box-shadow: var(--ez-cosmic-glow-outer);
}
.ezp-banner__text h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.ezp-banner__text p { margin: 0; font-size: 0.85rem; color: var(--ez-text-muted); }

/* Rank card */
.ezp-rank-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: var(--ez-cosmic-bg);
  background-image: var(--ez-cosmic-radial);
  border: 1px solid var(--ez-cosmic-border-soft);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 10px rgba(0, 217, 255, 0.06);
}
.ezp-rank-card__req {
  font-size: 0.72rem;
  color: var(--ez-text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}
.ezp-rank-card.is-current {
  border-color: var(--ez-primary);
  background: rgba(79, 172, 254, 0.1);
}
.ezp-rank-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ez-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ez-on-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Responsive — legacy block replaced below after components */

/* Media player */
.ezp-media {
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  overflow: hidden;
}
.ezp-media__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ez-border);
  font-size: 0.85rem;
}
.ezp-media__timer {
  font-weight: 800;
  color: var(--ez-accent-light);
}
.ezp-media__video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}
.ezp-media__video--yt {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.ezp-media__video--yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ezp-media__hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  color: var(--ez-text-muted);
  text-align: center;
  line-height: 1.4;
}
.ezp-media__fallback {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--ez-text-muted);
  font-size: 0.85rem;
}
.ezp-media__fallback i { font-size: 2.5rem; color: var(--ez-cyan); }
.ezp-media form {
  padding: 1rem;
}

/* Team genealogy / MLM org chart */
.ezp-mlm-wrap {
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.ezp-mlm-wrap--compact { max-height: 420px; overflow-y: auto; }
.ezp-mlm-panel .ezp-mlm-wrap { min-height: 120px; }

.ezp-mlm,
.ezp-mlm ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ezp-mlm {
  display: flex;
  justify-content: center;
  width: max-content;
  min-width: 100%;
}
.ezp-mlm__item {
  position: relative;
  text-align: center;
  padding: 1.25rem 0.35rem 0;
}
.ezp-mlm__branch {
  display: flex;
  justify-content: center;
  position: relative;
  padding-top: 1.25rem;
}
.ezp-mlm__branch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.25rem;
  border-left: 2px solid rgba(79, 172, 254, 0.35);
}
.ezp-mlm__item > .ezp-mlm__branch > .ezp-mlm__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 2px solid rgba(79, 172, 254, 0.35);
}
.ezp-mlm__item > .ezp-mlm__branch > .ezp-mlm__item:first-child::before {
  left: 50%;
}
.ezp-mlm__item > .ezp-mlm__branch > .ezp-mlm__item:last-child::before {
  right: 50%;
}
.ezp-mlm__item > .ezp-mlm__branch > .ezp-mlm__item:only-child::before {
  display: none;
}

.ezp-mlm__card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 108px;
  max-width: 140px;
  padding: 0.65rem 0.55rem;
  background: linear-gradient(180deg, var(--ez-surface-2) 0%, rgba(26, 24, 48, 0.95) 100%);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  font-size: 0.78rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ezp-mlm__card:hover {
  border-color: rgba(79, 172, 254, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.15);
}
.ezp-mlm__card--active { border-color: rgba(79, 172, 254, 0.45); }
.ezp-mlm__card--pending { opacity: 0.82; }
.ezp-mlm__card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
}
.ezp-mlm__card-link:hover .ezp-mlm__name { color: var(--ez-primary-light); }
.ezp-mlm__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 172, 254, 0.2);
  color: var(--ez-primary-light);
  font-size: 0.85rem;
}
.ezp-mlm__name {
  font-weight: 700;
  color: var(--ez-text);
  line-height: 1.2;
  word-break: break-word;
}
.ezp-mlm__pool {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ez-primary-light);
  background: rgba(79, 172, 254, 0.15);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}
.ezp-mlm__country,
.ezp-mlm__stats {
  font-size: 0.65rem;
  color: var(--ez-text-muted);
}
.ezp-mlm__status {
  font-size: 0.62rem;
  color: #fbbf24;
  font-weight: 600;
}
.ezp-mlm__more {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  color: var(--ez-text-muted);
}
.ezp-mlm__card--direct { border-color: rgba(74, 222, 128, 0.55); }
.ezp-mlm__sub {
  font-size: 0.62rem;
  color: var(--ez-text-muted);
  line-height: 1.1;
}
.ezp-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
}
.ezp-tag--direct { color: #4ade80; background: rgba(74, 222, 128, 0.15); }
.ezp-tag--spill { color: #4facfe; background: rgba(79, 172, 254, 0.15); }

/* 2FA setup */
.ezp-twofa-qr {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
  margin-bottom: 0.75rem;
}
.ezp-twofa-secret {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  background: var(--ez-surface-2);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  word-break: break-all;
}
.ezp-backup-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.ezp-backup-codes code {
  background: var(--ez-surface-2);
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.ezp-dl {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}
.ezp-dl dt {
  margin: 0;
  color: var(--ez-text-muted);
  font-weight: 600;
}
.ezp-dl dd { margin: 0; }

/* Legacy list tree (fallback) */
.ezp-tree {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.ezp-tree__children {
  list-style: none;
  margin: 0.5rem 0 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--ez-border);
}
.ezp-tree__node {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.75rem;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  border-radius: 8px;
  font-size: 0.85rem;
}
.ezp-tree__node--active { border-color: rgba(79, 172, 254, 0.5); }
.ezp-tree__node--pending { opacity: 0.7; }
.ezp-tree__name { font-weight: 700; color: var(--ez-primary-light); text-decoration: none; }
a.ezp-tree__name:hover { color: var(--ez-primary); text-decoration: underline; }
.ezp-tree__meta { color: var(--ez-text-muted); font-size: 0.75rem; }

/* Utilities */
.ezp-hide-mobile { display: initial; }
.ezp-hide-desktop { display: none; }

/* Notifications */
.ezp-header__bell {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--ez-surface-2);
  border: 1px solid var(--ez-border);
  color: var(--ez-text-muted);
}
.ezp-header__bell-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ez-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ezp-notify-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ezp-notify-item {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--ez-surface);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  color: inherit;
}
.ezp-notify-item.is-unread { border-color: rgba(79, 172, 254, 0.5); background: rgba(79, 172, 254, 0.06); }
.ezp-notify-item__title { font-weight: 700; margin-bottom: 0.25rem; }
.ezp-notify-item__body { font-size: 0.85rem; color: var(--ez-text-muted); }
.ezp-notify-item__time { font-size: 0.75rem; color: var(--ez-text-muted); margin-top: 0.5rem; }

.ezp-txn-card {
  background: var(--ez-surface);
  border: 1px solid var(--ez-border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.ezp-txn-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.35rem; }
.ezp-txn-card__amount { font-weight: 800; }
.ezp-txn-card__desc { font-size: 0.85rem; color: var(--ez-text-muted); }
.ezp-txn-card__meta { font-size: 0.75rem; color: var(--ez-text-muted); margin-top: 0.35rem; }

.ezp-filter-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.ezp-user-card {
  margin-bottom: 0.75rem;
}

.ezp-nav__link--danger { color: #f87171 !important; }
.ezp-nav__link--danger:hover { color: #fca5a5 !important; }

@media (max-width: 1024px) {
  .ezp-grid--4, .ezp-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ezp-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ezp-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: rgba(24, 20, 43, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ez-border);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  justify-content: space-around;
  gap: 0.25rem;
}
.ezp-mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ez-text-muted);
  border-radius: 10px;
}
.ezp-mobile-nav__item i { font-size: 1.1rem; }
.ezp-mobile-nav__item.is-active { color: var(--ez-primary-light); background: rgba(79, 172, 254, 0.12); }

@media (max-width: 1024px) {
  .ezp-dash-grid,
  .ezp-dash-grid--dashboard {
    grid-template-columns: 1fr;
  }

  .ezp-wallet-hero__row,
  .ezp-dash-card__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
  }

  .ezp-wallet-hero__content,
  .ezp-dash-card__content {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .ezp-wallet-hero__visual {
    order: -1;
    width: 88px;
    height: 88px;
  }

  .ezp-dash-card__visual {
    display: none;
  }

  .ezp-wallet-hero__visual.ezp-card-art img {
    transform: scale(1.08);
  }

  .ezp-wallet-hero,
  .ezp-dash-card {
    min-height: auto;
    overflow: hidden;
  }

  .ezp-mini-ring {
    margin-bottom: 0.15rem;
  }
}

@media (max-width: 768px) {
  :root { --ez-header-h: 56px; }
  html, body.ezp { overflow-x: clip; max-width: 100%; }

  .ezp-hide-mobile { display: none !important; }
  .ezp-hide-desktop { display: block !important; }

  /* Shell */
  .ezp-sidebar { transform: translateX(-100%); width: min(280px, 88vw); }
  .ezp-sidebar.is-open { transform: translateX(0); }
  .ezp-sidebar__close { display: flex; align-items: center; justify-content: center; }
  .ezp-main {
    margin-left: 0;
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    min-width: 0;
    width: 100%;
  }
  .ezp-burger { display: flex; align-items: center; justify-content: center; }
  .ezp-content {
    padding: 0.75rem;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }
  .ezp-mobile-nav { display: flex; }
  .ezp--admin .ezp-main { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }

  /* Header */
  .ezp-header {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    height: auto;
    min-height: var(--ez-header-h);
    flex-wrap: nowrap;
  }
  .ezp-header__title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
  }
  .ezp-header__actions { gap: 0.35rem; flex-shrink: 0; }
  .ezp-header__balance { font-size: 0.7rem; padding: 0.3rem 0.55rem; max-width: 46vw; }
  .ezp-header__balance span { max-width: none; overflow: visible; text-overflow: unset; }

  /* Grids — single column full width */
  .ezp-grid--2,
  .ezp-grid--3,
  .ezp-grid--4 { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Dashboard cards — stack content, contain overflow */
  .ezp-dash-grid,
  .ezp-dash-grid--dashboard { grid-template-columns: 1fr; }
  .ezp-wallet-hero,
  .ezp-dash-card { overflow: hidden; min-height: auto; }
  .ezp-wallet-hero__row,
  .ezp-dash-card__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    gap: 0.65rem;
  }
  .ezp-wallet-hero__content,
  .ezp-dash-card__content {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .ezp-wallet-hero__visual {
    order: -1;
    width: 96px;
    height: 96px;
  }
  .ezp-wallet-hero__visual.ezp-card-art img { transform: scale(1.22); }
  .ezp-dash-card__visual {
    display: none;
  }
  .ezp-wallet-hero__actions {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .ezp-wallet-hero__actions .ezp-btn { width: 100%; }
  .ezp-income-card__icon { width: 72px; height: 72px; }
  .ezp-income-card__icon.ezp-card-art img { transform: scale(1.18); }
  .ezp-mini-ring { width: 48px; height: 48px; }
  .ezp-dash-card { padding-bottom: 1rem; }
  .ezp-dash-card__footer { justify-content: center; width: 100%; }

  /* Stat strip & legacy stat cards */
  .ezp-stat-strip {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .ezp-stat-strip .ezp-card--stat {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .ezp-stat-strip .ezp-card--stat .ezp-card__body {
    align-items: center;
    text-align: center;
  }
  .ezp-stat-strip .ezp-card--stat .ezp-card__icon-img {
    width: 88px;
    height: 88px;
  }
  .ezp-stat-strip .ezp-card:not(.ezp-card--stat),
  .ezp-grid .ezp-card:not(.ezp-watch-card) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .ezp-card__value { font-size: 1.35rem; }
  .ezp-card--compact { padding: 1rem 1.15rem; }

  /* Panels */
  .ezp-panel {
    padding: 0.85rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .ezp-section__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .ezp-section__head .ezp-btn { width: 100%; max-width: 280px; }
  .ezp-hint { text-align: center; }

  /* Pool dashboard */
  .ezp-pool-dashboard .ezp-section__head,
  .ezp-pool-progress-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 0.75rem;
  }
  .ezp-pool-progress-head__copy {
    width: 100%;
    flex: 1 1 calc(100% - 70px);
    min-width: 0;
  }
  .ezp-matrix-progress { grid-template-columns: 1fr; }
  .ezp-matrix-progress__head { justify-content: center; gap: 0.5rem; }
  .ezp-matrix-progress__slots { justify-content: center; }
  .ezp-pool-roadmap { justify-content: flex-start; padding-bottom: 0.75rem; }

  /* Stat cells (videos page etc.) */
  .ezp-stat-grid { grid-template-columns: 1fr; }
  .ezp-stat-cell { text-align: center; }

  /* Income streams */
  .ezp-income-grid { grid-template-columns: 1fr; }
  .ezp-income-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: auto;
    overflow: visible;
    padding: 1rem;
  }
  .ezp-income-card__body {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  /* Daily tasks */
  .ezp-task-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1rem;
  }
  .ezp-task-row__icon { display: flex; }
  .ezp-task-row__body { width: 100%; }
  .ezp-task-row__actions { justify-content: center; }
  .ezp-task-row > .ezp-btn,
  .ezp-task-row > .ezp-task-row__badge {
    grid-column: auto;
    width: 100%;
    max-width: 220px;
    justify-self: center;
  }
  .ezp-task-row__bar { max-width: 280px; margin-left: auto; margin-right: auto; }

  /* Banners & alerts */
  .ezp-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ezp-banner .ezp-btn { width: 100%; max-width: 280px; }
  .ezp-alert { text-align: center; }

  /* Forms & tables */
  .ezp-copy-box { flex-direction: column; }
  .ezp-copy-box .ezp-btn { width: 100%; }
  .ezp-form, .ezp-form--wide { max-width: 100%; }
  .ezp-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
  }
  .ezp-matrix__slot { padding: 0.65rem 0.45rem; font-size: 0.72rem; }

  /* Filter toolbars */
  .ezp-filter-bar,
  .ezp-section__head {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .ezp-filter-bar > div,
  .ezp-section__head > div:not(.ezp-pool-progress-head__copy) {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
  }
  .ezp-filter-bar .ezp-btn,
  .ezp-section__head > div .ezp-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  /* Tables — card stack (labels via portal.js) */
  .ezp-table-wrap {
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
  .ezp-table-wrap--scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }
  .ezp-table { min-width: 0; font-size: 0.85rem; width: 100%; }
  .ezp-table.ezp-table--stack { border: none; }
  .ezp-table.ezp-table--stack thead { display: none; }
  .ezp-table.ezp-table--stack tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--ez-surface);
    border: 1px solid var(--ez-border);
    border-radius: 12px;
  }
  .ezp-table.ezp-table--stack tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.4rem 0;
    border: none;
    text-align: right;
    word-break: break-word;
  }
  .ezp-table.ezp-table--stack tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ez-text-muted);
    text-align: left;
    flex: 0 0 38%;
    max-width: 42%;
  }
  .ezp-table.ezp-table--stack tbody td form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .ezp-table.ezp-table--stack tbody td form input[type="text"] {
    max-width: 100% !important;
    width: 100%;
  }
  .ezp-table.ezp-table--stack tbody td form .ezp-btn {
    width: 100%;
  }
  .ezp-table.ezp-table--no-stack { min-width: 480px; font-size: 0.8rem; }
  .ezp-table-wrap--scroll .ezp-table { min-width: 480px; }

  /* Social & FAQ */
  .ezp-social-grid { grid-template-columns: 1fr; }
  .ezp-social-card { text-align: center; }
  .ezp-social-card__head { justify-content: center; }
  .ezp-social-share-btns { justify-content: center; }
  .ezp-faq-mission__grid { grid-template-columns: 1fr; }
  .ezp-faq-nav { justify-content: center; }
  .ezp-faq-nav__link { font-size: 0.65rem; }

  /* Media player */
  .ezp-media__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }
  .ezp-media form .ezp-btn { width: 100%; }

  /* Auth */
  .ezp-auth { padding: 1rem; padding-top: 2rem; align-items: flex-start; }
  .ezp-auth__card { max-width: 100%; }

  /* Legacy task cards */
  .ezp-daily-tasks__grid { grid-template-columns: 1fr; }
  .ezp-task-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .ezp-task-card__icon { grid-row: auto; }
  .ezp-task-card .ezp-btn { grid-column: auto; width: 100%; max-width: 280px; margin-top: 0.25rem; }
  .ezp-task-card__progress { grid-column: auto; width: 100%; max-width: 280px; }

  /* Salary / rank cards */
  .ezp-rank-card { flex-direction: column; text-align: center; align-items: center; }
  .ezp-rank-card > div[style*="text-align:right"] { text-align: center !important; }

  .ezp-mlm__card { min-width: 92px; max-width: 120px; padding: 0.5rem; }
  .ezp-mlm__name { font-size: 0.72rem; }
  .ezp-mlm-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .ezp-dl { grid-template-columns: 1fr; gap: 0.2rem; }
  .ezp-dl dt { margin-top: 0.5rem; }
}

@media (max-width: 480px) {
  .ezp-income-grid { grid-template-columns: 1fr; }
  .ezp-pool-roadmap__item { min-width: 58px; }
  .ezp-card__value { font-size: 1.25rem; }
  .ezp-wallet-hero__value { font-size: 1.85rem; }
  .ezp-dash-card__value { font-size: 1.5rem; }
  .ezp-matrix { grid-template-columns: 1fr 1fr; }
  .ezp-filter-bar .ezp-btn,
  .ezp-section__head > div .ezp-btn { flex: 1 1 100%; }
}

@media (max-width: 400px) {
  .ezp-content { padding: 0.65rem; }
  .ezp-mobile-nav__item span { font-size: 0.58rem; }
  .ezp-mobile-nav__item i { font-size: 1rem; }
}

.ezp-text-muted { color: var(--ez-text-muted); font-size: 0.85rem; }

.ezp-receipt-cell { display: flex; align-items: center; }
.ezp-receipt-thumb {
  display: block;
  padding: 0;
  border: 1px solid var(--ez-border, rgba(255,255,255,0.1));
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}
.ezp-receipt-thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.ezp-receipt-thumb:hover { border-color: var(--ez-primary, #7c5cff); }

.ezp-receipt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ezp-receipt-modal[hidden] { display: none !important; }
.ezp-receipt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.ezp-receipt-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--ez-cosmic-bg);
  border: 1px solid var(--ez-cosmic-border-soft);
  border-radius: 12px;
  box-shadow: var(--ez-cosmic-glow-outer);
  overflow: hidden;
}
.ezp-receipt-modal__head,
.ezp-receipt-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ez-border, rgba(255,255,255,0.08));
}
.ezp-receipt-modal__foot {
  border-bottom: 0;
  border-top: 1px solid var(--ez-border, rgba(255,255,255,0.08));
  justify-content: flex-end;
}
.ezp-receipt-modal__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
.ezp-receipt-modal__close:hover { background: rgba(255,255,255,0.08); }
.ezp-receipt-modal__body {
  flex: 1;
  min-height: 200px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.25);
}
.ezp-receipt-modal__body img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: 8px;
}
.ezp-receipt-modal__body iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.ez-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ez-popup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.ez-popup-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--ez-cosmic-bg);
  border: 1px solid var(--ez-cosmic-border-soft);
  border-radius: 12px;
  box-shadow: var(--ez-cosmic-glow-outer);
  text-align: center;
}
.ez-popup-modal__image {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
}
.ez-popup-modal__body { padding: 1.25rem; }
.ez-popup-modal__body h3 { margin: 0 0 0.5rem; }
.ez-popup-modal__body p { margin: 0; color: var(--ez-text-muted); line-height: 1.6; }
.ez-popup-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.ez-popup-modal__close:hover { background: rgba(0, 0, 0, 0.7); }
