/* Try Funding Enhanced Purple Neon Stylesheet */

:root {
  --font-sans: 'Manrope', 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Next-Level Cosmic Deep Space & Glowing Orange Palette */
  --bg-base: #030408;
  --bg-gradient: radial-gradient(ellipse at 50% -10%, #14102d 0%, #030408 100%);
  --bg-panel: rgba(8, 10, 20, 0.75);
  --bg-card: rgba(13, 17, 34, 0.45);
  --bg-card-hover: rgba(22, 28, 56, 0.7);
  
  /* Glowing Neon Orange Accent */
  --color-primary: #ff4f00;
  --color-primary-light: #ff7849;
  --color-primary-rgb: 255, 79, 0;

  /* Glowing Neon Blue Accent */
  --color-secondary: #3b82f6;
  --color-secondary-rgb: 59, 130, 246;
  
  /* Glowing Accent Orange for Primary CTA */
  --color-accent-lime: #ff4f00;
  --color-accent-lime-hover: #ff6a2a;
  --color-accent-lime-rgb: 255, 79, 0;

  /* Text Colors */
  --color-text-white: #ffffff;
  --color-text-normal: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim: #62728d;
  
  --border-light: rgba(255, 255, 255, 0.05);
  --border-active: rgba(255, 79, 0, 0.45);
  
  /* Next-Level Status Colors */
  --color-success: #00f5c1;
  --color-success-bg: rgba(0, 245, 193, 0.06);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.06);
  --color-danger: #ff3366;
  --color-danger-bg: rgba(255, 51, 102, 0.06);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body, html {
  font-family: var(--font-sans);
  background: var(--bg-base);
  background-image: var(--bg-gradient);
  color: var(--color-text-normal);
  height: 100%;
  overflow: hidden;
  font-weight: 500;
}

/* ----------------------------------------------------
   PRELOADER ANIMATION
---------------------------------------------------- */
.app-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050508;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.app-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.app-preloader-animation-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-logo {
  font-family: var(--font-sans);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-try {
  color: var(--color-text-white);
}

.logo-funding {
  color: var(--color-primary-light);
  text-shadow: 0 0 20px rgba(255, 79, 0, 0.6);
}

.preloader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.03);
  border-top-color: var(--color-primary-light);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

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


/* ----------------------------------------------------
   MAIN APP SHELL (Mobile by default, scales to desktop)
---------------------------------------------------- */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background-color: rgba(6, 7, 10, 0.85);
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}

/* App Header (Mobile Navigation) */
.app-header {
  height: 64px;
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-badge {
  position: relative;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-badge:hover {
  color: var(--color-text-white);
}

.badge-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  border: 1.5px solid var(--bg-panel);
}

.user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--color-primary);
  background: var(--bg-card);
}

.user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Left Sidebar (Hidden on Mobile) */
.desktop-sidebar {
  display: none;
}


/* Content viewport */
.content-shell {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 96px; /* spacing for bottom navbar */
  scroll-behavior: smooth;
  position: relative;
}

.content-shell::-webkit-scrollbar {
  width: 6px;
}
.content-shell::-webkit-scrollbar-track {
  background: transparent;
}
.content-shell::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.15);
  border-radius: 10px;
}


/* Bottom Nav Bar (Mobile Navigation) */
.app-nav-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}

.nav-tab-item {
  background: none;
  border: 0;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s, transform 0.15s;
}

.nav-tab-item svg {
  transition: transform 0.25s, stroke 0.25s;
  stroke: var(--color-text-muted);
}

.nav-tab-item:active {
  transform: scale(0.95);
}

.nav-tab-item.is-active {
  color: var(--color-primary-light);
}

.nav-tab-item.is-active svg {
  stroke: var(--color-primary-light);
  transform: translateY(-2px);
}


/* ----------------------------------------------------
   VIEW SECTIONS
---------------------------------------------------- */
.view-section {
  display: none;
  flex-direction: column;
  padding: 20px;
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  width: 100%;
}

.view-section.is-active {
  display: flex;
}

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

.view-header {
  margin-bottom: 24px;
}

.view-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-white);
  letter-spacing: -0.025em;
}

.view-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.centered-header {
  text-align: center;
  margin-bottom: 30px;
}


/* ----------------------------------------------------
   HOME VIEW
---------------------------------------------------- */
.promo-banner-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #1b1130 0%, #0d0f17 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  padding: 24px;
  overflow: hidden;
  margin-bottom: 20px;
}

.promo-gradient-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

.promo-content {
  position: relative;
  z-index: 2;
}

.promo-tagline {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary-light);
  letter-spacing: 0.06em;
  background: rgba(139, 92, 246, 0.12);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

.promo-content h2 {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--color-text-white);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.promo-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.44;
  margin-bottom: 18px;
}

.btn-primary-glow {
  background: var(--color-primary);
  color: var(--color-text-white);
  border: 0;
  padding: 12px 24px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary-glow:hover {
  background: var(--color-primary-light);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

/* Statistics Grid */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-1px);
}

.stat-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrapper.p-blue {
  background-color: rgba(139, 92, 246, 0.12);
  color: var(--color-primary-light);
}

.stat-icon-wrapper.p-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-top: 2px;
}

.stat-value.text-green {
  color: var(--color-success);
}

.stat-value.text-red {
  color: var(--color-danger);
}

/* Features List */
.features-section {
  background-color: var(--bg-panel);
  border-radius: 24px;
  padding: 20px;
  border: 1px solid var(--border-light);
}

.section-title-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 14px;
}

.feature-bullet {
  font-size: 1.25rem;
  line-height: 1;
}

.feature-body h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.feature-body p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.38;
}


/* ----------------------------------------------------
   CHALLENGE CONFIGURATOR
---------------------------------------------------- */
.config-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.config-steps-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 16px;
}

.step-toggle-btn {
  background: none;
  border: 0;
  padding: 10px 0;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s;
}

.step-toggle-btn.active {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

/* Split Main Configurator Layout */
.challenge-main-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.size-selection-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.selector-sub-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.size-chips-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
}

.size-chips-grid::-webkit-scrollbar {
  height: 4px;
}
.size-chips-grid::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.2);
  border-radius: 2px;
}

.size-chip {
  flex: 0 0 auto;
  min-width: 100px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.25s;
}

.size-chip:hover {
  color: var(--color-text-white);
  border-color: var(--border-active);
}

.size-chip.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* Challenge Rules Card */
.challenge-rules-container {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
}

.rules-card-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rules-card-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 18px;
}

.lbl-rules-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.rules-capital-group h2 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--color-text-white);
  margin-top: 4px;
  letter-spacing: -0.018em;
}

.rules-fee-group {
  text-align: right;
}

.rules-fee-group h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-white);
  margin-top: 4px;
}

/* Grid of Rules parameters */
.rules-grid-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rules-grid-cell {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cell-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cell-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.cell-value.text-green {
  color: var(--color-success);
}

.rules-card-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
}

/* CTA Bright Neon Lime Green Button */
.btn-purchase-challenge {
  background-color: var(--color-accent-lime);
  border: 0;
  color: #000000;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(191, 255, 0, 0.2);
}

.btn-purchase-challenge:hover {
  background-color: var(--color-accent-lime-hover);
  box-shadow: 0 6px 20px rgba(191, 255, 0, 0.35);
  transform: translateY(-1px);
}

.btn-purchase-challenge:active {
  transform: scale(0.97);
}


/* ----------------------------------------------------
   TRADING RULES VIEW
---------------------------------------------------- */
.rules-tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.rules-tab-btn {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  padding: 10px 20px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s;
}

.rules-tab-btn:hover {
  border-color: var(--border-active);
  color: var(--color-text-white);
}

.rules-tab-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.rules-core-box {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.rules-core-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.rules-core-header h3 {
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--color-text-white);
}

.rules-core-header p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-top: 10px;
}

.rules-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

/* Objectives breakdown table */
.objectives-table-container {
  margin-bottom: 35px;
}

.objectives-table-container h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 14px;
}

.table-scroll-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background-color: var(--bg-card);
}

.objectives-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 480px;
}

.objectives-table th, .objectives-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.objectives-table tr:last-child td {
  border-bottom: 0;
}

