/* ==========================================================================
   Final Unified Stylesheet
   - Merged from home.css, encounter.css, and fund.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Root Variables & Global Resets
   -------------------------------------------------------------------------- */
:root {
  --primary-color: #57ff95;
}

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

html,
body {
  height: 100%;
  width: 100%;
  font-family: "IBM Plex Mono", monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #050705;
}

body {
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}


/* --------------------------------------------------------------------------
   2. Core App Layout & Wrapper
   -------------------------------------------------------------------------- */
.app-wrapper {
  width: min(392px, 100vw);
  max-width: 100vw;
  min-height: 500px;
  height: 100vh;
  max-height: 1080px;
  border: 1px solid #57ff95;
  color: #57ff95;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: brightness(0.8);
}

@media (max-height: 659px) {
  .app-wrapper {
    height: 95vh;
    transform: scale(calc(95vh / 659px));
    transform-origin: center;
  }
}

@media (min-width: 768px) {
  .app-wrapper {
    width: min(420px, 45vw);
  }
}

@media (min-width: 1200px) {
  .app-wrapper {
    width: min(450px, 35vw);
  }
}

@media (min-width: 380px) {
  .app-wrapper {
    width: 380px;
    margin: 0 auto;
    position: relative;
  }
}

.resolution-warning {
  color: var(--primary-color);
  display: none !important;
}

@media (max-height: 400px) {

  .app-wrapper,
  .login-curtain {
    display: none !important;
  }

  .resolution-warning {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   3. Shared Components (Prompts, Overlays, Toasts, etc.)
   -------------------------------------------------------------------------- */

/* --- General Overlays & Menus --- */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 5, .95);
  border: 1px solid #57ff95;
  color: #57ff95;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  font-family: "IBM Plex Mono", monospace;
  pointer-events: auto;
}

.overlay-header {
  height: 50px;
  flex-shrink: 0;
  border-bottom: 1px solid #57ff95;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  background: rgba(5, 7, 5, .5);
  backdrop-filter: blur(2px);
}

.overlay-header h2 {
  font-size: 20px;
  flex: 1;
  letter-spacing: 1px;
}

.overlay-dismiss {
  cursor: pointer;
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #57ff95;
  background: transparent;
  color: #57ff95;
}

.overlay-dismiss:hover {
  background: #57ff95;
  color: #050705;
}

.overlay-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.overlay-body::-webkit-scrollbar {
  width: 6px;
}

.overlay-body::-webkit-scrollbar-track {
  background: #050705;
  border-left: 1px solid #57ff95;
}

.overlay-body::-webkit-scrollbar-thumb {
  background: #57ff95;
  border-radius: 3px;
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.menu-links a {
  text-decoration: none;
  color: #57ff95;
  font-size: 18px;
  text-align: center;
  border: 1px solid #57ff95;
  padding: 8px 0;
  transition: background .25s, color .25s;
}

.menu-links a:hover {
  background: #57ff95;
  color: #050705;
}

.markdown-body {
  white-space: pre-wrap;
  line-height: 1.4;
}

/* --- Card Overlay (for expanded details) --- */
.card-overlay {
  position: absolute;
  inset: 0;
  left: 0;
  z-index: 9999;
  pointer-events: auto;
  border: 1px solid #57ff95;
}

/* --- Prompts --- */
.prompt-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: grid;
  place-items: center;
}

.prompt-card {
  font-family: "IBM Plex Mono", serif;
  width: 300px;
  translate: -6px -6px;
  background: #050705;
  border: 3px solid var(--primary-color);
  overflow: hidden;
  opacity: 1;
  transition: all 0.3s ease;
}

.prompt-card:hover {
  translate: -6px;
}

