@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Compact Trading Platform Variables - Using Theme CSS */
:root {
  --font-scale: 1.8;
  --font-xs: calc(4px * var(--font-scale));
  --font-sm: calc(6px * var(--font-scale));
  --font-base: calc(8px * var(--font-scale));
  --font-md: calc(10px * var(--font-scale));
  --font-lg: calc(12px * var(--font-scale));
  --font-xl: calc(14px * var(--font-scale));
  --font-2xl: calc(16px * var(--font-scale));
  --font-3xl: calc(18px * var(--font-scale));
}

* {
      box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* Professional Tooltip Enhancement */
[title] {
  position: relative;
  cursor: help;
}

/* Custom CSS Tooltip for Desktop */
[title]:hover::before,
[title]:hover::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: translateY(10px);
  z-index: 10000;
}

/* Tooltip content */
[title]:hover::before {
  content: attr(title);
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2a3441 100%);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: var(--font-sm);
  font-weight: 500;
  line-height: 1.4;
  max-width: 300px;
  width: max-content;
  border: 1px solid var(--accent-blue);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  white-space: normal;
  word-wrap: break-word;
}

/* Tooltip arrow */
[title]:hover::after {
  content: '';
  border: 6px solid transparent;
  border-top: 6px solid var(--dark-navy);
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Show tooltip on hover */
[title]:hover::before,
[title]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Enhanced tooltip styling for inputs and selects */
input[title]:hover, 
select[title]:hover, 
label[title]:hover {
  filter: brightness(1.15);
  box-shadow: 
    0 0 15px rgba(59, 130, 246, 0.4),
    0 0 30px rgba(59, 130, 246, 0.2);
  transition: var(--transition-smooth);
  transform: translateY(-1px);
}

/* Tooltip accessibility enhancement */
[title]:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Additional visual feedback for tooltipped elements */
input[title], select[title] {
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: var(--transition-smooth);
}

input[title]:hover, select[title]:hover {
  border-color: var(--accent-blue);
}

/* Hide default browser tooltip */
[title] {
  position: relative;
}

/* Responsive tooltip positioning */
@media (max-width: 768px) {
  /* Hide custom tooltips on mobile to prevent conflicts */
  [title]:hover::before,
  [title]:hover::after {
    display: none;
  }
  
  /* Show mobile info icons */
  [title]::after {
    content: ' â“˜';
    color: var(--accent-blue);
    font-size: 0.8em;
    opacity: 0.7;
  }
}

/* Mobile Touch Tooltip Popup */
.mobile-tooltip {
  position: fixed;
  background: var(--dark-navy);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--accent-blue);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  font-size: var(--font-sm);
  max-width: 280px;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  line-height: 1.4;
}

.mobile-tooltip.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.mobile-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--dark-navy);
}

/* Visual feedback for long press */
.long-press-active {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: var(--accent-blue) !important;
  transform: scale(0.98);
}

/* Touch feedback hint */
@media (max-width: 768px) {
  [title]::after {
    content: ' â“˜';
    color: var(--accent-blue);
    font-size: 0.8em;
    opacity: 0.7;
  }
}

body {
  margin: 0;
  padding: 1px;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #475569 100%);
  color: var(--white);
  font-size: var(--font-md);
  position: relative;
    }

    .container {
      position: relative;
  width: 100%;
      height: 100vh;
  padding: 1px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  display: grid;
  grid-template-rows: 26px 140px 4px 30px 28px 26px 1fr;
  gap: 0px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Compact Trading Header */
.firstline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  height: 26px;
}

.acctbalance, .tradesTaken, .netProfit {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-compact);
  padding: 1px 3px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-left: 1px solid var(--accent-blue);
  transition: all 0.3s ease;
}

.netProfit {
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 16px;
  transition: color 0.3s ease;
  position: relative;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Simple color states for net profit - no animations */
#netProfit.profit-active {
  color: var(--success) !important;
}

#netProfit.loss-active {
  color: var(--danger) !important;
}

/* Remove all animation classes */
.netProfit.profit-increase {
  border-left-color: var(--success);
}

.netProfit.loss-decrease {
  border-left-color: var(--danger);
}

