:root {
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --cyan-50: #ecfeff;
  --cyan-200: #a5f3fc;
  --cyan-300: #67e8f9;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --emerald-50: #ecfdf5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --purple-50: #faf5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --rose-50: #fff1f2;
  --rose-200: #fecdd3;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --orange-400: #fb923c;
  --yellow-400: #facc15;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Nunito", sans-serif;
  background: linear-gradient(-45deg, #020617, #0f172a, #1e1b4b, #082f49);
  background-size: 400% 400%;
  animation: aiBackground 15s ease infinite;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Allow content to flow and stretch vertically */
  align-items: center;
  /* Center horizontally */
  justify-content: flex-start;
  /* Start immediately below the header */
  padding: 5.5rem 0.5rem 0.5rem 0.5rem;
  /* Snug padding to remove voids */
  margin: 0;
  overflow-x: hidden;
  color: var(--slate-200);
}

@keyframes aiBackground {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Typography & Custom Utilities */
.font-scifi {
  /* font-family: "Orbitron", sans-serif; */
  font-family: inherit;
}

.font-mono {
  font-family: monospace;
}

.fw-extrabold {
  font-weight: 800 !important;
}

.fw-black {
  font-weight: 900 !important;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.hidden {
  display: none !important;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Exact Text Sizing */
.txt-8px {
  font-size: 8px !important;
}

.txt-9px {
  font-size: 9px !important;
}

.txt-10px {
  font-size: 10px !important;
}

.txt-xs {
  font-size: 0.75rem !important;
}

.txt-sm {
  font-size: 0.875rem !important;
}

.txt-base {
  font-size: 1rem !important;
}

.txt-lg {
  font-size: 1.125rem !important;
}

.txt-xl {
  font-size: 1.25rem !important;
}

.txt-2xl {
  font-size: 1.5rem !important;
}

.txt-3xl {
  font-size: 1.875rem !important;
}

.txt-4xl {
  font-size: 2.25rem !important;
}

@media (min-width: 576px) {
  .sm-txt-10px {
    font-size: 10px !important;
  }

  .sm-txt-xs {
    font-size: 0.75rem !important;
  }

  .sm-txt-sm {
    font-size: 0.875rem !important;
  }

  .sm-txt-base {
    font-size: 1rem !important;
  }

  .sm-txt-lg {
    font-size: 1.125rem !important;
  }

  .sm-txt-2xl {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 768px) {
  .md-txt-10px {
    font-size: 10px !important;
  }

  .md-txt-xs {
    font-size: 0.75rem !important;
  }

  .md-txt-sm {
    font-size: 0.875rem !important;
  }

  .md-txt-base {
    font-size: 1rem !important;
  }

  .md-txt-lg {
    font-size: 1.125rem !important;
  }

  .md-txt-xl {
    font-size: 1.25rem !important;
  }

  .md-txt-2xl {
    font-size: 1.5rem !important;
  }

  .md-txt-3xl {
    font-size: 1.875rem !important;
  }

  .md-txt-4xl {
    font-size: 2.25rem !important;
  }
}

/* Dimension Helpers */
.wh-8 {
  width: 2rem;
  height: 2rem;
}

.wh-9 {
  width: 2.25rem;
  height: 2.25rem;
}

@media (min-width: 768px) {
  .md-wh-10 {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Text Colors */
.text-cyan-50 {
  color: var(--cyan-50) !important;
}

.text-cyan-200 {
  color: var(--cyan-200) !important;
}

.text-cyan-300 {
  color: var(--cyan-300) !important;
}

.text-cyan-400 {
  color: var(--cyan-400) !important;
}

.text-cyan-500 {
  color: var(--cyan-500) !important;
}

.text-emerald-50 {
  color: var(--emerald-50) !important;
}

.text-emerald-200 {
  color: var(--emerald-200) !important;
}

.text-emerald-300 {
  color: var(--emerald-300) !important;
}

.text-emerald-400 {
  color: var(--emerald-400) !important;
}

.text-purple-50 {
  color: var(--purple-50) !important;
}

.text-purple-300 {
  color: var(--purple-300) !important;
}

.text-purple-400 {
  color: var(--purple-400) !important;
}

.text-rose-50 {
  color: var(--rose-50) !important;
}

.text-rose-200 {
  color: var(--rose-200) !important;
}

.text-rose-300 {
  color: var(--rose-300) !important;
}

.text-rose-400 {
  color: var(--rose-400) !important;
}

.text-rose-500 {
  color: var(--rose-500) !important;
}

.text-slate-200 {
  color: var(--slate-200) !important;
}

.text-slate-300 {
  color: var(--slate-300) !important;
}

.text-slate-400 {
  color: var(--slate-400) !important;
}

.text-slate-500 {
  color: var(--slate-500) !important;
}

.text-slate-600 {
  color: var(--slate-600) !important;
}

.text-orange-400 {
  color: var(--orange-400) !important;
}

.text-yellow-400 {
  color: var(--yellow-400) !important;
}

/* Effects */
.text-glow-cyan {
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.text-glow-orange {
  text-shadow: 0 0 10px rgba(249, 115, 22, 0.6);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
}

/* Modern sleek utilities - Dark/Sci-Fi Mode */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.8),
    transparent
  );
}

.modern-btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.modern-btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* Structural Page Wrappers */
.dashboard-wrapper {
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.15);
  border-radius: 1.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.5);
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-grow: 1;
  /* Stretch to occupy full height */
}

.panel-left {
  width: 55%;
  flex-shrink: 1;
}

.panel-right {
  width: 45%;
  flex-shrink: 1;
}

.page-card {
  border-radius: 1.5rem;
  padding: 1.25rem;
  border-color: rgba(6, 182, 212, 0.3) !important;
  max-width: 56rem;
  width: 100%;
  margin: 0 auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dash-card {
  border-radius: 0.75rem;
  padding: 1rem;
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .dashboard-wrapper {
    padding: 1.25rem;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .dashboard-wrapper {
    border-radius: 2.5rem;
    padding: 2rem;
    gap: 2.5rem;
  }

  .panel-left,
  .panel-right {
    flex: 1;
    width: auto;
  }

  .dash-card {
    border-radius: 1rem;
    padding: 1.5rem;
    gap: 1rem;
  }

  .page-card {
    border-radius: 2.5rem;
    padding: 2rem;
  }
}

/* Buttons Compilation */
.btn-sci-orange {
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--orange-400);
  border: 1px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.1);
  border-radius: 0.5rem;
  padding: 0.625rem;
}

.btn-sci-orange:hover {
  background-color: rgba(249, 115, 22, 0.2);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.btn-sci-rose {
  background-color: rgba(244, 63, 94, 0.1);
  color: var(--rose-400);
  border: 1px solid rgba(244, 63, 94, 0.5);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.1);
  border-radius: 0.5rem;
  padding: 0.625rem;
}

.btn-sci-rose:hover {
  background-color: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

.btn-sci-purple {
  background-color: rgba(168, 85, 247, 0.1);
  color: var(--purple-300);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 0.5rem;
  padding: 0.375rem;
  transition: background-color 0.2s;
}

.btn-sci-purple:hover {
  background-color: rgba(168, 85, 247, 0.2);
}

@media (min-width: 768px) {
  .btn-sci-orange,
  .btn-sci-rose {
    border-radius: 0.75rem;
    padding: 0.75rem;
  }

  .btn-sci-purple {
    border-radius: 0.75rem;
    padding: 0.625rem;
  }
}

.btn-sci-cyan-solid {
  background-color: var(--cyan-500);
  color: var(--slate-950);
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
  border: none;
}

.btn-sci-cyan-solid:hover {
  background-color: var(--cyan-400);
}

.floating-help-btn {
  position: fixed;
  bottom: 4rem;
  left: 1rem;
  z-index: 1035;
  padding: 5px 8px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.95),
    rgb(0 44 116 / 95%)
  );
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.45);
  font-size: 12px;
  max-width: 40%;
  color: white;
  border: 1px solid #7948ce;
  box-shadow: 0 0 30px #7948ce;
}

.btn-sci-emerald-solid {
  background-color: var(--emerald-500);
  color: var(--slate-950);
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  border: none;
}

.btn-sci-emerald-solid:hover {
  background-color: var(--emerald-400);
}

.btn-sci-rose-solid {
  background-color: var(--rose-500);
  color: var(--slate-950);
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
  border: none;
}

.btn-sci-rose-solid:hover {
  background-color: var(--rose-400);
}

/* Generator Components */
.generator-bg {
  background-color: rgba(15, 23, 42, 0.5);
  border-radius: 1rem;
  padding: 1.5rem 0.5rem 0;
  border: 1px solid rgba(51, 65, 85, 0.5);
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  /* overflow: hidden; */ /* clip vase corners to panel radius */
  background: linear-gradient(
    to top,
    black,
    black,
    #00c9ff3b,
    #ffa5003d,
    #ff000029
  );
  box-shadow: inset 0 20px 40px #000000;
}

.generator-tube {
  width: 2rem;
  border-top-left-radius: 9999px;
  border-top-right-radius: 9999px;
  border: 2px solid #5ec4e3;
  border-bottom: 0;
  backdrop-filter: blur(4px);
}

.tube-labels {
  width: 2rem;
  color: rgba(148, 163, 184, 0.5);
  pointer-events: none;
  font-size: 8px;
}

@media (min-width: 768px) {
  .generator-bg {
    border-radius: 1.5rem;
    padding: 2.5rem 1rem 0;
  }

  .generator-tube,
  .tube-labels {
    width: 4rem;
  }

  .tube-labels {
    font-size: 0.75rem;
  }
}

.liquid-fill {
  background: linear-gradient(180deg, #00f2fe 0%, #0284c7 100%);
  box-shadow:
    0 -10px 20px rgba(0, 242, 254, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.3);
  transition: height 0.1s linear;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.1)
  );
  animation: rise ease-in infinite;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-300px) scale(1.2);
    opacity: 0;
  }
}

