@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: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Title Animation */
.animate-charcter {
  background-image: linear-gradient(
    -225deg,
    #00d4ff 0%,
    #020024 29%,
    #090979 67%,
    #00d4ff 100%
  );
  background-size: auto auto;
  background-clip: border-box;
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 2s linear infinite;
  display: inline-block;
  font-size: var(--font-base);
  text-align: center;
  font-weight: bolder;
  padding: 1px;
  margin: 0;
  line-height: 16px;
  height: 16px;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

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

.acctbalance, .tradesTaken, .netProfit {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 4px;
  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);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#balance, #tradesTaken, #netProfit {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 16px;
}

/* 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;
}

/* Input Rows */
.input-row {
  display: flex;
  gap: 1px;
  height: 32px;
  margin-bottom: 1px;
  align-items: center;
}

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

/* Compact Input Group */
.input-group {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}

.arrow-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.arrow-button {
  width: 14px;
  height: 12px;
  background: var(--glass-medium);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  cursor: pointer;
  font-size: 6px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: var(--shadow-compact);
}

.arrow-button:hover {
  background: var(--accent-blue);
  box-shadow: var(--shadow-hover);
}

/* Compact Inputs */
#symbolInput, #multiplier, #stake_input, #takeprofit_input, #maximum_losses, #stoploss_input, #barrier_input {
  padding: 3px 5px;
  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: 4px;
  outline: none;
  width: 100%;
  height: 28px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border-left: 1px solid transparent;
}

#symbolInput:focus, #multiplier:focus, #stake_input:focus, #takeprofit_input:focus, 
#maximum_losses:focus, #stoploss_input:focus, #barrier_input: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);
}

#symbolInput option {
  color: var(--dark-navy);
  background: var(--white);
  font-size: 8px;
}

/* Custom Edge Shape */
.custom-edgeshape {
  padding: 3px 5px;
  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: 4px;
  outline: none;
  height: 28px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
  border-left: 1px solid transparent;
}

.custom-edgeshape: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);
}

/* Compact Strategy Options */
.square-radio {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  padding: 1px 2px;
  border-radius: 3px;
  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: 2px;
  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 */
.additional-inputs {
  display: none;
  background: linear-gradient(135deg, var(--dark-navy) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-radius: 3px;
  padding: 1px 2px;
  border: 1px solid var(--slate);
  margin: 1px 0;
  height: 20px;
  align-items: center;
}

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

#martingaleDigitInput, #ticksInput, #durationInput {
  padding: 1px 2px;
  font-size: 7px;
  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: 7px;
  background: var(--dark-navy);
  border: 1px solid var(--slate);
  border-radius: 2px;
  color: var(--white);
  width: 40px;
}

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

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

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

/* Market Selection */
.combinedContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  margin: 1px 0;
}

#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: 15px;
  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: 7px;
  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: 15px 0 0 15px;
}

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

/* Summary Elements */
#summary, #summary2 {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  padding: 2px 4px;
  font-size: 9px;
  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;
  margin: 1px 0;
}

#tradingSummary {
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.3);
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  padding: 2px 4px;
  font-size: 9px;
  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;
  margin: 1px 0;
}

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

/* Action Buttons */
.startbutton {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
  height: 26px;
  margin: 1px 0;
}

.custom-edgeshape-transition {
  padding: 2px 8px;
  font-size: 8px;
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-primary);
  border: 1px solid var(--accent-blue);
  border-radius: 6px;
  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;
}

/* Trading Tables Container */
.trading-tables {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

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

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

#tradeHistoryTable {
  flex: 1;
  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;
}

th, td {
  padding: 0px 1px;
  text-align: center;
  font-size: 6px;
  font-weight: 600;
  border: none;
}

th {
  background: var(--gradient-primary);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  height: 10px;
  font-size: 6px;
  border-bottom: 1px solid var(--glass-border);
}

tbody {
  color: var(--white);
}

tbody 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 Button Styles */
.cancel-contract-btn, .update-contract-btn {
  padding: 1px 4px;
  font-size: 4px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  width: 35px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-contract-btn {
  background: var(--gradient-danger);
  color: var(--white);
}

.update-contract-btn {
  background: var(--gradient-primary);
  color: var(--white);
}

.dropdown-container {
  background: var(--glass-light);
  border: 1px solid var(--glass-border);
  border-radius: 3px;
  padding: 1px;
  margin-top: 1px;
  width: 60px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-container input[type="number"] {
  padding: 1px 2px;
  font-size: 4px;
  width: 100%;
  height: 12px;
  border: 1px solid var(--slate);
  border-radius: 2px;
  background: var(--dark-navy);
  color: var(--white);
}

.send-button {
  padding: 1px 2px;
  font-size: 4px;
  background: var(--gradient-primary);
  color: var(--white);
  border: 1px solid var(--accent-blue);
  border-radius: 2px;
  cursor: pointer;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 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: 16px;
  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: 16px 16px 0 0;
}

#popupMessage {
  color: var(--white);
  font-size: 14px;
  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: 8px;
  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: 8px !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: 8px;
  cursor: pointer;
  font-size: 12px;
  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: 6px !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: 2px;
}

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

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

/* Animations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.popup {
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Mobile Compact Optimization */
@media screen and (max-width: 768px) {
  body {
    font-size: 9px;
    padding: 1px;
  }
  
  .container {
    padding: 1px;
    gap: 1px;
  }
  
  .firstline {
    height: 24px;
  }

  #balance, #tradesTaken, #netProfit {
    font-size: 7px;
    line-height: 14px;
  }
  
  .input-row {
    height: 30px;
  }
  
  #symbolInput, #multiplier, #stake_input, #takeprofit_input, 
  #maximum_losses, #stoploss_input, #barrier_input {
    font-size: var(--font-sm);
    padding: 2px 4px;
    height: 26px;
  }
  
  #combinedButton {
    width: 200px;
    height: 28px;
  }
  
  #evenSection, #oddSection {
    font-size: 6px;
  }
  
  th, td {
    font-size: 5px;
    padding: 0px 1px;
  }
  
  th {
    height: 10px;
  }
  
  #summary, #summary2, #tradingSummary {
    font-size: 8px;
    max-height: 26px;
  }
  
  .startbutton {
    height: 24px;
  }
  
  .custom-edgeshape-transition {
    font-size: 7px;
    padding: 2px 6px;
  }
}

@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;
  }
}

@media screen and (max-width: 360px) {
  body {
    font-size: 8px;
  }
  
  .firstline {
    height: 22px;
  }

  #balance, #tradesTaken, #netProfit {
    font-size: 6px;
    line-height: 12px;
  }
  
  .input-row {
    height: 28px;
  }
  
  #combinedButton {
    width: 180px;
    height: 26px;
  }
  
  #evenSection, #oddSection {
    font-size: 5px;
  }
  
  .custom-edgeshape-transition {
    font-size: 6px;
    padding: 1px 4px;
  }
}

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

/* Hidden form elements */
input[style*="display: none"], 
label[style*="display: none"] {
  display: none !important;
}

/* Additional inputs positioning */
#martingaleInputs, #stakeListInputs, #ticksInputs, #durationInputs {
  margin: 1px 0;
}

/* Hidden inputs */
#stoploss_input, #barrier_input {
  display: none !important;
}

/* Compact Input Group */
.input-group {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
} 