.prompt-head {
  font-family: "IBM Plex Mono", serif;
  font-size: 14px;
  font-weight: 900;
  width: 100%;
  height: 32px;
  background: #050705;
  padding: 5px 12px;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.prompt-content {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.prompt-foot {
  position: relative;
  height: 33px;
  margin-top: 3px;
}

.prompt-button {
  position: absolute;
  padding: 5px 10px;
  margin-top: 10px;
  border: none;
  font-weight: 750;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
  right: 3px;
  color: #050705;
  bottom: 3px;
}

.prompt-button:hover {
  translate: 1.5px 1.5px;
  box-shadow: 1.5px 1.5px 0 #000000;
  background: #57ff95;
}

.prompt-button:active {
  translate: 3px 3px;
  box-shadow: 0 0 0 #000000;
}

.prompt-neg-button {
  position: absolute;
  padding: 5px 10px;
  margin-top: 10px;
  border: none;
  font-weight: 750;
  background-color: #C94C4C;
  color: #050705;
  transition: all 0.3s ease;
  cursor: pointer;
  right: 55px;
  bottom: 3px;
}

.prompt-neg-button:hover {
  translate: 1.5px 1.5px;
  background: #E09999;
}

.prompt-neg-button:active {
  translate: 3px 3px;
  box-shadow: 0 0 0 #000000;
}

/* --- Loading & Error States --- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 65px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.error-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-color);
  padding: 1rem;
  border-radius: 4px;
  z-index: 1000;
}

/* --- Toasts --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: #57ff95;
  color: #050705;
  border: 2px solid #57ff95;
  padding: 10px 18px;
  font: 700 14px/1 "IBM Plex Mono", monospace;
  box-shadow: 0 0 8px #57ff95;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast button {
  all: unset;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.toast button:hover {
  color: #fff;
  text-shadow: 0 0 4px #050705;
}

/* --- Headers (Shared) --- */
.app-header {
  position: absolute;
  inset: 0 0 auto 0;
  height: 50px;
  border-bottom: 1px solid #57ff95;
  z-index: 2;
}

.nav-balance {
  font-family: "IBM Plex Mono", serif;
  font-weight: 700;
  color: #57ff95;
  font-size: 24px;
  position: absolute;
  top: 9px;
  left: 55px;
  right: 44px;
  display: grid;
  place-items: center;
  letter-spacing: 1px;
}

.menu-button {
  color: #57ff95;
  border-left: solid 1px #57ff95;
  cursor: pointer;
  height: 50px;
  right: 0px;
  width: 44px;
  font-size: 24px;
  position: absolute;
  background-color: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.menu-button:hover {
  background-color: #57ff95;
  color: #050705;
}

/* --- Footers (Shared) --- */
.app-footer {
  position: absolute;
  inset: auto 0 0 0;
  height: 45px;
  border-top: 1px solid #57ff95;
  z-index: 2;
  background: rgba(5, 7, 5, 0.5);
  backdrop-filter: blur(2px);
  bottom: 0 !important;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.footer-button {
  color: #57ff95;
  border: none;
  border-right: solid 1px #57ff95;
  cursor: pointer;
  font-size: 12px;
  background-color: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.footer-button:last-child {
  border-right: none;
}

.footer-button:hover {
  background-color: #57ff95;
  color: #050705;
}

.footer-button i {
  font-size: 14px;
  margin-bottom: 2px;
}

/* --- Trader Overlay Cards (TO-) --- */
.to-trd-card {
  position: absolute;
  width: 176px;
  height: 290px;
  background: linear-gradient(135deg, #080808, #0a0a0a, #080808);
  overflow: hidden;
  border: 1px solid #57ff95;
}

.to-line-ptrn {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(transparent, transparent 3px, rgba(10, 255, 10, 0.03) 3px, rgba(10, 255, 10, 0.03) 4px), linear-gradient(to bottom right, transparent 40%, rgba(10, 255, 10, 0.02) 50%, transparent 60%);
  pointer-events: none;
}

.to-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5px;
  height: 28px;
}

.to-symbol {
  font-size: 18px;
  font-weight: bold;
  -webkit-background-clip: text;
  background-clip: text;
  color: #00ff88;
}

.to-qty-box {
  width: 22px;
  height: 22px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #57ff95;
  position: absolute;
  right: 66px;
  z-index: 3;
}

.to-prog-bar {
  width: 60px;
  height: 8px;
  background: #151515;
  border: 0.5px solid #57ff95;
  position: relative;
  overflow: hidden;
}

.to-prog-fill {
  position: absolute;
  right: 0;
  top: 0;
  width: 2%;
  height: 100%;
  background: linear-gradient(135deg, #00ff00, #0aff0a);
  filter: drop-shadow(0 0 3px rgba(10, 255, 10, 0.8));
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}

.to-avatar-cont {
  display: grid;
  position: relative;
  width: 100%;
  place-items: center;
}

.to-avatar-cont img {
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid #00ff88;
  padding: 1px;
}

.to-trd-name {
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  left: 0;
  right: 0;
  top: 122px;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  color: #57ff95;
}

.to-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.to-stat-box {
  border: 1px solid #00ff88;
  padding: 0px 4px;
  text-align: center;
}

.to-stat-lbl {
  font-size: 9px;
  color: #00ff88;
  opacity: 0.8;
  margin-bottom: 2px;
  text-align: left;
  text-decoration: underline;
}

.to-stat-val {
  font-size: 13px;
  color: #00ff88;
  font-weight: bold;
}

.to-scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(10, 255, 10, 0.1);
  top: 0;
  animation: scan 8s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(264px);
  }
}

.to-prompt-card {
  font-family: "IBM Plex Mono", serif;
  background: rgba(5, 7, 5, 0.9);
  border: 3px solid var(--primary-color);
  overflow: hidden;
  opacity: 1;
  transition: all 0.3s ease;
  border-radius: 13px;
}

.to-prompt-head {
  font-family: "IBM Plex Mono", serif;
  font-size: 22px;
  font-weight: 900;
  width: 100%;
  height: 20px;
  background: #050705;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.to-close-btn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 40px;
  font-size: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.to-close-btn:hover {
  color: #fff;
  text-shadow: 0 0 5px var(--primary-color);
}

.to-close-btn i {
  font-size: 14px;
}

.to-prompt-cont {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  display: grid;
  place-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.to-btn-row {
  position: absolute;
  display: flex;
  height: 36px;
  z-index: 5;
  bottom: 0;
}

.to-trd-btn {
  height: 36px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #57ff95;
  border-right: none;
  font-size: 13px;
}

.to-trd-btn.to-profit-btn {
  width: 176px;
}

.to-trd-btn.to-sell-btn {
  width: 36px;
}

/* --------------------------------------------------------------------------
   4. Landing & Login Page Styles
   -------------------------------------------------------------------------- */
.game-wrapper {
  width: 270px;
  left: 57px;
  position: absolute;
  top: 3px;
}

.monitor {
  background-color: #050705;
  border: 2px solid var(--primary-color);
  padding: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 0, 0, 0.8);
  position: relative;
  top: 8px;
}

.landing-logo-bro {
  width: 100%;
  display: grid;
  place-items: center;
}

.landing-logo-image {
  height: 50px;
}

.screen {
  background-color: #050705;
  position: relative;
  width: 258px;
  height: 459px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 5px;
}

.screen:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  pointer-events: none;
  z-index: 10;
}

.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 51%);
  background-size: 100% 4px;
  z-index: 8;
  pointer-events: none;
  opacity: 0.3;
}

.screen-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 15px rgba(120, 220, 120, 0.5);
  z-index: 7;
  pointer-events: none;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(1.1) contrast(1.2);
}

.login-curtain {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: grid;
  place-items: center;
}

.login-card {
  position: relative;
  width: 300px;
  height: 659px;
}

.login-card-logo {
  width: 300px;
  position: absolute;
}

.login-ct-text {
  font-size: 30px;
  font-weight: 700;
  color: #77e55e;
  position: absolute;
  top: 240px;
  left: 0;
  right: 0;
  text-align: center;
  text-shadow: 0 0 2px var(--primary-color);
}

.login-ct-box {
  color: var(--primary-color);
  position: absolute;
  top: 290px;
  left: 0;
  right: 0;
}

.login-section {
  color: #77e55e;
  height: 35px;
}

.login-input {
  position: absolute;
  right: 0;
  font-size: 18px;
  background-color: #050705;
  border: 0.5px solid #77e55e;
  color: #77e55e;
}

.login-buttons {
  padding-top: 8px;
  left: 0;
  right: 0;
}

.login-sign-up,
.login-log {
  color: #050705;
  background-color: var(--primary-color);
  border: solid 1px var(--primary-color);
  width: 130px;
  height: 40px;
  font-size: 18px;
  font-family: "IBM Plex Mono", serif;
  cursor: pointer;
  font-weight: 700;
}

.login-sign-up {
  left: 3px;
}

.login-log {
  position: absolute;
  right: 0;
}

.login-sign-up:hover,
.login-log:hover {
  background-color: #050705;
  color: var(--primary-color);
  border: solid 1px var(--primary-color);
  font-size: 20px;
}

.login-forgot {
  top: 125px;
  position: absolute;
  color: var(--primary-color);
}

.login-message {
  color: #77e55e;
  top: 440px;
  position: absolute;
}

/* --------------------------------------------------------------------------
   5. Home Page Styles
   -------------------------------------------------------------------------- */
.logo {
  position: absolute;
  top: 6px;
  left: 3px;
  height: 35px;
  width: 43px;
}

.logo-menu {
  height: 200px;
  padding-left: 16%;
}

#chart-wrapper {
  height: 234px;
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  border-bottom: 1px solid #00ff88;
  z-index: 2;
  background: rgba(5, 7, 5, 0.1);
}

