/* =================== GLOBAL / MATRIX THEME =================== */
:root {
  --bg-main: #010c06;
  --bg-panel: #02140c;
  --primary: #14ff72;
  --primary-soft: #37ff9b;
  --accent: #00f0ff;
  --text-main: #f5fff5;
  --text-soft: #58ffb7;
  --border-strong: #14ff72;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Rajdhani", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-main);
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, #0b3b23, transparent 55%),
    radial-gradient(circle at 100% 100%, #0c4b31, transparent 55%),
    linear-gradient(135deg, #000804, #00110a, #000804);
}

/* img & iframe */
img,
iframe {
  max-width: 100%;
}

/* =================== CONTAINERS =================== */
.container-outer {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 12px 16px;
}

.container-outer.container-content {
  border-radius: 22px;
  border: 1px solid rgba(20, 255, 114, 0.5);
  background: radial-gradient(circle at 0 0, #05351f, #02140c);
  box-shadow:
    0 0 18px rgba(0, 255, 120, 0.35),
    0 0 40px rgba(0, 255, 120, 0.25),
    inset 0 0 18px rgba(0, 255, 120, 0.18);
  padding: 18px 24px;
}

.container-inner,
.container-heading,
.container-heading2 {
  position: relative;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 255, 140, 0.7);
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 120, 0.14), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 140, 80, 0.2), transparent 55%),
    linear-gradient(145deg, #010f08, #020805);
  box-shadow: 0 0 22px rgba(0, 255, 120, 0.35);
  margin-bottom: 16px;
}

/* =================== LOGO =================== */
.header-logo {
  display: block;
  margin: 4px auto 8px;
  width: 130px;
}

/* ========= ROOT BAR ========= */
.container-heading2 {
  margin: 0 0 18px 0;
  padding: 10px 18px;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 120, 0.6);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 255, 120, 0.24), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(0, 255, 120, 0.18), transparent 55%),
    linear-gradient(135deg, #021c10, #010a05);
  box-shadow: 0 0 18px rgba(0, 255, 140, 0.55);
}

.root-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.root-left {
  font-family: "Consolas", "Fira Code", monospace;
  font-size: 14px;
  color: #9dff6a;
  text-shadow: 0 0 6px rgba(0, 255, 140, 0.9);
  white-space: nowrap;
}

.root-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: 11px;
  line-height: 1.3;
  color: #b7ff4a;
  white-space: nowrap;
}

.root-version {
  font-weight: 700;
}

/* =================== FORM =================== */
h1 {
  margin: 6px 0 10px;
  font-size: 22px;
  text-align: center;
  color: var(--text-main);
  letter-spacing: 0.08em;
}

.field-container {
  margin: 12px 0;
}

.field-text-pre {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 140, 0.9);
  background: #020c07 !important;
  color: #e8ffe8 !important;
  outline: none;
  box-shadow:
    0 0 6px rgba(0, 255, 140, 0.75),
    0 0 14px rgba(0, 255, 140, 0.4);
}

input[type="text"]::placeholder {
  color: rgba(210, 255, 210, 0.6);
}

option {
  background: #020c07 !important;
  color: #e8ffe8 !important;
}

option:hover,
option:checked {
  background: #0bd462 !important;
  color: #001107 !important;
}

.form-field-select {
  padding: 0;
  border-radius: 16px;
  width: 100%;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
select:focus,
input[type="text"]:hover,
select:hover {
  box-shadow:
    0 0 10px rgba(0, 255, 140, 1),
    0 0 22px rgba(0, 255, 140, 0.9);
  border-color: #00ff8c;
}

/* =================== TOGGLE =================== */
.onoff {
  margin: 0;
  padding: 0;
}

.onoff input {
  display: none;
}

.onoff label {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(145deg, #02140b, #000803);
  border: 1px solid rgba(0, 255, 140, 0.8);
  box-shadow:
    0 2px 0 rgba(0, 0, 0, 0.7),
    0 0 8px rgba(0, 255, 140, 0.5);
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.12s ease;
  overflow: hidden;
}

.onoff label::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0, rgba(0, 255, 120, 0.3), transparent 60%);
  opacity: 0.9;
}

.onoff label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #45ff98);
  box-shadow:
    0 2px 0 rgba(0, 90, 40, 0.9),
    0 0 12px rgba(0, 255, 120, 0.9);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  z-index: 1;
}

