/* ===================================================================
   ART OF ARB - LUXURY THEME & STYLESHEET
   Style: Private Financial Club / Dark Luxury / High-End Analytics
   Colors: Deep Navy (#070d19, #0b172a), Champagne Gold (#f59e0b, #d97706),
           Emerald Profit (#10b981), Premium Slate (#1e293b, #334155)
   =================================================================== */

:root {
  --bg-darkest: #050914;
  --bg-main: #070d19;
  --bg-card: #0c1628;
  --bg-card-hover: #101c33;
  --bg-input: #070e1b;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-gold: rgba(6, 182, 212, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);
  --border-green: rgba(16, 185, 129, 0.35);
  
  --gold-primary: #06B6D4;
  --gold-dark: #0891b2;
  --gold-light: #38bdf8;
  --gold-gradient: linear-gradient(135deg, #38bdf8 0%, #06B6D4 50%, #0284c7 100%);
  --gold-glow: 0 0 25px rgba(6, 182, 212, 0.35);
  
  --green-profit: #10b981;
  --green-glow: 0 0 25px rgba(16, 185, 129, 0.3);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
  display: none !important;
}

.calc-quick-budget:hover {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #22d3ee !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
}

.calc-btn-balance:hover {
  color: #67e8f9 !important;
  text-decoration: underline;
}

.calc-outcome-card:focus-within {
  border-color: rgba(6, 182, 212, 0.35) !important;
  background: rgba(6, 182, 212, 0.02) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html, body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* ===================================================================
   CUSTOM TITLEBAR (Electron Drag & Window Controls)
   =================================================================== */
.titlebar {
  height: 42px;
  background: #04070f;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  -webkit-app-region: drag;
  z-index: 1000;
  flex-shrink: 0;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
  z-index: 2;
}

.titlebar-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.titlebar-social-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  transform: translateY(-1px);
}

.titlebar-social-icon {
  width: 14px;
  height: 14px;
}

.titlebar-logo {
  height: 25px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.gradient-text-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gradient-text-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.15) 40%, rgba(220, 230, 245, 0.06) 65%, transparent 80%);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: white-glow-pulse 4s ease-in-out infinite alternate;
}

@keyframes white-glow-pulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1.06);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

.titlebar-name.gradient-text {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background-image: linear-gradient(90deg, #94a3b8 0%, #ffffff 25%, #f1f5f9 50%, #ffffff 75%, #94a3b8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-text-sweep 5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
  user-select: none;
}

@keyframes gradient-text-sweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.titlebar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  -webkit-app-region: drag;
  pointer-events: auto;
  user-select: none;
}

.license-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--green-profit);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.license-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-profit);
  box-shadow: 0 0 8px var(--green-profit);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.titlebar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  -webkit-app-region: no-drag;
}

.window-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.window-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.window-btn.btn-close:hover {
  background: #ef4444;
  color: #fff;
}

/* ===================================================================
   MAIN APP LAYOUT
   =================================================================== */
.app-container {
  display: flex;
  flex: 1;
  height: calc(100vh - 42px);
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-main);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 14px;
  flex-shrink: 0;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.sidebar-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(7, 13, 25, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  box-shadow: var(--gold-glow);
}

.sidebar-logo {
  max-width: 54px;
  max-height: 54px;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5)) brightness(1.6);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Nav Menu */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

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

.nav-item.active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.18) 0%, rgba(12, 22, 40, 0.6) 100%);
  border-color: rgba(6, 182, 212, 0.5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--text-muted);
  transition: stroke 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.nav-item:hover .nav-icon svg {
  stroke: #ffffff;
  transform: scale(1.06);
}

.nav-item.active .nav-icon svg {
  stroke: var(--gold-primary);
  filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.5));
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-status-info {
  display: flex;
  flex-direction: column;
}

.status-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.status-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-profit);
}

.version-badge {
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ===================================================================
   MAIN CONTENT AREA
   =================================================================== */
.main-content {
  flex: 1;
  background: var(--bg-darkest);
  overflow-y: auto !important;
  overflow-x: hidden;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  -webkit-overflow-scrolling: touch;
}

.main-content:has(#tab-tutorial.active) {
  background: transparent;
}

.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
}

/* Header Banner / Top Bar */
.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
}

.header-title-wrap h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.header-title-wrap p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-chip-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-chip-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-light);
}

.stat-chip-value.profit {
  color: var(--green-profit);
}

.tab-pane {
  display: none;
}

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

/* ===================================================================
   CARDS & CONTAINERS
   =================================================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-gold-border {
  border-color: var(--border-gold);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title-icon {
  color: var(--gold-primary);
  font-size: 18px;
}

/* Form Controls */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.input-text, .select-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.input-text:focus, .select-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #050914;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
}

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

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
}

.btn-outline-gold:hover {
  background: rgba(6, 182, 212, 0.1);
}

.btn-portable-calc {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.38);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.15);
}

.btn-portable-calc:hover {
  background: rgba(6, 182, 212, 0.24);
  border-color: #06B6D4;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.btn-portable-calc:active {
  transform: translateY(0);
}

.portable-icon {
  font-size: 14px;
}

/* ===================================================================
   SUREBET CALCULATOR STYLES
   =================================================================== */
.calc-mode-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.calc-mode-btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calc-mode-btn:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.calc-mode-btn.active {
  background: var(--cyan-primary);
  color: #040812;
  box-shadow: 0 2px 12px rgba(6, 182, 212, 0.35);
}

.legs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.leg-card {
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  padding: 20px;
  position: relative;
  transition: all 0.2s ease;
}

.leg-card:focus-within {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 16px rgba(6, 182, 212, 0.15);
}

.leg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.leg-badge {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
}

.leg-stake-display {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.leg-stake-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.leg-stake-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--green-profit);
  letter-spacing: -0.3px;
}

/* Profit Banner Box */
.profit-banner {
  background: #0b1426;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(16, 185, 129, 0.08);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.profit-banner.negative {
  border-color: rgba(244, 63, 94, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(244, 63, 94, 0.08);
}

.profit-main-info {
  display: flex;
  flex-direction: column;
}

.profit-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.profit-percentage {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--green-profit);
}

.profit-banner.negative .profit-percentage {
  color: #ef4444;
}

.profit-breakdown {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profit-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.metric-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.metric-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

/* Calculator Options (Roundings, Favoring) */
.calc-options-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 20px;
  background: #0b1426;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  flex-wrap: wrap;
}

.calc-option-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.calc-option-item input[type="checkbox"], 
.calc-option-item input[type="radio"] {
  cursor: pointer;
  accent-color: #22d3ee;
}