/* Simple highlight states - no animations */
#netProfit.profit-highlight {
  color: var(--success) !important;
}

#netProfit.loss-highlight {
  color: var(--danger) !important;
}

/* Simple active states with pulsing */
.netProfit.profit-active {
  border-left-color: var(--success);
  animation: profitPulse 2s ease-in-out infinite;
}

.netProfit.loss-active {
  border-left-color: var(--danger);
  animation: lossPulse 2s ease-in-out infinite;
}

@keyframes profitPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
  }
}

@keyframes lossPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  }
}

#balance, #tradesTaken, #netProfit {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 12px;
  transition: all 0.3s ease;
  position: relative;
}

/* Professional Net Profit Styling */
#netProfit {
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Courier New', monospace;
  font-size: var(--font-3xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 0 transparent;
}

/* Value-based color states */
#netProfit.profit {
  color: #10b981 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(16, 185, 129, 0.3);
}

#netProfit.loss {
  color: #ef4444 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(239, 68, 68, 0.3);
}

#netProfit.neutral {
  color: var(--white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 0 transparent;
}

/* Professional animations */
@keyframes professionalBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes digitalFlicker {
  0%, 100% { opacity: 1; }
  25% { opacity: 0.8; }
  50% { opacity: 1; }
  75% { opacity: 0.9; }
}

#netProfit.animating {
  animation: professionalBounce 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#netProfit.counting {
  animation: digitalFlicker 0.8s ease-in-out;
}

/* Enhanced trade history animations - ONLY for first row */
.recent-trade-item.trade-entry-new {
  animation: slideInFromTop 0.6s ease-out;
  background: rgba(16, 185, 129, 0.1);
  border-left: 3px solid var(--success);
}

.recent-trade-item .profit.profit-highlight {
  animation: profitGlow 1.5s ease-out;
  color: var(--success);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  font-weight: 700;
}

/* Remove transitions from regular trade history items */
.recent-trade-item {
  transition: none;
}

.recent-trade-item .profit {
  transition: none;
}

.recent-trade-item .profit.positive {
  color: var(--success);
}

.recent-trade-item .profit.negative {
  color: var(--danger);
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    background: rgba(16, 185, 129, 0.2);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.02);
    background: rgba(16, 185, 129, 0.15);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    background: rgba(16, 185, 129, 0.1);
  }
}

@keyframes profitGlow {
  0% {
    color: var(--white);
    text-shadow: none;
    transform: scale(1);
  }
  50% {
    color: var(--success);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.9);
    transform: scale(1.1);
  }
  100% {
    color: var(--success);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    transform: scale(1);
  }
}

/* Hide radio form */
form {
  display: none;
}

/* Consolidated Input Section */
.input-section {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-compact);
  padding: 1px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
}

.input-row {
  display: flex;
  gap: 1px;
  height: 24px;
}

.input-row .custom-edgeshape {
  flex: 1;
  margin: 0;
}

/* Compact Inputs */
#symbolInput, #stake_input, #takeprofit_input, #maximum_losses, #stoploss_input, #barrier {
  padding: 1px 2px;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid var(--slate);
  border-radius: 6px;
  outline: none;
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border-left: 1px solid transparent;
}

#symbolInput:focus, #stake_input:focus, #takeprofit_input:focus, 
#maximum_losses:focus, #stoploss_input:focus, #barrier:focus {
  border-left-color: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

#symbolInput {
  font-size: var(--font-sm);
}

/* Compact Strategy Options */
.square-radio {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
      cursor: pointer;
  white-space: nowrap;
  padding: 1px 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  min-width: 0;
  width: 100%;
  justify-content: flex-start;
  height: 20px;
}

.square-radio input[type="radio"] {
  appearance: none;
  width: 7px;
  height: 7px;
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  background: var(--glass-light);
  position: relative;
  flex-shrink: 0;
}

.square-radio input[type="radio"]:checked {
  background: var(--gradient-primary);
  border-color: var(--accent-blue);
  box-shadow: 0 0 3px rgba(59, 130, 246, 0.6);
}

.square-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 2px;
  background: var(--white);
  border-radius: 50%;
}

/* Additional Inputs Container */
.additional-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