.objectives-table th {
  background-color: rgba(255,255,255,0.01);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.objectives-table td {
  font-size: 0.85rem;
  color: var(--color-text-normal);
  font-weight: 600;
}

/* Rule Examples styling */
.rule-examples-section {
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  margin-bottom: 30px;
}

.rule-examples-section h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.examples-subtitle {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  margin-bottom: 24px;
}

.examples-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-example-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.example-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.badge-red {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-green {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge-yellow {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-blue {
  background-color: rgba(139, 92, 246, 0.08);
  color: var(--color-primary-light);
}

.badge-purple {
  background-color: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.badge-orange {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.rule-example-card h5 {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--color-text-white);
  margin-bottom: 12px;
}

.rule-example-scenario {
  background-color: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--color-primary);
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.rule-example-scenario strong, .rule-example-result strong {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.rule-example-scenario strong {
  color: var(--color-primary-light);
}

.rule-example-scenario p, .rule-example-result p {
  font-size: 0.8rem;
  line-height: 1.45;
}

.rule-example-scenario p {
  color: var(--color-text-normal);
}

.rule-example-result {
  padding: 12px 14px;
  border-radius: 4px;
}

.rule-example-result.fail-state {
  background-color: rgba(239, 68, 68, 0.03);
  border-left: 3px solid var(--color-danger);
}

.rule-example-result.fail-state strong {
  color: var(--color-danger);
}

.rule-example-result.fail-state p {
  color: var(--color-text-normal);
}

.rule-example-result.success-state {
  background-color: rgba(16, 185, 129, 0.03);
  border-left: 3px solid var(--color-success);
}

.rule-example-result.success-state strong {
  color: var(--color-success);
}

.rule-example-result.success-state p {
  color: var(--color-text-normal);
}

.rule-example-result.warning-state {
  background-color: rgba(245, 158, 11, 0.03);
  border-left: 3px solid var(--color-warning);
}

.rule-example-result.warning-state strong {
  color: var(--color-warning);
}

.rule-example-result.warning-state p {
  color: var(--color-text-normal);
}

.examples-row-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* FAQ section styling */
.faq-section-wrapper {
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
  padding-top: 30px;
  margin-bottom: 20px;
}

.faq-title-main {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--color-text-white);
  margin-bottom: 24px;
}

.faq-grid-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.faq-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
}

.faq-card h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.faq-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* Margin helpers */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* General Rules list */
.general-rules-section h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 18px;
}

.general-rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.general-rule-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.general-rule-item.allowed {
  background-color: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.15);
}

.general-rule-item.allowed .rule-icon {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.general-rule-item.blocked {
  background-color: rgba(239, 68, 68, 0.02);
  border-color: rgba(239, 68, 68, 0.15);
}

.general-rule-item.blocked .rule-icon {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.general-rule-item.warning {
  background-color: rgba(245, 158, 11, 0.02);
  border-color: rgba(245, 158, 11, 0.15);
}

.general-rule-item.warning .rule-icon {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.general-rule-item.info {
  background-color: rgba(124, 58, 237, 0.02);
  border-color: rgba(124, 58, 237, 0.15);
}

.general-rule-item.info .rule-icon {
  background-color: rgba(124, 58, 237, 0.08);
  color: var(--color-primary-light);
}

.rule-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.rule-body h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 4px;
}

.rule-body p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.rules-important-note {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-light);
  border-radius: 20px;
  padding: 20px;
}

.rules-important-note strong {
  font-size: 0.92rem;
  color: var(--color-text-white);
  display: block;
  margin-bottom: 6px;
}

.rules-important-note p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.42;
}


/* ----------------------------------------------------
   TOURNAMENTS VIEW (Friday Funded Tabs specific)
---------------------------------------------------- */
.events-bank-tabs {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  margin: 0 auto 20px !important;
  padding: 5px !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 20px !important;
  background: var(--bg-panel) !important;
}

.events-bank-tab {
  flex: 1 !important;
  min-height: 42px !important;
  border-radius: 15px !important;
  border: 0 !important;
  color: var(--color-text-muted) !important;
  background: transparent !important;
  font-family: var(--font-sans) !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
}

.events-bank-tab.is-active {
  color: var(--color-text-white) !important;
  background: var(--bg-base) !important;
  box-shadow: 
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

.events-section-pane {
  display: none;
  flex-direction: column;
}

.events-section-pane.is-active {
  display: flex;
}

/* Tournaments Hero Banner */
.events-hero-section {
  width: 100%;
  margin-bottom: 24px;
}

.tournament-hub-banner-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.tournament-gazan-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.tournament-gazan-content h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-text-white);
  letter-spacing: -0.02em;
}

.tournament-gazan-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  max-width: 90%;
  line-height: 1.34;
}

.tournament-countdown {
  font-size: 0.72rem;
  font-weight: 900;
  background-color: rgba(0, 0, 0, 0.45);
  color: var(--color-primary-light);
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.tournament-gazan-actions {
  margin-top: 16px;
}

.tournament-gazan-button {
  min-width: 140px;
  min-height: 48px;
  border-radius: 12px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-weight: 850;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.tournament-gazan-button:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-1px);
}

/* Contest Cards List */
.pane-subtitle-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.tournament-list-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
}

.t-badge-active {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.t-badge-upcoming {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
}

.t-badge-fee {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.t-card-body h3 {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--color-text-white);
}

.t-card-body p {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  line-height: 1.34;
}

.t-meta-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.t-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t-meta-item span {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.t-meta-item strong {
  font-size: 0.8rem;
  color: var(--color-text-white);
  font-weight: 800;
}

.btn-t-action {
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-t-action:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-t-action.btn-t-paid {
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-warning);
}

.btn-t-action.btn-t-paid:hover {
  background-color: rgba(245, 158, 11, 0.05);
}

.btn-t-action.registered {
  background-color: var(--color-success-bg);
  border-color: var(--color-success);
  color: var(--color-success);
  cursor: default;
}


/* News & Calendar Styles */
.events-news-block {
  display: flex;
  flex-direction: column;
}

.events-news-head h2 {
  font-size: 1.4rem;
  font-weight: 850;
  color: var(--color-text-white);
}

.events-news-head p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.events-news-categories {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.events-news-category {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.25s;
}

.events-news-category.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-white);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.news-list-wrapper, .calendar-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-list-wrapper.hidden, .calendar-list-wrapper.hidden {
  display: none;
}

.events-news-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border-light);
}

.events-news-card-dark {
  background: linear-gradient(135deg, #13141b 0%, #08090d 100%);
}

.events-news-card-blue {
  background: radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 60%), #0d0f17;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.events-news-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.events-news-date {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}

.events-news-card h3 {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--color-text-white);
  line-height: 1.3;
}

.events-news-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

/* Calendar details */
.calendar-day-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.events-calendar-row {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.calendar-time-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
}

.calendar-time-meta strong {
  font-size: 0.9rem;
  color: var(--color-text-white);
}

.events-calendar-currency {
  font-size: 0.6rem;
  font-weight: 800;
  background-color: rgba(255,255,255,0.06);
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.events-calendar-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.events-calendar-copy strong {
  font-size: 0.8rem;
  color: var(--color-text-white);
  font-weight: 800;
}

.events-calendar-copy span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.25;
}

.events-calendar-impact {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.events-calendar-impact.imp-high {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.events-calendar-impact.imp-medium {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}


/* ----------------------------------------------------
   PROFILE / SIMULATOR VIEW
---------------------------------------------------- */
.credentials-summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.cred-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-account-id {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.cred-account-id strong {
  color: var(--color-text-white);
}

.cred-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background-color: rgba(139, 92, 246, 0.08);
  color: var(--color-primary-light);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.cred-status {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.profile-main-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-metrics-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 16px;
}

.metric-title {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-card h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text-white);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.metric-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

.metric-meta strong {
  color: var(--color-text-white);
}

/* Progress limits */
.progress-limits-container {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
}

.progress-limit-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.progress-limit-card:last-child {
  margin-bottom: 0;
}

.progress-limit-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-white);
}

.progress-bar-track {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease-out;
}

.progress-bar-fill.fill-red {
  background-color: var(--color-primary);
}

.progress-bar-fill.fill-green {
  background-color: var(--color-success);
}

.progress-bar-hint {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

/* Simulated Open Positions Table */
.positions-panel-wrapper {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
}

.positions-table-container {
  overflow-x: auto;
  margin-top: 10px;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 480px;
}

.positions-table th, .positions-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
}

.positions-table th {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 800;
}

.positions-table td {
  font-size: 0.8rem;
  font-weight: 600;
}

.empty-positions-row {
  text-align: center;
  color: var(--color-text-dim);
  padding: 24px !important;
}

.btn-close-pos {
  background-color: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-close-pos:hover {
  background-color: var(--color-danger);
  color: #ffffff;
}

/* Trade Simulator Layout */
.simulator-card-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 20px;
}

.simulator-header h3 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-text-white);
}

.simulator-header p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.34;
}

.simulator-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sim-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 10px;
}

.sim-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-col label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.sim-select, .sim-input {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--color-text-white);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
}

.sim-select:focus, .sim-input:focus {
  border-color: var(--color-primary);
}

