:root {
  --bg-main: #050505;
  --bg-card: rgba(15, 15, 15, 0.7);
  --bg-input: #0a0a0a;
  --bg-button: #ffffff;
  
  --brand-silver: #f0f0f0;
  --brand-silver-glow: rgba(255, 255, 255, 0.4);
  --brand-discord: #5865f2;
  
  --brand-red: #e0e0e0;
  --brand-red-glow: rgba(255, 255, 255, 0.3);
  
  --border-main: #141414;
  --border-bright: #333;
  
  --text-main: #ffffff;
  --text-dim: #cccccc;
  --text-muted: #888888;
  
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition: all 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-main);
  height: 100vh;
  overflow: hidden;
  text-rendering: optimizeLegibility;
}

/* Animated Starry Background */
.starry-bg {
  background: #000;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 50px 160px, #ddd, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 80px 120px, #fff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 110px 210px, #fff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 150px, #ddd, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: starsScroll 60s linear infinite, twinkle 10s ease-in-out infinite alternate;
}

@keyframes starsScroll {
  from { background-position: 0 0, 0 0; }
  to { background-position: 300px 600px, 150px 300px; }
}

@keyframes twinkle {
  0% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.8; filter: brightness(1.2); }
  100% { opacity: 1; filter: brightness(1); }
}

/* --- MODAL OVERLAY --- */
.modal-overlay, .modal-overlay-new {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-overlay.active, .modal-overlay-new.active {
  display: flex;
}

.modal-card-disclaimer {
  background: #080808;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,1);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-card-new {
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 0;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
  position: relative;
  overflow: hidden;
}

.modal-header-new {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header-new span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}

.modal-body-new {
  padding: 25px;
}

.disclaimer-header {
  font-size: 1.5rem;
  font-weight: 950;
  color: #fff;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}

.disclaimer-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #bbb;
  margin-bottom: 30px;
  text-align: left;
  font-weight: 500;
}

.disclaimer-body strong {
  color: #fff;
}

.tip-text {
  color: #fff;
  font-weight: 900;
}

.btn-disclaimer-agree {
  width: 100%;
  background: #ffffff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 14px;
  font-weight: 950;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 2px;
}

/* --- REFINED ADD FUNDS MODAL (BLUE THEME) --- */
.modal-title-main {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  color: #fff !important;
}

.modal-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 25px;
  font-weight: 500;
}