.liquid-wave {
  position: absolute;
  top: -4px;
  left: 0;
  width: 200%;
  height: 4px;
  z-index: 10;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 10" xmlns="http://www.w3.org/2000/svg"><path d="M0 5 Q 12.5 0, 25 5 T 50 5 T 75 5 T 100 5 L 100 10 L 0 10 Z" fill="%2300f2fe"/></svg>')
    repeat-x;
  animation: wave 1s linear infinite;
  filter: drop-shadow(0 -2px 4px rgba(0, 242, 254, 0.6));
}

@media (min-width: 768px) {
  .liquid-wave {
    top: -6px;
    height: 6px;
  }
}

@keyframes wave {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.level-line {
  position: absolute;
  width: 100%;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
  z-index: 0;
}

.float-text {
  font-size: 0.75rem;
  left: calc(50% + 1.2rem);
}

@media (min-width: 576px) {
  .float-text {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .float-text {
    font-size: 1.125rem;
    right: calc(50% + 2.5rem);
  }
}

.btn-inc-limit {
  left: 0.375rem;
  top: -0.625rem;
  background-color: #f97316;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  font-size: 8px;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
  border: none;
}

.btn-inc-limit:hover {
  background-color: #fb923c;
}

@media (min-width: 768px) {
  .btn-inc-limit {
    left: 0.75rem;
    top: -0.75rem;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 10px;
  }
}

.tube-shades {
  background: linear-gradient(
    to top,
    rgba(2, 6, 23, 0.7) 0%,
    rgba(2, 6, 23, 0.7) 25%,
    rgba(15, 23, 42, 0.7) 25%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(30, 41, 59, 0.7) 50%,
    rgba(30, 41, 59, 0.7) 75%,
    rgba(51, 65, 85, 0.7) 75%,
    rgba(51, 65, 85, 0.7) 100%
  );
}

.boost-line .border-bottom,
.boost-line span {
  transition: all 0.3s ease;
}

.boost-line.glow-active .border-bottom {
  border-color: #facc15 !important;
  border-style: solid !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.boost-line.glow-active span {
  background-color: rgba(250, 204, 21, 0.2) !important;
  border-color: #facc15 !important;
  color: #fef08a !important;
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
  transform: scale(1.1);
}

/* === VASE / FLASK-SHAPED GENERATE BUTTON (SVG-based) === */

/*
  The vase is a flex sibling directly below the tube section.
  The SVG neck occupies x=85Ã¢â‚¬â€œ115 (30px out of 200px viewBox = 15% of width).
  We size the wrapper so that 15% of its rendered width = the tube pixel width:
    mobile:  tube = 2rem (32px)  Ã¢â€ â€™ wrapper = 32 / 0.15 = ~213px Ã¢â€ â€™ use 210px
    Ã¢â€°Â¥576px:  tube still 2rem     Ã¢â€ â€™ keep 210px
    Ã¢â€°Â¥768px:  tube = 4rem (64px)  Ã¢â€ â€™ wrapper = 64 / 0.15 = ~427px Ã¢â€ â€™ use 430px
  This guarantees the neck is pixel-perfect flush with the open tube bottom.
*/
#generate-btn-wrapper {
  position: relative;
  width: 167px;
  flex-shrink: 0;
  cursor: pointer;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.65));
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

#generate-btn-wrapper:hover {
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.95));
}