.sim-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.btn-sim-buy {
  background-color: var(--color-success);
  border: 0;
  color: var(--color-text-white);
  padding: 12px 0;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-sim-sell {
  background-color: var(--color-danger);
  border: 0;
  color: var(--color-text-white);
  padding: 12px 0;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-sim-buy:hover, .btn-sim-sell:hover {
  opacity: 0.9;
}

.btn-sim-buy:active, .btn-sim-sell:active {
  transform: scale(0.97);
}

.sim-control-row {
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.btn-sim-reset {
  background: none;
  border: 1px dashed rgba(139, 92, 246, 0.3);
  color: var(--color-text-muted);
  width: 100%;
  padding: 8px 0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sim-reset:hover {
  border-color: var(--color-primary-light);
  color: var(--color-text-white);
  background-color: rgba(139, 92, 246, 0.05);
}


/* ----------------------------------------------------
   MODALS LAYOUT
---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-card {
  width: 100%;
  max-width: 520px;
  background-color: var(--bg-panel);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border: 1px solid var(--border-light);
  border-bottom: 0;
  padding: 24px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-active .checkout-modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.06);
  border: 0;
  color: var(--color-text-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-headline {
  font-size: 1.3rem;
  font-weight: 850;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
}

.modal-sub-headline {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.checkout-summary-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  margin: 18px 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.summary-line.text-muted {
  color: var(--color-text-muted);
  margin-top: 6px;
  font-size: 0.78rem;
}

.summary-line strong {
  font-size: 1.15rem;
  color: var(--color-text-white);
}

.form-group-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group-wrapper label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.form-group-wrapper input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--color-text-white);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  outline: none;
}

.form-group-wrapper input:focus {
  border-color: var(--color-primary);
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.payment-method-tile {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method-tile input {
  display: none;
}

.payment-method-tile span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.payment-method-tile.active {
  border-color: var(--color-primary);
  background-color: rgba(124, 58, 237, 0.05);
}

.payment-method-tile.active span {
  color: var(--color-text-white);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.crypto-details-fields {
  margin-top: 14px;
}

.crypto-details-fields.hidden, .card-details-fields.hidden {
  display: none;
}

.crypto-addr-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crypto-addr-card span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.crypto-address {
  font-family: monospace;
  font-size: 0.74rem;
  color: var(--color-warning);
  word-break: break-all;
  background-color: rgba(0,0,0,0.2);
  padding: 6px;
  border-radius: 6px;
}

.crypto-network-hint {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.btn-checkout-submit {
  width: 100%;
  background-color: var(--color-primary);
  border: 0;
  color: var(--color-text-white);
  padding: 14px 0;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 850;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  transition: all 0.2s;
}

.btn-checkout-submit:hover {
  background-color: var(--color-primary-light);
}

.btn-checkout-submit:active {
  transform: scale(0.97);
}


/* ----------------------------------------------------
   NOTIFICATION TOAST
---------------------------------------------------- */
.toast-notification {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  width: calc(100% - 32px);
  max-width: 360px;
  background-color: var(--bg-card);
  border: 1.5px solid var(--color-primary);
  border-radius: 14px;
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  pointer-events: none;
}

.toast-notification.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification.hidden {
  display: none;
}

.toast-content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toast-icon {
  font-size: 1.4rem;
}

.toast-body h4 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.toast-body p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}


/* ----------------------------------------------------
   LAPTOP / DESKTOP WIDESCREEN RESPONSIVE GRID Layouts
---------------------------------------------------- */
@media (min-width: 1024px) {
  /* Expand the app shell to span the full widescreen */
  .app-shell {
    max-width: 100vw;
    height: 100vh;
    flex-direction: row; /* Horizontal split-screen flow */
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  /* Hide Mobile elements */
  .app-header, .app-nav-bar {
    display: none !important;
  }

  /* Show and Style Desktop Sidebar */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    width: 280px;
    min-width: 280px;
    background-color: rgba(12, 13, 20, 0.8);
    border-right: 1px solid var(--border-light);
    padding: 30px 24px;
    height: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
  }

  .sidebar-logo {
    font-size: 2.4rem; /* Larger sidebar logo */
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
  }

  .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
  }

  .sidebar-nav-item {
    background: none;
    border: 0;
    padding: 16px 20px; /* Larger sidebar links */
    border-radius: 14px;
    color: var(--color-text-muted);
    font-family: var(--font-sans);
    font-size: 1.1rem; /* Larger text */
    font-weight: 750;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s;
  }

  .sidebar-nav-item svg {
    stroke: var(--color-text-muted);
    transition: stroke 0.25s, transform 0.25s;
  }

  .sidebar-nav-item:hover {
    color: var(--color-text-white);
    background-color: rgba(139, 92, 246, 0.08);
  }

  .sidebar-nav-item.is-active {
    color: var(--color-text-white);
    background-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  }

  .sidebar-nav-item.is-active svg {
    stroke: var(--color-text-white);
    transform: scale(1.05);
  }

  .sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: 20px;
  }

  .sidebar-user-details {
    display: flex;
    flex-direction: column;
  }

  .sidebar-username {
    font-size: 1.1rem; /* Larger user profile name */
    font-weight: 800;
    color: var(--color-text-white);
  }

  .sidebar-user-role {
    font-size: 0.9rem; /* Larger logout link */
    color: var(--color-text-muted);
    margin-top: 2px;
  }

  /* Content area takes remaining screen */
  .content-shell {
    flex: 1;
    padding-bottom: 30px;
    padding-top: 10px;
    max-height: 100vh;
  }

  .view-section {
    padding: 30px 40px;
    max-width: 1650px; /* Wider desktop dashboard grid */
    margin: 0 auto;
  }

  .view-header h2 {
    font-size: 2.6rem; /* Larger page titles */
  }

  /* 1. Home View Laptop Grid */
  .promo-banner-card {
    padding: 40px;
    margin-bottom: 30px;
  }

  .promo-content h2 {
    font-size: 2.8rem;
    max-width: 70%;
  }

  .promo-content p {
    font-size: 1.25rem;
    max-width: 60%;
    margin-bottom: 24px;
  }

  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }

  .stat-card {
    padding: 24px;
    gap: 20px;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  /* 2. Challenge Configurator Widescreen Layout (Left List, Right Card) */
  .challenge-main-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
  }

  .size-chips-grid {
    flex-direction: column;
    overflow-x: visible;
    gap: 10px;
    padding-bottom: 0;
  }

  .size-chip {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 0.9rem;
  }

  .size-chip.active::after {
    content: " →";
    float: right;
    font-weight: 900;
  }

  .challenge-rules-container {
    padding: 32px;
    min-height: 400px;
  }

  .rules-grid-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .rules-grid-cell {
    padding: 20px;
  }

  .cell-value {
    font-size: 1.2rem;
  }

  /* 3. Contests page side-by-side Layout */
  .tournaments-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .calendar-rows-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* 4. Profile Widescreen Layout */
  .profile-main-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: start;
  }

  .profile-metrics-list {
    margin-bottom: 24px;
  }

  .metric-card {
    padding: 24px;
  }

  .metric-card h2 {
    font-size: 1.95rem; /* Larger dashboard stat value */
  }

  .progress-limits-container {
    padding: 28px;
    margin-bottom: 20px;
  }

  .simulator-card-wrapper {
    padding: 28px;
    height: 100%;
  }

  /* 5. Trading Rules Widescreen grid elements */
  .rules-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  /* Modals placement centering on laptop */
  .modal-overlay {
    align-items: center; /* Center modal on big screens */
  }

  .checkout-modal-card {
    border-radius: 28px;
    border-bottom: 1px solid var(--border-light);
    max-width: 480px;
    animation: modalCenterScale 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  .modal-overlay.is-active .checkout-modal-card {
    transform: none;
  }

  /* Rule Examples Grid layout for desktop */
  .examples-row-split {
    flex-direction: row;
    gap: 20px;
  }
  .examples-row-split .rule-example-card {
    flex: 1;
  }
  .faq-grid-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ====================================================
   NEW ORANGE HERO, GRID & REVIEWS LAYOUT STYLES
   ==================================================== */

/* Hero Banner Screenshot 3 */
.hero-header-banner {
  text-align: center;
  padding: 80px 20px 60px; /* More spacing */
  background: radial-gradient(circle at center, rgba(255, 79, 0, 0.12) 0%, transparent 75%);
  border-radius: 28px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 0, 0.08); /* Sleek container border */
}