#orbs-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#tradingChart {
  z-index: 2;
  position: absolute;
}

.app-scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.widget-container-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 280px;
  overflow: hidden;
  z-index: 2;
}

.glass-overlay-unified {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  background: transparent;
  border-bottom: 1px solid #57ff95;
}

.tradingview-widget-container {
  width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
  filter: brightness(1.3) contrast(1.2);
}

.tradingview-widget-container__widget,
.tradingview-widget-container__widget span {
  color: #c0ffd9 !important;
}

.graph-glow-sym,
.graph-glow-return,
.graph-glow-name {
  position: absolute;
  font: 900 33px/1 "IBM Plex Mono", monospace;
  text-align: center;
  letter-spacing: 2px;
  color: #ccffd9;
  text-shadow: 0 0 6px #b0ffca, 0 0 3px #9cffbf, 0 0 2px #ffffff, 0 0 6px #57ff95;
  pointer-events: none;
  padding: 2px;
}

.graph-glow-sym {
  top: 50px;
  left: 0;
  z-index: 2;
}

.graph-glow-return {
  top: 50px;
  right: 0;
  z-index: 2;
}

.graph-glow-name {
  top: 284px;
  left: 0;
  right: 0;
  background-color: #050705bd;
  z-index: 5;
}

.stats-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 323px;
  font-weight: 700;
  display: flex;
  gap: 0;
  z-index: 2;
  background: rgba(5, 7, 5, 0.9);
}