/* Compact Additional Inputs */
.additional-inputs {
  background: linear-gradient(to right, var(--dark-navy), var(--slate));
  padding: 3px;
  border-radius: 3px;
      display: none;
  margin-top: 2px;
}

.additional-inputs label {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
  margin-right: 2px;
}

#martingaleDigitInput, #ticksInput, #durationInput {
  padding: 1px 2px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
  width: 50px;
  margin: 0 1px;
}

#durationUnit {
  padding: 1px 2px;
  font-size: var(--font-sm);
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
  color: var(--white);
  width: 40px;
}

#stakeListContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 1px 0;
}

.stake-input {
  padding: 1px 2px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
  width: 25px;
  text-align: center;
}

/* Prediction List Styles */
#predictionListContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1px;
  margin: 0;
  padding: 1px;
}

.prediction-set {
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
  padding: 0;
  position: relative;
  margin: 0;
}

.prediction-set::before {
  content: attr(data-set-number);
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-navy);
  padding: 0 2px;
  font-size: var(--font-sm);
  color: var(--white);
  border-radius: 2px;
  z-index: 1;
}

.prediction-row {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 1px;
}

.prediction-type {
  width: 35px;
  padding: 1px 2px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
}

.prediction-number {
  width: 40px;
  padding: 1px 2px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
  text-align: center;
  position: relative;
}

/* Remove default number input styling */
.prediction-number::-webkit-inner-spin-button,
.prediction-number::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Custom increment/decrement buttons */
.prediction-number {
  position: relative;
  padding-right: 20px; /* Make room for the buttons */
}

.prediction-number::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 15px;
  background: var(--dark-navy);
  border-left: 1px solid var(--slate);
  pointer-events: none;
}

/* Up arrow */
.prediction-number::before {
  content: '';
  position: absolute;
  right: 3px;
  top: 3px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 6px solid #00ff00;
  pointer-events: none;
}

/* Down arrow */
.prediction-number::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #ff0000;
  pointer-events: none;
}

/* Add clickable areas for increment/decrement */
.prediction-number {
  position: relative;
}

.prediction-number::before,
.prediction-number::after {
  content: '';
  position: absolute;
  right: 0;
  width: 15px;
  height: 50%;
  cursor: pointer;
  background: transparent;
}

.prediction-number::before {
  top: 0;
}

.prediction-number::after {
  bottom: 0;
}

/* Hover effects */
.prediction-number:hover::before {
  background: rgba(0, 255, 0, 0.1);
}

.prediction-number:hover::after {
  background: rgba(255, 0, 0, 0.1);
}

.add-prediction, .delete-prediction {
  padding: 1px 3px;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 3px;
  cursor: pointer;
  min-width: 18px;
  text-align: center;
  transition: all 0.2s ease;
}

.add-prediction:hover {
  background: var(--slate);
  transform: scale(1.1);
}

.delete-prediction:hover {
  background: #ff4444;
  transform: scale(1.1);
}

#predictionListInputs {
  background: linear-gradient(to right, var(--dark-navy), var(--slate));
  padding: 3px;
  border-radius: 3px;
  display: none;
  margin-top: 2px;
}

#predictionListInputs label {
  font-size: 7px;
  font-weight: 600;
  color: var(--white);
  margin-right: 2px;
  display: block;
  margin-bottom: 2px;
}

/* Compact Error Container */
#errorContainer {
  min-height: 4px;
  font-size: var(--font-sm);
  color: var(--danger);
  text-align: center;
  font-weight: 600;
  margin: 0;
  padding: 0px 1px;
  line-height: 1;
  max-height: 4px;
  overflow: hidden;
  border-radius: 3px;
}

/* Compact Market Selection */
.market-selection-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
}

.combinedContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

#combinedButton {
  width: 220px;
  height: 30px;
  position: relative;
  background: var(--glass-medium);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-compact);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#evenSection, #oddSection {
  position: absolute;
  height: 100%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-sm);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  width: 50%;
}

#evenSection {
  left: 0;
  background: var(--gradient-success);
  border-radius: 16px 0 0 16px;
}

#oddSection {
  right: 0;
  background: var(--gradient-danger);
  border-radius: 0 16px 16px 0;
}