.hero-trusted-tag {
  font-size: 0.95rem; /* Larger tag */
  font-weight: 800;
  color: var(--color-primary-light);
  background: rgba(255, 79, 0, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-header-banner h1 {
  font-size: 2.4rem; /* Adjusted hero title text size */
  font-weight: 950;
  line-height: 1.1;
  color: var(--color-text-white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.highlight-orange {
  color: var(--color-primary);
  background: linear-gradient(90deg, #ff4f00, #ff814c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-header-banner p {
  font-size: 1.35rem; /* Larger description text */
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.hero-actions-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-actions-row button {
  font-size: 1.1rem !important; /* Larger CTA buttons */
  padding: 16px 36px !important;
  border-radius: 16px !important;
}

.btn-orange-glow {
  background: linear-gradient(135deg, #ff5e3a 0%, #ff2a00 100%);
  color: #ffffff;
  border: 0;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 79, 0, 0.35);
  transition: all 0.2s;
}

.btn-orange-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 79, 0, 0.5);
}

.btn-secondary-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 3-Column Promo Stats Grid (Screenshot 4) */
.promo-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
  align-items: center;
}

.promo-stat-card {
  background: rgba(13, 17, 34, 0.65); /* Richer glass container */
  border: 1px solid rgba(255, 79, 0, 0.1);
  border-radius: 24px;
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 160px; /* Taller card */
}

.p-stat-lbl {
  font-size: 0.85rem; /* Larger labels */
  font-weight: 900;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.promo-stat-card h2 {
  font-size: 3.0rem; /* Much larger stat numbers */
  font-weight: 950;
  color: var(--color-text-white);
  line-height: 1;
}

.p-stat-sub {
  font-size: 0.95rem; /* Larger sub-labels */
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Center circle payout widget (Screenshot 4) */
.promo-stat-circle-card {
  position: relative;
  width: 170px; /* Larger center circle card */
  height: 170px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4f00 0%, #a82e00 100%);
  box-shadow: 0 0 40px rgba(255, 79, 0, 0.5);
  overflow: hidden;
}

.circle-glowing-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.4; }
  to { opacity: 0.9; }
}

.circle-inner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circle-lbl-top {
  font-size: 0.72rem; /* Larger top label */
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.promo-stat-circle-card h3 {
  font-size: 2.1rem; /* Larger text */
  font-weight: 950;
  color: var(--color-text-white);
  line-height: 1;
  margin: 6px 0;
}

.circle-lbl-bottom {
  font-size: 0.72rem; /* Larger bottom label */
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Putting Traders Ahead Text */
.hero-tagline-middle-block {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 10px;
}

.hero-tagline-middle-block h3 {
  font-size: 1.85rem; /* Larger headers */
  font-weight: 900;
  color: var(--color-text-white);
}

.sub-heading-orange {
  font-size: 1.15rem; /* Larger orange subheading */
  font-weight: 850;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 16px;
  display: block;
}

.hero-tagline-middle-block p {
  font-size: 1.15rem; /* Larger paragraph */
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

/* Split Features Grid Layout (Screenshot 2) */
.features-split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* Left Large Box */
.feature-large-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  overflow: hidden;
  position: relative;
  transition: all 0.25s;
}

.feature-large-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.mock-notifications-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mock-notif-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.mock-notif-row.second-notif {
  transform: scale(0.95) translateY(-5px);
  opacity: 0.75;
}

.notif-logo-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255, 79, 0, 0.4);
}

.notif-body {
  flex: 1;
}

.notif-body strong {
  font-size: 0.72rem;
  color: var(--color-text-white);
  display: block;
}

.notif-body p {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.notif-time {
  font-size: 0.6rem;
  color: var(--color-text-dim);
}

.large-card-info h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-white);
  line-height: 1.3;
}

.large-card-info p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Right Feature Column Cards */
.feature-column-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-small-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: all 0.25s;
}

.feature-small-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.small-card-body h4 {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--color-text-white);
}

.small-card-body p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Support Agent Pic Row */
.support-avatar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.support-agent-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  object-fit: cover;
}

.agent-active-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--color-success);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
}

.pulse-green {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-success);
}

/* QR Scanner Box */
.payouts-visual-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mock-qr-code {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--color-primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  background: rgba(255, 79, 0, 0.05);
}

.qr-icon {
  width: 18px;
  height: 18px;
}

.payout-logo-pills {
  display: flex;
  gap: 4px;
}

.p-logo-pill {
  font-size: 0.52rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--color-text-white);
}

/* Multi-Asset Tick Tickers */
.multi-asset-ticker-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.m-asset-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.03);
  padding: 6px 12px;
  border-radius: 6px;
}

.m-symbol {
  font-weight: 700;
  color: var(--color-text-white);
}

.m-rate {
  font-weight: 800;
}

/* Star reviews grid inside dashboard */
.payout-reviews-dashboard-section {
  grid-column: span 2;
  margin-top: 36px;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.reviews-horizontal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.review-comment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
}

.review-comment-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.rev-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rev-user-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-user-details img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  background: rgba(255,255,255,0.05);
}

.rev-user-details h6 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.rev-user-details span {
  font-size: 0.62rem;
  color: var(--color-text-dim);
  display: block;
}

.payout-processed-tag {
  font-size: 0.62rem;
  font-weight: 850;
  color: var(--color-primary-light);
  background: rgba(255, 79, 0, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
}

.review-comment-card p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  font-style: italic;
}

.rev-card-head + p {
  margin-top: 6px;
}

.rev-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
}

.rev-stars {
  color: #ff9d00;
  font-weight: 800;
}

.rev-time {
  color: var(--color-text-dim);
}

/* Responsive updates for features */
@media (max-width: 1023px) {
  .features-split-grid {
    grid-template-columns: 1fr;
  }
  .reviews-horizontal-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 500px) {
  .promo-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .promo-stat-circle-card {
    margin: 10px auto;
  }
}

/* Detailed Rules Cards Grid (Screenshot 5) */
.rules-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.rules-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 0.25s;
}

.rules-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.rules-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rules-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 79, 0, 0.1);
  color: var(--color-primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.rules-card-head h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.rules-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.44;
}

.rules-card-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary-light);
  text-align: right;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
}

@media (min-width: 768px) {
  .rules-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ====================================================
   CREGIS PAY INTERACTIVE CRYPTO CHECKOUT STYLES
   ==================================================== */

.hidden {
  display: none !important;
}

.cregis-coin-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  margin-top: 8px;
}

.coin-tile {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  user-select: none;
}

.coin-tile:hover {
  border-color: rgba(255, 79, 0, 0.4);
  background-color: rgba(255, 79, 0, 0.02);
  transform: translateY(-1px);
}

.coin-tile.active {
  border-color: var(--color-primary);
  background-color: rgba(255, 79, 0, 0.05);
  box-shadow: 0 0 12px rgba(255, 79, 0, 0.2);
}

.coin-icon {
  font-size: 1.2rem;
}

.coin-meta {
  display: flex;
  flex-direction: column;
}

.coin-meta strong {
  font-size: 0.75rem;
  color: var(--color-text-white);
  line-height: 1.1;
}

.coin-meta span {
  font-size: 0.58rem;
  color: var(--color-text-dim);
  margin-top: 1px;
}

.cregis-invoice-container {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
  animation: cregisSlideIn 0.3s ease-out forwards;
}

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

.cregis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.cregis-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-primary-light);
  background: rgba(255, 79, 0, 0.1);
  padding: 3px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.cregis-status {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-warning);
}

.cregis-status.pulsing {
  animation: cregisStatusPulse 1.5s infinite alternate;
}

.cregis-status.success-text {
  color: var(--color-success);
  animation: none;
}

@keyframes cregisStatusPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.cregis-invoice-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cregis-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.cregis-amount-row strong {
  font-size: 1rem;
  color: var(--color-text-white);
  font-weight: 900;
}

.cregis-address-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cregis-address-row span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.address-copy-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 10px;
}

.address-copy-container code {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--color-warning);
  word-break: break-all;
  flex: 1;
}

