/* Mockups celular + laptop — UI só com CSS (sem imagens) */

:root {
  --fx-green: #2ddb4a;
  --fx-green-dim: rgba(45, 219, 74, 0.35);
  --fx-violet: #8b5cf6;
  --fx-violet-dim: rgba(139, 92, 246, 0.4);
  --fx-cyan: #22d3ee;
}

.screen-content--cssfx {
  position: relative;
  padding: 0 !important;
  min-height: 120px;
  background: #030303 !important;
  overflow: hidden;
}

/* ——— Base layer ——— */
.cssfx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.cssfx__aurora {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 45% 35% at 20% 30%, var(--fx-green-dim), transparent 55%),
    radial-gradient(ellipse 40% 40% at 85% 20%, var(--fx-violet-dim), transparent 50%),
    radial-gradient(ellipse 50% 45% at 60% 90%, rgba(34, 211, 238, 0.2), transparent 55%);
  animation: fx-aurora 14s ease-in-out infinite alternate;
  filter: blur(2px);
}

@keyframes fx-aurora {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate(6%, -4%) rotate(12deg) scale(1.08);
    opacity: 1;
  }
}

.cssfx__matrix {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 219, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 219, 74, 0.04) 1px, transparent 1px);
  background-size: 14px 14px;
  animation: fx-grid 22s linear infinite;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

@keyframes fx-grid {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 140px, 140px 0;
  }
}

.cssfx__scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(45, 219, 74, 0.06) 48%,
    rgba(139, 92, 246, 0.08) 50%,
    transparent 52%
  );
  animation: fx-scan 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fx-scan {
  0%,
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
  }
}

/* ——— Phone layout ——— */
.cssfx--phone .cssfx__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  padding: 10px 12px 6px;
}

.cssfx--phone .cssfx__topbar span {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--fx-green), var(--fx-violet));
  opacity: 0.85;
  animation: fx-pill 2.4s ease-in-out infinite;
}

.cssfx--phone .cssfx__topbar span:nth-child(1) {
  width: 32%;
  animation-delay: 0s;
}
.cssfx--phone .cssfx__topbar span:nth-child(2) {
  width: 22%;
  animation-delay: 0.3s;
}
.cssfx--phone .cssfx__topbar span:nth-child(3) {
  flex: 1;
  animation-delay: 0.6s;
}

@keyframes fx-pill {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(1.08);
    opacity: 1;
  }
}

.cssfx__chartrow {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 0 4px;
}

.cssfx__ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
  animation: fx-spin 10s linear infinite;
  border: 3px solid rgba(45, 219, 74, 0.25);
  border-top-color: var(--fx-green);
  border-right-color: var(--fx-violet);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6), 0 0 14px var(--fx-green-dim);
}

.cssfx__ring--2 {
  animation-duration: 14s;
  animation-direction: reverse;
  border-top-color: var(--fx-violet);
  border-right-color: var(--fx-cyan);
}

.cssfx__ring::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), transparent 60%);
}

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

.cssfx__bars {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 72px;
  padding: 0 14px 8px;
}

.cssfx__bar {
  width: 8px;
  height: var(--h, 50%);
  min-height: 18%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--fx-violet), var(--fx-green));
  transform-origin: bottom;
  animation: fx-bar 1.8s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  box-shadow: 0 0 12px var(--fx-green-dim);
}

.cssfx__bar:nth-child(1) {
  --h: 42%;
  --d: 0s;
}
.cssfx__bar:nth-child(2) {
  --h: 68%;
  --d: 0.15s;
}
.cssfx__bar:nth-child(3) {
  --h: 52%;
  --d: 0.3s;
}
.cssfx__bar:nth-child(4) {
  --h: 88%;
  --d: 0.45s;
}
.cssfx__bar:nth-child(5) {
  --h: 58%;
  --d: 0.6s;
}
.cssfx__bar:nth-child(6) {
  --h: 76%;
  --d: 0.75s;
}

@keyframes fx-bar {
  0%,
  100% {
    transform: scaleY(1);
    filter: brightness(1);
  }
  50% {
    transform: scaleY(1.12);
    filter: brightness(1.25);
  }
}

.cssfx__code {
  position: relative;
  z-index: 2;
  padding: 6px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cssfx__line {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(45, 219, 74, 0.5), rgba(139, 92, 246, 0.25), transparent);
  animation: fx-code 3.2s ease-in-out infinite;
}

.cssfx__line:nth-child(1) {
  width: 88%;
  animation-delay: 0s;
}
.cssfx__line:nth-child(2) {
  width: 72%;
  animation-delay: 0.2s;
}
.cssfx__line:nth-child(3) {
  width: 56%;
  animation-delay: 0.4s;
}
.cssfx__line:nth-child(4) {
  width: 64%;
  animation-delay: 0.6s;
}

