@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Anton", Arial, Helvetica, sans-serif;
  color: #f5f5f5;
  background:
    radial-gradient(circle at top left, rgba(255, 45, 120, 0.14), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 255, 160, 0.12), transparent 32%),
    radial-gradient(circle at bottom, rgba(255, 176, 0, 0.08), transparent 38%),
    linear-gradient(180deg, #050507 0%, #09090c 48%, #000 100%);
  overflow-x: hidden;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

button,
input {
  font-family: "Anton", Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.app-shell {
  width: min(1120px, calc(100vw - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 26px) 0 clamp(22px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.top-hero {
  position: relative;
  text-align: center;
  padding: clamp(16px, 2.5vw, 26px);
  margin-bottom: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 18, 24, 0.94), rgba(4, 4, 7, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 34px rgba(255, 0, 75, 0.11),
    0 0 52px rgba(0, 255, 160, 0.06);
}

.logo-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: min(520px, 84vw);
  max-height: 220px;
  display: block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 18px rgba(255, 60, 0, 0.34))
    drop-shadow(0 0 24px rgba(0, 255, 150, 0.12));
}

.hero-kicker {
  margin-top: 8px;
  color: #ffb000;
  font-size: clamp(0.72rem, 1.3vw, 0.86rem);
  letter-spacing: 0.22em;
}

.subtitle {
  margin: 10px auto 0;
  max-width: 720px;
  color: #d8d8d8;
  font-size: clamp(0.82rem, 1.45vw, 1rem);
  line-height: 1.35;
  letter-spacing: 0.055em;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.side-panel,
.main-panel {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(17, 18, 23, 0.96), rgba(4, 4, 7, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 46px rgba(0, 0, 0, 0.42);
}

.side-panel,
.main-panel {
  padding: clamp(16px, 2vw, 22px);
}

.module-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ff2e83;
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  letter-spacing: 0.19em;
  margin-bottom: 15px;
}

.module-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16ff71;
  box-shadow: 0 0 14px rgba(22, 255, 113, 0.85);
  flex: 0 0 auto;
}

.upload-zone {
  min-height: clamp(150px, 20vh, 190px);
  border-radius: 22px;
  border: 2px dashed rgba(255, 255, 255, 0.17);
  background:
    radial-gradient(circle at center, rgba(255, 46, 131, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.22));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  transition: 0.18s ease;
  text-align: center;
}

.upload-zone:hover {
  border-color: rgba(22, 255, 113, 0.62);
  box-shadow: 0 0 26px rgba(22, 255, 113, 0.1);
  transform: translateY(-2px);
}

.upload-zone input {
  display: none;
}

.upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #ffffff;
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.upload-subtitle {
  color: #aaaab4;
  font-size: 0.82rem;
  letter-spacing: 0.075em;
}

.file-card,
.meter-card,
.status-console,
.transport-panel {
  margin-top: 14px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.file-card {
  padding: 14px;
}

.mini-label {
  color: #ffb000;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  margin-bottom: 7px;
}

.file-name {
  color: #fff;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.file-info {
  margin-top: 5px;
  color: #a9a9b3;
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.meter-card {
  padding: 14px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  color: #b8b8c1;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
}

.meter-bars {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.meter-bars span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #16ff71 0%, #ffb000 62%, #ff2e83 100%);
  opacity: 0.78;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.18);
}

.meter-bars span:nth-child(1) { width: 42%; }
.meter-bars span:nth-child(2) { width: 58%; }
.meter-bars span:nth-child(3) { width: 76%; }
.meter-bars span:nth-child(4) { width: 92%; }
.meter-bars span:nth-child(5) { width: 84%; }
.meter-bars span:nth-child(6) { width: 68%; }
.meter-bars span:nth-child(7) { width: 52%; }
.meter-bars span:nth-child(8) { width: 36%; }

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 14px;
}

.preset-card {
  position: relative;
  min-height: clamp(178px, 23vh, 215px);
  padding: 16px;
  border-radius: 22px;
  text-align: left;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(circle at top right, rgba(22, 255, 113, 0.06), transparent 42%),
    linear-gradient(145deg, rgba(21, 22, 29, 0.98), rgba(3, 3, 6, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.18s ease;
  overflow: hidden;
}

.preset-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 46, 131, 0.11), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(22, 255, 113, 0.08), transparent 34%);
  opacity: 0.7;
  pointer-events: none;
}

.preset-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 255, 113, 0.42);
  box-shadow: 0 0 24px rgba(22, 255, 113, 0.1);
}