.btn-copy-address {
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-address:hover {
  color: var(--color-text-white);
}

.cregis-qr-box {
  display: flex;
  justify-content: center;
  margin: 6px 0;
}

.mock-qr-code-large {
  width: 130px;
  height: 130px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Simulated QR drawing inside CSS */
.mock-qr-code-large::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(#111 25%, transparent 25%), 
    radial-gradient(#111 25%, transparent 25%),
    linear-gradient(45deg, transparent 46%, #111 49%, #111 51%, transparent 55%),
    linear-gradient(-45deg, transparent 46%, #111 49%, #111 51%, transparent 55%);
  background-size: 8px 8px, 8px 8px, 16px 16px, 16px 16px;
  background-position: 0 0, 4px 4px, 0 0, 0 0;
  opacity: 0.85;
}

/* QR Corner Squares */
.mock-qr-code-large::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 4px solid #111;
  background-color: #fff;
  top: 8px;
  left: 8px;
  box-shadow: 
    inset 0 0 0 2px #fff,
    74px 0 0 -4px #fff, 74px 0 0 0 #111,
    0 74px 0 -4px #fff, 0 74px 0 0 #111;
}

.cregis-api-status-log {
  background-color: #0b0c10;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.62rem;
  color: #00ff66;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 70px;
  overflow-y: auto;
}

.btn-cregis-confirm {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 0;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  margin-top: 4px;
  text-align: center;
}

.btn-cregis-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-cregis-confirm:active {
  transform: none;
}

.btn-generate-cregis-invoice {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: var(--color-text-white);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 79, 0, 0.2);
  margin-top: 4px;
}

.btn-generate-cregis-invoice:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
}

/* Authentication Shell Gateway Styles */
.auth-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: 
    radial-gradient(circle at top left, rgba(255, 79, 0, 0.2), transparent 45%),
    radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.15), transparent 50%), 
    #05060b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrapper.hidden {
  display: none !important;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(13, 16, 27, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 50px 40px;
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.75), 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 50px rgba(255, 79, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.8), 
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 60px rgba(255, 79, 0, 0.06);
}

.auth-logo {
  text-align: center;
  font-size: 2.8rem; /* Larger logo */
  font-weight: 900;
  margin-bottom: 28px;
  letter-spacing: -0.04em;
}

.auth-logo .logo-try {
  color: #fff;
}

.auth-logo .logo-funding {
  color: #ff4f00;
  text-shadow: 0 0 25px rgba(255, 79, 0, 0.7), 0 0 10px rgba(255, 79, 0, 0.3);
  animation: authLogoGlow 3s infinite alternate;
}

@keyframes authLogoGlow {
  from {
    text-shadow: 0 0 20px rgba(255, 79, 0, 0.5), 0 0 8px rgba(255, 79, 0, 0.2);
  }
  to {
    text-shadow: 0 0 35px rgba(255, 79, 0, 0.85), 0 0 15px rgba(255, 79, 0, 0.4);
  }
}

#auth-title {
  font-size: 1.85rem; /* Larger heading */
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

#auth-subtitle {
  font-size: 0.95rem; /* Larger description */
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.5;
}

.auth-card .form-group-wrapper {
  margin-bottom: 24px;
}

.auth-card .form-group-wrapper label {
  font-size: 0.9rem !important; /* Larger input labels */
  font-weight: 700;
  color: var(--color-text-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.auth-card .form-group-wrapper input {
  font-size: 1rem !important; /* Larger input text size */
  padding: 15px 18px !important; /* Larger padding for input fields */
  background: rgba(8, 9, 15, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 14px;
  width: 100%;
  outline: none;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.auth-card .form-group-wrapper input::placeholder {
  color: #4b5563;
}

.auth-card .form-group-wrapper input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(255, 79, 0, 0.25), inset 0 1px 1px rgba(0, 0, 0, 0.5);
  background: rgba(12, 14, 23, 0.85);
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #ff4f00 0%, #e04400 100%);
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem; /* Larger button text */
  padding: 16px; /* Taller submit button */
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(255, 79, 0, 0.3);
  font-family: var(--font-sans);
}

.btn-auth-submit:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 79, 0, 0.45);
  background: linear-gradient(135deg, #ff631e 0%, #f04b05 100%);
}

.btn-auth-submit:active {
  transform: translateY(0);
}

.auth-toggle {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem; /* Larger toggle description text */
  color: var(--color-text-muted);
}

#btn-auth-toggle {
  background: transparent;
  border: 0;
  color: #ff4f00;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 6px;
  font-size: 0.9rem; /* Larger link */
  font-family: var(--font-sans);
  transition: color 0.2s;
}

#btn-auth-toggle:hover {
  color: #ff7849;
}

.hidden {
  display: none !important;
}

/* ================= MOBILE RESPONSIVE ADAPTATIONS ================= */
@media (max-width: 768px) {
  #tradingview-chart-container {
    height: 340px !important;
  }
  .chart-panel-wrapper {
    padding: 12px !important;
    margin-bottom: 16px !important;
  }
  .portfolio-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .portfolio-stats-grid .metric-card {
    padding: 12px 14px !important;
  }
  .portfolio-stats-grid .metric-card h3 {
    font-size: 1.1rem !important;
  }
  #accounts-list-container > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 14px 16px !important;
  }
  #accounts-list-container > div > div {
    width: 100% !important;
  }
  #accounts-list-container > div > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  #accounts-list-container > div > div > button {
    width: 100% !important;
  }
}

/* ====================================================
   TRADING TERMINAL REDESIGN STYLES
   ==================================================== */

.terminal-header-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  margin-bottom: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  gap: 16px;
  flex-wrap: wrap;
}

.terminal-header-left h2 {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--color-text-white);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.terminal-account-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.term-meta-item {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.term-meta-item strong {
  color: var(--color-text-white);
  font-family: monospace;
}

.terminal-rates-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(8, 9, 15, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 16px;
}

.rates-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-text-dim);
  border-right: 1px solid var(--border-light);
  padding-right: 12px;
  letter-spacing: 0.06em;
}

.rates-wrapper {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 750;
}

.rate-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rate-name {
  color: var(--color-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.rate-item span[id^="dash-rate-"] {
  font-family: monospace;
  font-weight: 800;
}

/* Main terminal grid layout */
.terminal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .terminal-grid {
    grid-template-columns: 1fr 380px;
  }
}

.terminal-left-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Trading Chart Container */
.terminal-chart-wrapper {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.chart-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-white);
  letter-spacing: -0.01em;
}

.chart-live-badge {
  font-size: 0.65rem;
  color: var(--color-success);
  background: rgba(0, 245, 193, 0.08);
  border: 1px solid rgba(0, 245, 193, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-live-badge.closed {
  color: var(--color-danger) !important;
  background: rgba(255, 79, 0, 0.08) !important;
  border: 1px solid rgba(255, 79, 0, 0.15) !important;
}

.pulse-red {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--color-danger);
  border-radius: 50%;
  animation: pulse-red-anim 1.5s infinite;
}

@keyframes pulse-red-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 79, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 79, 0, 0);
  }
}

.terminal-chart-container {
  height: 520px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

/* Tabbed Terminal Activities */
.terminal-tabs-card {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.terminal-tabs-header {
  display: flex;
  background: rgba(6, 8, 16, 0.85);
  border-bottom: 1px solid var(--border-light);
  padding: 0 10px;
}

.terminal-tab-btn {
  background: none;
  border: 0;
  padding: 16px 20px;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  user-select: none;
}

.terminal-tab-btn:hover {
  color: var(--color-text-white);
}

.terminal-tab-btn.active {
  color: var(--color-primary-light);
}

.terminal-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-light);
}

.terminal-tabs-body {
  padding: 24px;
}

.terminal-tab-content {
  display: none;
  animation: tabFadeIn 0.25s ease-out forwards;
}

.terminal-tab-content.active {
  display: block;
}

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

/* Open Positions Table styling inside terminal */
.positions-table-container {
  overflow-x: auto;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 520px;
}

.positions-table th, .positions-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

.positions-table th {
  font-size: 0.68rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.08);
}

.positions-table td {
  font-size: 0.8rem;
  color: var(--color-text-normal);
  font-weight: 600;
}

.positions-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.positions-table strong {
  color: var(--color-text-white);
  font-family: monospace;
}