/* Compact Trading Summary */
#tradingSummary {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  padding: 2px 4px;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-compact);
  max-height: 28px;
  overflow: hidden;
  border-left: 1px solid var(--warning);
  line-height: 1.2;
  display: none;
  position: relative;
}

#tradingSummary span.input-value {
  color: var(--accent-blue);
  font-weight: 700;
  text-shadow: 0 0 2px rgba(59, 130, 246, 0.6);
}

/* Current Prediction Display - Ultra Compact */
#currentPredictionDisplay {
  position: absolute;
  top: 2px;
  right: 4px;
  background: linear-gradient(to right, var(--dark-navy), var(--slate));
  border: 1px solid var(--glass-border);
  color: white;
  height: 8px;
  line-height: 6px;
  margin: 0 !important;
  padding: 0 4px !important;
  text-align: center;
  font-size: var(--font-sm);
  display: none;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 3px;
  z-index: 10;
  white-space: nowrap;
  min-width: 30px;
}

#currentPredictionType {
  margin: 0 !important;
  padding: 0 !important;
  margin-right: 2px;
  color: #00ff00;
  font-weight: bold;
  display: inline;
  vertical-align: top;
}

#currentPredictionNumber {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff;
  font-weight: bold;
  display: inline;
  vertical-align: top;
}

/* Compact Action Panel */
.startbutton {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
  height: 26px;
}

.custom-edgeshape-transition {
  padding: 2px 8px;
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-primary);
  border: 1px solid var(--accent-blue);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-compact);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-edgeshape-transition.clicked {
  background: var(--gradient-success);
}

#pauseButton {
  background: var(--gradient-danger);
  display: none;
}

/* Compact Trading Tables */
.trading-tables {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

#openContractsTable, #tradeHistoryTable {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.2);
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-compact);
  font-size: 8px;
  border-top: 1px solid var(--accent-blue);
}

#openContractsTable {
  max-height: 32px;
  overflow-y: auto;
}

#openContractsTable th, #openContractsTable td {
  padding: 1px 2px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  font-size: var(--font-sm);
}

#openContractsTable th {
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-sm);
  height: 12px;
  font-weight: 700;
}

#tradeHistoryTable {
  height: 100%;
  display: block;
  overflow-y: auto;
}

#tradeHistoryTable thead,
#tradeHistoryTable tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#tradeHistoryTable tbody {
  display: block;
  height: calc(100% - 11px);
  overflow-y: auto;
}

#tradeHistoryTable tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#tradeHistoryTable th, #tradeHistoryTable td {
  padding: 1px !important;
  margin: 1px !important;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

#tradeHistoryTable th {
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-sm);
  height: 10px;
}

#tradeHistoryTable tr {
  margin: 0 !important;
  padding: 0 !important;
}

#tradeHistoryTable tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}

.positive {
  color: var(--success);
  font-weight: 700;
  text-shadow: 0 0 2px rgba(16, 185, 129, 0.6);
}

.negative {
  color: var(--danger);
  font-weight: 700;
  text-shadow: 0 0 2px rgba(239, 68, 68, 0.6);
}

/* Compact Popup System */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(30, 64, 175, 0.1));
  backdrop-filter: blur(20px) saturate(1.2);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12), 
    rgba(255, 255, 255, 0.05)
  );
  backdrop-filter: blur(30px) saturate(1.4);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 8px 16px rgba(30, 64, 175, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 20px;
  max-width: min(350px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
}

.popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--light-blue), var(--accent-blue));
  border-radius: 20px 20px 0 0;
}

#popupMessage {
  color: var(--white);
  font-size: var(--font-xl);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.container1, .container2 {
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.container1 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

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

.container2 button {
  padding: 8px 16px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2) !important;
}