.preset-card.active {
  border-color: rgba(255, 46, 131, 0.95);
  box-shadow:
    0 0 24px rgba(255, 46, 131, 0.2),
    inset 0 0 20px rgba(255, 46, 131, 0.055);
}

.radio-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.preset-card.active .radio-dot {
  background: #ff2e83;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 0 12px rgba(255, 46, 131, 0.9),
    0 0 22px rgba(255, 46, 131, 0.45);
}

.preset-icon {
  position: relative;
  width: 74px;
  height: 58px;
  display: block;
  margin-bottom: 12px;
  z-index: 2;
  filter:
    drop-shadow(0 0 12px rgba(22, 255, 113, 0.22))
    drop-shadow(0 0 16px rgba(255, 46, 131, 0.12));
}

.preset-icon::before,
.preset-icon::after,
.preset-icon i,
.preset-icon i::before,
.preset-icon i::after {
  content: "";
  position: absolute;
  display: block;
  box-sizing: border-box;
}

.icon-nineties::before,
.icon-nineties::after {
  top: 9px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 5px solid rgba(255, 176, 0, 0.95);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.9) 0 26%, rgba(255, 46, 131, 0.28) 28% 44%, rgba(0, 0, 0, 0.78) 46%);
  box-shadow:
    0 0 16px rgba(255, 176, 0, 0.33),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.icon-nineties::before { left: 2px; }
.icon-nineties::after { right: 2px; }

.icon-nineties i {
  left: 19px;
  top: 25px;
  width: 36px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb000, #ff2e83);
  box-shadow: 0 0 14px rgba(255, 46, 131, 0.28);
}

.icon-boom::before {
  left: 13px;
  top: 1px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #050507 0 16%, #16ff71 17% 23%, #0b0d10 24% 43%, #ff2e83 44% 49%, #09090c 50%);
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 18px rgba(22, 255, 113, 0.34),
    0 0 25px rgba(255, 46, 131, 0.18);
}

.icon-boom i {
  left: 4px;
  top: 16px;
  width: 66px;
  height: 20px;
  border-radius: 999px;
  border-left: 3px solid rgba(22, 255, 113, 0.72);
  border-right: 3px solid rgba(255, 46, 131, 0.72);
}

.icon-modern::before {
  left: 3px;
  top: 26px;
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16ff71, #ffb000, #ff2e83);
  box-shadow: 0 0 16px rgba(22, 255, 113, 0.24);
}

.icon-modern::after {
  left: 7px;
  top: 8px;
  width: 58px;
  height: 36px;
  border: solid #ff2e83;
  border-width: 0 0 4px 0;
  border-radius: 0 0 65% 65%;
  transform: rotate(-6deg);
  box-shadow: 0 10px 16px rgba(255, 46, 131, 0.13);
}

.icon-modern i {
  left: 10px;
  top: 21px;
  width: 54px;
  height: 15px;
  background:
    linear-gradient(90deg, transparent 0 8%, #16ff71 9% 12%, transparent 13% 22%, #ffb000 23% 26%, transparent 27% 38%, #ff2e83 39% 43%, transparent 44% 100%);
}

.icon-club::before {
  left: 9px;
  top: 32px;
  width: 56px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #16ff71, #ffb000, #ff2e83);
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.34);
}