/* Goals Grid layout */
.terminal-goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .terminal-goals-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Account Info Parameters Grid */
.terminal-parameters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .terminal-parameters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.parameter-item {
  background: rgba(8, 9, 15, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
}

.param-label {
  font-size: 0.62rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.parameter-item strong {
  font-size: 1.2rem;
  color: var(--color-text-white);
  font-family: monospace;
  margin-top: 4px;
}

.param-sub {
  font-size: 0.65rem;
  color: var(--color-text-dim);
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 6px;
}

.param-sub span {
  font-family: monospace;
  font-weight: bold;
}

/* Right Side: Account Metrics & Simulator */
.terminal-right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Portfolio stats mini widget */
.terminal-portfolio-card {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pm-section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--color-text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.portfolio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.port-metric-item {
  background: rgba(8, 9, 15, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.port-metric-item.full-width {
  grid-column: span 2;
}

.pm-title {
  font-size: 0.62rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.port-metric-item strong {
  font-size: 0.95rem;
  color: var(--color-text-white);
  font-family: monospace;
}

.gold-gradient-text {
  background: linear-gradient(90deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

/* Order Execution Simulator redesign */
.terminal-order-form {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.order-form-header {
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border-light);
}

.order-form-header h3 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-text-white);
}

.order-form-header p {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  margin-top: 2px;
}

.order-form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(6, 8, 16, 0.5);
  border-bottom: 1px solid var(--border-light);
}

.order-tab-btn {
  background: none;
  border: 0;
  padding: 12px 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--color-text-dim);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.order-tab-btn:hover {
  color: var(--color-text-white);
}

.order-tab-btn.active[data-side="Buy"] {
  color: var(--color-success);
  background: rgba(0, 245, 193, 0.05);
  border-bottom: 2px solid var(--color-success);
}

.order-tab-btn.active[data-side="Sell"] {
  color: var(--color-danger);
  background: rgba(255, 51, 102, 0.05);
  border-bottom: 2px solid var(--color-danger);
}

.order-form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-field-group label {
  font-size: 0.68rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.terminal-select, .terminal-input {
  background-color: rgba(8, 9, 15, 0.75);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--color-text-white);
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.terminal-select:focus, .terminal-input:focus {
  border-color: var(--color-primary-light);
}

.lots-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.margin-badge {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--color-primary-light);
  background: rgba(255, 79, 0, 0.08);
  border: 1px solid rgba(255, 79, 0, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.quick-lots-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.quick-lot-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  padding: 6px 0;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-lot-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-white);
}

.quick-lot-btn.active {
  background: rgba(255, 79, 0, 0.08);
  border-color: var(--color-primary-light);
  color: var(--color-text-white);
}

.btn-execute-trade {
  width: 100%;
  padding: 14px 0;
  border-radius: 12px;
  border: 0;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-execute-trade.buy-side {
  background-color: var(--color-success);
  box-shadow: 0 4px 15px rgba(0, 245, 193, 0.2);
}

.btn-execute-trade.buy-side:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(0, 245, 193, 0.35);
  transform: translateY(-1px);
}

.btn-execute-trade.sell-side {
  background-color: var(--color-danger);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.2);
}

.btn-execute-trade.sell-side:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.35);
  transform: translateY(-1px);
}

.btn-execute-trade:active {
  transform: scale(0.97);
}

/* Utility controls */
.terminal-actions-section {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.term-action-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--color-text-white);
  padding: 10px 0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-reset-terminal {
  background: none;
  border: 1px dashed rgba(255, 51, 102, 0.2);
  color: var(--color-text-dim);
  width: 100%;
  padding: 8px 0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset-terminal:hover {
  border-color: var(--color-danger);
  color: var(--color-danger);
  background-color: rgba(255, 51, 102, 0.03);
}

@media (max-width: 768px) {
  .terminal-header-bar {
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .terminal-rates-bar {
    width: 100%;
    justify-content: space-between;
  }
  .terminal-parameters-grid {
    grid-template-columns: 1fr 1fr;
  }
  .terminal-tabs-body {
    padding: 16px;
  }
}

/* ====================================================
   3-COLUMN TRADING WORKSPACE & WIDGET STYLES
   ==================================================== */

.terminal-workspace-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

@media (min-width: 1200px) {
  .terminal-workspace-grid {
    grid-template-columns: 1fr 280px 360px; /* Chart, Order Book, Order Form */
  }
}

@media (max-width: 1199px) {
  .terminal-workspace-grid {
    grid-template-columns: 1fr;
  }
  .terminal-middle-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .terminal-middle-column {
    grid-template-columns: 1fr;
  }
}

.terminal-middle-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terminal-chart-container {
  height: 650px !important; /* Enlarge the chart to professional proportions */
}

.terminal-bottom-panel {
  width: 100%;
  margin-top: 24px;
}

/* Order Book Widget Styles */
.terminal-order-book {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  height: 380px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.term-widget-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  font-weight: 800;
}

.order-book-table-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  font-size: 0.65rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.order-book-table-header span:nth-child(2),
.order-book-table-header span:nth-child(3) {
  text-align: right;
}

.order-book-asks-container,
.order-book-bids-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.order-book-asks-container {
  flex-direction: column-reverse;
  justify-content: flex-end;
  height: 120px;
}

.order-book-bids-container {
  height: 120px;
}

.ob-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 750;
  line-height: 1.45;
  position: relative;
}

.ob-row span:nth-child(2),
.ob-row span:nth-child(3) {
  text-align: right;
}

.ob-row.ask-row {
  color: var(--color-danger);
}

.ob-row.bid-row {
  color: var(--color-success);
}

.ob-depth-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.ob-row.ask-row .ob-depth-bar {
  background-color: var(--color-danger);
}

.ob-row.bid-row .ob-depth-bar {
  background-color: var(--color-success);
}

.ob-row span {
  position: relative;
  z-index: 2;
}

.order-book-mid-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin: 6px 0;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.order-book-mid-price span:first-child {
  font-size: 1.05rem;
  font-weight: 900;
  font-family: monospace;
}

.order-book-mid-price span:last-child {
  font-size: 0.9rem;
  font-weight: 900;
}

/* Recent Trades Widget Styles */
.terminal-recent-trades {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  height: 250px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.recent-trades-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 0.65rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.recent-trades-header span:nth-child(2),
.recent-trades-header span:nth-child(3) {
  text-align: right;
}

.recent-trades-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  flex: 1;
}

.recent-trades-container::-webkit-scrollbar {
  width: 4px;
}

.recent-trades-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.rt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 750;
  line-height: 1.45;
  animation: rtFadeIn 0.2s ease-out;
}

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

.rt-row span:nth-child(2),
.rt-row span:nth-child(3) {
  text-align: right;
}

.rt-row.buy-side {
  color: var(--color-success);
}

.rt-row.sell-side {
  color: var(--color-danger);
}

.rt-row span.rt-time {
  color: var(--color-text-dim);
}

/* Chart Positions Overlay Styling */
.terminal-chart-container-wrapper {
  position: relative;
  width: 100%;
  height: 650px;
}

#chart-positions-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 15;
}

#chart-positions-overlay-container-mob {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 15;
}

.chart-position-line {
  position: absolute;
  left: 56px; /* Offset TV drawing toolbar */
  right: 58px; /* Offset TV price scale */
  height: 1px;
  border-top: 1.5px dashed var(--color-success);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.chart-position-line.sell-line {
  border-top-color: var(--color-danger);
}

.cpl-label {
  background: var(--color-success);
  color: #000000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: -1px;
  box-shadow: 0 0 8px rgba(0, 245, 193, 0.4);
}

.chart-position-line.sell-line .cpl-label {
  background: var(--color-danger);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.cpl-tag {
  background: #08090f;
  border: 1.5px solid var(--color-success);
  color: var(--color-success);
  font-size: 0.68rem;
  font-weight: 800;
  font-family: monospace;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: -1px;
  margin-right: -58px; /* Place exactly overlapping the TV price scale values */
  box-shadow: 0 0 8px rgba(0, 245, 193, 0.4);
}

.chart-position-line.sell-line .cpl-tag {
  border-color: var(--color-danger);
  color: var(--color-danger);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

/* ====================================================
   REPORTS SCREEN STYLING (TradeZella Reports Panel)
   ==================================================== */
.reports-header-nav {
  margin-bottom: 24px;
}

.reports-sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.rep-sub-tab {
  background: none;
  border: 0;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}

.rep-sub-tab:hover {
  color: var(--color-text-white);
  background: rgba(255, 255, 255, 0.02);
}

.rep-sub-tab.active {
  color: var(--color-text-white);
  background: rgba(255, 255, 255, 0.05);
}

.rep-sub-tab.active-glowing {
  color: var(--color-text-white);
  background: rgba(255, 79, 0, 0.1);
  border: 1px solid var(--border-active);
  box-shadow: 0 0 10px rgba(255, 79, 0, 0.2);
}

.rep-sub-tab.active-glowing::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.badge-new {
  font-size: 0.55rem;
  font-weight: 900;
  background: var(--color-primary);
  color: #000000;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Strategy Summary Cards Row */
.reports-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rep-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.25s;
}

.rep-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.rep-card-indicator {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rep-card-indicator.success { color: var(--color-success); }
.rep-card-indicator.danger { color: var(--color-danger); }
.rep-card-indicator.warning { color: var(--color-warning); }
.rep-card-indicator.info { color: #3b82f6; }

.rep-summary-card h4 {
  font-size: 1.15rem;
  color: var(--color-text-white);
  font-weight: 800;
}

.rep-summary-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.rep-summary-card p span {
  font-weight: 800;
  margin-left: 4px;
}

.stat-green { color: var(--color-success); }
.stat-red { color: var(--color-danger); }

/* Reports Charts Grid */
.reports-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .reports-charts-grid {
    grid-template-columns: 1fr;
  }
}

.rep-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rep-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rep-chart-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-text-white);
}

.rep-chart-select-wrapper {
  position: relative;
}

.rep-chart-select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  border-radius: 8px;
  padding: 6px 28px 6px 12px;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.rep-chart-select-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  color: var(--color-text-muted);
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.rep-chart-body {
  height: 220px;
  width: 100%;
}

/* Cumulative SVG chart glow styling */
#svg-pnl-chart path.chart-line {
  stroke: var(--color-success);
  stroke-width: 2.5;
  fill: none;
  filter: drop-shadow(0 2px 8px rgba(0, 245, 193, 0.3));
}

#svg-pnl-chart path.chart-fill-green {
  fill: url(#green-chart-gradient);
  opacity: 0.15;
}

#svg-pnl-chart path.chart-fill-red {
  fill: url(#red-chart-gradient);
  opacity: 0.15;
}

/* Strategy Bar Comparison Chart */
.rep-bar-chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
}