.stats-button {
  height: 30px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #57ff95;
}

.stats-button:last-child {
  border-right: 1px solid #57ff95;
}

.stats-button.cash-button,
.stats-button.rank-button {
  width: 50%;
}

.cabinet-container {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 354px;
  bottom: 44px;
  overflow: hidden;
  z-index: 2;
  background: rgba(5, 7, 5, 0.2);
}

.cabinet-drawers {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #57ff95 #050705;
}

.cabinet-drawers::-webkit-scrollbar {
  width: 6px;
}

.cabinet-drawers::-webkit-scrollbar-track {
  background: #050705;
  border-left: 1px solid #57ff95;
}

.cabinet-drawers::-webkit-scrollbar-thumb {
  background: #57ff95;
  border-radius: 3px;
  box-shadow: 0 0 3px #0a0;
}

.cabinet-drawers::-webkit-scrollbar-thumb:hover {
  background: #6fff9d;
}

.drawer {
  position: relative;
  height: 60px;
  display: grid;
  grid-template-columns: 11% 8% 15% 10% 26% 5% 25%;
  place-items: center;
  transition: background-color .25s ease;
  cursor: pointer;
}

.drawer:hover {
  background: rgba(87, 255, 149, 0.1);
}

.drawer.active {
  background: rgba(87, 255, 149, 0.25);
  outline: 1px solid #57ff95;
}