.close-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.close-btn-footer {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent-blue), var(--primary-blue));
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: pointer;
  font-size: var(--font-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 16px rgba(30, 64, 175, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* Enhanced AddToAny Social Buttons */
.a2a_kit {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.a2a_button_whatsapp,
.a2a_button_x,
.a2a_button_twitter,
.a2a_button_facebook,
.share-button {
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Compact Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: var(--glass-bg);
    border-radius: 3px;
  }

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 3px;
  box-shadow: 0 0 3px rgba(59, 130, 246, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
}

/* Mobile Compact Optimization */
@media screen and (max-width: 768px) {
  body {
    font-size: 9px;
    padding: 1px;
  }
  
  .container {
    padding: 1px;
    gap: 1px;
    grid-template-rows: 24px 120px 3px 28px 26px 24px 1fr;
  }
  
  .input-section {
    height: 120px;
  }
  
  .firstline {
    height: 24px;
  }
  
  #balance, #tradesTaken, #netProfit {
    font-size: 6px;
    line-height: 12px;
  }
  
  #netProfit {
    font-size: 14px;
  }
  
  .input-row {
    height: 24px;
  }
  
  #symbolInput, #stake_input, #takeprofit_input, 
  #maximum_losses, #stoploss_input, #barrier {
    font-size: 7px;
    padding: 1px 2px;
  }
  
  .market-selection-panel {
    height: 28px;
  }
  
  #combinedButton {
    width: 200px;
    height: 28px;
  }
  
  #evenSection, #oddSection {
    font-size: 6px;
  }
  
  th, td {
    font-size: var(--font-sm);
    padding: 1px 2px;
  }
  
  th {
    height: 12px;
  }
  
  #tradingSummary {
    font-size: 8px;
    max-height: 26px;
  }
  
  .startbutton {
    height: 24px;
  }
  
  .custom-edgeshape-transition {
    font-size: 7px;
    padding: 2px 6px;
  }
  
  /* Hide set labels on mobile */
  .prediction-set::before {
    display: none;
  }
  
  /* Make OVER/UNDER text smaller on mobile */
  #evenSection, #oddSection {
    font-size: var(--font-xs);
  }
  
  /* Improve checkbox styling on mobile */
  .square-radio {
    font-size: var(--font-sm);
    padding: 1px 3px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--slate) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .square-radio input[type="radio"] {
    width: 8px;
    height: 8px;
    border: 1px solid var(--accent-blue);
    background: var(--glass-light);
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .square-radio input[type="radio"]:checked {
    background: var(--gradient-primary);
    border-color: var(--light-blue);
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.8), inset 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .square-radio input[type="radio"]:checked::after {
    width: 4px;
    height: 4px;
    background: var(--white);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  }
  
  /* Lower currentPredictionDisplay on mobile */
  #currentPredictionDisplay {
    top: 12px;
  }
}

@media screen and (max-width: 480px) {
  .popup {
    padding: 12px;
    max-width: 95vw;
    margin: 5px;
    border-radius: 10px;
  }
  
  #popupMessage {
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .container1, .container2 {
    margin: 8px 0;
    padding: 8px;
    border-radius: 6px;
  }
  
  .close-btn-footer {
    padding: 8px 16px;
    font-size: 11px;
    border-radius: 6px;
  }
  
  .container2 button {
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
  
  .a2a_button_whatsapp,
  .a2a_button_x,
  .a2a_button_twitter,
  .a2a_button_facebook,
  .share-button {
    width: 20px !important;
    height: 20px !important;
  }
  
  .container1 {
    gap: 4px !important;
  }
  
  /* Hide set labels on mobile */
  .prediction-set::before {
    display: none;
  }
  
  /* Improve checkbox styling on mobile */
  .square-radio {
    font-size: var(--font-xs);
    padding: 1px 2px;
    height: 18px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--slate) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .square-radio input[type="radio"] {
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent-blue);
    background: var(--glass-light);
    border-radius: 2px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .square-radio input[type="radio"]:checked {
    background: var(--gradient-primary);
    border-color: var(--light-blue);
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.8), inset 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .square-radio input[type="radio"]:checked::after {
    width: 3px;
    height: 3px;
    background: var(--white);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  }
  
  /* Lower currentPredictionDisplay on mobile */
  #currentPredictionDisplay {
    top: 14px;
  }
}