.rep-bar-chart-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 12px;
}

.rep-bar-chart-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rep-bar-chart-container-inner {
  height: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.rep-bar-chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.rep-bar-chart-bar-fill.green {
  background: linear-gradient(90deg, rgba(0, 245, 193, 0.6) 0%, var(--color-success) 100%);
  box-shadow: 0 0 8px rgba(0, 245, 193, 0.3);
}

.rep-bar-chart-bar-fill.red {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.6) 0%, var(--color-danger) 100%);
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.3);
}

.rep-bar-chart-value {
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 800;
  text-align: right;
}

.rep-bar-chart-value.green { color: var(--color-success); }
.rep-bar-chart-value.red { color: var(--color-danger); }

/* Reports Summary Table */
.reports-summary-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 20px;
}

.reports-summary-table-card h3 {
  font-size: 1.1rem;
  color: var(--color-text-white);
  font-weight: 800;
  margin-bottom: 16px;
}

.rep-summary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.rep-summary-table th {
  padding: 12px;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 800;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-light);
}

.rep-summary-table td {
  padding: 14px 12px;
  font-size: 0.78rem;
  color: var(--color-text-normal);
  border-bottom: 1px solid var(--border-light);
}

.rep-summary-table tbody tr:last-child td {
  border-bottom: 0;
}

.rep-summary-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.rep-summary-table td strong {
  color: var(--color-text-white);
}

.rep-summary-table td.empty-table-row {
  text-align: center;
  padding: 40px;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Draggable SL/TP Chart Lines & Table Inputs */
.chart-position-line-interactive {
  position: absolute;
  left: 0;
  right: 60px; /* Offset Price Scale */
  height: 2px;
  z-index: 120;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  transform: translateY(-50%);
  user-select: none;
}

.chart-position-line-interactive.entry-line {
  border-top: 1.5px dashed var(--color-primary);
}
.chart-position-line-interactive.tp-line {
  border-top: 1.5px dashed var(--color-success);
}
.chart-position-line-interactive.sl-line {
  border-top: 1.5px dashed var(--color-danger);
}

/* Allow mouse interaction on labels and tags for dragging */
.chart-position-line-interactive .cpl-label,
.chart-position-line-interactive .cpl-tag {
  pointer-events: auto;
  cursor: ns-resize !important;
  user-select: none;
}

.chart-position-line-interactive.entry-line .cpl-label {
  background: var(--color-primary);
  color: #000000;
  box-shadow: 0 0 8px rgba(255, 79, 0, 0.4);
}

.chart-position-line-interactive.tp-line .cpl-label {
  background: var(--color-success);
  color: #000000;
  box-shadow: 0 0 8px rgba(0, 245, 193, 0.4);
}

.chart-position-line-interactive.sl-line .cpl-label {
  background: var(--color-danger);
  color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 51, 102, 0.4);
}

.chart-position-line-interactive.entry-line .cpl-tag {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.chart-position-line-interactive.tp-line .cpl-tag {
  border-color: var(--color-success);
  color: var(--color-success);
}
.chart-position-line-interactive.sl-line .cpl-tag {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

/* Table inline editors */
.pos-table-input {
  background: rgba(8, 9, 15, 0.85);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--color-text-white);
  padding: 3px 6px;
  font-family: monospace;
  font-size: 0.74rem;
  font-weight: 700;
  width: 76px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}

.pos-table-input:focus {
  border-color: var(--color-primary-light);
}

.btn-clear-sltp {
  background: none;
  border: none;
  color: var(--color-text-dim);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0 4px;
  margin-left: 2px;
  transition: color 0.15s;
}

.btn-clear-sltp:hover {
  color: var(--color-danger);
}/* Reports Dashboard upgrades */
.rep-pane.hidden {
  display: none !important;
}

.cred-badge {
  font-family: var(--font-sans);
  font-weight: 800;
  border-width: 1px;
  border-style: solid;
  text-transform: uppercase;
}

.cred-badge.eval-badge {
  background: rgba(255, 79, 0, 0.08);
  border-color: rgba(255, 79, 0, 0.2);
  color: var(--color-primary-light);
}

.cred-badge.funded-badge {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.cred-badge.badge-blue {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.cred-badge.badge-gray {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--color-text-normal);
}

/* Objectives card */
.obj-card {
  transition: all 0.2s ease-in-out;
}

.obj-card:hover {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.obj-status-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  border-width: 1px;
  border-style: solid;
}

.obj-status-badge.pass {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.obj-status-badge.active {
  color: var(--color-primary-light);
  background: rgba(255, 79, 0, 0.1);
  border-color: rgba(255, 79, 0, 0.2);
}

.obj-status-badge.fail {
  color: #ff3366;
  background: rgba(255, 51, 102, 0.1);
  border-color: rgba(255, 51, 102, 0.2);
}

/* Calendar Days */
.calendar-days-grid {
  grid-template-rows: auto;
}

.calendar-day-header {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.calendar-day-cell {
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  min-height: 70px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: border-color 0.15s;
}

.calendar-day-cell:hover {
  border-color: rgba(255,255,255,0.15);
}

.calendar-day-cell.empty-day {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.calendar-day-cell.profit-day {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.15);
}

.calendar-day-cell.loss-day {
  background: rgba(255, 51, 102, 0.04);
  border-color: rgba(255, 51, 102, 0.12);
}

.cal-day-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--color-text-muted);
}

.profit-day .cal-day-num {
  color: #10b981;
}

.loss-day .cal-day-num {
  color: #ff3366;
}

.cal-day-trades {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--color-text-dim);
}

.cal-day-pnl {
  font-size: 0.72rem;
  font-weight: 800;
  font-family: monospace;
  margin-top: 4px;
}

/* Distribution / Volume Bar Charts styling */
.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-fill-vertical {
  width: 24px;
  border-radius: 4px;
  transition: height 0.3s ease;
  min-height: 2px;
}

.chart-bar-fill-vertical.bg-green {
  background: linear-gradient(0deg, #10b981 0%, #34d399 100%);
}

.chart-bar-fill-vertical.bg-red {
  background: linear-gradient(0deg, #ff3366 0%, #f43f5e 100%);
}

.chart-bar-fill-vertical.bg-blue {
  background: linear-gradient(0deg, #3b82f6 0%, #60a5fa 100%);
}

.chart-bar-lbl-top {
  font-size: 0.65rem;
  font-weight: 800;
  font-family: monospace;
}

.chart-bar-lbl-bottom {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-weight: 800;
  text-transform: uppercase;
}

/* Glassmorphism & Cosmic Neon Theme Styling */
.glowing-bg-circle {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  animation: float-glowing-bg 20s infinite alternate ease-in-out;
}

.glowing-bg-circle.spot-1 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 80%);
  top: -120px;
  left: -120px;
}

.glowing-bg-circle.spot-2 {
  background: radial-gradient(circle, var(--color-secondary) 0%, transparent 80%);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

@keyframes float-glowing-bg {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, 30px) scale(1.1);
  }
}

/* Premium Card Upgrades */
.rep-header-card, .crypto-addr-card, .rep-summary-card, .rep-chart-card, .rep-summary-table-card, .rep-objectives-section, .rep-gauge-card, .rep-calendar-main-card, .rep-calendar-weekly-sidebar, .stat-card, .progress-limit-card {
  backdrop-filter: blur(16px) !important;
  background: rgba(13, 17, 34, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: translateY(0);
}

.rep-header-card:hover, .crypto-addr-card:hover, .rep-summary-card:hover, .rep-gauge-card:hover, .stat-card:hover, .progress-limit-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(255, 79, 0, 0.25) !important;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 79, 0, 0.08) !important;
  background: rgba(22, 28, 56, 0.5) !important;
}

/* Interactive Sidebar Orange Glow Upgrades */
.sidebar-nav-item:hover {
  color: var(--color-text-white) !important;
  background-color: rgba(255, 79, 0, 0.08) !important;
}