.icon-club::after {
  left: 27px;
  top: 8px;
  width: 20px;
  height: 35px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #ff2e83, #ffb000);
  box-shadow:
    0 0 18px rgba(255, 46, 131, 0.28),
    0 0 24px rgba(255, 176, 0, 0.18);
}

.icon-club i {
  left: 12px;
  top: 16px;
  width: 50px;
  height: 24px;
  border-left: 4px solid rgba(22, 255, 113, 0.72);
  border-right: 4px solid rgba(255, 46, 131, 0.72);
  border-radius: 50%;
}

.icon-radio::before {
  left: 7px;
  top: 12px;
  width: 60px;
  height: 31px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(90deg, #16ff71 0 26%, #ffb000 27% 63%, #ff2e83 64% 100%);
  box-shadow:
    0 0 18px rgba(22, 255, 113, 0.16),
    0 0 18px rgba(255, 46, 131, 0.14);
}

.icon-radio::after {
  left: 39px;
  top: 17px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.58);
}

.icon-radio i {
  left: 14px;
  top: 26px;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.icon-heroic::before {
  left: 4px;
  top: 34px;
  width: 66px;
  height: 5px;
  border-radius: 999px;
  background: #16ff71;
  box-shadow: 0 -11px 0 rgba(255, 176, 0, 0.92), 0 -22px 0 rgba(255, 46, 131, 0.82);
}

.icon-heroic::after {
  left: 18px;
  top: 5px;
  width: 38px;
  height: 43px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 16px rgba(255, 46, 131, 0.24),
    inset 0 0 16px rgba(22, 255, 113, 0.09);
}

.icon-heroic i {
  left: 27px;
  top: 14px;
  width: 20px;
  height: 24px;
  background:
    linear-gradient(180deg, #ff2e83, #ffb000 52%, #16ff71);
  clip-path: polygon(50% 0, 100% 100%, 50% 74%, 0 100%);
}

.icon-level::before,
.icon-level::after {
  top: 6px;
  width: 6px;
  height: 45px;
  border-radius: 999px;
  background: linear-gradient(180deg, #16ff71, #ffb000, #ff2e83);
  box-shadow: 0 0 13px rgba(22, 255, 113, 0.22);
}

.icon-level::before { left: 22px; }
.icon-level::after { right: 22px; }

.icon-level i::before,
.icon-level i::after {
  width: 24px;
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f5f5f5, #8f929c);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}

.icon-level i::before {
  left: 13px;
  top: 18px;
}

.icon-level i::after {
  right: 13px;
  top: 28px;
}

.icon-essence::before {
  left: 12px;
  top: 2px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, #101116 0 3px, #23242c 4px 5px, #101116 6px 8px);
  border: 3px solid rgba(255, 176, 0, 0.88);
  box-shadow:
    0 0 18px rgba(255, 176, 0, 0.23),
    0 0 22px rgba(255, 46, 131, 0.12);
}

.icon-essence::after {
  left: 31px;
  top: 21px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff2e83;
  box-shadow: 0 0 14px rgba(255, 46, 131, 0.55);
}

.icon-essence i {
  left: 21px;
  top: 11px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 2px solid rgba(22, 255, 113, 0.38);
}

.icon-trapper::before {
  left: 2px;
  top: 28px;
  width: 70px;
  height: 5px;
  border-radius: 999px;
  background: #16ff71;
  box-shadow:
    0 0 15px rgba(22, 255, 113, 0.26),
    0 0 25px rgba(255, 46, 131, 0.12);
}

.icon-trapper i {
  left: 4px;
  top: 8px;
  width: 66px;
  height: 40px;
  background:
    linear-gradient(90deg,
      transparent 0 6%,
      #16ff71 7% 10%,
      transparent 11% 17%,
      #16ff71 18% 22%,
      transparent 23% 31%,
      #ffb000 32% 38%,
      transparent 39% 49%,
      #ff2e83 50% 58%,
      transparent 59% 100%);
  border-radius: 8px;
  transform: skewX(-5deg);
}

.icon-trapper::after {
  left: 14px;
  top: 38px;
  width: 46px;
  height: 8px;
  border-radius: 50%;
  border-bottom: 3px solid rgba(255, 46, 131, 0.8);
}

.icon-live::before {
  left: 34px;
  top: 5px;
  width: 6px;
  height: 48px;
  border-radius: 999px;
  background: #ffb000;
  box-shadow: 0 0 18px rgba(255, 176, 0, 0.42);
}

.icon-live::after {
  left: 7px;
  top: 22px;
  width: 60px;
  height: 13px;
  background:
    linear-gradient(90deg,
      #16ff71 0 8%,
      transparent 9% 18%,
      #16ff71 19% 25%,
      transparent 26% 42%,
      rgba(255, 255, 255, 0.85) 43% 57%,
      transparent 58% 74%,
      #ff2e83 75% 82%,
      transparent 83% 91%,
      #ff2e83 92% 100%);
  border-radius: 999px;
}

.icon-live i {
  left: 6px;
  top: 13px;
  width: 62px;
  height: 33px;
  border-radius: 50%;
  border-left: 3px solid rgba(22, 255, 113, 0.7);
  border-right: 3px solid rgba(255, 46, 131, 0.7);
}

.preset-name,
.preset-tagline,
.preset-description {
  position: relative;
  z-index: 2;
}

.preset-name {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  margin-bottom: 8px;
}

.preset-tagline {
  display: block;
  color: #16ff71;
  font-size: 0.78rem;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.preset-description {
  display: block;
  color: #bfc0ca;
  line-height: 1.38;
  font-size: 0.74rem;
  letter-spacing: 0.055em;
}

.transport-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

button {
  border: 0;
  border-radius: 15px;
  padding: 12px 10px;
  color: #fff;
  background:
    linear-gradient(180deg, #222633, #090a0e);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  letter-spacing: 0.07em;
  cursor: pointer;
  min-height: 46px;
}

button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

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

.primary-action {
  background: linear-gradient(180deg, #ff2e83, #8c0032);
}

.export-action {
  background: linear-gradient(180deg, #16ff71, #046c32);
}

.status-console {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dadbe3;
  min-height: 48px;
}

.console-light {
  width: 9px;
  height: 9px;
  background: #ffb000;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 176, 0, 0.85);
  flex: 0 0 auto;
}

#statusText {
  font-size: 0.76rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

@media (max-width: 940px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .side-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .side-panel .module-title {
    grid-column: 1 / -1;
  }

  .file-card,
  .meter-card {
    margin-top: 0;
  }

  .upload-zone {
    min-height: 160px;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100vw - 18px, 1120px);
    padding-top: 10px;
  }

  .top-hero {
    padding: 14px 10px;
    margin-bottom: 10px;
  }

  .logo {
    width: min(390px, 88vw);
    max-height: 150px;
  }

  .dashboard {
    gap: 10px;
  }

  .side-panel,
  .main-panel {
    border-radius: 19px;
    padding: 13px;
  }

  .side-panel {
    grid-template-columns: 1fr;
  }

  .preset-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .preset-card {
    min-height: 188px;
    padding: 14px;
  }

  .preset-icon {
    width: 66px;
    height: 52px;
    margin-bottom: 10px;
  }

  .transport-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-action,
  .export-action {
    grid-column: span 2;
  }
}

@media (max-height: 760px) and (min-width: 941px) {
  .logo {
    max-height: 155px;
  }

  .top-hero {
    padding: 14px;
  }

  .subtitle {
    margin-top: 6px;
  }

  .upload-zone {
    min-height: 135px;
  }

  .preset-card {
    min-height: 170px;
  }

  .preset-icon {
    width: 66px;
    height: 52px;
    margin-bottom: 8px;
  }
}