.onoff input:checked + label {
  background: linear-gradient(135deg, #00ff80, #77ffbd);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 2px 0 rgba(0, 70, 30, 0.9),
    0 0 18px rgba(0, 255, 140, 1),
    0 0 30px rgba(120, 255, 200, 0.9);
}

.onoff input:checked + label::after {
  transform: translateX(26px);
  box-shadow:
    0 2px 0 rgba(0, 80, 40, 0.9),
    0 0 16px rgba(200, 255, 220, 1);
}

/* =================== BUTTON =================== */
.form-button-container {
  margin-top: 24px;
  margin-bottom: 12px;
  text-align: center;
  position: relative;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 48px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  color: #023d02 !important;
  background-image: linear-gradient(135deg, #00ff80, #a6ffda);
  box-shadow: 0 0 18px rgba(0, 255, 140, 0.95), 0 0 36px rgba(0, 255, 140, 0.8);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.form-button:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.07);
  box-shadow:
    0 0 22px rgba(0, 255, 140, 1),
    0 0 48px rgba(0, 255, 140, 0.95);
}

/* =================== USER ACTIVITY TITLE =================== */
.container-heading {
  text-align: center;
  padding: 8px 20px !important;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 16px;
}

/* =================== BANNER =================== */
.banner {
  margin-top: 18px;
  margin-bottom: 10px;
}

.banner .center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 255, 120, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 180, 90, 0.25), transparent 55%),
    linear-gradient(145deg, #020f08, #010804);
  border: 1px solid rgba(0, 255, 140, 0.7);
  box-shadow:
    0 0 18px rgba(0, 255, 140, 0.75),
    0 0 32px rgba(0, 255, 140, 0.35);
  overflow: hidden;
}

.banner .center img {
  width: 75%;
  max-width: 360px;
  height: auto;
}

/* LINK & CENTER */
a {
  color: #3fbc09;
}
.center {
  text-align: center;
}

/* =================== MOBILE =================== */
@media (max-width: 768px) {
  .container-outer {
    max-width: 100%;
    padding: 10px;
    margin: 0 auto 16px;
  }

  .container-outer.container-content {
    padding: 12px 10px;
    border-radius: 18px;
  }

  .container-inner {
    width: 100%;
    margin: 12px 0;
    padding: 16px 10px;
    border-radius: 16px;
  }

  .root-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .root-left {
    font-size: 12px;
  }

  .root-right {
    font-size: 10px;
    white-space: normal;
  }

  h1 {
    font-size: 18px;
  }

  .field-container {
    margin: 10px 0;
  }

  .field-text-pre {
    font-size: 11px;
  }

  .field-container input[type="text"],
  .field-container select {
    padding: 11px 12px;
    font-size: 13px;
  }

  .form-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    font-size: 13px;
  }

  .banner .center img {
    width: 90%;
    max-width: 380px;
  }
}

@media (max-width: 600px) {
  .generator-option,
  .field-container,
  .form-field-select {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .form-field-select select,
  input[type="text"],
  #deposit-input {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
  }

  .onoff {
    margin-left: 0 !important;
  }

  .generator-console {
    padding: 10px 10px !important;
  }
}

/* ================== SCROLL FIX ================== */
html,
body {
  height: auto !important;
  overflow-y: auto !important;
}

.container-outer,
.container-outer.container-content,
.container-inner {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

#wrapper,
#content,
.main-wrapper,
.recent-activity,
.generator-console {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* ================== CONSOLE ================== */
.generator-console {
  margin: 16px 0 0 0 !important;
  padding: 14px 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(0, 255, 140, 0.7);
  background: #020c07;
  box-shadow: 0 0 16px rgba(0, 255, 140, 0.45);
  overflow-x: hidden;
}

.generator-console-row {
  color: #b7ff4a;
  font-family: "Consolas", "Fira Code", monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

/* HIDDEN CLASS */
.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* ================== WARNING BOX + GLITCH ================== */
#form-error-list {
  background: rgba(0, 15, 5, 0.85) !important;
  border: 1px solid #00ff7f !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  box-shadow: 0 0 18px rgba(0, 255, 160, 0.4) !important;
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

#form-error-list .form-error-list-row {
  position: relative;
  color: #ff5555 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  animation: glitch-text 1.2s infinite;
}

#form-error-list .form-error-list-row::before {
  content: "⚠️ ";
  color: #ffdd55;
}

#form-error-list::after,
#form-error-list::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 255, 140, 0.2) 0px,
    rgba(0, 255, 140, 0.2) 2px,
    transparent 3px
  );
  pointer-events: none;
  animation: glitchMove 1.3s infinite linear;
}

#form-error-list::before {
  animation-duration: 2.1s;
  opacity: 0.1;
}

@keyframes glitchMove {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes glitch-text {
  0% {
    text-shadow:
      0 0 2px #14ff72,
      0 0 6px #14ff72;
    transform: translate(0, 0);
  }
  15% {
    text-shadow:
      -2px 0 #14ff72,
      2px 0 #ff5c5c;
    transform: translate(-1px, -0.5px);
  }
  30% {
    text-shadow:
      2px 0 #14ff72,
      -2px 0 #ff5c5c;
    transform: translate(1px, 0.5px);
  }
  45% {
    text-shadow:
      -1px 0 #14ff72,
      1px 0 #ff5c5c;
    transform: translate(-1px, 0);
  }
  60% {
    text-shadow:
      1px 0 #14ff72,
      -1px 0 #ff5c5c;
    transform: translate(1px, -0.5px);
  }
  75% {
    text-shadow:
      -2px 0 #14ff72,
      2px 0 #ff5c5c;
    transform: translate(-1px, 0.5px);
  }
  100% {
    text-shadow:
      0 0 2px #14ff72,
      0 0 6px #14ff72;
    transform: translate(0, 0);
  }
}