.sidebar-nav-item.is-active {
  color: var(--color-text-white) !important;
  background-color: var(--color-primary) !important;
  box-shadow: 0 4px 18px rgba(255, 79, 0, 0.35) !important;
}

/* Dynamic Buttons upgrades */
.btn-primary-glow {
  box-shadow: 0 4px 20px rgba(255, 79, 0, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary-glow:hover {
  background: var(--color-primary-light) !important;
  box-shadow: 0 6px 24px rgba(255, 79, 0, 0.5) !important;
  transform: translateY(-2px) !important;
}

.btn-execute-trade.buy-side {
  box-shadow: 0 4px 15px rgba(0, 245, 193, 0.15) !important;
}

.btn-execute-trade.buy-side:hover {
  box-shadow: 0 6px 20px rgba(0, 245, 193, 0.3) !important;
  transform: translateY(-2px) !important;
}

.btn-execute-trade.sell-side {
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.15) !important;
}

.btn-execute-trade.sell-side:hover {
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.3) !important;
  transform: translateY(-2px) !important;
}

/* Mobile & Tablet Drawer Menu Styles */
@media (max-width: 1023px) {
  .app-nav-bar {
    display: none !important;
  }
  .content-shell {
    padding-bottom: 24px !important;
  }
}

.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 4, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.mobile-drawer-content {
  width: 290px;
  height: 100%;
  background: rgba(8, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-light);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 15px 0 30px rgba(0,0,0,0.5);
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer-overlay.hidden .mobile-drawer-content {
  transform: translateX(-100%);
}

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

#btn-mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.drawer-nav-item {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.drawer-nav-item:hover {
  color: var(--color-text-white);
  background: rgba(255, 79, 0, 0.08);
}

.drawer-nav-item.is-active {
  color: var(--color-text-white);
  background: var(--color-primary);
  box-shadow: 0 4px 14px rgba(255, 79, 0, 0.3);
}

.drawer-icon {
  font-size: 1.1rem;
}

/* Custom Dashboard & Chart sections optimized for Mobile/Tablet only */
@media (max-width: 768px) {
  .terminal-chart-container {
    height: 280px !important;
    border-radius: 8px;
  }
  
  .terminal-workspace-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .terminal-middle-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .terminal-right-column {
    width: 100% !important;
  }
  
  /* Mobile optimization for overview objective cards grid */
  .objectives-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  
  /* Mobile reports charts grid layout stacking */
  .reports-compare-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Layout switches based on viewport breakpoints */
.terminal-desktop-layout {
  display: block;
}
.terminal-mobile-layout {
  display: none;
}

@media (max-width: 1023px) {
  .terminal-desktop-layout {
    display: none !important;
  }
  .terminal-mobile-layout {
    display: block !important;
  }
}

/* Mobile Terminal Custom Theme styling */
.mob-asset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(13, 17, 34, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mob-asset-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mob-star-icon {
  font-size: 1.1rem;
  color: var(--color-text-dim);
  cursor: pointer;
}

.mob-asset-selector-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mob-asset-select-dropdown {
  background: transparent;
  border: none;
  color: var(--color-text-white);
  font-size: 1.1rem;
  font-weight: 800;
  outline: none;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.mob-asset-select-dropdown option {
  background-color: #0d0f17;
  color: var(--color-text-white);
  font-weight: 600;
}

.mob-asset-subtitle {
  font-size: 0.68rem;
  color: var(--color-text-dim);
}

.mob-asset-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#lbl-mob-live-price {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: monospace;
}

#lbl-mob-price-change {
  font-size: 0.72rem;
  font-weight: 750;
  margin-top: 2px;
}

/* Section tab row inside mobile terminal */
.mob-section-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(8, 10, 20, 0.45);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.mob-sec-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 750;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mob-sec-tab-btn:hover {
  color: var(--color-text-white);
}

.mob-sec-tab-btn.active {
  background: rgba(255, 79, 0, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(255, 79, 0, 0.2);
}

.zip-trade-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #ff9f43;
  padding: 4px 8px;
  background: rgba(255, 159, 67, 0.1);
  border-radius: 6px;
  margin-left: 6px;
  border: 1px solid rgba(255, 159, 67, 0.2);
}

/* Mobile Pane Containers */
.mob-pane-content {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.mob-pane-content.hidden {
  display: none !important;
}

/* Direct mobile trade form settings panel */
.mob-order-punch-panel {
  background: rgba(13, 17, 34, 0.45);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mob-punch-row {
  margin-bottom: 10px;
}

.mob-lots-setting {
  margin-top: 10px;
}

.mob-quick-lots {
  display: flex;
  gap: 6px;
}

.mob-quick-lot-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 750;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mob-quick-lot-btn:hover {
  background: rgba(255, 79, 0, 0.1);
  color: var(--color-primary-light);
  border-color: rgba(255, 79, 0, 0.3);
}

.mob-sltp-grid {
  transition: all 0.2s ease;
}

/* Real Notifications Dropdown styling */
.dropdown-notifications-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  width: 320px;
  background: rgba(13, 17, 34, 0.98);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  animation: fadeInDown 0.2s ease;
}

.dropdown-notifications-panel.hidden {
  display: none !important;
}

.dropdown-notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-text-white);
}

.btn-clear-all-notifs {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-clear-all-notifs:hover {
  background: rgba(255, 79, 0, 0.1);
}

.dropdown-notif-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dropdown-notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease;
  cursor: pointer;
}

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

.dropdown-notif-item:last-child {
  border-bottom: none;
}

.notif-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.notif-badge-dot.success {
  background: #28c76f;
  box-shadow: 0 0 8px #28c76f;
}

.notif-badge-dot.info {
  background: #ff9f43;
  box-shadow: 0 0 8px #ff9f43;
}

.dropdown-notif-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-notif-body strong {
  font-size: 0.78rem;
  color: var(--color-text-white);
  font-weight: 750;
  line-height: 1.2;
}

.dropdown-notif-body p {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin: 0;
}

.dropdown-notif-time {
  font-size: 0.62rem;
  color: var(--color-text-dim);
  margin-top: 2px;
}

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

/* Global Status Utilities */
.text-green {
  color: var(--color-success) !important;
  border-color: var(--color-success) !important;
}

.text-red {
  color: var(--color-danger) !important;
  border-color: var(--color-danger) !important;
}

/* Global Footer */
.global-footer {
  text-align: center;
  padding: 40px 20px 30px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, rgba(8, 10, 20, 0) 0%, rgba(8, 10, 20, 0.85) 100%);
  margin-top: 50px;
}

.global-footer-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.global-footer-officers {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-text-normal);
  font-weight: 700;
}

.global-footer-officers span {
  position: relative;
  white-space: nowrap;
}

.global-footer-officers span:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -12px;
  color: var(--border-light);
}

.global-footer-copyright {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  margin-top: 8px;
}

/* Beginners Learning Timeline Styles */
.learning-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.learning-step-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.learning-step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(255, 79, 0, 0.12);
}

.step-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-white);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(255, 79, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  z-index: 10;
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-white);
  margin-bottom: 8px;
  margin-top: 5px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--color-text-normal);
  line-height: 1.6;
  font-weight: 500;
}

.warning-highlight {
  color: var(--color-danger);
  font-weight: 750;
}

.step-image-wrapper {
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  aspect-ratio: 16 / 9;
}

.step-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.learning-step-card:hover .step-screenshot-img {
  transform: scale(1.025);
}

/* ----------------------------------------------------
   PREMIUM GLASSMORPHIC & AMBIENT AESTHETICS OVERRIDES
---------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 79, 0, 0.07) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Glassmorphism improvements for trading terminal layout & stat cards */
.app-shell {
  background-color: rgba(6, 7, 10, 0.72) !important;
  backdrop-filter: blur(25px) saturate(180%) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card, .challenge-rules-container, .features-section, .promo-banner-card, .parameter-item {
  backdrop-filter: blur(15px) !important;
  background: rgba(13, 17, 34, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.stat-card:hover, .challenge-rules-container:hover, .promo-banner-card:hover, .parameter-item:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 79, 0, 0.3) !important;
  box-shadow: 0 12px 30px rgba(255, 79, 0, 0.08) !important;
}

.btn-primary-glow, .btn-purchase-challenge, .step-toggle-btn {
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-primary-glow:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 24px rgba(255, 79, 0, 0.4) !important;
}

.btn-purchase-challenge:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 10px 24px rgba(255, 79, 0, 0.3) !important;
}

/* Beautiful custom premium neon scrollbar */
.content-shell::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary-light), rgba(255, 79, 0, 0.15)) !important;
  border-radius: 10px;
}