.drawer-content {
  color: #57ff95;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
}

.drawer-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(87, 255, 149, .4);
}

.drawer-symbol,
.drawer-number {
  font: 700 16px/1 "IBM Plex Mono", monospace;
  color: #57ff95;
}

.drawer-qty {
  font: 700 12px/1 "IBM Plex Mono", monospace;
  color: #001800;
  background: #57ff95;
  padding: 1px 4px;
  margin-left: 6px;
  justify-self: left;
}

.drawer-return {
  font: 700 15px/1 "IBM Plex Mono", monospace;
  text-align: right;
}

.drawer-link {
  color: #57ff95;
  font-size: 14px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #57ff95;
  transition: background .25s ease, color .25s ease;
}

.drawer-link:hover {
  background: #57ff95;
  color: #050705;
}

.drawer-expand,
.drawer-action {
  color: #57ff95;
  border: none;
  cursor: pointer;
  height: 47px;
  font-size: 18px;
  background-color: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.drawer-expand {
  width: 100%;
}

.drawer-action {
  width: 70px;
  font-weight: 700;
}

.drawer-expand:hover,
.drawer-action:hover {
  color: #050705;
}

.drawer-lining {
  position: absolute;
  left: 5px;
  right: 3px;
  border: 1px solid #57ff95;
  height: 47px;
  z-index: -1;
  pointer-events: none;
  background: rgba(5, 7, 5, 0.9);
  backdrop-filter: blur(2px);
}

.drawer.neg .drawer-lining,
.drawer-lining.neg {
  border: 1px solid #ff4e4e;
}

.drawer.neg .drawer-symbol,
.drawer-symbol.neg {
  color: #ff4e4e;
}

.drawer.neg .drawer-number,
.drawer-number.neg,
.drawer-return.neg {
  color: #ff4e4e;
}

.drawer.neg .drawer-qty,
.drawer-qty.neg {
  background-color: #ff4e4e;
}

.drawer.neg .drawer-expand,
.drawer-expand.neg,
.drawer.neg .drawer-action,
.drawer-action.neg {
  color: #ff4e4e;
}

.neg {
  color: #ff4e4e;
}

/* --------------------------------------------------------------------------
   6. Encounter Page Styles
   -------------------------------------------------------------------------- */
.app-header-encounter {
  position: absolute;
  inset: 0 0 auto 0;
  height: 50px;
  z-index: 10;
  border-bottom: 1px solid #57ff95;
  background: rgba(5, 7, 5, 0.8);
  backdrop-filter: blur(2px);
}

.logo-encounter {
  position: absolute;
  top: 6px;
  left: 38px;
  height: 35px;
}

.leave,
.more {
  position: absolute;
  top: 12px;
  height: 25px;
  width: 25px;
  border: none;
  margin: 0 4px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  background: #57ff95;
  color: #050705;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}

.more {
  right: 0;
  width: 50px;
  font-size: 14px;
}

.leave:hover,
.more:hover {
  background: #57ff95;
  color: #050705;
}

.upcoming {
  position: absolute;
  left: 90px;
  right: 52px;
  top: 5px;
  bottom: 0;
  overflow-x: auto;
  font: 700 16px/1 "IBM Plex Mono";
  scrollbar-width: thin;
  scrollbar-color: #57ff95 rgba(5, 7, 5, 0.5);
}

.upcoming::-webkit-scrollbar {
  height: 6px;
  background: rgba(5, 7, 5, 0.5);
}

.upcoming::-webkit-scrollbar-track {
  background: rgba(5, 7, 5, 0.5);
  border: 1px solid #57ff95;
  border-radius: 3px;
}

.upcoming::-webkit-scrollbar-thumb {
  background: #57ff95;
  border-radius: 3px;
}

.upcoming-label {
  position: absolute;
  top: 10px;
  font-size: 12px;
  text-decoration: underline;
}

.upcoming-cards {
  display: flex;
  padding: 3px 0 0 72px;
  min-width: 100%;
}

.upcoming-card {
  width: 45px;
  height: 30px;
  margin-right: 15px;
  display: grid;
  place-items: center;
  border: 1px solid #57ff95;
  background: rgba(5, 7, 5, 0.7);
  cursor: pointer;
  transition: 0.2s;
}

.upcoming-card:last-child {
  margin-right: 5px;
}

.upcoming-card:hover {
  background: rgba(87, 255, 149, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 300px) {
  .upcoming-label {
    display: none;
  }

  .upcoming-cards {
    padding-left: 10px;
  }
}

.tube {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% - 196px - 30px);
  z-index: 0;
  display: grid;
  place-items: center;
}

@media (max-height: 650px) {
  .tube canvas {
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media (max-height: 550px) {
  .tube canvas {
    transform: scale(0.8);
    transform-origin: center;
  }
}

.tube-symbol-glow {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  z-index: 2;
  font: 900 50px/1 "IBM Plex Mono", monospace;
  text-align: center;
  letter-spacing: 2px;
  color: #ccffd9;
  text-shadow: 0 0 6px #b0ffca, 0 0 3px #9cffbf, 0 0 2px #ffffff, 0 0 6px #57ff95;
  background: rgba(5, 7, 5, 0.8);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid #57ff95;
  padding: 2px;
}

.button-chart {
  font: 900 25px/1 "IBM Plex Mono", monospace;
  color: #ccffd9;
  text-shadow: 0 0 6px #b0ffca, 0 0 3px #9cffbf, 0 0 2px #ffffff, 0 0 6px #57ff95;
  background: none;
  border: none;
  position: absolute;
  right: 5px;
  bottom: 12px;
  cursor: pointer;
}

.trader-view-graph-box {
  position: absolute;
  left: 5%;
  right: 0;
  top: 105px;
  width: 350px;
  height: 223px;
  overflow: hidden;
  z-index: 999;
}

.encounter-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 45px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #57ff95;
  background: rgba(5, 7, 5, 0.8);
  backdrop-filter: blur(2px);
  z-index: 2;
}

.encounter-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #57ff95;
}

.symbol-pill,
.trader-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.symbol-pill .label,
.trader-pill .label {
  font-size: 12px;
  text-decoration: underline;
}

.symbol-pill .value,
.trader-pill .value {
  font-size: 20px;
}

.avatar-cont {
  height: 101px;
  width: 101px;
  display: grid;
  place-items: center;
}

.avatar-cont img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #00ff88;
  padding: 1px;
}

.encounter-stats {
  display: flex;
  align-items: center;
  padding: 14px 0;
  position: relative;
}

.encounter-stat {
  flex: 1;
  text-align: center;
  padding-top: 8px;
  position: relative;
}

.encounter-stat .label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  text-decoration: underline;
  padding: 0 4px;
}