@media screen and (max-width: 360px) {
  body {
    font-size: 8px;
  }
  
  .container {
    grid-template-rows: 22px 100px 3px 26px 24px 22px 1fr;
  }
  
  .input-section {
    height: 100px;
  }
  
  .firstline {
    height: 22px;
  }

  #balance, #tradesTaken, #netProfit {
    font-size: 6px;
    line-height: 12px;
  }
  
  .input-row {
    height: 22px;
  }
  
  #combinedButton {
    width: 180px;
    height: 26px;
  }
  
  #evenSection, #oddSection {
    font-size: 5px;
  }
  
  .custom-edgeshape-transition {
    font-size: 6px;
    padding: 1px 4px;
  }
  
  /* Hide set labels on mobile */
  .prediction-set::before {
    display: none;
  }
  
  /* Improve checkbox styling on mobile */
  .square-radio {
    font-size: var(--font-xs);
    padding: 0.5px 1px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--slate) 100%);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  .square-radio input[type="radio"] {
    width: 6px;
    height: 6px;
    border: 1px solid var(--accent-blue);
    background: var(--glass-light);
    border-radius: 2px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .square-radio input[type="radio"]:checked {
    background: var(--gradient-primary);
    border-color: var(--light-blue);
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.8), inset 0 1px 1px rgba(0, 0, 0, 0.2);
  }
  
  .square-radio input[type="radio"]:checked::after {
    width: 3px;
    height: 3px;
    background: var(--white);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  }
  
  /* Lower currentPredictionDisplay on mobile */
  #currentPredictionDisplay {
    top: 16px;
  }
}

/* --- Robust Trading Tables Layout --- */
.tables-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  height: 200px;
  margin-top: 2px;
  min-height: 0;
}

.open-contracts-container {
  flex: 0 0 auto;
}

.trade-history-container {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--glass-light);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-compact);
  padding: 1px;
  overflow: hidden;
}

#tradeHistoryTable {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: var(--font-base);
  color: var(--white);
  overflow-y: auto;
  display: block;
  max-height: 200px;
}

#tradeHistoryTable thead, #tradeHistoryTable tbody {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#tradeHistoryTable tbody {
  display: block;
  max-height: 170px;
  overflow-y: auto;
}

#tradeHistoryTable tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

#tradeHistoryTable th, #tradeHistoryTable td {
  padding: 2px 4px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  font-size: var(--font-base);
}

#tradeHistoryTable th {
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-md);
  height: 16px;
}

#tradeHistoryTable tr:nth-child(even) {
  background: rgba(255,255,255,0.03);
}

/* --- Compact Recent Trades Display --- */
.recent-trades {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--glass-light);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  padding: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recent-trades:hover {
  background: var(--glass-medium);
  border-color: var(--glass-border-hover);
}

.recent-trades-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 2px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--glass-border);
}

.recent-title {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.view-all-btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: var(--font-sm);
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1px;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background: var(--gradient-accent);
  transform: scale(1.05);
}

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

.recent-trade-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 1px;
  padding: 2px;
  font-size: var(--font-base);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.recent-trade-item.won {
  border-left: 2px solid var(--success);
}

.recent-trade-item.lost {
  border-left: 2px solid var(--danger);
}

.recent-trade-item > div {
  text-align: center;
  padding: 1px;
  font-weight: 600;
}

.recent-trade-item .profit {
  font-weight: 700;
}

.recent-trade-item.won .profit {
  color: var(--success);
}

.recent-trade-item.lost .profit {
  color: var(--danger);
}

/* --- Trade History Popup --- */
.trade-history-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.trade-history-popup-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  animation: popIn 0.3s ease-out;
}

.trade-history-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--gradient-primary);
  border-bottom: 1px solid var(--glass-border);
}