#generate-btn-wrapper:active {
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
  transform: scale(0.98);
}

#vase-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Invisible full-area click target */
#generate-btn {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

#vase-label {
  font-family: inherit;
  font-weight: 900;
  fill: #020617;
  pointer-events: none;
  user-select: none;
}

#vase-icon * {
  animation: blinks 2s infinite;
}

@keyframes blinks {
  0% {
    stroke: #035600;
  }
  50% {
    stroke: #ffffff;
  }

  100% {
    stroke: #035600;
  }
}

/* Active (generating) state Ã¢â‚¬â€ turns the vase red */
#generate-btn-wrapper.gen-active {
  filter: drop-shadow(0 0 16px rgba(225, 29, 72, 0.8));
}
#generate-btn-wrapper.gen-active:hover {
  filter: drop-shadow(0 0 24px rgba(225, 29, 72, 1));
}
#generate-btn-wrapper.gen-active #vase-body-fill {
  fill: url(#vaseGradActive);
}
#generate-btn-wrapper.gen-active #vase-outline {
  stroke: #fb7185;
}
#generate-btn-wrapper.gen-active #vase-label {
  fill: #fff1f2;
}
#generate-btn-wrapper.gen-active #vase-icon-circle,
#generate-btn-wrapper.gen-active #vase-icon-line {
  stroke: #fff1f2;
}