.encounter-stat .value {
  font-size: 24px;
}

.encounter-vs {
  width: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border-left: 1px solid #57ff95;
  border-right: 1px solid #57ff95;
}

.encounter-actions {
  display: flex;
  height: 50px;
}

.encounter-actions button {
  flex: 1;
  font-size: 18px;
  letter-spacing: 1px;
  background: transparent;
  border: none;
  border-top: 1px solid #57ff95;
  color: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.encounter-actions button+button {
  border-left: 1px solid #57ff95;
}

.encounter-actions button:hover {
  background: #57ff95;
  color: #050705;
}

.dismiss {
  color: #ff576d;
}

.widget-container-wrapper-encounter {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 45px;
  z-index: 1;
  border: 1px solid #57ff95;
  background: rgba(5, 7, 5, 0.8);
  backdrop-filter: blur(2px);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   7. Fund Page Styles
   -------------------------------------------------------------------------- */
.logo-fund {
  position: absolute;
  top: 6px;
  left: 33px;
  height: 35px;
  width: 43px;
}

.leave-fund {
  position: absolute;
  top: 12px;
  height: 25px;
  width: 25px;
  border: none;
  margin: 0 4px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 700;
  color: #57ff95;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
}

.leave-fund:hover {
  background: #57ff95;
  color: #050705;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  top: 50px;
  bottom: 45px;
  position: absolute;
  row-gap: 9px;
  column-gap: 12px;
  padding: 0px;
  overflow: auto;
  left: 0;
  right: 0;
  justify-items: center;
  align-items: center;
  padding-top: 5px;
  scrollbar-width: thin;
  scrollbar-color: #00ff88 #050705;
}

.grid-container::-webkit-scrollbar {
  width: 6px;
}

.grid-container::-webkit-scrollbar-track {
  background: #050705;
}

.grid-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #57ff95 0%, #00ff88 100%);
  border-radius: 3px;
  box-shadow: 0 0 6px #57ff95;
}

.grid-container::-webkit-scrollbar-thumb:hover {
  background: #00ff88;
}

.slot-card {
  position: relative;
  width: 176px;
  height: 120px;
  background: linear-gradient(135deg, #080808, #0a0a0a, #080808);
  border: 1px solid var(--primary-color, #57ff95);
  overflow: hidden;
  font-family: "IBM Plex Mono", serif;
  display: grid;
  place-items: center;
}

.slot-label {
  left: 0;
  right: 0;
  height: 50px;
  display: grid;
  place-items: center;
  font: 700 16px/1 "IBM Plex Mono", monospace;
  color: #57ff95;
  z-index: 2;
  margin: 5px
}

.fund-card {
  position: relative;
  width: 176px;
  height: 320px;
  background: linear-gradient(135deg, #080808, #0a0a0a, #080808);
  border: 1px solid var(--primary-color, #57ff95);
  overflow: hidden;
  font-family: "IBM Plex Mono", serif;
  display: flex;
  flex-direction: column;
}

.fund-stats-list {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6px 4px 42px;
  gap: 4px;
  z-index: 1;
}

.fund-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #00ff88;
  padding: 8px 4px;
}

.fund-stat-lbl {
  font-size: 10px;
  color: #00ff88;
  opacity: 0.8;
  text-decoration: underline;
}

.fund-stat-val {
  font-size: 13px;
  color: #00ff88;
  font-weight: bold;
}

.fund-share-btn {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  cursor: pointer;
  background: #151515;
  border: 1px solid #57ff95;
  color: #00ff88;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  z-index: 1;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.fund-share-btn:hover {
  color: #ffffff;
  box-shadow: 0 0 6px #57ff95;
}

.tc-trd-card {
  position: relative;
  width: 176px;
  height: 320px;
  background: linear-gradient(135deg, #080808, #0a0a0a, #080808);
  overflow: hidden;
  border: 1px solid #57ff95;
}

.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5px;
  height: 28px;
}

.tc-symbol {
  font-size: 18px;
  font-weight: bold;
  -webkit-background-clip: text;
  background-clip: text;
  color: #00ff88;
}

.tc-qty-box {
  width: 22px;
  height: 22px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #57ff95;
  position: absolute;
  right: 66px;
  z-index: 3;
}

.tc-prog-bar {
  width: 60px;
  height: 8px;
  background: #151515;
  border: 0.5px solid #57ff95;
  position: relative;
  overflow: hidden;
}

.tc-prog-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2%;
  height: 100%;
  background: linear-gradient(135deg, #00ff00, #0aff0a);
  filter: drop-shadow(0 0 3px rgba(10, 255, 10, 0.8));
  animation: pulse 5s ease-in-out infinite;
}

.tc-avatar-cont {
  display: grid;
  position: absolute;
  width: 100%;
  place-items: center;
  bottom: 202px;
}

.tc-avatar-cont img {
  height: 88px;
  object-fit: contain;
  border-radius: 50% 50% 50% 50%;
  border: 1px solid #00ff88;
  padding: 1px;
}

.tc-trd-name {
  font-size: 16px;
  font-weight: bold;
  color: #00ff88;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 178px;
  height: 20px;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #080808;
  background-color: #57ff95;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  background: linear-gradient(to bottom,
      rgba(87, 255, 149, 0.9) 0%,
      rgba(0, 255, 136, 1) 50%,
      rgba(87, 255, 149, 0.9) 100%);
}

.tc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 35px;
}

.tc-stat-box {
  border: 1px solid #00ff88;
  padding: 2px 4px;
  text-align: center;
}

.tc-stat-lbl {
  font-size: 9px;
  color: #00ff88;
  opacity: 0.8;
  margin-bottom: 2px;
  text-align: left;
  text-decoration: underline;
}

.tc-stat-val {
  font-size: 13px;
  color: #00ff88;
  font-weight: bold;
}

.tc-btn-row {
  position: absolute;
  display: flex;
  height: 36px;
  z-index: 5;
  bottom: 0;
}

.tc-trd-btn {
  height: 36px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #57ff95;
  border-right: none;
  font-size: 13px;
}

.tc-trd-btn.tc-profit-btn {
  width: 140px;
}

.tc-trd-btn.tc-sell-btn {
  width: 36px;
}

.sign-button {
  cursor: pointer;
  text-shadow: 0 0 3px var(--primary-color);
  position: absolute;
  display: grid;
  place-items: center;
  bottom: 40px;
  text-decoration: none;
  font-size: 17px;
  width: 88px;
  font-weight: 700;
  left: 149px;
  height: 36px;
  background-color: var(--primary-color);
  color: #050705;
}

.sign-button:hover {
  color: var(--primary-color);
  background-color: #050705;
  border: solid 1px var(--primary-color);
}

.signup-button {
  color: var(--primary-color);
  width: 72px;
  height: 20px;
  cursor: pointer;
  text-shadow: 0 0 3px var(--primary-color);
  position: absolute;
  font-size: 12px;
  bottom: 0px;
  left: 120px;
  display: grid;
  place-items: center;
}

.signup-button:hover {
  background-color: var(--primary-color);
}

.sign-button {
  cursor: pointer;
  text-shadow: 0 0 3px var(--primary-color);
  position: absolute;
  display: grid;
  place-items: center;
  bottom: 40px;
  text-decoration: none;
  font-size: 17px;
  width: 88px;
  font-weight: 700;
  left: 149px;
  height: 36px;
  background-color: var(--primary-color);
  color: #050705;
}

.sign-button:hover {
  color: var(--primary-color);
  background-color: #050705;
  border: solid 1px var(--primary-color);
}

.terms-button {
  color: var(--primary-color);
  width: 66px;
  height: 20px;
  cursor: pointer;
  text-shadow: 0 0 3px var(--primary-color);
  position: absolute;
  font-size: 12px;
  bottom: 0px;
  right: 120px;
  display: grid;
  place-items: center;
}

.terms-button:hover {
  background-color: var(--primary-color);
  color: #050705;
}

.controls {
  display: flex;
  justify-content: center;
  margin-top: 3px;
}

.play-btn {
  background-color: #050705;
  color: var(--primary-color);
  border: solid 1px var(--primary-color);
  padding: 5px 15px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
  font-family: "IBM Plex Mono", serif;
  text-decoration: none;
}

.play-btn:hover {
  transform: translateY(-2px);
}

.play-btn:active {
  transform: translateY(1px);
}

.play-btn.playing {
  background-color: #0f0;
  color: #050705;
}

.video-container {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-image: url('https://captivetrader.com/imgs//1k_Dissolve_Noise_Texture.png');
  position: relative;
}

#gameTrailer {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-active #gameTrailer {
  display: block;
}