body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #07111f;
  color: #e5eefb;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.hero p,
.status {
  color: #9fb3c8;
}

.privacy-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0e2f24;
  color: #7dffc1;
  font-weight: bold;
}

.card {
  background: #0d1b2e;
  border: 1px solid #1f3554;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.drop-zone {
  display: block;
  margin-top: 16px;
  padding: 36px;
  border: 2px dashed #31557e;
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
  background: #081827;
}

.drop-zone:hover {
  border-color: #55d6ff;
}

.drop-zone input {
  display: none;
}

.drop-zone span {
  display: block;
  font-size: 20px;
  font-weight: bold;
}

.drop-zone small {
  display: block;
  margin-top: 8px;
  color: #9fb3c8;
}

.actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  background: #37c7ff;
  color: #00111d;
  font-weight: bold;
  cursor: pointer;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: #1d2e46;
  color: #d8e8ff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric {
  background: #0d1b2e;
  border: 1px solid #1f3554;
  border-radius: 16px;
  padding: 20px;
  color: #9fb3c8;
}

.metric strong {
  display: block;
  font-size: 32px;
  color: #ffffff;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #1f3554;
  text-align: left;
  vertical-align: top;
}

th {
  color: #7dffc1;
}

code {
  color: #ffd479;
  word-break: break-word;
}

/* RUBIK LOADER */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at center, rgba(55, 199, 255, 0.16), transparent 35%),
    linear-gradient(135deg, #020617, #07111f 55%, #020617);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader h2 {
  margin: 30px 0 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e5eefb;
}

.loader p {
  color: #9fb3c8;
}

.cube-scene {
  width: 180px;
  height: 180px;
  perspective: 900px;
}

.rubiks-cube {
  position: relative;
  width: 126px;
  height: 126px;
  margin: 27px auto;
  transform-style: preserve-3d;
  animation: solveCube 4.2s cubic-bezier(.65, 0, .35, 1) forwards;
}

.cube-face {
  position: absolute;
  width: 126px;
  height: 126px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  box-sizing: border-box;
  background: #020617;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 28px rgba(55,199,255,0.25);
}

.cube-face::before {
  content: "";
  display: contents;
}

.cube-face {
  background-image:
    linear-gradient(90deg, transparent 31%, #020617 31%, #020617 35%, transparent 35%, transparent 65%, #020617 65%, #020617 69%, transparent 69%),
    linear-gradient(0deg, transparent 31%, #020617 31%, #020617 35%, transparent 35%, transparent 65%, #020617 65%, #020617 69%, transparent 69%);
  background-size: 100% 100%;
}

.front  { transform: rotateY(0deg) translateZ(63px);  background-color: #19c37d; animation: frontSolve 4.2s forwards; }
.back   { transform: rotateY(180deg) translateZ(63px); background-color: #ff4d4d; animation: backSolve 4.2s forwards; }
.right  { transform: rotateY(90deg) translateZ(63px);  background-color: #37c7ff; animation: rightSolve 4.2s forwards; }
.left   { transform: rotateY(-90deg) translateZ(63px); background-color: #ffd166; animation: leftSolve 4.2s forwards; }
.top    { transform: rotateX(90deg) translateZ(63px);  background-color: #ffffff; animation: topSolve 4.2s forwards; }
.bottom { transform: rotateX(-90deg) translateZ(63px); background-color: #ff8c42; animation: bottomSolve 4.2s forwards; }

@keyframes solveCube {
  0%   { transform: rotateX(-35deg) rotateY(45deg) rotateZ(0deg) scale(0.9); }
  18%  { transform: rotateX(145deg) rotateY(120deg) rotateZ(90deg) scale(1); }
  36%  { transform: rotateX(40deg) rotateY(250deg) rotateZ(180deg) scale(1.05); }
  54%  { transform: rotateX(220deg) rotateY(60deg) rotateZ(270deg) scale(1); }
  72%  { transform: rotateX(35deg) rotateY(405deg) rotateZ(360deg) scale(1.05); }
  100% { transform: rotateX(-25deg) rotateY(45deg) rotateZ(0deg) scale(1); }
}

@keyframes frontSolve {
  0%, 70% {
    background:
      conic-gradient(from 20deg, #ff4d4d, #37c7ff, #ffd166, #19c37d, #fff, #ff8c42, #ff4d4d);
  }
  100% { background-color: #19c37d; }
}

@keyframes backSolve {
  0%, 70% {
    background:
      conic-gradient(from 80deg, #37c7ff, #19c37d, #ff8c42, #fff, #ffd166, #ff4d4d, #37c7ff);
  }
  100% { background-color: #ff4d4d; }
}

@keyframes rightSolve {
  0%, 70% {
    background:
      conic-gradient(from 160deg, #fff, #ffd166, #ff4d4d, #19c37d, #37c7ff, #ff8c42, #fff);
  }
  100% { background-color: #37c7ff; }
}

@keyframes leftSolve {
  0%, 70% {
    background:
      conic-gradient(from 240deg, #19c37d, #ff8c42, #37c7ff, #ff4d4d, #fff, #ffd166, #19c37d);
  }
  100% { background-color: #ffd166; }
}

@keyframes topSolve {
  0%, 70% {
    background:
      conic-gradient(from 300deg, #ffd166, #ff4d4d, #37c7ff, #ff8c42, #19c37d, #fff, #ffd166);
  }
  100% { background-color: #ffffff; }
}

@keyframes bottomSolve {
  0%, 70% {
    background:
      conic-gradient(from 120deg, #ff8c42, #fff, #19c37d, #ffd166, #ff4d4d, #37c7ff, #ff8c42);
  }
  100% { background-color: #ff8c42; }
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 32px;
  }
}