.amount-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.btn-amount-new {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-amount-new:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.btn-amount-new.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.input-group-new {
  margin-bottom: 18px;
}

.input-label-new {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.input-group-new input, .select-wrapper-new select {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.input-group-new input:focus, .select-wrapper-new select:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- CUSTOM SELECT SYSTEM --- */
.custom-select-new {
  position: relative;
  width: 100%;
}

.select-trigger-new {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-trigger-new:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.select-trigger-new i {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.custom-select-new.active .select-trigger-new i {
  transform: rotate(180deg);
}

.select-options-new {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  animation: selectMenuIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 180px;
  overflow-y: auto;
}

.select-options-new::-webkit-scrollbar {
  width: 4px;
}

.select-options-new::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.select-options-new.active {
  display: flex;
}

@keyframes selectMenuIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.option-new {
  padding: 8px 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  position: relative;
}

.option-new:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.option-new.selected {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.option-new i {
  font-size: 0.75rem;
  color: #fff;
  width: 14px;
  margin-left: -4px;
}

/* Indent text if no checkmark removed */

.modal-footer-new {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.btn-cancel-new {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-new:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-pay-new {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pay-new:hover {
  background: #2563eb;
}

.btn-disclaimer-agree:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.screen {
  display: none !important;
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 10;
  background-color: #030303;
}

.screen.active {
  display: flex !important;
  flex-direction: column;
}

/* --- AUTH SCREEN --- */
#screen-auth {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.tqx-logo-main {
  width: 100%;
  max-width: 320px;
  margin-bottom: 5px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.tqx-logo-main img {
  width: 100%;
  height: auto;
  display: block;
}

.discord-pill {
  background: #0a0a1a;
  padding: 6px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #5865f2;
  font-size: 0.7rem;
  font-weight: 800;
  border: 1px solid rgba(88, 101, 242, 0.15);
  transition: var(--transition);
  margin-bottom: 12px;
}

.discord-pill i {
 background: #5865f2;
 color: #fff;
 width: 18px;
 height: 18px;
 display: flex;
 align-items: center;
 justify-content: center;
 border-radius: 50%;
 font-size: 0.65rem;
}

.discord-pill:hover {
  background: #101025;
  transform: translateY(-1px);
}

.auth-card {
  background: #080808;
  border: 1px solid #222;
  border-radius: 12px;
  width: 100%;
  padding: 24px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.auth-tabs {
  display: flex;
  background: #030303;
  border: 1px solid #151515;
  border-radius: 6px;
  padding: 3px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #444;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.auth-tab.active {
  background: #ffffff;
  color: #000;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-block label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #aaaaaa;
  letter-spacing: 0.8px;
}

.input-block input {
  background: #000;
  border: 1px solid #222;
  border-radius: 6px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.input-block input:focus {
  border-color: #444;
}

.form-options {
  margin: 5px 0;
}

.check-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.check-container input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-container input:checked + .checkmark {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.check-container input:checked + .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #000;
}

.check-container:hover .checkmark {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.check-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #888;
  transition: var(--transition);
}

.check-container input:checked ~ .check-label {
  color: #fff;
}

.btn-red-auth {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 12px;
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-red-auth:hover {
  background: #eeeeee;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* --- DASHBOARD --- */
.dash-nav {
  height: 50px;
  border-bottom: 1px solid #111;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #030303;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tqx-logo-nav {
  height: 28px;
  display: flex;
  align-items: center;
}

.tqx-logo-nav {
  height: 35px;
  cursor: pointer;
  transition: transform 0.2s;
  display: block;
}
.tqx-logo-nav:hover { transform: scale(1.05); }

.tqx-logo-nav img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.discord-icon-nav {
  color: #5865f2;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}
.discord-icon-nav:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.discord-link-nav {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-lifetime {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.user-pill {
  background: #111;
  border: 1px solid #222;
  color: #ddd;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.btn-logout-pill {
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout-pill:hover {
  background: #eeeeee;
}

/* --- ENHANCED UI: WALLET PILL --- */
.wallet-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
}

.wallet-pill i {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
}

.wallet-pill span {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.wallet-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* --- ENHANCED UI: USER AVATAR --- */
.user-avatar-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar-trigger #userInitials {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  color: #fff;
  transition: var(--transition);
}

.user-avatar-trigger i {
  font-size: 0.7rem;
  color: #555;
  transition: var(--transition);
}

.user-avatar-trigger:hover #userInitials {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.user-avatar-trigger:hover i {
  color: #fff;
  transform: translateY(1px);
}

/* --- USER SIDEBAR --- */
.user-sidebar {
  position: fixed;
  top: 60px;
  right: -320px;
  width: 300px;
  height: auto;
  background: #080808;
  border: 1px solid #1a1a1a;
  border-radius: 12px;
  z-index: 1000;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- SUPPORT MODAL STYLES --- */
.wide-support {
  max-width: 700px !important;
}

.modal-body-support {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 25px;
}

.support-tabs {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.support-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.support-tab:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.03);
}

.support-tab.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.support-content-area {
  min-height: 300px;
}

.support-pane {
  display: none;
  animation: supportFadeIn 0.3s ease;
}

.support-pane.active {
  display: block;
}

.support-pane h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #fff;
}

.support-pane p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.feature-grid-support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.feat-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.feat-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.feat-item i {
  font-size: 1.5rem;
  color: #fff;
}

.feat-item span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.contact-links-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-card-support {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-card-support:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: scale(1.02);
}

.contact-card-support i {
  font-size: 1.8rem;
  color: #fff;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info label {
  font-size: 0.65rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.contact-note {
  font-size: 0.8rem !important;
  font-style: italic;
  opacity: 0.5;
}

.legal-text-scroll {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 15px;
}

.legal-text-scroll::-webkit-scrollbar {
  width: 4px;
}

.legal-text-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.legal-text-scroll p {
  font-size: 0.85rem !important;
  margin-bottom: 15px !important;
}

.alert-support-info {
  display: flex;
  gap: 15px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.alert-support-info i {
  color: #3b82f6;
  font-size: 1.2rem;
}

.alert-support-info p {
  margin-bottom: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes supportFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-sidebar.active {
  right: 20px;
}

.sidebar-header {
  padding-bottom: 20px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 15px;
}

.user-info-large {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar-large {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #222, #111);
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.user-details h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.user-details p {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-item {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  width: 100%;
  color: #888;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-item i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.menu-item.logout {
  color: #ff4136;
}

.menu-item.logout:hover {
  background: rgba(255, 65, 54, 0.05);
  color: #ff4136;
}

.menu-divider {
  height: 1px;
  background: #1a1a1a;
  margin: 10px 0;
}

/* --- NEW MODAL SYSTEM --- */
.modal-overlay-new {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay-new.active {
  display: flex;
}

.modal-card-new {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.modal-card-new.wide {
  max-width: 700px;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-new {
  padding: 12px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-new span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: #fff;
}

.modal-body-new {
  padding: 15px 25px;
}

.modal-sub {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.5;
}

.current-balance-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px 20px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.current-balance-box span {
  font-size: 0.8rem;
  color: #888;
  font-weight: 500;
}

.current-balance-box strong {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 800;
}

.input-label-new {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #666;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.amount-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 15px;
}

.btn-amount-new {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-amount-new:hover {
  border-color: #333;
  background: #111;
}

.btn-amount-new.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.input-group-new input, .select-wrapper-new select {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.input-group-new input:focus, .select-wrapper-new select:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.btn-primary-new {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  padding: 13px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-primary-new:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

/* --- PAYMENT PENDING BOX --- */
.payment-pending-box {
  margin-top: 30px;
  background: rgba(255, 65, 54, 0.03);
  border: 1px solid rgba(255, 65, 54, 0.15);
  border-radius: 10px;
  padding: 20px;
}

.pending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pending-header span:first-child {
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.status-badge-new {
  font-size: 0.65rem;
  font-weight: 900;
  background: rgba(255, 65, 54, 0.1);
  color: #ff4136;
  padding: 4px 10px;
  border-radius: 4px;
}

.pay-row {
  margin-bottom: 15px;
}

.pay-row label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #666;
  display: block;
  margin-bottom: 8px;
}

.pay-input-group {
  display: flex;
  gap: 10px;
}

.pay-input-group input {
  flex: 1;
  background: #000;
  border: 1px solid #1a1a1a;
  padding: 8px 12px;
  border-radius: 6px;
  color: #aaa;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  outline: none;
}

.pay-input-group button {
  background: #111;
  border: 1px solid #222;
  color: #fff;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.pay-input-group button:hover {
  background: #222;
}

/* --- HISTORY TABLE --- */
.history-table-container {
  max-height: 400px;
  overflow-y: auto;
}

.history-table-new {
  width: 100%;
  border-collapse: collapse;
}

.history-table-new th {
  text-align: left;
  font-size: 0.65rem;
  font-weight: 900;
  color: #555;
  padding: 12px;
  border-bottom: 1px solid #1a1a1a;
  letter-spacing: 1px;
}

.history-table-new td {
  padding: 15px 12px;
  font-size: 0.8rem;
  color: #bbb;
  border-bottom: 1px solid #0d0d0d;
}

.history-status {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-completed { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.status-pending { background: rgba(241, 196, 15, 0.1); color: #f1c40f; }
.status-failed { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }


/* DASH CONTENT */
.dash-content {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: minmax(0, 1fr);
  gap: 20px;
  height: 100%;
}

.config-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 5px; /* space for scrollbar */
}

.tqx-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  opacity: 0.05;
  filter: grayscale(1) brightness(2) blur(2px);
  z-index: 0;
  pointer-events: none;
}

.tqx-bg-logo img {
  width: 100%;
  height: auto;
}

.panel-card {
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.card-header-simple {
  padding: 12px 20px;
  border-bottom: 1px solid #1a1a1a;
  font-size: 0.68rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  background: rgba(255, 255, 255, 0.02);
}

.card-body-dash {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.webhook-row {
  display: flex;
  gap: 10px;
}

.webhook-row input, .bot-row input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid var(--border-main);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
}

.input-with-icon {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  flex: 1;
  width: 100%;
  padding-right: 35px !important;
}

.input-with-icon i {
  position: absolute;
  right: 12px;
  color: #555;
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.input-with-icon i:hover {
  color: #fff;
}

.notification-mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -5px;
}

.notifModeTitle {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.btn-notif-toggle {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: var(--transition);
}

.btn-notif-toggle:hover {
  opacity: 1;
  transform: rotate(180deg);
}

.bot-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bot-row {
  display: flex;
  gap: 10px;
}

/* combined with webhook-row input above */

.btn-save {
  background: #fff;
  color: #000;
  border: none;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0 15px;
  border-radius: 6px;
  cursor: pointer;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mode-btn {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #888;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mode-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
  animation: selectPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.mode-btn.active::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 45%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.2) 55%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: parallaxGlow 3s infinite linear;
  pointer-events: none;
}

@keyframes selectPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(255, 255, 255, 0.4); }
  100% { transform: scale(1); }
}

@keyframes parallaxGlow {
  0% { transform: translate(-30%, -30%) rotate(45deg); }
  100% { transform: translate(30%, 30%) rotate(45deg); }
}

.digits-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.digit-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.digit-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.digit-control select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.7rem;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.digit-control select:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.check-container-dash {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-container-dash input {
  display: none;
}

.checkmark-dash {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-container-dash input:checked + .checkmark-dash {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.1);
}

.check-container-dash input:checked + .checkmark-dash::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: #000;
}

.check-container-dash:hover .checkmark-dash {
  border-color: #fff;
}

.check-label-dash {
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  transition: var(--transition);
}

.check-container-dash input:checked ~ .check-label-dash {
  color: #ffffff;
}

.resource-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.resource-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-block label, .resource-block-full label {
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.resource-block textarea, .resource-block-full textarea {
  background: #0a0a0a;
  border: 1px solid var(--border-main);
  border-radius: 6px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  height: 80px;
  resize: none;
  outline: none;
}

.btn-load-resource {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}

.btn-load-resource:hover {
  background: #eeeeee;
}

.count-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: center;
}

.resource-block-full {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-types-row {
  display: flex;
  gap: 20px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.radio-container input { display: none; }

.radio-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.radio-container input:checked + .radio-mark {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.radio-container input:checked + .radio-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: #000;
  border-radius: 50%;
}

.radio-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.radio-container input:checked ~ .radio-label {
  color: #fff;
}

.resource-row-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-card label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dropzone-box {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #555;
}

.dropzone-box:hover, .dropzone-box.dragover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.dropzone-box i, .dropzone-box span {
  transition: opacity 0.3s ease;
}

.dropzone-box i {
  font-size: 1.4rem;
}

.dropzone-box span {
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  padding: 0 10px;
}

.file-preview {
  display: none;
  font-family: 'Consolas', monospace;
  font-size: 0.6rem;
  color: #888;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 6px;
  width: 90%;
  max-height: 55px;
  overflow: hidden;
  white-space: pre;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 5px;
  line-height: 1.4;
}

.btn-remove-file {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-remove-file:hover {
  background: #ff3860;
  transform: scale(1.1);
}

.progress-container {
  margin-top: 15px;
  width: 100%;
  padding: 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  font-weight: 900;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 6px;
  padding: 0;
}

#progressText {
  color: #fff;
}

.progress-bar-bg {
  height: 4px;
  background: #111;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  border: 1px solid #1a1a1a;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5865f2, #00d2ff, #5865f2);
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
  width: 0%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes progressShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-bar-fill.finished {
  background: #23d160 !important;
  box-shadow: 0 0 20px rgba(35, 209, 96, 0.6);
  animation: none;
}

.live-status-active.finished {
  color: #23d160 !important;
  background: rgba(35, 209, 96, 0.1) !important;
  border-color: rgba(35, 209, 96, 0.3) !important;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.controls-grid-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-control-main, .btn-control-sub, .btn-control-danger {
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 48px;
}

.btn-control-main {
  background: #fff;
  color: #000;
  flex: 1;
  max-width: 200px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-control-main:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-control-sub {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 60px;
}

.btn-control-sub:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-control-danger {
  background: #ff3860;
  color: #fff;
  width: 60px;
  box-shadow: 0 4px 15px rgba(255, 56, 96, 0.2);
}

.btn-control-danger:hover {
  background: #ff1443;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 56, 96, 0.3);
}

/* STATS */
.stats-row-dash {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.stat-card-dash {
  background: #0a0a0a;
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-dim);
}

.stat-card-dash.green .stat-value { color: #23d160; }
.stat-card-dash.red .stat-value { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.2); }

/* SIDEBAR PANEL */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.side-card {
  flex-shrink: 0;
  overflow: hidden;
}

.flex-grow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header-side {
  padding: 10px 15px;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.2px;
}

.btn-header-action {
  background: #ffffff;
  color: #000000;
  border: none;
  font-size: 0.55rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-header-action:hover {
  background: #eeeeee;
}

.live-checking-body {
  height: 240px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 0 0 10px 10px;
  position: relative;
}

.live-username {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.live-status-active {
  font-size: 0.65rem;
  font-weight: 900;
  color: #5865f2;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(88, 101, 242, 0.1);
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid rgba(88, 101, 242, 0.2);
}

.monitor-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.monitor-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: #5865f2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.live-status-idle {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: idlePulse 3s infinite ease-in-out;
}

@keyframes idlePulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.ready-text {
  color: #23d160 !important;
  text-shadow: 0 0 20px rgba(35, 209, 96, 0.6);
  font-size: 1.4rem;
  letter-spacing: 6px;
  margin-bottom: 5px;
}

.available-usernames-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: scroll; /* Force scrollbar or use auto */
  background: rgba(0,0,0,0.2);
  min-height: 0;
}

.avail-item {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  animation: slideIn 0.3s ease-out;
}

.avail-item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #23d160;
  border-radius: 50%;
  box-shadow: 0 0 8px #23d160;
}

/* SCANLINES */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.3;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.active-file-name {
  color: #23d160;
  font-weight: 900;
  margin-left: 8px;
  font-size: 0.6rem;
  text-transform: none;
  font-family: 'Consolas', monospace;
}

.live-feed-container {
  margin-top: 15px;
  width: 100%;
  padding: 10px 20px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.live-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 45px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #fff 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #fff 0%, transparent 100%);
}

.feed-item {
  font-family: 'Consolas', monospace;
  font-size: 0.55rem;
  color: #555;
  letter-spacing: 1px;
  animation: feedIn 0.2s ease-out;
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card, .panel-card, .stat-card-dash {
  animation: fadeIn 0.4s ease-out forwards;
}

.loaded-file-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease-out;
}

.loaded-file-info i {
  font-size: 1.8rem !important;
  color: #23d160;
  text-shadow: 0 0 10px rgba(35, 209, 96, 0.3);
}

.loaded-filename {
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 420px;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastSlideInBottom 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
}

.toast.error { border-left-color: #ff4d4d; }
.toast.success { border-left-color: #23d160; }

.toast-icon {
  font-size: 1.2rem;
  color: #3b82f6;
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
}
.toast.error .toast-icon { color: #ff4d4d; filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.3)); }
.toast.success .toast-icon { color: #23d160; filter: drop-shadow(0 0 5px rgba(35, 209, 96, 0.3)); }

.toast-message {
  font-size: 0.82rem;
  font-weight: 500;
  flex: 1;
  letter-spacing: 0.3px;
}

.toast-close {
  font-size: 0.8rem;
  opacity: 0.3;
  padding: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.toast-close:hover { opacity: 1; transform: scale(1.1); }

@keyframes toastSlideInBottom {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOutBottom {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

/* --- CREDIT & PAYMENT SYSTEM --- */
.credit-pill {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.credit-pill:hover {
  background: rgba(255, 215, 0, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

.credits-layout {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.balance-display {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.balance-display .label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
}

.balance-display .value {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 15px 0;
}

.btn-amount {
  background: #0a0a0a;
  border: 1px solid #222;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-amount:hover {
  border-color: #444;
}

.btn-amount.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.custom-amount input {
  width: 100%;
  background: #000;
  border: 1px solid #222;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  outline: none;
  font-weight: 700;
}

.payment-block label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}

.copy-input-group {
  display: flex;
  gap: 10px;
}

.copy-input-group input {
  flex: 1;
  background: #000;
  border: 1px solid #222;
  padding: 10px;
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.copy-input-group button {
  background: #111;
  border: 1px solid #222;
  color: #fff;
  width: 40px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-input-group button:hover {
  background: #222;
}

.status-badge {
  font-size: 0.6rem;
  font-weight: 900;
  background: rgba(255, 65, 54, 0.2);
  color: #ff4136;
  padding: 4px 10px;
  border-radius: 4px;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.success-alert {
  background: rgba(35, 209, 96, 0.1);
  border: 1px solid rgba(35, 209, 96, 0.3);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideUp 0.4s ease;
}

.alert-content {
  display: flex;
  gap: 15px;
  align-items: center;
}

.alert-content i {
  font-size: 1.5rem;
  color: #23d160;
}

.alert-content strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.alert-content p {
  font-size: 0.8rem;
  color: #bbb;
}

.success-alert button {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

/* --- HISTORY TABLE --- */
.history-table-wrap {
  overflow-x: auto;
}

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

.history-table th {
  text-align: left;
  font-size: 0.65rem;
  color: #666;
  padding: 12px;
  border-bottom: 1px solid #1a1a1a;
}

.history-table td {
  padding: 15px 12px;
  font-size: 0.8rem;
  border-bottom: 1px solid #0a0a0a;
}

.history-status {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-completed { background: rgba(35, 209, 96, 0.15); color: #23d160; }
.status-pending { background: rgba(255, 215, 0, 0.15); color: #ffd700; }
.status-failed { background: rgba(255, 65, 54, 0.15); color: #ff4136; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- PROFILE MODAL STYLES --- */
.profile-expanded-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.avatar-extra-large {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #111, #000);
  border: 2px solid #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.profile-name-wrap h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.badge-premium {
  font-size: 0.65rem;
  font-weight: 900;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-box-mini {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
}

.stat-box-mini label {
  display: block;
  font-size: 0.65rem;
  font-weight: 900;
  color: #555;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.stat-box-mini span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.section-title-new {
  font-size: 0.75rem;
  font-weight: 900;
  color: #888;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
}

/* --- NOTIFICATION SYSTEM --- */
.notif-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-trigger {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.notif-trigger i {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.7;
}

.notif-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #3b82f6;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #030303;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.notif-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  width: 300px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top right;
  animation: notifIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-dropdown.active {
  display: flex;
}

@keyframes notifIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.notif-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header span {
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.notif-header button {
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.notif-header button:hover {
  background: rgba(59, 130, 246, 0.1);
}

.notif-list {
  max-height: 350px;
  overflow-y: auto;
}

.notif-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s;
  cursor: default;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.notif-item.unread {
  background: rgba(59, 130, 246, 0.03);
}

.notif-msg {
  font-size: 0.8rem;
  color: #ddd;
  line-height: 1.4;
}

.notif-time {
  font-size: 0.6rem;
  color: #555;
  font-weight: 700;
}

.notif-empty {
  padding: 30px 20px;
  text-align: center;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- CUSTOM SELECT NEW --- */
.custom-select-new {
  position: relative;
  width: 100%;
}

.select-trigger-new {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-trigger-new:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.4);
}

.select-options-new {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  z-index: 2100;
  display: none;
  overflow-y: auto;
  max-height: 250px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.select-options-new.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.option-new {
  padding: 12px 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.option-new:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.option-new.selected {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.option-new.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
  background: transparent !important;
  color: rgba(255, 255, 255, 0.2) !important;
  pointer-events: none;
}

.option-new.disabled i {
  display: none;
}

/* --- PAYMENT BOX STYLES --- */
.payment-pending-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-top: 25px;
  animation: fadeIn 0.4s ease-out;
}

.pending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.pending-header span:first-child {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.status-badge-new {
  background: rgba(255, 184, 0, 0.1);
  color: #ffb800;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.payment-timer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.pay-row {
  margin-bottom: 12px;
}

.pay-row label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
  font-weight: 700;
}

.pay-input-group {
  display: flex;
  gap: 8px;
}

.pay-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  outline: none;
}

.pay-input-group button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-input-group button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* SUCCESS SCREEN */
.success-tick-circle {
  width: 60px;
  height: 60px;
  border: 3px solid #23d160;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #23d160;
  font-size: 1.8rem;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-primary-new {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}

.btn-primary-new:hover {
  background: #eee;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255,255,255,0.1);
}

.btn-primary-new:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-cancel-order {
  width: 100%;
  background: rgba(255, 65, 54, 0.05);
  border: 1px solid rgba(255, 65, 54, 0.2);
  color: #ff4136;
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 15px;
}

.btn-cancel-order:hover {
  background: rgba(255, 65, 54, 0.1);
  border-color: #ff4136;
  transform: translateY(-1px);
}

/* --- TRANSACTION STATUS STYLES --- */
.history-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-pending {
  background: rgba(255, 184, 0, 0.1);
  color: #ffb800;
}

.status-completed {
  background: rgba(35, 209, 96, 0.1);
  color: #23d160;
}

.status-failed, .status-cancelled {
  background: rgba(255, 65, 54, 0.1);
  color: #ff4136;
}