/* ===================================================================
   SUREBET CALCULATOR EXTENDED CONTROLS & ACTION BAR
   =================================================================== */
.calc-budget-step-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-budget-step {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 0 12px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-budget-step:hover {
  background: #334155;
  border-color: #64748b;
  color: #fff;
  transform: scale(1.05);
}

.btn-budget-step:active {
  transform: scale(0.95);
}

.btn-leg-max {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #facc15;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.18s ease;
  user-select: none;
}

.btn-leg-max:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: #facc15;
  color: #fff;
}

.btn-leg-max.is-active {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
}

.btn-leg-clear {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-leg-clear:hover {
  background: rgba(239, 68, 68, 0.15);
  transform: scale(1.15);
}

.leg-stake-badge {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
}

.leg-stake-badge.is-capped {
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.18) !important;
}

.leg-max-badge {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  display: inline-block;
}

.leg-profit-pill {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-left: 2px;
}

.leg-profit-pill.positive {
  color: #22c55e !important;
}

.leg-profit-pill.negative {
  color: #ef4444 !important;
}

.calc-action-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.btn-action-pin {
  width: 100%;
  border: 1px solid rgba(250, 204, 21, 0.6);
  background: rgba(234, 179, 8, 0.12);
  color: #fef08a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.4px;
}

.btn-action-pin:hover {
  background: rgba(234, 179, 8, 0.24);
  color: #fff;
  border-color: #facc15;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.35);
}

.calc-action-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-action-bet {
  border: 1px solid #22c55e;
  background: #22c55e;
  color: #090d16;
  cursor: pointer;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

.btn-action-bet:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.4);
}

.btn-action-bet:disabled {
  background: #1e293b;
  border-color: #334155;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-action-place {
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #ffffff;
  cursor: pointer;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

.btn-action-place:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.4);
}

.btn-action-place:disabled {
  background: #1e293b;
  border-color: #334155;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-action-clear {
  width: 100%;
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-action-clear:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fff;
  border-color: #ef4444;
}

/* ===================================================================
   KNOWLEDGE VAULT (COURSE MODULES)
   =================================================================== */
.course-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  height: calc(100vh - 180px);
}

.lessons-list {
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.lesson-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lesson-nav-btn.active {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.4);
  color: #fff;
}

.lesson-number {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-primary);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.lesson-nav-btn.active .lesson-number {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  color: #040914;
}

.lesson-nav-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.lesson-view-panel {
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  padding: 32px 40px;
  overflow-y: auto;
  line-height: 1.7;
}

.lesson-view-panel h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-tag {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-primary);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lesson-content p {
  color: #cbd5e1;
  font-size: 14.5px;
  margin-bottom: 16px;
}

.lesson-highlight-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--cyan-primary);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
}

.lesson-highlight-box strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
}

/* Interactive Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}
  transition: var(--transition);
}

.checklist-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-profit);
}

.checklist-text {
  font-size: 13.5px;
  color: #e2e8f0;
}

/* ===================================================================
   BANKROLL TRACKER (JOURNAL)
   =================================================================== */
.tracker-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.tracker-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.tracker-stat-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.tracker-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.tracker-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.custom-table th {
  background: #050a14;
  color: var(--text-muted);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

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

/* ===================================================================
   LICENSE & ACTIVATION LOCK SCREEN (FULL PAGE WITH PARTICLES)
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000; /* Pure deep black backdrop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  overflow-x: hidden;
  overflow-y: auto;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background Particles Container */
.particles-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Lock Screen Top Header Bar */
.lock-screen-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
  -webkit-app-region: drag;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.lock-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-logo-mini {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.lock-brand-name {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
}

.lock-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  -webkit-app-region: no-drag;
}

/* Hero Center Card */
.modal-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 740px;
  background: #09090c;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95),
              0 0 30px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  padding: 42px 36px;
  text-align: center;
  margin: 40px auto;
  box-sizing: border-box;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
}

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

.modal-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  padding: 10px;
}

/* Subtle diffuse ambient glow behind the logo (no circle border) */
.modal-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.06) 50%, transparent 75%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
  animation: logoGlowPulse 3.5s ease-in-out infinite alternate;
}

@keyframes logoGlowPulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.modal-logo img {
  position: relative;
  z-index: 1;
  max-width: 100px;
  max-height: 82px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.modal-logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.75));
}

.modal-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 30%, #e4e4e7 75%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================================================================
   MODAL LOGIN FORM (NICK + LICENSE KEY)
   =================================================================== */