@keyframes fx-code {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

.cssfx__nodes {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.cssfx-node {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fx-green);
  box-shadow: 0 0 10px var(--fx-green);
  opacity: 0;
  animation: fx-node 5s ease-in-out infinite;
}

.cssfx-node--v {
  background: var(--fx-violet);
  box-shadow: 0 0 10px var(--fx-violet);
}

.cssfx--phone .cssfx__nodes .cssfx-node:nth-child(1) {
  top: 38%;
  left: 12%;
  animation-delay: 0s;
}
.cssfx--phone .cssfx__nodes .cssfx-node:nth-child(2) {
  top: 52%;
  right: 14%;
  animation-delay: 1.2s;
}
.cssfx--phone .cssfx__nodes .cssfx-node:nth-child(3) {
  bottom: 22%;
  left: 22%;
  animation-delay: 2.4s;
}

@keyframes fx-node {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  30%,
  70% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.cssfx__gloworb {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  bottom: -30px;
  right: -20px;
  background: radial-gradient(circle, rgba(45, 219, 74, 0.25), transparent 65%);
  animation: fx-orb 8s ease-in-out infinite;
}

@keyframes fx-orb {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.9;
  }
}

.cssfx__pulseband {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(20, 20, 20, 0.8));
  overflow: hidden;
  z-index: 2;
}

.cssfx__pulseband::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 200%;
  height: 2px;
  margin-top: -1px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    var(--fx-green) 6px,
    var(--fx-green) 8px,
    transparent 8px,
    transparent 14px,
    var(--fx-violet) 14px,
    var(--fx-violet) 15px,
    transparent 15px,
    transparent 22px
  );
  animation: fx-ekg 3s linear infinite;
  opacity: 0.85;
}

@keyframes fx-ekg {
  0% {
    transform: translateX(0) translateY(-2px);
  }
  25% {
    transform: translateX(-12%) translateY(2px);
  }
  50% {
    transform: translateX(-25%) translateY(-1px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

/* ——— Laptop: dashboard extra ——— */
.cssfx--laptop {
  border-radius: 4px;
}

.cssfx--laptop .cssfx__dash {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 56px 1fr;
  height: 100%;
  min-height: 100%;
}

.cssfx--laptop .cssfx__sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(5, 5, 5, 0.98));
}

.cssfx--laptop .cssfx__sb-item {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  animation: fx-sb 2.5s ease-in-out infinite;
}

.cssfx--laptop .cssfx__sb-item:nth-child(1) {
  width: 100%;
  background: linear-gradient(90deg, var(--fx-green-dim), transparent);
  animation-delay: 0s;
}
.cssfx--laptop .cssfx__sb-item:nth-child(2) {
  width: 70%;
  animation-delay: 0.2s;
}
.cssfx--laptop .cssfx__sb-item:nth-child(3) {
  width: 85%;
  animation-delay: 0.4s;
}
.cssfx--laptop .cssfx__sb-item:nth-child(4) {
  width: 60%;
  animation-delay: 0.6s;
}

@keyframes fx-sb {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

.cssfx--laptop .cssfx__mainpanel {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.cssfx--laptop .cssfx__titlestrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cssfx--laptop .cssfx__titlestrip span:first-child {
  height: 8px;
  width: 42%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  animation: fx-shimmer 3s ease-in-out infinite;
}

.cssfx--laptop .cssfx__titlestrip span:last-child {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: var(--fx-green-dim);
  animation: fx-pill 2s ease-in-out infinite;
}

@keyframes fx-shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.cssfx--laptop .cssfx__donuts {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

.cssfx--laptop .cssfx__ring {
  width: 64px;
  height: 64px;
}

.cssfx--laptop .cssfx__bigbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
  flex: 1;
  min-height: 0;
}

.cssfx--laptop .cssfx__bigbars .cssfx__bar {
  flex: 1;
  width: auto;
  min-height: 20%;
  animation-duration: 2.2s;
}

.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(1) {
  --h: 55%;
  --d: 0s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(2) {
  --h: 85%;
  --d: 0.12s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(3) {
  --h: 45%;
  --d: 0.24s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(4) {
  --h: 92%;
  --d: 0.36s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(5) {
  --h: 70%;
  --d: 0.48s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(6) {
  --h: 58%;
  --d: 0.6s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(7) {
  --h: 78%;
  --d: 0.72s;
}
.cssfx--laptop .cssfx__bigbars .cssfx__bar:nth-child(8) {
  --h: 50%;
  --d: 0.84s;
}

.cssfx--laptop .cssfx__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.cssfx--laptop .cssfx__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 10px;
}

.cssfx--laptop .cssfx__row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fx-green);
  opacity: 0.7;
  animation: fx-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.cssfx--laptop .cssfx__row:nth-child(even) .cssfx__row-dot {
  background: var(--fx-violet);
  animation-delay: 0.5s;
}

.cssfx--laptop .cssfx__row span {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
  animation: fx-code 4s ease-in-out infinite;
}

.cssfx--laptop .cssfx__row:nth-child(2) span {
  width: 75%;
  animation-delay: 0.3s;
}
.cssfx--laptop .cssfx__row:nth-child(3) span {
  width: 82%;
  animation-delay: 0.6s;
}

@keyframes fx-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}