@media (min-width: 768px) {
  #generate-btn-wrapper {
    width: 430px;
  }
}

/* Unified Modals & Header */
.hdr-inner {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.ticker-inner {
  background: rgb(42 49 80 / 95%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e293b;
  border: 1px dashed #c3ddff;
  position: absolute;
  top: calc(100% + 5px);
  right: 5px;
  left: 5px;
  border-radius: 10px;
  box-shadow: 0 0 20px #ffffff70;
}

.modal-overlay {
  background-color: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  transition: opacity 0.3s ease;
}

.modal-card {
  width: 100%;
  max-width: 24rem;
  padding: 1.5rem;
  border-radius: 1rem;
}

.modal-card-cyan {
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.modal-card-emerald {
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.modal-card-rose {
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.2);
}

.scifi-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.scifi-input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.scifi-input.input-emerald {
  border-color: rgba(16, 185, 129, 0.3);
}

.scifi-input.input-emerald:focus {
  border-color: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.scifi-input.input-rose {
  border-color: rgba(244, 63, 94, 0.3);
}

.scifi-input.input-rose:focus {
  border-color: #fb7185;
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.3);
}

.scifi-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.scifi-select option {
  background-color: #0f172a;
  color: #e2e8f0;
}

/* Unified System Alert State Classes */
.alert-error {
  background-color: rgba(76, 5, 25, 0.95);
  border-color: #f43f5e;
  color: #fda4af;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

#system-alert {
  z-index: 9999999999999999 !important;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  padding: 10px;
  border-radius: 20px;
  border: 1px dotted;
}

.alert-success {
  background-color: rgba(2, 44, 34, 0.95);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.alert-bonus {
  background-color: rgba(59, 7, 100, 0.95);
  border-color: #a855f7;
  color: #d8b4fe;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.alert-info {
  background-color: rgba(2, 6, 23, 0.95);
  border-color: #06b6d4;
  color: #67e8f9;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* Rank Gamification State Classes */
.rank-initiate {
  color: #94a3b8;
  border-color: #475569;
}

.rank-specialist {
  color: #22d3ee;
  border-color: #0891b2;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.rank-commander {
  color: #c084fc;
  border-color: #9333ea;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.rank-overlord {
  color: #34d399;
  border-color: #059669;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  text-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
}

/* Tables & Lists */
.sci-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sci-table th {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #334155;
}

.sci-table td {
  padding: 0.75rem;
  font-size: 0.875rem;
}

.sci-table-row {
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: background-color 0.2s;
}

.sci-table-row:hover {
  background-color: rgba(30, 41, 59, 0.3);
}

.sci-list-item {
  background-color: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 0.5rem;
  padding: 0.375rem 0.5rem;
  font-size: 9px;
}

@media (min-width: 576px) {
  .sci-list-item {
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .sci-list-item {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

.sci-divider {
  height: 1px;
  background-color: rgba(51, 65, 85, 0.5);
}

.sci-badge-emerald {
  color: rgba(110, 231, 183, 0.8);
  background-color: rgba(6, 78, 59, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 10px;
  margin-top: 3px;
}

@media (min-width: 768px) {
  .sci-badge-emerald {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Sidebar & Layout Nav */
.sidebar-panel {
  width: 18rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(6, 182, 212, 0.3);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.translate-x-0 {
  transform: translateX(0);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-weight: 700;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
}

.nav-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.nav-btn.active {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), transparent);
  color: #22d3ee;
  border-left: 3px solid #22d3ee;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.5);
}

.page-section {
  transition: opacity 0.3s ease;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Action Buttons for Decluttered UI */
.btn-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-quick-action:active {
  transform: scale(0.95);
}

.btn-quick-action i {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

.btn-quick-action span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@media (min-width: 576px) {
  .btn-quick-action span {
    font-size: 10px;
  }

  .btn-quick-action i {
    font-size: 1.25rem;
  }
}

/* VIBRANT DEPOSIT CTA */
.bqa-vibrant-emerald {
  background: linear-gradient(
    135deg,
    var(--emerald-500) 0%,
    var(--emerald-300) 100%
  );
  color: var(--slate-950);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  flex-direction: row !important;
  /* Horizontal alignment for primary CTA */
  gap: 0.75rem !important;
  padding: 0.875rem !important;
}

.bqa-vibrant-emerald:hover {
  background: linear-gradient(
    135deg,
    var(--emerald-400) 0%,
    var(--emerald-200) 100%
  );
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
}

.bqa-vibrant-emerald span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--slate-950);
  margin: 0;
}

.bqa-vibrant-emerald i {
  font-size: 1.25rem;
  color: var(--slate-950);
  margin: 0;
}

@media (min-width: 576px) {
  .bqa-vibrant-emerald span {
    font-size: 13px;
  }

  .bqa-vibrant-emerald i {
    font-size: 1.5rem;
  }
}

/* Secondary CTAs */
.bqa-rose {
  background-color: rgba(244, 63, 94, 0.1);
  color: var(--rose-400);
  border-color: rgba(244, 63, 94, 0.3);
}

.bqa-rose:hover {
  background-color: rgba(244, 63, 94, 0.2);
  border-color: var(--rose-400);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.bqa-purple {
  background-color: rgba(168, 85, 247, 0.1);
  color: var(--purple-400);
  border-color: rgba(168, 85, 247, 0.3);
}

.bqa-purple:hover {
  background-color: rgba(168, 85, 247, 0.2);
  border-color: var(--purple-400);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

/* Preloader & Glitch Animations */

#preloader {
  background-color: #000000;
  z-index: 99999 !important;
  position: fixed;
}

.radar-sweep {
  background: conic-gradient(
    from 0deg,
    transparent 70%,
    rgba(34, 211, 238, 0.6) 100%
  );
  animation: scan-radar 1s linear infinite;
  border-radius: 50%;
}

@keyframes scan-radar {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.glitch-anim {
  animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glitch-skew {
  0% {
    transform: skew(0deg);
    filter: hue-rotate(0deg) contrast(1);
  }

  20% {
    transform: skew(-5deg) translate(-2px, 2px);
    filter: hue-rotate(90deg) contrast(1.5);
  }

  40% {
    transform: skew(5deg) translate(2px, -2px);
    filter: hue-rotate(-90deg) contrast(1.2);
  }

  60% {
    transform: skew(-2deg) translate(-1px, 1px);
    filter: hue-rotate(45deg) contrast(1.5);
  }

  80% {
    transform: skew(2deg) translate(1px, -1px);
    filter: hue-rotate(-45deg) contrast(1);
  }

  100% {
    transform: skew(0deg);
    filter: hue-rotate(0deg) contrast(1);
  }
}

/* Custom BS Scrollbar styling */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.5);
  border-radius: 10px;
}

.limit-label {
  font-size: 13px;
  color: black !important;
  background-color: #66e2b1;
  right: auto !important;
  left: 0 !important;
  border: none !important;
}

#limit-line div:nth-child(1) {
  border-color: #66e2b1 !important;
}

.boost-line div:nth-child(1) {
  opacity: 0;
}

.boost-line span {
  margin-bottom: -15px;
  background-color: #000000;
  font-size: 12px !important;
  border: 1px dashed #215a7e !important;
}

#generate-btn {
  opacity: 1 !important;
}

#generate-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translate(-50%);
  width: 90%;
  height: 50%;
  border-radius: 20px;
  border: 1px solid #000000;
  z-index: 4;
  box-shadow:
    0 0 20px #2e2e2e,
    inset 0 0 20px #a1e2ff;
}

.max-limiter {
  border: none !important;
  border-bottom: 1px solid red !important;
  color: #ffbbbb !important;
  border-radius: 0 !important;
}

.processing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background-color: #0000008f;
  z-index: 10000000000;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

#ticker-message {
  color: #ffffff !important;
}

#ticker-message span {
  color: #77e0ff;
  background-color: #2e4758;
  padding: 2px;
  border-radius: 5px;
}

.new-limit-setter {
  padding: 5px;
  border: 1px solid #2b4e60;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #2a3c50 !important;
}

#generate-btn.btn-hint::before {
  content: "Hint: Everytime you deposit an amount above $50, the timer instantly resets.";
  position: absolute;
  width: 200px;
  background-color: #b1b1b1;
  right: 50%;
  bottom: 50%;
  border-radius: 20px 20px 0 20px;
  padding: 5px;
  box-shadow: 0 0 20px #000000;
  font-size: 13px;
  z-index: 20;
}