.modal-login-form {
  width: 100%;
  max-width: 530px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.modal-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-input-label {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.modal-input-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.modal-input-icon {
  position: absolute;
  left: 14px;
  color: #71717a;
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.modal-login-field {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(18, 18, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.modal-login-field:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 0 15px rgba(255, 255, 255, 0.1);
  background: rgba(24, 24, 27, 0.95);
}

.modal-input-inner:focus-within .modal-input-icon {
  color: #ffffff;
}

.modal-login-field--key {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.modal-login-field--key::placeholder {
  color: #475569;
  letter-spacing: 0.5px;
  font-family: inherit;
  font-weight: 500;
}

/* ===================================================================
   SPECULAR BUTTON COMPONENT (REACT BITS)
   =================================================================== */
.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0;
  --sb-blur: 0px;
  --sb-text-color: #f5f5f5;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--sb-text-color);
  background: rgba(16, 20, 28, 0.85);
  border-radius: var(--sb-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  outline: none;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, box-shadow 0.15s ease;
  overflow: visible;
  user-select: none;
  transform: translateZ(0);
  will-change: transform;
}

.specular-button:hover {
  background: rgba(26, 34, 48, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 12px 32px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px) translateZ(0);
}

.specular-button:active {
  transform: scale(0.98) translateZ(0);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.specular-button--md {
  font-size: 1rem;
  padding: 14px 30px;
}

.specular-button--lg {
  font-size: 1.15rem;
  padding: 18px 40px;
}

/* Canvas extends past the button so the rim glow can bleed outside the edge */
.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.specular-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-activate-hero {
  width: 100%;
  padding: 18px 24px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 18px;
  margin-top: 10px;
  will-change: transform;
  transform: translateZ(0);
}

/* ===================================================================
   BLUR TEXT COMPONENT (REACT BITS) & WELCOME ANIMATION
   =================================================================== */
@keyframes blurTextTop {
  0% {
    filter: blur(5px);
    opacity: 0;
    transform: translateY(-16px);
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blurTextBottom {
  0% {
    filter: blur(5px);
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    filter: blur(0px);
    opacity: 1;
    transform: translateY(0);
  }
}

.blur-text-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.blur-text-char {
  display: inline-block;
  opacity: 0;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-text-word-wrap {
  display: inline-block;
  white-space: nowrap;
}

.blur-text-space {
  display: inline-block;
  width: 0.35em;
}

.blur-text-char.blur-text-dir-top {
  animation-name: blurTextTop;
}

.blur-text-char.blur-text-dir-bottom {
  animation-name: blurTextBottom;
}

/* Specific styling for the welcome title */
.welcome-title-blur,
.text-2xl.mb-8 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 0.85rem;
  text-align: center;
  line-height: 1.25;
}

/* Welcome Overlay in License Modal - Opaque luxury background, no GPU backdrop-filter thrashing */
.modal-welcome-view {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(18, 18, 20, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.modal-welcome-view.visible {
  opacity: 1;
  transform: scale(1);
}

.welcome-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 620px;
  padding: 24px 30px;
}

.welcome-logo-wrap {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-logo-glow {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.6));
  animation: welcomeLogoPulse 2.4s infinite ease-in-out;
}

@keyframes welcomeLogoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===================================================================
   COMET DIAL COMPONENT (REACT BITS) - 144Hz Zero-Lag Optimization
   =================================================================== */
.welcome-dial-mount {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 12px;
  animation: welcomeDialFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.comet-dial {
  --cd-accent: #38bdf8;
  --cd-ink: rgba(255, 255, 255, 0.12);
  --cd-size: 210px;
  --cd-figure: 36px;

  position: relative;
  width: var(--cd-size);
  height: var(--cd-size);
  color: var(--cd-accent);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Static cached ambient halo - 0 GPU blur convolutions per frame */
.comet-dial__ambient-glow {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(56, 189, 248, 0.06) 55%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
}

.comet-dial__ring {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  outline: none;
  cursor: grab;
  touch-action: none;
  z-index: 1;
}

.comet-dial[data-dragging] .comet-dial__ring {
  cursor: grabbing;
}

.comet-dial__track,
.comet-dial__lit,
.comet-dial__comet path {
  fill: none;
  stroke-linecap: round;
}

.comet-dial__track {
  stroke: var(--cd-ink);
}

.comet-dial__lit {
  stroke: var(--cd-accent);
  opacity: 0.96;
}

.comet-dial__comet path {
  stroke: var(--cd-accent);
}

.comet-dial__head {
  fill: #ffffff;
  stroke: var(--cd-accent);
  stroke-width: 1.5;
}

.comet-dial__readout {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  z-index: 2;
}

.comet-dial__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  font-size: var(--cd-figure);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.comet-dial__unit {
  font-size: 0.5em;
  opacity: 0.85;
  font-weight: 700;
  color: #38bdf8;
  margin-left: 2px;
}

.comet-dial__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 6px;
  transition: color 0.25s ease;
}

.comet-dial__label.success {
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.comet-dial[data-disabled] {
  opacity: 0.55;
}

.comet-dial[data-disabled] .comet-dial__ring {
  cursor: default;
  pointer-events: none;
}

.welcome-subtext {
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.3px;
  animation: welcomeSubFadeIn 0.5s 0.5s forwards;
  opacity: 0;
}

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

/* Centered Social & Website Links Row */
.lock-social-links {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.lock-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.lock-discord-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #e4e4e7;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.lock-discord-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.lock-web-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: #e4e4e7;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.lock-web-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.social-svg-icon {
  width: 27px;
  height: 27px;
  transition: transform 0.2s ease;
}

.lock-social-btn:hover .social-svg-icon {
  transform: scale(1.08);
}

.lock-discord-wrapper:hover .lock-discord-label {
  color: #94a3b8;
}

.lock-test-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.test-label {
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.test-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.test-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.license-input-box {
  width: 100%;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 16px;
  font-family: monospace;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 3px;
  outline: none;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.license-input-box:focus {
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===================================================================
   SIDEBAR DIVIDER
   =================================================================== */
.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 10px 8px;
}

/* ===================================================================
   PROFIT CALENDAR STYLES
   =================================================================== */
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-cell {
  background: #080f1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  min-height: 78px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.calendar-day-cell:hover {
  background: #0d172e;
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.calendar-day-cell.is-selected {
  border-color: var(--cyan-primary) !important;
  background: rgba(6, 182, 212, 0.08) !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.22);
}

/* DZISIEJSZY DZIEŃ (TODAY) - ZAWSZE ZIELONY */
.calendar-day-cell.is-today {
  border-color: #10b981 !important;
  border-width: 1.5px !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.28) !important;
}

.calendar-day-cell.is-today:hover {
  border-color: #34d399 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.07) 100%) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.42) !important;
}

.calendar-day-cell.is-today.is-selected {
  border: 2px solid #10b981 !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.26) 0%, rgba(16, 185, 129, 0.1) 100%) !important;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.55), inset 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.calendar-day-cell.is-today .cal-day-num {
  background: #10b981 !important;
  color: #040812 !important;
  font-weight: 900 !important;
  border-radius: 6px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
}

.cal-today-tag {
  font-size: 8px;
  font-weight: 900;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #10b981;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.cal-quick-action-btn {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.18s ease;
}

.cal-quick-action-btn:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: rgba(6, 182, 212, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.cal-quick-action-btn.cal-btn-danger {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fb7185;
}

.cal-quick-action-btn.cal-btn-danger:hover {
  background: rgba(244, 63, 94, 0.28);
  border-color: rgba(244, 63, 94, 0.6);
  color: #fff;
  transform: translateY(-1px);
}

.calendar-day-cell.is-empty {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  cursor: default;
}

.calendar-day-cell.is-empty:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
  transform: none;
}

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

.cal-day-num {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.cal-day-badge {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  padding: 1px 5px;
  border-radius: 10px;
}

.cal-day-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.cal-profit-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.cal-profit-pill.is-pos {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cal-profit-pill.is-neg {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cal-profit-pill.is-zero {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* ===================================================================
   BORDER GLOW COMPONENT (REACT BITS)
   =================================================================== */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 33px;
  --glow-padding: 53px;
  --cone-spread: 32;

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  transform: translate3d(0, 0, 0.01px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card-bg, #120F17);
  overflow: visible;
  box-shadow:
    rgba(0, 0, 0, 0.1) 0px 1px 2px,
    rgba(0, 0, 0, 0.1) 0px 2px 4px,
    rgba(0, 0, 0, 0.1) 0px 4px 8px,
    rgba(0, 0, 0, 0.1) 0px 8px 16px,
    rgba(0, 0, 0, 0.1) 0px 16px 32px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.border-glow-card:hover {
  transform: translateY(-2px);
  box-shadow:
    rgba(0, 0, 0, 0.2) 0px 4px 12px,
    rgba(0, 0, 0, 0.3) 0px 12px 28px;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
  pointer-events: none;
}

.border-glow-card:not(:hover):not(.sweep-active)::before,
.border-glow-card:not(:hover):not(.sweep-active)::after,
.border-glow-card:not(:hover):not(.sweep-active) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* colored mesh-gradient border */
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #120F17) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) border-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* colored mesh-gradient background fill near edges */
.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one, radial-gradient(at 80% 55%, hsla(268, 100%, 76%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-two, radial-gradient(at 69% 34%, hsla(349, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-three, radial-gradient(at 8% 6%, hsla(136, 100%, 78%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-four, radial-gradient(at 41% 38%, hsla(192, 100%, 64%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-five, radial-gradient(at 86% 85%, hsla(186, 100%, 74%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-six, radial-gradient(at 82% 18%, hsla(52, 100%, 65%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-seven, radial-gradient(at 51% 4%, hsla(12, 100%, 72%, 1) 0px, transparent 50%)) padding-box,
    var(--gradient-base, linear-gradient(#c299ff 0 100%)) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, destination-over, destination-over, destination-over, destination-over, destination-over;
  opacity: calc(var(--fill-opacity, 0.5) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* outer glow layer */
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 0;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color, hsl(40deg 80% 80% / 100%)),
    inset 0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    inset 0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    inset 0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    inset 0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    inset 0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    inset 0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%)),
    0 0 1px 0 var(--glow-color-60, hsl(40deg 80% 80% / 60%)),
    0 0 3px 0 var(--glow-color-50, hsl(40deg 80% 80% / 50%)),
    0 0 6px 0 var(--glow-color-40, hsl(40deg 80% 80% / 40%)),
    0 0 15px 0 var(--glow-color-30, hsl(40deg 80% 80% / 30%)),
    0 0 25px 2px var(--glow-color-20, hsl(40deg 80% 80% / 20%)),
    0 0 50px 2px var(--glow-color-10, hsl(40deg 80% 80% / 10%));
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  z-index: 2;
  height: 100%;
}

/* Profit Calendar 4-column summary grid */
.cal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cal-summary-card {
  background: #0b1426;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cal-summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
}

#cal-stat-starting:hover,
#cal-stat-starting-input:hover {
  filter: brightness(1.25);
  border-bottom-color: #38bdf8 !important;
}

#cal-stat-starting-input:focus {
  filter: brightness(1.3);
  border-bottom-style: solid !important;
  border-bottom-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

#cal-btn-quick-starting:hover {
  background: rgba(14, 165, 233, 0.35) !important;
  color: #fff !important;
  transform: scale(1.04);
}

#cal-btn-quick-expense:hover {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #fff !important;
  transform: scale(1.04);
}

@media (max-width: 1200px) {
  .cal-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cal-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   RESCUE CALCULATOR STYLES
   =================================================================== */
.rescue-quick-stake {
  flex: 1;
  padding: 7px 0;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.rescue-quick-stake:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

/* ===================================================================
   SCANNER LIVE STYLES
   =================================================================== */
.feed-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.spinning {
  animation: spin 0.6s linear infinite;
}

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

/* Dashboard Quick Cards & Layout */
.dash-quick-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

.dash-quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.5) !important;
  background: rgba(6, 182, 212, 0.05) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(6, 182, 212, 0.2);
}

/* ===================================================================
   DASHBOARD 2-COLUMN GRID & MOCKUP STYLES
   =================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dash-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.dash-card:hover {
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(6, 182, 212, 0.16) !important;
}

/* ===================================================================
   TRADINGVIEW CHART COMPONENT (AUTHENTIC FINANCIAL TICK CHART)
   =================================================================== */
.tv-chart-card {
  font-family: -apple-system, BlinkMacSystemFont, 'Trebuchet MS', Roboto, Ubuntu, sans-serif;
  user-select: none;
  background: #0b1220 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}

.tv-top-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  overflow-x: auto;
}

.tv-tab {
  background: none;
  border: none;
  color: #787b86;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px 8px;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
  outline: none;
}

.tv-tab:hover {
  color: #d1d4dc;
}

.tv-tab.active {
  color: #fff;
  font-weight: 700;
}

.tv-tab.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2962ff;
  border-radius: 2px;
}

.tv-sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 6px;
}

.tv-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  color: #d1d4dc;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
}

.tv-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tv-pill-btn.active {
  background: #1e222d;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.tv-live-indicator {
  font-size: 11px;
  font-weight: 700;
  color: #089981;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-family: monospace;
}

.tv-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #089981;
  box-shadow: 0 0 6px #089981;
  animation: liveDot 1.5s infinite alternate;
}

@keyframes liveDot {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 8px #089981; }
}

.tv-tools-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tv-tool-btn {
  background: none;
  border: none;
  color: #787b86;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  outline: none;
}

.tv-tool-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.tv-tool-full {
  font-size: 11px;
  font-weight: 600;
  color: #787b86;
}

.tv-canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  margin-top: 4px;
}

body.performance-mode .trading-chart-tooltip {
  backdrop-filter: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}

body.performance-mode .chart-live-beacon .beacon-pulse {
  animation: none !important;
}

/* ===================================================================
   DASHBOARD CARD STYLES (ULTRA-LIGHTWEIGHT, ZERO-LAG)
   =================================================================== */
#tab-dashboard .card {
  background: rgba(8, 14, 28, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

#tab-dashboard .card.dash-card:hover {
  background: rgba(10, 18, 36, 0.95) !important;
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(6, 182, 212, 0.15) !important;
}

/* ===================================================================
   SQUISH SWITCH (REACT BITS) STYLES
   =================================================================== */
.squish-switch-root {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
  -webkit-app-region: no-drag;
}

.squish-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
  vertical-align: middle;
}

.squish-switch::after {
  content: '';
  position: absolute;
  inset: -4px;
}

.squish-switch[data-held] {
  cursor: grabbing;
}

.squish-switch__track {
  position: relative;
  display: block;
  width: var(--ss-w);
  height: var(--ss-h);
  border-radius: var(--ss-r);
  background: var(--ss-track);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color var(--ss-fade) ease, border-color var(--ss-fade) ease, box-shadow var(--ss-fade) ease;
}

.squish-switch[data-on] .squish-switch__track {
  background: var(--ss-track-on);
  border-color: rgba(20, 199, 200, 0.7);
  box-shadow: 0 0 10px rgba(20, 199, 200, 0.4);
}

.squish-switch__thumb {
  position: absolute;
  top: calc((100% - var(--ss-thumb)) / 2);
  left: 0;
  width: var(--ss-thumb);
  height: var(--ss-thumb);
  border-radius: 50%;
  background: var(--ss-thumb-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: background-color var(--ss-fade) ease;
  will-change: transform;
}

.squish-switch[data-on] .squish-switch__thumb {
  background: var(--ss-thumb-on);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.squish-switch__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.squish-switch[data-on] + .squish-switch__label,
.squish-switch-root.is-active .squish-switch__label {
  color: #14c7c8;
  text-shadow: 0 0 8px rgba(20, 199, 200, 0.35);
}

/* ===================================================================
   PERFORMANCE MODE (ECO / ZERO-LAG SYSTEM)
   When active, completely strips all cosmetic animations, blur, glows
   =================================================================== */
body.performance-mode * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.05s !important;
}

body.performance-mode .particles-canvas,
body.performance-mode .gradient-text-glow {
  display: none !important;
}

body.performance-mode .card,
body.performance-mode .dash-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: none !important;
}

body.performance-mode .chart-point {
  filter: none !important;
}

body.performance-mode .gradient-text {
  background: #00f0ff !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: none !important;
}

body.performance-mode #titlebar-license-badge .license-dot {
  box-shadow: none !important;
  animation: none !important;
}

/* ===================================================================
   SETTINGS GEAR BUTTON & POPOVER
   =================================================================== */
.titlebar-gear-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-app-region: no-drag;
  outline: none;
  position: relative;
  overflow: hidden;
}

.gear-icon-inner {
  position: relative;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-svg-icon,
.close-svg-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.24s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.2s ease;
}

/* Default state: Gear visible, X hidden & rotated */
.gear-svg-icon {
  opacity: 0.82;
  transform: rotate(0deg) scale(1);
  color: #94a3b8;
}

.close-svg-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.35);
  color: #f87171;
}

/* Hover (Settings closed): Gear gently rotates and glows cyan */
.titlebar-gear-btn:hover:not(.is-active) {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.titlebar-gear-btn:hover:not(.is-active) .gear-svg-icon {
  transform: rotate(60deg) scale(1.08);
  opacity: 1;
  color: #22d3ee;
}

/* Active State (Settings open): Gear spins out & shrinks; X spins in & scales up */
.titlebar-gear-btn.is-active {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.38);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.titlebar-gear-btn.is-active .gear-svg-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.2);
}

.titlebar-gear-btn.is-active .close-svg-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #f87171;
}

/* Hover when active (User hovering over X): X highlights and rotates slightly */
.titlebar-gear-btn.is-active:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.titlebar-gear-btn.is-active:hover .close-svg-icon {
  transform: rotate(90deg) scale(1.15);
  color: #fca5a5;
}

body.performance-mode .titlebar-gear-btn,
body.performance-mode .titlebar-gear-btn:hover,
body.performance-mode .titlebar-gear-btn.is-active {
  box-shadow: none !important;
}

body.performance-mode .gear-svg-icon,
body.performance-mode .close-svg-icon {
  transition: transform 0.15s ease, opacity 0.15s ease !important;
}

.settings-popover {
  position: fixed;
  top: 48px;
  right: 80px;
  width: 340px;
  background: rgba(10, 16, 32, 0.98);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 24px rgba(6, 182, 212, 0.15);
  z-index: 99999;
  -webkit-app-region: no-drag;
  animation: settingsPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

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

.settings-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-popover-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 4px;
  transition: all 0.15s ease;
  line-height: 1;
}

.settings-popover-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.settings-popover-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#mount-performance-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-item-info {
  flex: 1;
}

.settings-item-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}

.settings-item-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.35;
}

.settings-shortcuts-trigger {
  padding: 6px 8px;
  border-radius: 8px;
  margin: -4px -8px;
  transition: background 0.18s ease;
}

.settings-shortcuts-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 2px 0;
}

.settings-popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border-subtle);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

/* ===================================================================
   QUICK TOOLS COMPONENT (EXECUTIVE MODULE TILES)
   =================================================================== */
.icon-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin: 14px 0 6px;
  padding: 0;
  box-sizing: border-box;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px 8px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 96px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  outline: none;
}

.icon-btn:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(6, 182, 212, 0.12);
}

.icon-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.icon-btn__back {
  display: none !important;
}

.icon-btn__front {
  position: static !important;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  transition: all 0.2s ease;
}

.icon-btn:hover .icon-btn__front {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3) !important;
}

.icon-btn__icon {
  width: 18px;
  height: 18px;
  color: var(--cyan-primary, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none !important;
  margin: 0;
}

.icon-btn__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.icon-btn__label {
  position: static !important;
  transform: none !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.2s ease;
  text-shadow: none !important;
}

.icon-btn:hover .icon-btn__label {
  color: #ffffff;
}

@media (max-width: 900px) {
  .icon-btns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   DASHBOARD INLINE MINI TOOL PANEL IN CARD 4
   =================================================================== */
.glass-icons-card {
  padding: 20px 22px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  flex: 1;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-icons-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dash-card-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  animation: dashViewFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

#dash-glass-icons-mount {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

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

.dash-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 11px;
  gap: 10px;
}

.dash-card-title-badge {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dash-card-count-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-primary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.dash-inline-tool-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-inline-tool-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-inline-tool-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.dash-inline-tool-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-primary);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 2px;
}

.dash-inline-tool-corner-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-dash-corner-back {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-dash-corner-back:hover {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  color: #030712;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.6);
  transform: translateY(-1px);
}

.btn-dash-corner-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-dash-corner-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.dash-inline-tool-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mini-tool-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.mini-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-tool-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-tool-input-wrap label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini-tool-input-wrap input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  font-family: monospace;
  outline: none;
  transition: border-color 0.15s ease;
}

.mini-tool-input-wrap input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.mini-tool-result-box {
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-tool-result-val {
  font-size: 19px;
  font-weight: 800;
  font-family: monospace;
  color: #10b981;
}

.mini-tool-footer-btn {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  padding: 11px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.mini-tool-footer-btn:hover {
  background: var(--cyan-primary);
  color: #000;
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.5);
}

/* ===================================================================
   CRYPTO & CURRENCY LIVE TICKER CARD (BTC, SOL, ETH, USD, LTC, XRP)
   =================================================================== */
.crypto-ticker-card {
  padding: 14px 16px;
  background: rgba(8, 14, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.crypto-ticker-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.crypto-ticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.crypto-tile {
  background: rgba(11, 20, 38, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.crypto-tile:hover {
  transform: translateY(-2px);
  background: rgba(15, 26, 48, 0.95);
}

.crypto-tile[data-symbol="BTC"]:hover { border-color: rgba(247, 147, 26, 0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(247, 147, 26, 0.15); }
.crypto-tile[data-symbol="SOL"]:hover { border-color: rgba(20, 241, 149, 0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(20, 241, 149, 0.15); }
.crypto-tile[data-symbol="ETH"]:hover { border-color: rgba(98, 126, 234, 0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(98, 126, 234, 0.15); }
.crypto-tile[data-symbol="USDC"]:hover { border-color: rgba(39, 117, 202, 0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(39, 117, 202, 0.15); }
.crypto-tile[data-symbol="LTC"]:hover { border-color: rgba(148, 163, 184, 0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(148, 163, 184, 0.15); }
.crypto-tile[data-symbol="XRP"]:hover { border-color: rgba(56, 189, 248, 0.45); box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 14px rgba(56, 189, 248, 0.15); }

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

.crypto-coin-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crypto-coin-logo {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.crypto-coin-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.crypto-coin-symbol {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.crypto-coin-name {
  font-size: 9.5px;
  color: var(--text-dim);
  font-weight: 500;
  line-height: 1.1;
  margin-top: 1px;
}

.crypto-change-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.crypto-change-pill.positive {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.crypto-change-pill.negative {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.crypto-change-pill.neutral {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.crypto-tile-body {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.crypto-price {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  font-family: 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
  letter-spacing: -0.3px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.crypto-price.price-up {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.crypto-price.price-down {
  color: #f87171;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.5);
}

.crypto-subtext {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
}

.live-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: 100px;
}

.live-ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveTickerPulse 1.8s infinite;
}

@keyframes liveTickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.crypto-refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.crypto-refresh-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .crypto-ticker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   DASHBOARD CARD STYLING (ZERO-LAG HIGH PERFORMANCE)
   =================================================================== */
#tab-dashboard {
  position: relative;
}

#tab-dashboard .content-header,
#tab-dashboard .dashboard-grid {
  position: relative;
  z-index: 1;
}

#tab-dashboard .content-header {
  padding-top: 20px;
}

#tab-dashboard .content-header .header-title-wrap {
  margin-left: 20px;
}

#tab-dashboard .content-header .dash-stroketext-mount {
  margin-right: 20px;
}

.dash-card {
  background: #0b1426 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

/* ===================================================================
   HIGH LIQUIDITY RADAR (RADAR WYSOKIEJ PŁYNNOŚCI)
   =================================================================== */

.radar-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.radar-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.radar-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-title-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.radar-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.radar-filters {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

.radar-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.radar-filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.radar-filter-btn.active {
  color: #fff;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.radar-events-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.radar-events-list::-webkit-scrollbar {
  width: 5px;
}

.radar-events-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

.radar-events-list::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

.radar-events-list::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.6);
}

.radar-event-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radar-event-card:hover {
  background: rgba(6, 182, 212, 0.04);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.radar-event-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-league-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--cyan-primary);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 2px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radar-event-teams {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-event-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
}

.radar-event-roi {
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.radar-liquidity-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radar-liquidity-bar-track {
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.radar-liquidity-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #06b6d4;
  box-shadow: none;
  transition: width 0.3s ease;
}

.radar-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

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

.radar-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radar-meta-item b {
  color: #e2e8f0;
}

.radar-btn-calc {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan-primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.radar-btn-calc:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.6);
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

/* ===================================================================
   WOW LAUNCH MINI-HUD BUTTON (ELECTRIC BORDER BEAM + OBSIDIAN GLASS)
   =================================================================== */

.hud-launch-btn-wow {
  position: relative;
  width: 100%;
  padding: 2px;
  border-radius: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  display: block;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.2);
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.hud-launch-btn-wow:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.45), 0 0 15px rgba(168, 85, 247, 0.35);
}

.hud-launch-btn-wow:active {
  transform: translateY(0px) scale(0.985);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Ambient Outer Glow Layer */
.hud-launch-glow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.45) 0%, rgba(168, 85, 247, 0.35) 50%, rgba(56, 189, 248, 0.45) 100%);
  filter: blur(16px);
  opacity: 0.5;
  transition: opacity 0.3s ease, filter 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.hud-launch-btn-wow:hover .hud-launch-glow {
  opacity: 0.95;
  filter: blur(24px);
}

/* Rotating Electric Border Beam */
.hud-launch-border {
  position: absolute;
  top: -150%;
  left: -50%;
  width: 200%;
  height: 400%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    transparent 45deg,
    rgba(6, 182, 212, 0.15) 70deg,
    #06b6d4 90deg,
    #38bdf8 115deg,
    #ffffff 130deg,
    #c084fc 150deg,
    rgba(168, 85, 247, 0.2) 180deg,
    transparent 205deg,
    transparent 360deg
  );
  animation: hudRotateBeam 3.6s linear infinite;
  z-index: 1;
  pointer-events: none;
}

.hud-launch-btn-wow:hover .hud-launch-border {
  animation-duration: 2.2s;
}

@keyframes hudRotateBeam {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Inner Obsidian Glass Surface */
.hud-launch-inner {
  position: relative;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(12, 20, 36, 0.94) 0%, rgba(6, 10, 20, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 15px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-sizing: border-box;
}

/* Interactive Cursor Spotlight */
.hud-launch-spotlight {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(130px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(6, 182, 212, 0.28), transparent 75%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.hud-launch-btn-wow:hover .hud-launch-spotlight {
  opacity: 1;
}

/* Shimmer Light Pulse Across Glass */
.hud-launch-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), rgba(6, 182, 212, 0.22), transparent);
  transform: skewX(-22deg);
  animation: hudGlassShine 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes hudGlassShine {
  0% { left: -120%; }
  35%, 100% { left: 220%; }
}

/* Rocket Icon & Flame Animation */
.hud-launch-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  z-index: 3;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hud-launch-btn-wow:hover .hud-launch-icon-wrap {
  transform: translateY(-2px) scale(1.18) rotate(-10deg);
}

.hud-launch-icon-wrap::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.hud-launch-btn-wow:hover .hud-launch-icon-wrap::after {
  opacity: 1;
  transform: scale(1.4);
}

/* Shimmering Holographic Typography */
.hud-launch-text {
  position: relative;
  z-index: 3;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 25%, #38bdf8 50%, #ffffff 75%, #cbd5e1 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hudTextShimmer 4s ease-in-out infinite;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes hudTextShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Right Badge / Arrow */
.hud-launch-badge {
  position: relative;
  z-index: 3;
  font-size: 11.5px;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hud-launch-btn-wow:hover .hud-launch-badge {
  background: rgba(6, 182, 212, 0.3);
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
  color: #ffffff;
  transform: translateX(2px);
}

/* ===================================================================
   ACTIVE / ON STATE (CRIMSON RED THEME: "WYŁĄCZ MINI-HUD")
   =================================================================== */

.hud-launch-btn-wow.hud-active {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.4);
}

.hud-launch-btn-wow.hud-active:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.6), 0 0 20px rgba(244, 63, 94, 0.45);
}

.hud-launch-btn-wow.hud-active .hud-launch-glow {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.65) 0%, rgba(220, 38, 38, 0.45) 50%, rgba(244, 63, 94, 0.65) 100%);
  opacity: 0.85;
  filter: blur(20px);
}

.hud-launch-btn-wow.hud-active:hover .hud-launch-glow {
  opacity: 1;
  filter: blur(26px);
}

.hud-launch-btn-wow.hud-active .hud-launch-border {
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    transparent 45deg,
    rgba(239, 68, 68, 0.2) 70deg,
    #ef4444 90deg,
    #f43f5e 115deg,
    #ffffff 130deg,
    #ff6b81 150deg,
    rgba(239, 68, 68, 0.3) 180deg,
    transparent 205deg,
    transparent 360deg
  );
  animation-duration: 2.8s;
}

.hud-launch-btn-wow.hud-active .hud-launch-inner {
  background: linear-gradient(145deg, rgba(28, 10, 16, 0.96) 0%, rgba(18, 6, 10, 0.98) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.hud-launch-btn-wow.hud-active .hud-launch-spotlight {
  background: radial-gradient(130px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(239, 68, 68, 0.4), transparent 75%);
}

.hud-launch-btn-wow.hud-active .hud-launch-inner::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), rgba(239, 68, 68, 0.35), transparent);
}

.hud-launch-btn-wow.hud-active .hud-launch-icon-wrap::after {
  background: radial-gradient(circle, #ef4444 0%, rgba(239, 68, 68, 0) 70%);
}

.hud-launch-btn-wow.hud-active .hud-launch-text {
  background: linear-gradient(90deg, #ffffff 0%, #fecaca 25%, #ef4444 50%, #ffffff 75%, #fecaca 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.35);
}

.hud-launch-btn-wow.hud-active .hud-launch-badge {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
}

.hud-launch-btn-wow.hud-active:hover .hud-launch-badge {
  background: rgba(239, 68, 68, 0.4);
  border-color: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
  color: #ffffff;
}

/* ===================================================================
   PROFIT CALENDAR - IN-PAGE MINI MODALS
   =================================================================== */
.cal-mini-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cal-mini-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: calModalFadeIn 0.2s ease-out;
}

.cal-mini-modal-card {
  position: relative;
  z-index: 2;
  width: 440px;
  max-width: 95vw;
  background: linear-gradient(145deg, rgba(22, 27, 44, 0.97) 0%, rgba(13, 16, 28, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.12);
  padding: 24px;
  animation: calModalCardPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes calModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.cal-mini-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-mini-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-mini-modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 20px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.cal-mini-modal-icon.expense-icon {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.cal-mini-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.3px;
}

.cal-mini-modal-sub {
  margin: 3px 0 0 0;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.cal-mini-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.cal-mini-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.05);
}

.cal-mini-modal-body {
  display: flex;
  flex-direction: column;
}

.cal-input-group {
  display: flex;
  flex-direction: column;
}

.cal-input-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.cal-currency-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cal-modal-input {
  width: 100%;
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 48px 12px 14px;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  font-family: 'JetBrains Mono', 'Fira Code', monospace, sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cal-modal-input::-webkit-outer-spin-button,
.cal-modal-input::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.cal-modal-input:focus {
  background: rgba(13, 18, 32, 0.95);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.cal-modal-input::placeholder {
  color: #475569;
  font-weight: 500;
}

.cal-currency-tag {
  position: absolute;
  right: 14px;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-primary, #eab308);
  pointer-events: none;
  user-select: none;
}

.cal-input-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 7px;
  line-height: 1.4;
}

.cal-mini-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cal-modal-cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-cal-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-cal-modal-save {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.18s ease;
}

.btn-cal-modal-save:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  border-color: rgba(56, 189, 248, 0.7);
}

.btn-cal-modal-save.expense-save {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
}

.btn-cal-modal-save.expense-save:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  border-color: rgba(244, 63, 94, 0.7);
}

/* ===================================================================
   SPRING CHECK COMPONENT (REACT BITS PORT)
   =================================================================== */
.spring-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s ease;
}

.spring-check-widget {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-box {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  transform-origin: center;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
  box-sizing: border-box;
}

.sc-box.sc-pressed {
  transform: scale(0.92) !important;
}

.sc-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  transition: box-shadow 150ms ease;
  pointer-events: none;
}

.spring-check-row:hover .sc-border {
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.sc-box.sc-checked .sc-border {
  box-shadow: inset 0 0 0 1.5px var(--sc-fill, #ffffff);
}

.sc-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--sc-fill, #ffffff);
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.16s ease;
}

.sc-box.sc-checked .sc-fill {
  transform: scale(1);
  opacity: 1;
}

.sc-tick {
  position: relative;
  width: 68%;
  height: 68%;
  overflow: visible;
  stroke: var(--sc-check, #0b0b0f);
  z-index: 2;
  pointer-events: none;
}

.sc-tick path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.2s ease;
}

.sc-box.sc-checked .sc-tick path {
  stroke-dashoffset: 0;
}

/* Spring Animations on Checked */
.sc-box.sc-checked.sc-animate-in {
  animation: scBoxSwell 0.36s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.sc-box.sc-checked.sc-animate-in .sc-fill {
  animation: scFillSpring 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.28) forwards;
}

.sc-box.sc-checked.sc-animate-in .sc-tick path {
  animation: scTickSpring 0.36s cubic-bezier(0.16, 1, 0.3, 1) 0.04s forwards;
}

@keyframes scBoxSwell {
  0% { transform: scale(0.92); }
  45% { transform: scale(1.14); }
  75% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

@keyframes scFillSpring {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.22); opacity: 1; }
  80% { transform: scale(0.96); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes scTickSpring {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

/* User requirement: NEVER strikethrough, NEVER dim text */
.sc-label-text,
.spring-check-row span,
.spring-check-row .label-text {
  opacity: 1 !important;
  text-decoration: none !important;
}

/* ===================================================================
   JELLY RADIO COMPONENT (REACT BITS PORT)
   =================================================================== */
.jelly-radio {
  --jr-chip: #27272a;
  --jr-active: #f5f5f5;
  --jr-text: #f5f5f5;
  --jr-active-text: #18181b;
  --jr-gap: 8px;
  --jr-radius: 18px;
  --jr-h: 36px;
  --jr-font: 13px;
  --jr-px: 16px;
  --jr-pad-x: 16px;
  --jr-pad-y: 6px;
  --jr-ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  display: inline-flex;
  align-items: center;
  gap: var(--jr-gap);
  padding: var(--jr-pad-y) var(--jr-pad-x);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overflow: visible;
}

.jelly-radio[data-disabled] {
  opacity: 0.5;
  pointer-events: none;
}

.jelly-radio__chip {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
  transform-origin: 50% 50%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.jelly-radio__chip[data-on='true'] {
  cursor: default;
}

.jelly-radio:not([data-disabled]) .jelly-radio__chip:disabled {
  cursor: default;
  opacity: 0.4;
}

.jelly-radio__skin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  height: var(--jr-h);
  padding: 0 var(--jr-px);
  border-radius: var(--jr-radius);
  overflow: hidden;
  background: var(--jr-chip);
  color: var(--jr-text);
  font-size: var(--jr-font);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition:
    transform 160ms var(--jr-ease-out),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.jelly-radio__skin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--jr-text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .jelly-radio__chip[data-on='false']:not(:disabled):hover .jelly-radio__skin::before {
    opacity: 0.12;
  }
}

.jelly-radio__chip:active .jelly-radio__skin {
  transform: scale(0.96);
}

.jelly-radio__chip[data-on='true'] .jelly-radio__skin {
  background: var(--jr-active);
  color: var(--jr-active-text);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.jelly-radio__icon {
  display: inline-flex;
}

.jelly-radio-mount {
  display: flex;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  padding: 4px 0;
}

/* ===================================================================
   MOLTEN METAL DASHBOARD BACKGROUND (REACT BITS WEBGL2 PORT)
   =================================================================== */
.dash-molten-bg-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  background: 
    radial-gradient(circle at 12% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 88% 28%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  opacity: 1;
}

.molten-metal-canvas {
  display: none !important;
}

#tab-dashboard {
  position: relative;
}

#tab-dashboard > *:not(.dash-molten-bg-container) {
  position: relative;
  z-index: 1;
}

body.performance-mode .dash-molten-bg-container {
  display: none !important;
}

/* =======================================================
   SIMPLE HEADER USER GREETING (DASHBOARD TOP-RIGHT)
   ======================================================= */
.header-simple-greeting {
  font-size: 19px;
  font-weight: 700;
  color: #94a3b8;
  user-select: none;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-simple-nick {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* =======================================================
   WEB PLATFORM MODE ADAPTATIONS
   ======================================================= */
.web-mode-indicator {
  display: none;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.8px;
  user-select: none;
}

body.is-web-mode .titlebar-controls {
  display: none !important;
}

body.is-web-mode .titlebar {
  -webkit-app-region: no-drag !important;
  user-select: auto;
}

body.is-web-mode .web-mode-indicator {
  display: inline-flex;
}

.escapist-back-home-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.escapist-back-home-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

body.is-web-mode .escapist-back-home-btn {
  display: inline-flex;
}

/* =======================================================
   ESCAPIST TAB & NAVIGATION STYLING (HIGHLIGHTED)
   ======================================================= */
.nav-item-escapist {
  position: relative;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.15), inset 0 0 12px rgba(168, 85, 247, 0.06);
  border-radius: 10px;
  margin: 6px 12px !important;
  padding: 10px 14px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}

.nav-item-escapist::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.nav-item-escapist:hover::before {
  left: 100%;
}

.nav-item-escapist:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(6, 182, 212, 0.18) 100%) !important;
  border-color: rgba(168, 85, 247, 0.65) !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.32), 0 0 15px rgba(6, 182, 212, 0.2) !important;
  transform: translateY(-1px);
}

.nav-item-escapist.active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.32) 0%, rgba(6, 182, 212, 0.22) 100%) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.4), inset 0 0 15px rgba(168, 85, 247, 0.25) !important;
}

.escapist-icon-wrap {
  color: #c084fc !important;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
}

.escapist-nav-title {
  font-weight: 800;
  background: linear-gradient(135deg, #e9d5ff 0%, #a5f3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
  flex: 1;
}

.escapist-vip-badge {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
  animation: escapistBadgePulse 2.5s infinite;
}

@keyframes escapistBadgePulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5);
    opacity: 0.95;
  }
  50% {
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.85);
    opacity: 1;
  }
}

/* =======================================================
   ESCAPIST CONTENT PAGE STYLING
   ======================================================= */
.escapist-title-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c084fc;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
  flex-shrink: 0;
}

.escapist-shield-badge {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.escapist-pulse-orb {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.escapist-pulse-orb .pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  position: relative;
  z-index: 2;
}

.escapist-pulse-orb .pulse-ring {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.6);
  animation: orbPulse 2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes orbPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.escapist-status-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 999px;
}

.escapist-status-pill.online {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.escapist-status-pill.offline {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.escapist-gradient-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35) !important;
  transition: all 0.2s ease !important;
}

.escapist-gradient-btn:hover {
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), 0 0 15px rgba(6, 182, 212, 0.35) !important;
  transform: translateY(-1px);
}