.trade-history-popup-title {
  color: var(--white);
  font-size: var(--font-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trade-history-close-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.trade-history-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.trade-history-popup-body {
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

#tradeHistoryTablePopup {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  font-size: var(--font-lg);
  color: var(--white);
}

#tradeHistoryTablePopup th, #tradeHistoryTablePopup td {
  padding: 4px 6px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

#tradeHistoryTablePopup th {
  background: var(--gradient-primary);
  color: var(--white);
  font-size: var(--font-lg);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

#tradeHistoryTablePopup tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

#tradeHistoryTablePopup .positive {
  color: var(--success);
  font-weight: 700;
}

#tradeHistoryTablePopup .negative {
  color: var(--danger);
  font-weight: 700;
}

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

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .recent-title {
    font-size: 7px;
  }
  
  .view-all-btn {
    font-size: 5px;
    padding: 1px 3px;
  }
  
  .recent-trade-item {
    font-size: var(--font-sm);
    padding: 2px;
  }
  
  .trade-history-popup-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .trade-history-popup-header {
    padding: 6px 8px;
  }
  
  .trade-history-popup-title {
    font-size: 8px;
  }
  
  .trade-history-popup-body {
    padding: 6px;
    max-height: 70vh;
  }
  
  #tradeHistoryTablePopup {
    font-size: var(--font-base);
  }
  
  #tradeHistoryTablePopup th, #tradeHistoryTablePopup td {
    padding: 3px 4px;
    font-size: var(--font-base);
  }
}

@media screen and (max-width: 480px) {
  .recent-trade-item {
    font-size: var(--font-xs);
    gap: 1px;
    padding: 1px;
  }
  
  .trade-history-popup-content {
    width: 98%;
    max-height: 90vh;
  }
  
  .trade-history-popup-title {
    font-size: 7px;
  }
  
  #tradeHistoryTablePopup {
    font-size: var(--font-sm);
  }
  
  #tradeHistoryTablePopup th, #tradeHistoryTablePopup td {
    padding: 2px 3px;
    font-size: var(--font-sm);
  }
}

/* Profit Animation Styles - Subtle and Quick */
@keyframes profitFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(-40px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(0.9);
  }
}

@keyframes profitGlow {
  0%, 100% {
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
  }
  50% {
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.9), 0 0 25px rgba(16, 185, 129, 0.7);
  }
}

/* Subtle Profit Popup */
.profit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  display: none;
  animation: profitFloat 1.5s ease-out forwards;
}

.profit-popup-content {
  background: rgba(16, 185, 129, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  color: white;
  font-weight: 700;
  font-size: var(--font-2xl);
  white-space: nowrap;
  animation: profitGlow 1.5s ease-in-out;
}

/* Trade History Entry Animations */
@keyframes tradeEntrySlideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
    background: rgba(16, 185, 129, 0.1);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    background: rgba(255, 255, 255, 0.03);
  }
}

@keyframes tradeEntryPulse {
  0% {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--success);
  }
  50% {
    background: rgba(16, 185, 129, 0.2);
    border-left-color: var(--success);
  }
  100% {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--success);
  }
}

@keyframes profitHighlight {
  0% {
    color: var(--success);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
  }
  50% {
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 0 0 15px rgba(16, 185, 129, 0.7);
  }
  100% {
    color: var(--success);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
  }
}

/* Apply animations to new trade entries */
.trade-entry-new {
  animation: tradeEntrySlideIn 0.6s ease-out, tradeEntryPulse 2s ease-in-out 0.6s;
}

.profit-highlight {
  animation: profitHighlight 2s ease-in-out;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .profit-popup-content {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
  }
}

@media screen and (max-width: 480px) {
  .profit-popup-content {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
  }
}

/* Net Profit Popup */
.net-profit-popup {
  position: absolute;
  top: -25px;
  right: -5px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: var(--font-base);
  font-weight: 700;
  font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.net-profit-popup.show {
  animation: netProfitPopupShow 2s ease-out;
}

.net-profit-popup.loss {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes netProfitPopupShow {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
  }
  40% {
    opacity: 1;
    transform: translateY(-8px) scale(1.05);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1);
  }
  80% {
    opacity: 0.4;
    transform: translateY(-12px) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateY(-15px) scale(0.9);
  }
}

/* Override the hidden buttons from universal-popup.css */
.affiliate-btn,
.community-btn {
    display: none !important;
}

/* Hide the container2 div that contains the affiliate and community buttons */
.container2 {
    display: none !important;
}

/* Ensure Font Awesome icons are properly styled */
.fa {
    margin-right: 5px;
}

/* Enhanced social sharing button styling */
.container2 button {
    display: none !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.container2 button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Instagram button styling */
.share-button {
    transition: all 0.3s ease;
    border-radius: 8px !important;
}

.share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