.escapist-glow-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.escapist-glow-btn:active {
  transform: translateY(0);
}

.escapist-tag-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.escapist-tag-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Disabled navigation items (e.g. Live Scanner SOON) */
.nav-item[data-tab="scanner"],
.line-sidebar-item[data-tab="scanner"],
.nav-item-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  user-select: none !important;
}

.nav-item[data-tab="scanner"]:hover,
.line-sidebar-item[data-tab="scanner"]:hover,
.nav-item-disabled:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

/* =======================================================
   PAYMENT SUCCESS / LICENSE DELIVERY MODAL
   ======================================================= */
.payment-modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 24px;
  animation: fadeIn 0.15s ease-out;
}

.payment-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 255, 255, 0.08);
  animation: modalScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
}

.payment-key-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 14px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 14px 0;
}

.btn-copy-key {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  transform: translateZ(0);
  will-change: transform;
}

.btn-copy-key:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px) translateZ(0);
}

.btn-auto-activate-key {
  width: 100%;
  padding: 16px 24px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 16px;
  background: #182234;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
  transform: translateZ(0);
  will-change: transform;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-sizing: border-box;
}

.btn-auto-activate-key:hover {
  background: #223049;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-2px) translateZ(0);
}

.btn-auto-activate-key:active {
  transform: translateY(0) scale(0.98) translateZ(0);
}












