:root {
  /* NeoDark Legion Color Palette */
  --bg: linear-gradient(180deg, #0b0f0c 0%, #050605 100%);
  --panel: rgba(26, 62, 39, 0.15);
  --text: #FFFFFF;
  --muted: #A8A8A8;
  --acc: #27FF87;
  --ok: #27FF87;
  --bad: #ff4d4d;
  --border: rgba(70, 255, 120, 0.1);
  --gradient: linear-gradient(135deg, #27FF87 0%, #2AF090 50%, #1A3E27 100%);
  --gradient-acc: linear-gradient(135deg, #34FF90 0%, #18C968 100%);
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  --glow: 0 0 16px rgba(39, 255, 135, 0.2);
  
  /* Mode Colors */
  --market-color: #27FF87;
  --otc-color: #8A5F2A;
  --ultra-color: #D7FF82;
}
* { box-sizing: border-box; }
html, body { 
  margin:0; 
  padding:0; 
  background:var(--bg) !important; 
  color:var(--text); 
  font:16px/1.5 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif; 
  min-height: 100vh; 
  min-height: -webkit-fill-available;
  height: 100%; 
  overflow-x: hidden; 
  overflow-y: auto; 
  overscroll-behavior: none; 
  -webkit-overflow-scrolling: touch; 
  touch-action: manipulation; 
}
html { background: var(--bg) !important; background-attachment: fixed; }
body { 
  background: var(--bg) !important; 
  background-attachment: fixed; 
  position: relative; 
  overscroll-behavior: none; 
  -webkit-overflow-scrolling: touch;
  /* Support for iOS safe areas */
  padding-top: max(0px, env(safe-area-inset-top));
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
* { background-color: transparent; }
html, body, #root, .app { background: var(--bg) !important; min-height: 100vh !important; }
.container { 
  width: 92%;
  max-width: 420px;
  margin: 0 auto; 
  padding: 20px; 
  padding-top: calc(56px + max(20px, env(safe-area-inset-top)));
  padding-bottom: max(30px, calc(30px + env(safe-area-inset-bottom)));
  padding-left: max(20px, calc(20px + env(safe-area-inset-left)));
  padding-right: max(20px, calc(20px + env(safe-area-inset-right)));
  background: transparent; 
  border-radius: 20px;
  position: relative;
}
/* Top Menu Bar */
/* Top Control Bar: Profile and Language in one row, above everything */
.top-control-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  padding-left: max(20px, calc(20px + env(safe-area-inset-left)));
  padding-right: max(20px, calc(20px + env(safe-area-inset-right)));
  padding-top: max(0px, env(safe-area-inset-top));
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060606 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 60px;
  min-height: 60px;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 320px;
}

/* Market Closed Warning */
.v2-market-warning {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
}

.v2-warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.v2-warning-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v2-warning-text strong {
  color: #ffc107;
  font-size: 14px;
  font-weight: 600;
}

.v2-warning-text span {
  color: #888;
  font-size: 12px;
}

.language-switcher { 
  display: flex;
  justify-content: flex-end;
  margin-right: 24px !important; /* Такое же расстояние от правого края, как слева */
}

/* Legacy top-menu-bar - keep for mode switcher if needed */
.top-menu-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Mode Switcher (for Version 1) */
.mode-switcher {
  display: flex;
  justify-content: flex-end;
}

.mode-switch-container {
  display: flex;
  background: rgba(6, 8, 10, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  backdrop-filter: blur(10px);
  gap: 4px;
}

.mode-switch-btn {
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
}

.mode-switch-btn:hover {
  color: var(--text);
  background: rgba(0, 255, 136, 0.08);
}

.mode-switch-btn.active {
  background: var(--gradient-acc);
  color: #0b0d0f;
  box-shadow: 0 2px 12px rgba(0, 255, 136, 0.25);
}

.mode-switch-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
  flex-shrink: 0;
}

.mode-switch-indicator.available {
  background: var(--acc);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.5);
}

.mode-switch-indicator.closed {
  background: var(--bad);
  box-shadow: 0 0 6px rgba(255, 77, 77, 0.5);
}
.lang-container { display: flex; background: rgba(6,8,10,0.85); border: 1px solid var(--border); border-radius: 12px; padding: 4px; backdrop-filter: blur(10px); }
.lang-btn { padding: 6px 12px; border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border-radius: 8px; min-width: 32px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lang-btn:hover, .lang-btn:active { color: var(--text); background: rgba(0,255,136,0.08); }
.lang-btn.active { 
  background: #2eff90; 
  color: #0c160f; 
}
.card { 
  background: var(--bg-panel); 
  border: 1px solid var(--border-subtle); 
  border-radius: 20px; 
  padding: 24px; 
  position: relative; 
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
}

/* V1 Analysis Screen - Fixed layout to prevent stretching */
#analysisScreen {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 16px !important;
}

#analysisScreen .screen-header {
  flex-shrink: 0;
  margin-bottom: 16px;
}

#analysisScreen .row {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: none;
  overflow-y: visible;
}

#analysisScreen .grid {
  flex: 0 0 auto;
  min-height: 0;
  max-width: 100%;
}

#analysisScreen .history-wrapper {
  flex: 0 0 auto;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 16px;
}

#analysisScreen .history-wrapper::-webkit-scrollbar {
  width: 6px;
}

#analysisScreen .history-wrapper::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#analysisScreen .history-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 3px;
}

/* Account avatar */
.account-badge {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 5000;
  display: none; /* Hide old badge - using account-icon-wrapper instead */
}
.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #0b0d0f;
  background: #0a0d10;
  border: 2px solid rgba(157,223,191,0.6);
  box-shadow: 0 0 18px rgba(0,0,0,0.6);
}
.account-avatar.plan-start {
  border-color: #9ca3af;
}
.account-avatar.plan-standard {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34,197,94,0.35);
}
.account-avatar.plan-pro {
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}
.account-avatar.plan-elite {
  border-color: #eab308;
  box-shadow: 0 0 22px rgba(234,179,8,0.5);
}

/* Elite Profile Badge */
.account-avatar-premium {
  display: flex !important;
  align-items: center !important;
  gap: 1px !important; /* Минимальное расстояние между иконкой и статусом */
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 11px;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 28px;
}

.account-avatar-premium:hover {
  background: rgba(10, 10, 10, 0.95);
  border-color: rgba(0, 255, 100, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 100, 0.25);
}

.account-user-icon {
  width: 28px;
  height: 28px;
  color: #D7FF82; /* Default color, будет переопределен классом плана */
  flex-shrink: 0;
  stroke-width: 1.5px;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(215, 255, 130, 0.3));
  margin-right: 0; /* Убираем отступ справа, gap будет контролировать расстояние */
}

.account-user-icon:hover {
  opacity: 1;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Цвет иконки профиля соответствует цвету статуса для каждого плана */
.account-user-icon.plan-elite {
  color: #D7C27A !important; /* Золотистый, как у ELITE статуса */
  filter: drop-shadow(0 0 8px rgba(215, 194, 122, 0.4));
}

.account-user-icon.plan-elite:hover {
  color: #E5D18A !important;
  filter: drop-shadow(0 0 12px rgba(215, 194, 122, 0.5));
}

.account-user-icon.plan-pro {
  color: #FF6B6B !important; /* Красный, как у PRO статуса */
  filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.4));
}

.account-user-icon.plan-pro:hover {
  color: #FF8E8E !important;
  filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.5));
}

.account-user-icon.plan-standard {
  color: #4DABF7 !important; /* Синий, как у STANDARD статуса */
  filter: drop-shadow(0 0 8px rgba(77, 171, 247, 0.4));
}

.account-user-icon.plan-standard:hover {
  color: #6BB8FF !important;
  filter: drop-shadow(0 0 12px rgba(77, 171, 247, 0.5));
}

.account-user-icon.plan-start {
  color: #51CF66 !important; /* Зеленый, как у START статуса */
  filter: drop-shadow(0 0 8px rgba(81, 207, 102, 0.4));
}

.account-user-icon.plan-start:hover {
  color: #6FE085 !important;
  filter: drop-shadow(0 0 12px rgba(81, 207, 102, 0.5));
}

.account-badge-elite {
  color: #D7FF82 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.7px !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background: var(--bg-card) !important;
  border-radius: 14px !important;
  border: 1px solid rgba(215, 255, 130, 0.3) !important;
  height: 28px !important;
  width: 70px !important;
  opacity: 0.9 !important;
  transition: all 0.3s ease !important;
  box-shadow: 
    0 0 16px rgba(215, 255, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Plan badges with colors */
.account-badge-elite,
.account-badge-pro,
.account-badge-standard,
.account-badge-start {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.7px !important;
  opacity: 0.9 !important;
  margin-left: 8px !important;
  border: 1px solid !important;
  background: rgba(255,255,255,0.02) !important;
}

/* ELITE - Golden */
.account-badge-elite {
  color: #D7C27A !important;
  border-color: rgba(215, 194, 122, 0.4) !important;
}

.account-badge-elite::after {
  content: "";
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23D7C27A' d='M2.005 19h20v2h-20v-2Zm0-14l5 3.5l5-6.5l5 6.5l5-3.5v12h-20V5Zm2 3.841V15h16V8.841l-3.42 2.394l-4.58-5.955l-4.58 5.955l-3.42-2.394Z'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* PRO - Red */
.account-badge-pro {
  color: #FF6B6B !important;
  border-color: rgba(255, 107, 107, 0.4) !important;
}

.account-badge-pro::after {
  content: "";
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF6B6B' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* STANDARD - Blue */
.account-badge-standard {
  color: #4DABF7 !important;
  border-color: rgba(77, 171, 247, 0.4) !important;
}

.account-badge-standard::after {
  content: "";
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%234DABF7' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

/* START - Green */
.account-badge-start {
  color: #51CF66 !important;
  border-color: rgba(81, 207, 102, 0.4) !important;
}

.account-badge-start::after {
  content: "";
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 4px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2351CF66' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

.account-badge-elite:hover {
  opacity: 1;
  border-color: rgba(215, 255, 130, 0.5);
  box-shadow: 
    0 0 20px rgba(215, 255, 130, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Premium Plan Variations */
.account-badge-elite.plan-elite {
  background: var(--bg-card);
  color: #D7FF82;
  border-color: rgba(215, 255, 130, 0.4);
  box-shadow: 
    0 0 16px rgba(215, 255, 130, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.account-badge-elite.plan-elite::before {
  display: none !important;
}

.account-badge-elite.plan-pro {
  background: rgba(221, 226, 228, 0.06);
  color: #DDE2E4;
  border-color: rgba(221, 226, 228, 0.4);
}

.account-badge-elite.plan-pro::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23DDE2E4' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.account-badge-elite.plan-standard {
  background: rgba(156, 168, 175, 0.06);
  color: #9CA8AF;
  border-color: rgba(156, 168, 175, 0.35);
}

.account-badge-elite.plan-standard::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%239CA8AF' d='M12 2l4 8h8l-6 6 2 8-8-4-8 4 2-8-6-6h8l4-8z'/%3E%3C/svg%3E");
}

.account-badge-elite.plan-start {
  background: rgba(140, 140, 140, 0.05);
  color: #8C8C8C;
  border-color: rgba(140, 140, 140, 0.3);
}

.account-badge-elite.plan-start::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle fill='%238C8C8C' cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.account-avatar span {
  pointer-events: none;
}

.account-icon-wrapper * {
  pointer-events: none;
}

.account-icon-wrapper {
  pointer-events: auto !important;
  margin-left: 24px !important; /* Увеличиваем расстояние от левого края */
}
h1 { 
  margin: 0 0 12px; 
  font-size: 27px; 
  font-weight: 800; 
  background: linear-gradient(135deg, #00FF90 0%, #7AFFA1 100%); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
  text-align: center; 
  letter-spacing: 0.5px; 
  position: relative;
}
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
}

.main-logo, .app-icon {
  width: 55px;
  height: 55px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0, 255, 153, 0.18));
}

.main-logo {
  animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.6));
    transform: scale(1);
  }
  50% { 
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.8));
    transform: scale(1.05);
  }
}

/* SVG Logo Bars */
.logo-bar {
  fill: #00ff88;
  transition: all 0.3s ease;
  transform-origin: center bottom;
}

.main-logo .logo-bar {
  animation: barPulse 2s ease-in-out infinite;
}

.main-logo .bar-1 {
  animation-delay: 0s;
  transform-origin: 52px 140px;
}

.main-logo .bar-2 {
  animation-delay: 0.2s;
  transform-origin: 84.5px 160px;
}

.main-logo .bar-3 {
  animation-delay: 0.4s;
  transform-origin: 117px 148px;
}

.main-logo .bar-4 {
  animation-delay: 0.6s;
  transform-origin: 149.5px 124px;
}

@keyframes barPulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(1.15);
    opacity: 0.85;
  }
}

/* Wave animation - sequential pulse */
@keyframes barWave {
  0% {
    transform: scaleY(1);
  }
  25% {
    transform: scaleY(1.3);
  }
  50% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(1);
  }
}

/* Hover effect for logo */
.logo-container:hover .logo-bar {
  fill: #00ff88;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.8));
}

.logo-container:hover .main-logo .logo-bar {
  animation: barWave 1.2s ease-in-out infinite;
}

.logo-container:hover .main-logo .bar-1 { animation-delay: 0s; }
.logo-container:hover .main-logo .bar-2 { animation-delay: 0.15s; }
.logo-container:hover .main-logo .bar-3 { animation-delay: 0.3s; }
.logo-container:hover .main-logo .bar-4 { animation-delay: 0.45s; }

/* Click animation */
.logo-container:active .logo-bar {
  transform: scaleY(0.9);
  transition: transform 0.1s ease;
}
h2 { margin-top: 24px; font-size: 18px; color: var(--muted); }
.row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding: 0 8px;
  box-sizing: border-box;
}

.row::-webkit-scrollbar {
  width: 6px;
}

.row::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.row::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 3px;
}

.row::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.5);
}
label { display:block; margin-bottom:6px; color: var(--muted); }
select, button, input[type=file] {
  width: 100%; padding: 16px 18px; border-radius: 16px; border:1px solid var(--border); background:rgba(5,7,9,0.9); color:var(--text); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 15px;
}
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  appearance: none;
}
select:focus, button:focus { outline: none; border-color: var(--acc); box-shadow: var(--glow); transform: translateY(-1px); }
.btn { display:inline-block; text-align:center; padding:12px 14px; border-radius:12px; border:1px solid var(--border); background:#0f1117; color:var(--text); text-decoration:none; }
button { background: var(--gradient-acc); border:none; color:#0b0d0f; font-weight:700; cursor:pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; }
button:hover::before { left: 100%; }
button:hover { transform: translateY(-3px); box-shadow: var(--glow), 0 10px 30px rgba(0, 255, 136, 0.25); }
button:active { transform: translateY(-1px); }
button.secondary { background:#0a0d10; border:1px solid var(--border); color:var(--text); }
.controls { display:grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.photo-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: rgba(5,7,9,0.7); color: var(--text); font-size: 14px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; width: 100%; margin-bottom: 12px; }
.photo-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: var(--gradient-acc); opacity: 0; transition: opacity 0.3s ease; }
.photo-btn:hover::before { opacity: 0.1; }
.photo-btn:hover { background: rgba(5,7,9,0.9); border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 255, 136, 0.2); }
.photo-btn .icon { font-size: 18px; position: relative; z-index: 1; }
.badge { display:inline-block; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:#0a0d10; color:#94b3a4; font-size:12px; }
.result-container {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 12px;
}

.result-container::-webkit-scrollbar {
  width: 6px;
}

.result-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.result-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 3px;
}

.result-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.5);
}

.result { 
  display:flex; 
  align-items:center; 
  gap:12px; 
  padding:12px 14px; 
  border-radius:12px; 
  background:rgba(6,8,10,0.85); 
  border:1px solid var(--border); 
  margin-bottom:10px; 
  backdrop-filter: blur(10px); 
  transition: all 0.3s ease; 
  position: relative; 
  overflow: hidden;
  flex-shrink: 0;
  min-height: 48px;
}
.result::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-acc); opacity: 0; transition: opacity 0.3s ease; }
.result:hover::before { opacity: 0.6; }
.result.error { background: rgba(255,77,77,0.12); border-color: rgba(255,77,77,0.35); }
.result.warning { background: rgba(0,255,136,0.08); border-color: rgba(0,255,136,0.25); }
.result.loading { background: rgba(0,255,136,0.12); border-color: rgba(0,255,136,0.3); }
.error-text { color: var(--bad); font-weight: 500; }
.warning-text { color: #c2ffd9; font-weight: 500; }
.loading-text { color: var(--acc); font-weight: 600; letter-spacing: 0.2px; }
.loading-spinner { 
  width: 20px; 
  height: 20px; 
  border: 2px solid rgba(0,255,136,0.25); 
  border-top: 2px solid var(--acc); 
  border-radius: 50%; 
  animation: spin 1s linear infinite; 
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.result .pill { padding:6px 10px; border-radius:999px; font-weight:700; }
.pill.up { background: linear-gradient(135deg, rgba(0,255,136,0.18), rgba(0,255,136,0.08)); color: var(--ok); border:1px solid rgba(0,255,136,0.35); box-shadow: 0 0 10px rgba(0,255,136,0.2); }
.pill.down { background: linear-gradient(135deg, rgba(239,68,68,0.2), rgba(239,68,68,0.1)); color: var(--bad); border:1px solid rgba(239,68,68,0.4); box-shadow: 0 0 10px rgba(239,68,68,0.2); }
.preview { margin-top:12px; padding:8px; border:1px dashed var(--border); border-radius:12px; background:rgba(6,8,10,0.85); backdrop-filter: blur(10px); transition: all 0.3s ease; }
.preview:hover { border-color: var(--acc); box-shadow: 0 0 15px rgba(99, 102, 241, 0.1); }
.preview img { max-width: 200px; max-height: 150px; border-radius: 8px; }
.remove-photo-btn { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(255, 77, 77, 0.95); color: white; font-size: 14px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; z-index: 10; }
.remove-photo-btn:hover { background: rgba(239, 68, 68, 1); transform: scale(1.1); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
.remove-photo-btn:active { transform: scale(0.95); }
footer { margin-top: 16px; color: var(--muted); font-size: 12px; }
.grid { display:grid; gap: 12px; }
.history { margin-top: 18px; }
table { width:100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; background: rgba(6,8,10,0.7); backdrop-filter: blur(10px); display: table; }
td, th { padding:12px 16px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; color:var(--text); display: table-cell; }
th { color: #9ddfbf; font-weight:700; background: rgba(10,13,16,0.9); }
tr:hover { background: rgba(0,255,136,0.06); }
tr { display: table-row; }
.empty-history { background: rgba(157,223,191,0.06); display: table-row; }
.empty-text { text-align: center; color: var(--muted); font-style: italic; padding: 24px; font-size: 15px; display: table-cell; }
.note { color: #9ddfbf; font-size: 13px; }
.switch { display:flex; align-items:center; gap: 8px; justify-content:flex-end; color: var(--muted); font-size: 13px; }
.camera-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
/* Анимации появления */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.card { animation: fadeInUp 0.6s ease-out; }
.result { animation: fadeInUp 0.4s ease-out; }
.photo-btn:hover { animation: pulse 0.6s ease-in-out; }

/* Улучшения для мобильных */
@media (max-width:820px) {
  .row { 
    grid-template-columns: 1fr; 
    max-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .row > * {
    width: 100%;
  }
  
  #analysisScreen {
    max-height: calc(100vh - 100px);
    padding: 12px;
  }
  
  #analysisScreen .row {
    gap: 12px;
  }
  
  .result-container {
    max-height: 200px;
  }
  
  .controls { grid-template-columns: 1fr; }
  .card { padding: 16px; margin: 8px; }
  h1 { font-size: 28px; }
  h1::after { display: none; }
  .photo-options { grid-template-columns: 1fr; }
  .photo-btn { padding: 14px; }
  
  .result {
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 13px;
  }
  
  .badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .pill {
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .top-control-bar {
    padding: 0 12px;
  }
  
  .top-control-bar {
    padding: 0 6px;
  }
  
  .account-icon-wrapper {
    max-width: 45%;
    min-width: 70px;
    gap: 4px; /* Reduced gap to move icon closer to status */
  }
  
  .account-avatar-premium {
    padding: 4px 6px;
    gap: 1px !important; /* Минимальное расстояние для мобильной версии */
  }
  
  .account-user-icon {
    width: 16px;
    height: 16px;
  }
  
  .account-badge-elite {
    font-size: 9px !important;
    padding: 0 !important;
    letter-spacing: 0.5px !important;
    height: 22px !important;
    width: 60px !important;
  }
  
  .account-user-icon {
    width: 16px;
    height: 16px;
  }
  
  .account-badge-elite {
    font-size: 8px !important;
    letter-spacing: 0.4px !important;
    height: 20px !important;
    width: 55px !important;
  }
  
  .account-badge-elite::before {
    display: none !important;
  }
}

/* Дополнительные эффекты */
select:hover, .photo-btn:hover, button:hover {
  transform: translateY(-1px);
}

/* Compact Signal Pill */
.v2-signal-pill {
  width: calc(100% - 32px);
  margin: 0 auto 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 16px rgba(78, 255, 151, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.v2-signal-pill:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 6px 20px rgba(78, 255, 151, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(78, 255, 151, 0.3);
}

.v2-pill-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v2-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-pill-mode {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 6px;
}

.v2-pill-pair {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.v2-pill-direction {
  font-size: 11px;
  font-weight: 500;
}

.v2-pill-timer {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-premium);
  font-family: monospace;
}

/* Mode-specific pill colors */
.v2-pill-mode.mode-market {
  background: rgba(78, 255, 151, 0.15);
  color: var(--accent-premium);
}

.v2-pill-mode.mode-otc {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
}

.v2-pill-mode.mode-ultrasignal {
  background: rgba(255, 193, 7, 0.15);
  color: #FFC107;
}

/* Direction colors */
.v2-pill-direction.up {
  color: var(--accent-premium);
}

.v2-pill-direction.down {
  color: #EF4444;
}

/* Premium Back Button */

/* Signal Limits Display */
.v2-signal-limits {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  backdrop-filter: blur(8px);
}

.v2-limits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.v2-limits-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.v2-limits-plan {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(78, 255, 151, 0.1);
  color: var(--accent-premium);
  border: 1px solid rgba(78, 255, 151, 0.2);
}

.v2-limits-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-limit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v2-limit-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.v2-limit-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.v2-limit-value.warning {
  color: #FFC107;
}

.v2-limit-value.danger {
  color: #EF4444;
}

/* PWA Install Banner */
/* PWA Banner Styles */
.pwa-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 10000;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-content {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  position: relative;
}

.banner-close {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.app-info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 12px;
  margin-left: 30px;
}

.app-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.pwa-banner .app-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
  box-shadow: none !important;
}

.app-details {
  flex: 1;
}

.app-name {
  font-weight: 600;
  color: #000;
  font-size: 15px;
  margin-bottom: 2px;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  color: #ffc107;
  font-size: 12px;
}

.rating {
  color: #666;
  font-size: 12px;
  font-weight: 500;
}

.install-btn {
  background: #007AFF;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  min-width: auto;
  width: auto;
}

.install-btn:hover {
  background: #0056CC;
  transform: scale(1.05);
}

/* PWA Install Modal */
.pwa-modal { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  z-index: 2000; 
}
.modal-overlay { 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(5px); 
}
.modal-content { 
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  background: white !important; 
  border-radius: 20px; 
  padding: 24px; 
  max-width: 400px; 
  width: 90%; 
  max-height: 80vh; 
  overflow-y: auto; 
}
.modal-close { 
  position: absolute; 
  top: 16px; 
  right: 16px; 
  background: rgba(0, 0, 0, 0.1); 
  border: none; 
  border-radius: 50%; 
  width: 32px; 
  height: 32px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  font-size: 18px; 
  color: #666; 
}
.modal-content h3 { 
  text-align: center; 
  color: #000; 
  margin-bottom: 24px; 
  font-size: 18px; 
}
.install-steps { 
  margin-bottom: 20px; 
}
.step { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 12px; 
  color: #333; 
}
.step-number { 
  background: var(--gradient-acc); 
  color: white; 
  width: 24px; 
  height: 24px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 12px; 
  font-weight: 600; 
  flex-shrink: 0; 
}
.close-modal-btn { 
  width: 100%; 
  padding: 12px; 
  background: #f3f4f6; 
  border: none; 
  border-radius: 12px; 
  color: #666; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease; 
}
.close-modal-btn:hover { 
  background: #e5e7eb; 
}

/* Улучшенная прокрутка */
::-webkit-scrollbar { width: 0px; display: none; }
::-webkit-scrollbar-track { display: none; }
::-webkit-scrollbar-thumb { display: none; }
::-webkit-scrollbar-thumb:hover { display: none; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* Account Icon */
.account-icon-wrapper {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px; /* Reduced gap to move icon closer to status */
}

.account-icon-wrapper * {
  pointer-events: none;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-acc);
  color: #0b0d0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  border: 3px solid var(--acc);
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
  transition: all 0.3s ease;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.account-icon-wrapper:hover .account-avatar {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.account-icon-wrapper:active .account-avatar {
  transform: scale(0.95);
}
.account-avatar.plan-start { border-color: #9ddfbf; background: linear-gradient(135deg, #9ddfbf, #7bc4a0); }
.account-avatar.plan-standard { border-color: var(--acc); background: var(--gradient-acc); }
.account-avatar.plan-pro { border-color: #4a9eff; background: linear-gradient(135deg, #4a9eff, #2d7fe8); }
.account-avatar.plan-elite { border-color: #ffd700; background: linear-gradient(135deg, #ffd700, #ffb800); }

/* Mode Selection */
.subtitle {
  text-align: center;
  color: #A7ADA9;
  font-size: 13px;
  margin-bottom: 26px;
  margin-top: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Version Selection */
.version-selector {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 50px;
}

.version-option {
  border-radius: 19px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 85px;
  overflow: hidden;
}

/* Legión Scan - Base Version */
.version-scan {
  background: linear-gradient(180deg, #111111 0%, #0D0D0D 100%);
  border: 1px solid rgba(0, 255, 150, 0.15);
  box-shadow: 0 0 10px rgba(0, 255, 150, 0.08);
}

.version-scan .version-label {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
}

.version-scan .version-description {
  color: rgba(168, 168, 168, 0.9);
  font-size: 14px;
  line-height: 1.45;
  max-height: 2.9em;
  overflow: hidden;
}

.version-scan:hover {
  border-color: rgba(0, 255, 150, 0.25);
  box-shadow: 0 0 14px rgba(0, 255, 150, 0.12);
  transform: translateX(2px);
}

.version-scan:active {
  transform: translateX(1px) scale(1.005);
}

/* Legión Core - Premium Version */
.version-core {
  background: linear-gradient(180deg, #082015 0%, #061A11 100%);
  border: 1px solid rgba(0, 255, 150, 0.3);
  box-shadow: 
    0 0 12px rgba(0, 255, 150, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
}

.version-core::after {
  content: 'AI+';
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 9px;
  font-weight: 700;
  color: #7AFFA1;
  background: rgba(8, 32, 21, 0.8);
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 150, 0.4);
  letter-spacing: 0.8px;
  box-shadow: 0 0 6px rgba(0, 255, 150, 0.2);
}

.version-core .version-label {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
}

.version-core .version-description {
  color: rgba(168, 168, 168, 0.85);
  font-size: 14px;
  line-height: 1.45;
  max-height: 2.9em;
  overflow: hidden;
}

.version-core:hover {
  border-color: rgba(0, 255, 150, 0.45);
  box-shadow: 
    0 0 16px rgba(0, 255, 150, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.version-core:active {
  transform: translateX(1px) scale(1.005);
}

.version-core.version-disabled,
.version-option.version-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: auto; /* Allow click to show modal */
  filter: grayscale(0.5);
}

.version-core.version-disabled:hover,
.version-option.version-disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.version-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 12px;
}

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

.version-icon {
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.version-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.version-scan .version-icon {
  opacity: 0.8;
}

.version-icon {
  width: 24px;
  height: 24px;
  margin-right: 14px;
  flex-shrink: 0;
}

.version-scan .version-icon-svg {
  color: #7AFFA1;
  opacity: 0.8;
}

.version-core .version-icon {
  opacity: 1;
}

.version-core .version-icon-svg {
  color: #7AFFA1;
  stroke: #7AFFA1;
  opacity: 0.9;
}

.version-scan:hover .version-icon-svg {
  color: #00FF90;
  opacity: 1;
}

.version-core:hover .version-icon-svg {
  color: #00FF90;
  stroke: #00FF90;
  opacity: 1;
}

.version-label {
  letter-spacing: -0.3px;
}

.version-description {
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}

.version-arrow {
  width: 20px;
  height: 20px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.version-scan .version-arrow {
  color: rgba(168, 168, 168, 0.5);
}

.version-core .version-arrow {
  color: rgba(168, 168, 168, 0.5);
}

.version-option:hover .version-arrow {
  transform: translateX(3px);
  color: rgba(168, 168, 168, 0.8);
}

.version-core:hover .version-arrow {
  color: #7AFFA1;
}

/* Click animation overlay */
.version-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.15s ease;
  pointer-events: none;
  border-radius: 16px;
}

.version-option:active::before {
  background: rgba(0, 0, 0, 0.2);
}

.version-option:active {
  transform: scale(1.02);
}

.mode-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.mode-option {
  background: rgba(6, 8, 10, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 80px;
}
.mode-option:hover {
  border-color: var(--acc);
  background: rgba(6, 8, 10, 0.85);
  transform: translateX(4px);
}
.mode-option:active {
  transform: translateX(2px);
}
.mode-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 77, 77, 0.3);
}
.mode-option:disabled:hover {
  transform: none;
  border-color: rgba(255, 77, 77, 0.3);
  background: rgba(6, 8, 10, 0.6);
}
.mode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mode-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mode-label {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.3px;
}
.mode-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  flex-shrink: 0;
}
.mode-indicator.available {
  background: var(--acc);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}
.mode-indicator.closed {
  background: var(--bad);
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
}
.mode-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}
.mode-arrow {
  font-size: 20px;
  color: var(--muted);
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.mode-option:hover .mode-arrow {
  color: var(--acc);
  transform: translateX(4px);
}
.mode-option:disabled .mode-arrow {
  color: var(--muted);
  transform: none;
}
.market-status {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}
.status-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.status-text.closed {
  color: var(--bad);
}
.status-time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

/* Screen Header */
.screen-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.back-btn:hover {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.1);
  transform: translateX(-4px);
  box-shadow: 
    0 4px 12px rgba(0, 255, 136, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.back-btn:active {
  transform: translateX(-2px);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: block;
  flex-shrink: 0;
}

.back-btn svg path {
  fill: currentColor;
}

.back-btn:hover svg {
  color: #00ff88;
  transform: translateX(-2px);
}
.screen-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-acc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 820px) {
  .top-control-bar {
    padding: 8px 12px;
    height: 52px;
  }
  
  .account-icon-wrapper {
    width: 36px;
    height: 36px;
  }
  .account-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .lang-btn {
    padding: 5px 10px;
    font-size: 11px;
    min-width: 28px;
  }
  
  .container {
    padding: 12px;
    margin-top: 60px;
  }
  
  .card {
    padding: 16px;
    border-radius: 16px;
  }
  
  .top-menu-bar {
    top: 12px;
    right: 12px;
    gap: 8px;
  }
  
  .mode-switch-btn {
    padding: 5px 12px;
    font-size: 11px;
    min-width: 50px;
  }
  
  .mode-switch-indicator {
    width: 5px;
    height: 5px;
  }
  .version-selector,
  .mode-selector {
    gap: 10px;
  }
  .version-option,
  .mode-option {
    padding: 18px 20px;
    min-height: 72px;
  }
  .version-label,
  .mode-label {
    font-size: 17px;
  }
  .version-description,
  .mode-description {
    font-size: 12px;
  }
}

/* Profile Modal */
.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.profile-modal-content {
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(20, 25, 30, 0.95) 100%);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 255, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease;
  position: relative;
}

.profile-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 50%, transparent 100%);
  pointer-events: none;
}

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

.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 0 32px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.profile-modal-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.profile-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.profile-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--text-primary);
  transform: scale(1.05);
}

.profile-modal-close svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.profile-modal-close svg path {
  fill: currentColor;
}

.profile-content {
  padding: 0 32px 32px 32px;
  overflow-y: auto;
  max-height: calc(90vh - 120px);
}

/* 2. Avatar + User Block */
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 36px;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  border: 2px solid rgba(0, 255, 136, 0.2);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
  position: relative;
}

.profile-avatar-large.plan-start {
  border-color: #9ddfbf;
  background: linear-gradient(135deg, #9ddfbf, #7bc4a0);
}

.profile-avatar-large.plan-standard {
  border-color: var(--acc);
  background: var(--gradient-acc);
}

.profile-avatar-large.plan-pro {
  border-color: #4a9eff;
  background: linear-gradient(135deg, #4a9eff, #2d7fe8);
}

.profile-avatar-large.plan-elite {
  border-color: #ffd700;
  background: linear-gradient(135deg, #ffd700, #ffb800);
}

.profile-name-section {
  flex: 1;
}

.profile-full-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.profile-short-name {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

.profile-section {
  margin-bottom: 20px;
}

.profile-stats-section {
  margin-bottom: 20px;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.profile-stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stat-item.stat-win {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(0, 255, 136, 0.05);
}

.profile-stat-item.stat-loss {
  border-color: rgba(255, 77, 77, 0.4);
  background: rgba(255, 77, 77, 0.05);
}

.profile-stat-item.stat-wr {
  grid-column: 1 / -1;
  border-color: rgba(255, 200, 0, 0.4);
  background: rgba(255, 200, 0, 0.05);
}

.profile-stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.profile-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.profile-stat-item.stat-win .profile-stat-value {
  color: var(--acc);
}

.profile-stat-item.stat-loss .profile-stat-value {
  color: var(--bad);
}

.profile-stat-item.stat-wr .profile-stat-value {
  color: #ffc800;
}

.profile-calibration-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
}

.calibration-warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.calibration-warning-text {
  font-size: 12px;
  color: #ffc107;
  line-height: 1.4;
  flex: 1;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-edit-btn,
.profile-edit-plan-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--acc);
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-edit-btn:hover,
.profile-edit-plan-btn:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--acc);
}

.profile-plan-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--acc);
  color: var(--acc);
  font-weight: 600;
  font-size: 14px;
  text-transform: capitalize;
}

.profile-plan-badge.plan-start {
  background: rgba(157, 223, 191, 0.1);
  border-color: #9ddfbf;
  color: #9ddfbf;
}

.profile-plan-badge.plan-pro {
  background: rgba(74, 158, 255, 0.1);
  border-color: #4a9eff;
  color: #4a9eff;
}

.profile-plan-badge.plan-elite {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  color: #ffd700;
}

.profile-data-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.profile-data-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.profile-data-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form-group label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.profile-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s ease;
}

.profile-input:focus {
  outline: none;
  border-color: var(--acc);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.profile-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.profile-cancel-btn,
.profile-save-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.profile-cancel-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.profile-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.profile-save-btn {
  background: var(--gradient-acc);
  color: #0b0d0f;
  font-weight: 700;
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

/* Info Modal */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.info-modal-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
}

.info-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.info-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.info-modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.info-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.info-modal-body {
  padding: 24px;
}

.info-modal-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  text-align: justify;
}

@media (max-width: 820px) {
  .info-modal {
    padding: 12px;
  }
  
  .info-modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .info-modal-header {
    padding: 16px;
  }
  
  .info-modal-header h2 {
    font-size: 18px;
  }
  
  .info-modal-body {
    padding: 16px;
  }
  
  .info-modal-body p {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .v2-info-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 820px) {
  .profile-modal {
    padding: 12px;
  }
  
  .profile-modal-content {
    max-height: 95vh;
    max-width: 95vw;
  }
  
  .profile-modal-header {
    padding: 24px 24px 0 24px;
    margin-bottom: 24px;
  }
  
  .profile-modal-title {
    font-size: 24px;
  }
  
  .profile-content {
    padding: 0 24px 24px 24px;
  }
  
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .profile-avatar-large {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
  
  .profile-full-name {
    font-size: 22px;
  }
  
  .profile-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .profile-stat-item.stat-winrate {
    grid-column: 1;
  }
  
  .profile-stats-card,
  .profile-plan-card,
  .profile-data-card {
    padding: 20px;
    margin-bottom: 24px;
  }
  
  .plan-upgrade-modal {
    padding: 12px;
  }
  
  .plan-upgrade-modal-content {
    max-width: 95vw;
  }
  
  .plan-upgrade-header {
    padding: 24px 24px 20px 24px;
  }
  
  .plan-upgrade-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }
  
  .plan-upgrade-title {
    font-size: 20px;
  }
  
  .plan-upgrade-body {
    padding: 20px 24px;
  }
  
  .plan-upgrade-actions {
    padding: 0 24px 24px 24px;
    flex-direction: column;
  }
  
  .plan-upgrade-btn {
    padding: 14px 20px;
  }
  
  .profile-full-name {
    font-size: 20px;
  }
  
  .profile-stats-grid {
    gap: 8px;
  }
  
  .profile-stat-item {
    padding: 10px;
  }
  
  .profile-stat-label {
    font-size: 10px;
  }
  
  .profile-stat-value {
    font-size: 20px;
  }
  
  .profile-calibration-warning {
    padding: 10px;
    gap: 8px;
  }
  
  .calibration-warning-icon {
    font-size: 20px;
  }
  
  .calibration-warning-text {
    font-size: 11px;
  }
  
  .profile-section {
    margin-bottom: 16px;
  }
}

/* Version 2 Styles */
.v2-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .v2-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 0 8px;
  }
  
  .v2-chart-section {
    min-height: 250px;
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }
  
  .v2-signal-section {
    order: 2;
    width: 100%;
  }
  
  #v2TvChart {
    height: 250px !important;
    width: 100% !important;
  }
  
  .v2-chart-container {
    width: 100%;
    overflow: hidden;
  }
  
  .v2-info-card {
    padding: 10px;
    margin-bottom: 6px;
  }
  
  .v2-card-label {
    font-size: 10px;
    margin-bottom: 3px;
  }
  
  .v2-card-value {
    font-size: 14px;
    word-break: break-word;
  }
  
  .v2-timer-section {
    padding: 10px;
    margin-top: 6px;
  }
  
  .v2-timer-in-card {
    padding: 8px;
  }
  
  .v2-timer-display {
    font-size: 20px;
  }
  
  .v2-timer-label {
    font-size: 10px;
  }
  
  .v2-ai-comment {
    font-size: 12px;
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  .v2-pair-mode {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .v2-layout {
    gap: 8px;
    margin-top: 8px;
    padding: 0 6px;
  }
  
  .v2-chart-section {
    min-height: 200px;
    margin-bottom: 6px;
  }
  
  #v2TvChart {
    height: 200px !important;
    width: 100% !important;
  }
  
  .v2-signal-card {
    gap: 6px;
  }
  
  .v2-info-card {
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 8px;
  }
  
  .v2-card-label {
    font-size: 9px;
    margin-bottom: 2px;
  }
  
  .v2-card-value {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .v2-direction-icon {
    font-size: 18px;
    margin-right: 4px;
  }
  
  .v2-timer-section {
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
  }
  
  .v2-timer-in-card {
    padding: 6px;
  }
  
  .v2-timer-display {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .v2-timer-label {
    font-size: 9px;
    margin-bottom: 3px;
  }
  
  .v2-timer-progress {
    height: 2px;
  }
  
  .v2-ai-comment {
    font-size: 11px;
    line-height: 1.3;
  }
  
  .v2-pair-mode {
    font-size: 9px;
    padding: 2px 4px;
  }
  
  .v2-signal-section {
    gap: 6px;
  }
  
  .v2-result-status {
    padding: 16px;
    min-height: 60px;
  }
  
  .v2-result-badge-text {
    font-size: 32px;
    letter-spacing: 2px;
  }
  
  .v2-result-actions {
    padding: 12px 0 0 0;
    gap: 8px;
  }
  
  .v2-action-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  .container {
    padding: 8px;
    padding-top: 60px;
    margin: 0 auto;
  }
  
  .card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .screen-header {
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .back-btn {
    width: 40px;
    height: 40px;
  }
  
  .back-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .screen-header h2 {
    font-size: 18px;
  }
  
  .v2-mode-selection {
    padding: 12px;
    gap: 12px;
  }
  
  .v2-mode-header {
    margin-bottom: 4px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .v2-back-btn {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }
  
  .v2-back-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .v2-info-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .v2-mode-buttons {
    gap: 6px;
    width: 100%;
  }
  
  .v2-mode-btn {
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
  }
  
  .v2-timeframe-section {
    width: 100%;
  }
  
  .v2-timeframe-buttons {
    gap: 4px;
    width: 100%;
  }
  
  .v2-timeframe-btn {
    min-width: 0;
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .v2-get-signal-main-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font-size: 15px;
  }
  
  .v2-market-warning {
    padding: 8px 12px;
    margin-bottom: 12px;
    gap: 8px;
  }
  
  .v2-warning-icon {
    font-size: 20px;
  }
  
  .v2-warning-text strong {
    font-size: 12px;
  }
  
  .v2-warning-text span {
    font-size: 10px;
  }
  
  .ultra-info-content {
    padding: 16px;
  }
  
  .ultra-limit-counter {
    padding: 8px;
    margin-top: 12px;
  }
  
  .ultra-limit-counter div:first-child {
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  .ultra-limit-counter div:last-child {
    font-size: 20px;
  }
}

.v2-chart-section {
  min-height: 50px;
}

.v2-chart-container {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.v2-signal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.v2-controls {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.v2-control-group {
  margin-bottom: 16px;
}

.v2-control-group:last-child {
  margin-bottom: 0;
}

.v2-control-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.v2-select {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v2-select:hover {
  border-color: var(--acc);
  background: rgba(255, 255, 255, 0.08);
}

.v2-select:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.v2-get-signal-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient-acc);
  color: #0b0d0f;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.v2-get-signal-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.v2-get-signal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.v2-signal-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Info Cards */
.v2-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

/* Mode Badge Styling in Signal */
.v2-pair-mode {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  margin-left: 8px;
}

.v2-pair-mode.mode-market {
  background: rgba(78, 255, 151, 0.15);
  color: var(--accent-premium);
}

.v2-pair-mode.mode-otc {
  background: rgba(205, 133, 63, 0.15);
  color: #CD853F;
}

.v2-pair-mode.mode-ultrasignal {
  background: rgba(215, 255, 130, 0.15);
  color: #D7FF82;
}

/* Premium AI Commentary Card */
.v2-ai-comment-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 36, 25, 0.8) 100%);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 16px 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(78, 255, 151, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.v2-ai-comment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-premium) 50%, transparent 100%);
  opacity: 0.6;
}

.v2-ai-comment-card .v2-card-label {
  color: var(--accent-premium) !important;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-ai-brain-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.8;
  color: var(--accent-premium);
}

.v2-ai-comment {
  color: var(--text-primary) !important;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.v2-ai-comment-card::after {
  content: "Generated by Legión Core AI";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

.v2-card-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.v2-card-value {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.v2-pair-mode {
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(0, 255, 136, 0.2);
  color: var(--acc);
  border-radius: 4px;
  font-weight: 600;
}

.v2-pair-mode.otc {
  background: rgba(255, 140, 0, 0.2);
  color: #ff8c00;
}

.v2-direction-icon {
  font-size: 24px;
  font-weight: 700;
}

.v2-direction-icon.up {
  color: var(--ok);
}

.v2-direction-icon.down {
  color: var(--bad);
}

.v2-ai-comment-card {
  background: rgba(0, 255, 136, 0.05);
  border-color: rgba(0, 255, 136, 0.2);
}

.v2-ai-comment {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

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

.v2-signal-pair {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.v2-signal-direction {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.v2-direction-up {
  background: rgba(0, 255, 136, 0.2);
  color: var(--ok);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

.v2-direction-down {
  background: rgba(255, 77, 77, 0.2);
  color: var(--bad);
  border: 1px solid rgba(255, 77, 77, 0.4);
}

.v2-signal-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

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

.v2-info-label {
  color: var(--muted);
  font-size: 14px;
}

.v2-info-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

/* Open Time Card with Timer inside */
.v2-open-time-card {
  padding-bottom: 20px;
}

.v2-timer-in-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  margin-top: 8px;
}

.v2-timer-section {
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.v2-timer-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.v2-timer-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--acc);
  text-align: center;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.v2-timer-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.v2-timer-progress-bar {
  height: 100%;
  background: var(--gradient-acc);
  transition: width 1s linear;
  border-radius: 2px;
}

.v2-ai-info {
  padding: 16px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 8px;
}

.v2-ai-label {
  color: var(--acc);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v2-ai-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.v2-result-card {
  width: 100%;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
}

.v2-result-status {
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.v2-result-win {
  background: rgba(0, 255, 136, 0.2);
  border: 1px solid rgba(0, 255, 136, 0.5);
}

.v2-result-loss {
  background: rgba(139, 0, 0, 0.4);
  border: 1px solid rgba(255, 77, 77, 0.6);
}

.v2-result-text {
  display: none; /* Hide text, show only WIN/LOSS badge */
}

/* WIN/LOSS Badge with rotating stripes - full width */
.v2-result-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.v2-result-badge-win {
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 136, 0.4) 50%, rgba(0, 255, 136, 0.6) 100%);
}

.v2-result-badge-loss {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 77, 77, 0.4) 50%, rgba(255, 77, 77, 0.7) 100%);
}

.v2-result-badge-text {
  font-size: 42px;
  font-weight: 900;
  z-index: 2;
  position: relative;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  letter-spacing: 4px;
}

.v2-result-badge-win .v2-result-badge-text {
  color: #00ff88;
}

.v2-result-badge-loss .v2-result-badge-text {
  color: #ff4d4d;
}

.v2-result-badge-stripes {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
  animation: v2-stripes-rotate 5s linear infinite;
  z-index: 1;
}

.v2-result-badge-win .v2-result-badge-stripes {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 255, 136, 0.2) 10px,
    rgba(0, 255, 136, 0.2) 20px
  );
}

.v2-result-badge-loss .v2-result-badge-stripes {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 77, 77, 0.2) 10px,
    rgba(255, 77, 77, 0.2) 20px
  );
}

@keyframes v2-stripes-rotate {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Currency Flags */
.v2-pair-flags {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.v2-flag {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

.v2-pair-name-clickable {
  margin: 0 8px;
}

.v2-result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 0 0;
  width: 100%;
}

.v2-action-btn {
  padding: 14px;
  background: var(--gradient-acc);
  color: #0b0d0f;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.v2-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.v2-override-btn {
  background: rgba(255, 77, 77, 0.2);
  color: var(--bad);
  border: 1px solid rgba(255, 77, 77, 0.4);
}

.v2-override-btn:hover {
  background: rgba(255, 77, 77, 0.3);
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

/* V2 Mode Selection Screen Styles */
.v2-mode-selection {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.v2-mode-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Back Button */
.v2-back-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 16px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.v2-back-btn:hover {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 36, 25, 0.8) 100%);
  border-color: var(--border-accent);
  color: var(--accent-premium);
  box-shadow: 
    0 4px 16px rgba(78, 255, 151, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.v2-back-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(78, 255, 151, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.v2-back-btn svg {
  transition: all 0.3s ease;
  color: inherit;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  opacity: 0.8;
}

.v2-mode-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.v2-mode-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 16px 0;
}

.v2-info-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 16px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.v2-info-btn::before {
  content: "ℹ";
  margin-right: 6px;
  font-size: 14px;
  opacity: 0.8;
}

.v2-info-btn:hover {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 36, 25, 0.8) 100%);
  border-color: var(--border-accent);
  color: var(--accent-premium);
  box-shadow: 
    0 4px 16px rgba(78, 255, 151, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.v2-info-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(78, 255, 151, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
}

.v2-info-btn:active {
  transform: translateY(0);
}

/* Mode Buttons */
.v2-mode-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: nowrap;
  flex-direction: row;
}

.v2-mode-btn {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid rgba(39, 255, 135, 0.15);
  background: rgba(12, 15, 12, 0.6);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  width: 100%;
  height: auto;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

/* OTC Mode - Bright Blue Glow */
.v2-mode-btn[data-mode="otc"].active {
  background: var(--bg-card);
  border-color: rgba(59, 130, 246, 0.6);
  color: #60A5FA;
  box-shadow: 
    0 0 25px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Market Mode - Bright Green Glow */
.v2-mode-btn[data-mode="market"].active {
  background: var(--bg-card);
  border-color: rgba(78, 255, 151, 0.6);
  color: #50FF95;
  box-shadow: 
    0 0 25px rgba(78, 255, 151, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ultra Mode - Bright Golden Glow */
.v2-mode-btn[data-mode="ultrasignal"].active {
  background: var(--bg-card);
  border-color: rgba(255, 193, 7, 0.6);
  color: #FFDC5D;
  box-shadow: 
    0 0 25px rgba(255, 193, 7, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Market closed state - visual indication only, still clickable */
.v2-mode-btn.market-closed {
  background: rgba(255, 100, 0, 0.1);
  border-color: rgba(255, 100, 0, 0.3);
  color: rgba(255, 150, 100, 0.8);
}

.v2-mode-btn.market-closed:hover {
  background: rgba(255, 100, 0, 0.15);
  border-color: rgba(255, 100, 0, 0.4);
  color: rgba(255, 150, 100, 0.9);
}

.v2-mode-btn.market-closed.active {
  background: rgba(255, 100, 0, 0.2);
  border-color: rgba(255, 100, 0, 0.5);
  color: #FFB366;
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.3);
}

/* Market Closed Section */
.v2-market-closed-section {
  width: 100%;
  margin-top: 20px;
}

.market-closed-content {
  background: rgba(255, 100, 0, 0.05);
  border: 1px solid rgba(255, 100, 0, 0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.market-closed-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.market-closed-title {
  color: #FFB366;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.market-closed-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin: 0 0 24px 0;
}

.market-closed-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.market-closed-schedule h4 {
  color: #FFB366;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.market-closed-schedule ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.market-closed-schedule li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.market-closed-schedule li::before {
  content: '•';
  color: #FFB366;
  position: absolute;
  left: 0;
}

.market-closed-suggestion {
  background: rgba(255, 100, 0, 0.1);
  border: 1px solid rgba(255, 100, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.market-closed-suggestion p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0 0 12px 0;
}

.market-closed-suggestion p:last-of-type {
  margin-bottom: 16px;
}

.switch-to-otc-btn {
  background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60A5FA;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.switch-to-otc-btn:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

/* ULTRA OTC Only Message */
.v2-ultra-otc-message {
  width: 100%;
  margin-top: 20px;
}

.ultra-otc-content {
  background: rgba(255, 193, 7, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.ultra-otc-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.ultra-otc-subtext {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin: 0 0 16px 0;
}

/* Hide signal button when market closed section is visible */
.v2-market-closed-section:not([style*="display: none"]) ~ .v2-get-signal-main-btn,
.v2-ultra-closed-section:not([style*="display: none"]) ~ .v2-get-signal-main-btn {
  display: none !important;
}

/* ULTRA Market Closed Section */
.v2-ultra-closed-section {
  width: 100%;
  margin-top: 20px;
}

.ultra-closed-content {
  background: rgba(255, 193, 7, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
}

.ultra-closed-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.ultra-closed-title {
  color: #FFDC5D;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.ultra-closed-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin: 0 0 24px 0;
}

.ultra-closed-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.ultra-closed-explanation {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.ultra-closed-explanation p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0 0 12px 0;
}

.ultra-closed-explanation p:last-child {
  margin-bottom: 0;
}

.ultra-closed-suggestion {
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.ultra-closed-suggestion p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin: 0 0 12px 0;
}

.ultra-closed-suggestion p:last-of-type {
  margin-bottom: 16px;
}

/* Signal Limits Display */
.v2-signal-limits-display {
  width: 100%;
  margin: 20px 0;
}

.signal-limits-container {
  background: rgba(12, 15, 12, 0.6);
  border: 1px solid rgba(39, 255, 135, 0.15);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.signal-limits-header {
  text-align: center;
  margin-bottom: 16px;
}

.signal-limits-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-limits-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signal-limit-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(16, 20, 16, 0.4);
  border: 1px solid rgba(39, 255, 135, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.signal-limit-item:hover {
  border-color: rgba(39, 255, 135, 0.2);
  background: rgba(16, 20, 16, 0.6);
}

.signal-limit-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-limit-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
}

.signal-limit-used {
  color: #27FF87;
}

.signal-limit-separator {
  color: rgba(255, 255, 255, 0.5);
}

.signal-limit-total {
  color: rgba(255, 255, 255, 0.7);
}

.signal-limit-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.signal-limit-progress {
  height: 100%;
  background: linear-gradient(90deg, #27FF87 0%, #00CC6A 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Mode-specific styling */
.signal-limit-item[id="marketLimitItem"] .signal-limit-used {
  color: #50FF95;
}

.signal-limit-item[id="marketLimitItem"] .signal-limit-progress {
  background: linear-gradient(90deg, #50FF95 0%, #27FF87 100%);
}

.signal-limit-item[id="otcLimitItem"] .signal-limit-used {
  color: #60A5FA;
}

.signal-limit-item[id="otcLimitItem"] .signal-limit-progress {
  background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
}

.signal-limit-item[id="ultraLimitItem"] .signal-limit-used {
  color: #FFDC5D;
}

.signal-limit-item[id="ultraLimitItem"] .signal-limit-progress {
  background: linear-gradient(90deg, #FFDC5D 0%, #FFC107 100%);
}

/* Warning states */
.signal-limit-item.limit-warning .signal-limit-used {
  color: #FF9500;
}

.signal-limit-item.limit-warning .signal-limit-progress {
  background: linear-gradient(90deg, #FF9500 0%, #FF7A00 100%);
}

.signal-limit-item.limit-exceeded .signal-limit-used {
  color: #FF4444;
}

.signal-limit-item.limit-exceeded .signal-limit-progress {
  background: linear-gradient(90deg, #FF4444 0%, #CC0000 100%);
}

@media (max-width: 768px) {
  .signal-limits-container {
    padding: 16px;
  }
  
  .signal-limits-grid {
    gap: 10px;
  }
  
  .signal-limit-item {
    padding: 10px;
  }
  
  .signal-limit-count {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .market-closed-content {
    padding: 20px;
  }
  
  .market-closed-icon {
    font-size: 40px;
  }
  
  .market-closed-title {
    font-size: 20px;
  }
  
  .market-closed-info {
    gap: 16px;
  }
}



.v2-mode-btn:hover:not(.active) {
  background: rgba(16, 20, 16, 0.7);
  border-color: rgba(39, 255, 135, 0.25);
  color: rgba(255, 255, 255, 0.95);
  transform: scale(1.02);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Timeframe Section */
.v2-timeframe-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: center;
  margin-bottom: 38px;
}

.v2-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.v2-toggle-buttons {
  display: flex;
  gap: 12px;
}

.v2-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.v2-toggle-btn.active {
  background: rgba(255, 77, 77, 0.3);
  border-color: rgba(255, 77, 77, 0.6);
  color: var(--bad);
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.2);
}

.v2-toggle-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--acc);
}

.v2-toggle-icon {
  font-size: 18px;
}

.v2-timeframe-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  justify-content: center;
}

.v2-timeframe-btn {
  flex: 1;
  min-width: 82px;
  max-width: 92px;
  height: 42px;
  padding: 0;
  background: #121712;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-timeframe-btn.active {
  background: #121712;
  border: 1px solid #2eff90;
  color: #2eff90;
  box-shadow: inset 0 0 10px rgba(46, 255, 144, 0.25);
}

.v2-timeframe-btn:hover:not(.active) {
  background: #151a15;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

/* Graph Container */
.v2-mode-graph-container {
  width: 100%;
  min-height: 300px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Get Signal Main Button */
.v2-get-signal-main-btn {
  width: 100%;
  max-width: 400px;
  padding: 18px;
  background: var(--gradient-acc);
  color: #0b0d0f;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
  align-self: center;
}

.v2-get-signal-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.v2-get-signal-main-btn:active {
  transform: translateY(0);
}

.v2-get-signal-main-btn.loading {
  cursor: not-allowed;
  opacity: 0.8;
  pointer-events: none;
}

.v2-get-signal-main-btn.loading:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
}

/* Active Signals Section */
.v2-active-signals-section {
  width: 100%;
  max-width: 400px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-active-signals-header {
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.v2-active-signals-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.v2-active-signals-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-active-signal-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.v2-active-signal-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.1);
}

.v2-active-signal-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.v2-active-signal-mode {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.v2-active-signal-mode.mode-market {
  background: rgba(39, 255, 135, 0.2);
  color: var(--market-color);
  border: 1px solid rgba(39, 255, 135, 0.3);
}

.v2-active-signal-mode.mode-otc {
  background: rgba(138, 95, 42, 0.2);
  color: var(--otc-color);
  border: 1px solid rgba(138, 95, 42, 0.3);
}

.v2-active-signal-mode.mode-ultrasignal {
  background: rgba(215, 255, 130, 0.2);
  color: var(--ultra-color);
  border: 1px solid rgba(215, 255, 130, 0.3);
}

.v2-active-signal-pair {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-active-signal-direction {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.v2-active-signal-direction.up {
  color: var(--market-color);
}

.v2-active-signal-direction.down {
  color: var(--bad);
}

.v2-active-signal-timer {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 60px;
  text-align: center;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(11, 13, 15, 0.3);
  border-top-color: #0b0d0f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

.loading-text {
  vertical-align: middle;
}

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

@media (max-width: 768px) {
  .v2-mode-title {
    font-size: 24px;
  }
  
  .v2-mode-buttons {
    gap: 8px;
  }
  
  .v2-mode-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .v2-timeframe-buttons {
    gap: 6px;
  }
  
  .v2-timeframe-btn {
    min-width: 70px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ULTRA MODE Screen Styles */
.ultra-mode-container {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 600px;
}

.ultra-mode-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(255, 140, 0, 0.1) 50%, rgba(255, 200, 0, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 200, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.ultra-mode-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 77, 77, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 200, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.ultra-mode-content > * {
  position: relative;
  z-index: 1;
}

.ultra-mode-title {
  font-size: 48px;
  font-weight: 700;
  color: #ffc800;
  text-shadow: 0 0 20px rgba(255, 200, 0, 0.5);
  margin: 0;
  text-align: center;
}

.ultra-mode-subtitle {
  font-size: 18px;
  color: var(--text);
  text-align: center;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.ultra-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.ultra-feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 200, 0, 0.4);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ultra-feature-item:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.ultra-feature-item:hover .ultra-feature-icon {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.ultra-feature-item:hover .ultra-feature-icon svg {
  color: #00ff88;
  transform: scale(1.1);
}

.ultra-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.ultra-feature-icon svg {
  transition: all 0.3s ease;
}

.ultra-feature-text {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

.ultra-start-btn {
  padding: 18px 48px;
  background: linear-gradient(135deg, #ffc800 0%, #ff8c00 100%);
  color: #0b0d0f;
  border: none;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 200, 0, 0.4);
  margin-top: 16px;
}

.ultra-start-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 200, 0, 0.5);
}

.ultra-start-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .ultra-mode-title {
    font-size: 36px;
  }
  
  .ultra-mode-subtitle {
    font-size: 16px;
  }
  
  .ultra-feature-item {
    padding: 12px 16px;
  }
  
  .ultra-feature-icon {
    width: 36px;
    height: 36px;
  }
  
  .ultra-feature-text {
    font-size: 14px;
  }
  
  .ultra-start-btn {
    padding: 16px 32px;
    font-size: 18px;
  }
}

/* ULTRA Info Section (in mode selection) */
.v2-ultra-info-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ultra-info-content {
  width: 100%;
  max-width: 600px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(255, 140, 0, 0.1) 50%, rgba(255, 200, 0, 0.1) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 200, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.ultra-info-title {
  font-size: 32px;
  font-weight: 700;
  color: #ffc800;
  text-shadow: 0 0 20px rgba(255, 200, 0, 0.5);
  margin: 0;
  text-align: center;
}

.ultra-info-subtitle {
  font-size: 16px;
  color: var(--text);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.ultra-features-list-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ultra-feature-item-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 200, 0, 0.4);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ultra-feature-item-compact:hover {
  background: rgba(0, 255, 136, 0.08);
  border-color: rgba(0, 255, 136, 0.3);
}

.ultra-feature-item-compact:hover .ultra-feature-icon-compact {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.ultra-feature-item-compact:hover .ultra-feature-icon-compact svg {
  color: #00ff88;
  transform: scale(1.05);
}

.ultra-feature-icon-compact {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 255, 136, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 136, 0.15);
  transition: all 0.3s ease;
}

.ultra-feature-icon-compact svg {
  transition: all 0.3s ease;
}

.ultra-feature-text-compact {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .ultra-info-title {
    font-size: 24px;
  }
  
  .ultra-info-subtitle {
    font-size: 14px;
  }
  
  .ultra-feature-item-compact {
    padding: 10px 12px;
  }
  
  .ultra-feature-icon-compact {
    width: 28px;
    height: 28px;
  }
  
  .ultra-feature-text-compact {
    font-size: 13px;
  }
}

/* Currency Flags */
.v2-pair-flags {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.v2-flag {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

.v2-pair-name-clickable {
  margin: 0 8px;
  transition: color 0.2s, opacity 0.2s;
}

.v2-pair-name-clickable:hover {
  color: var(--acc);
  opacity: 0.8;
}

.v2-pair-name-clickable:active {
  opacity: 0.6;
}

/* Copy Notification */
.v2-copy-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: rgba(15, 17, 23, 0.95);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 12px;
  padding: 0;
  min-width: 280px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: v2-copy-slide-up 0.3s ease-out;
}

@keyframes v2-copy-slide-up {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.v2-copy-notification-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

.v2-copy-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--acc);
  color: #0b0d0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.v2-copy-text {
  flex: 1;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.v2-copy-text > div:first-child {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.v2-copy-text > div:last-child {
  font-weight: 600;
  color: var(--acc);
}

.v2-copy-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.v2-copy-close:hover {
  color: var(--text);
}

.v2-copy-progress {
  height: 3px;
  background: var(--acc);
  border-radius: 0 0 12px 12px;
  animation: v2-copy-progress-animation 3s linear forwards;
  transform-origin: left;
}

@keyframes v2-copy-progress-animation {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* New Profile Modal Styles */

/* User Info */
.profile-user-info {
  flex: 1;
}

.profile-full-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.profile-plan-level {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.profile-plan-level span {
  color: var(--ultra-color);
  font-weight: 600;
}

.profile-member-since {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 3. Daily Stats Card */
.profile-stats-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.profile-stats-header {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stats-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 4px;
}

.stats-period-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.stats-period-btn.active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--ultra-color);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.stats-period-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

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

.profile-stat-item {
  text-align: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.profile-stat-value-large {
  font-size: 36px;
  font-weight: 700;
  color: var(--ultra-color);
  margin-bottom: 8px;
}

.profile-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stat-item.stat-win .profile-stat-value {
  color: #51CF66;
}

.profile-stat-item.stat-loss .profile-stat-value {
  color: #FF6B6B;
}

.profile-stat-item.stat-winrate {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
  border-color: rgba(0, 255, 136, 0.2);
}

/* 4. Plan Card */
.profile-plan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.profile-plan-header {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-plan-name {
  color: var(--ultra-color);
  font-weight: 600;
}

.profile-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.profile-plan-badge.plan-elite {
  background: linear-gradient(135deg, rgba(215, 194, 122, 0.2) 0%, rgba(215, 194, 122, 0.1) 100%);
  border: 1px solid rgba(215, 194, 122, 0.3);
  box-shadow: 0 0 20px rgba(215, 194, 122, 0.1);
}

.profile-plan-badge.plan-pro {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.1);
}

.profile-plan-badge.plan-standard {
  background: linear-gradient(135deg, rgba(77, 171, 247, 0.2) 0%, rgba(77, 171, 247, 0.1) 100%);
  border: 1px solid rgba(77, 171, 247, 0.3);
  box-shadow: 0 0 20px rgba(77, 171, 247, 0.1);
}

.profile-plan-badge.plan-start {
  background: linear-gradient(135deg, rgba(81, 207, 102, 0.2) 0%, rgba(81, 207, 102, 0.1) 100%);
  border: 1px solid rgba(81, 207, 102, 0.3);
  box-shadow: 0 0 20px rgba(81, 207, 102, 0.1);
}

.profile-plan-star {
  font-size: 16px;
}

.profile-plan-badge.plan-elite span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #D7C27A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-plan-badge.plan-pro span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #FF6B6B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-plan-badge.plan-standard span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #4DABF7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-plan-badge.plan-start span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #51CF66;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-plan-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.profile-change-plan-btn {
  background: rgba(62, 240, 138, 0.1);
  border: 1px solid rgba(62, 240, 138, 0.3);
  border-radius: 12px;
  padding: 12px 24px;
  color: #3EF08A;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-change-plan-btn:hover {
  background: rgba(62, 240, 138, 0.15);
  border-color: rgba(62, 240, 138, 0.5);
  transform: translateY(-1px);
}

/* ELITE Max Plan Button - Special styling */
.profile-elite-max-btn {
  background: linear-gradient(135deg, rgba(215, 194, 122, 0.15) 0%, rgba(234, 179, 8, 0.1) 100%);
  border: 1px solid rgba(215, 194, 122, 0.4);
  border-radius: 12px;
  padding: 12px 24px;
  color: #D7C27A;
  font-size: 14px;
  font-weight: 600;
  cursor: default;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(215, 194, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  pointer-events: none; /* Make it non-clickable */
}

.profile-elite-max-btn:hover {
  background: linear-gradient(135deg, rgba(215, 194, 122, 0.2) 0%, rgba(234, 179, 8, 0.15) 100%);
  border-color: rgba(215, 194, 122, 0.5);
  box-shadow: 
    0 4px 12px rgba(215, 194, 122, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 5. Profile Data Card */
.profile-data-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.profile-data-title {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  flex: 1;
  min-width: 0; /* Allow text to shrink if needed */
}

.profile-edit-btn-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  height: 32px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  flex-shrink: 0; /* Prevent button from shrinking */
  font-size: 13px;
  font-weight: 500;
  width: auto; /* Let button size based on content */
  min-width: auto; /* Remove min-width constraint */
}

.profile-edit-btn-mini:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--text-primary);
  transform: scale(1.05);
}

.profile-data-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-data-row:last-child {
  border-bottom: none;
}

.profile-data-field {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-data-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* 6. Footer Elements */
.profile-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.profile-logout-btn {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 12px;
  padding: 14px 32px;
  color: #FF6B6B;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  width: 100%;
}

.profile-logout-btn:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  transform: translateY(-1px);
}

.profile-version {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 16px;
}

.profile-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
}

.profile-legal-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.profile-legal-link:hover {
  color: var(--ultra-color);
}

.profile-legal-separator {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Signal Result Tracking */
.v2-signal-tracking {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
}

.v2-tracking-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 500;
}

.v2-tracking-buttons {
  display: flex;
  gap: 12px;
}

.v2-tracking-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.v2-tracking-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.v2-tracking-win:hover {
  background: rgba(81, 207, 102, 0.1);
  border-color: rgba(81, 207, 102, 0.3);
  color: #51CF66;
}

.v2-tracking-loss:hover {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
  color: #FF6B6B;
}

.v2-tracking-icon {
  font-size: 20px;
  font-weight: bold;
}

.v2-tracking-btn.selected {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.v2-tracking-btn.selected.v2-tracking-win {
  background: rgba(81, 207, 102, 0.2);
  border-color: rgba(81, 207, 102, 0.5);
  color: #51CF66;
  box-shadow: 0 4px 20px rgba(81, 207, 102, 0.3);
}

.v2-tracking-btn.selected.v2-tracking-loss {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.5);
  color: #FF6B6B;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

/* Plan Upgrade Modal */
.plan-upgrade-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* V1 Signal Result Modal Styles */
.v1-signal-result-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.v1-signal-result-modal-content {
  background: linear-gradient(180deg, #0a0e1a 0%, #0d1520 100%);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.v1-signal-result-header {
  text-align: center;
  margin-bottom: 20px;
}

.v1-signal-result-header h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.v1-signal-result-body {
  text-align: center;
  margin-bottom: 24px;
}

.v1-signal-result-pair {
  color: #00ff88;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.v1-signal-result-question {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0;
}

.v1-signal-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.v1-signal-result-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v1-signal-result-win {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000;
}

.v1-signal-result-win:hover {
  background: linear-gradient(135deg, #00cc6a 0%, #00ff88 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.v1-signal-result-loss {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: #fff;
}

.v1-signal-result-loss:hover {
  background: linear-gradient(135deg, #cc0000 0%, #ff4444 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.plan-upgrade-modal-content {
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(20, 25, 30, 0.95) 100%);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(255, 107, 107, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: modalSlideIn 0.3s ease;
  overflow: hidden;
}

.plan-upgrade-header {
  text-align: center;
  padding: 32px 32px 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-upgrade-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.plan-upgrade-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.plan-upgrade-body {
  padding: 24px 32px;
}

.plan-upgrade-message {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.current-plan-name {
  color: #FF6B6B;
  font-weight: 600;
}

.plan-upgrade-description {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.plan-upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.upgrade-feature {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upgrade-feature::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--ultra-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.plan-upgrade-actions {
  display: flex;
  gap: 12px;
  padding: 0 32px 32px 32px;
}

.plan-upgrade-btn {
  flex: 1;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid;
}

.plan-upgrade-cancel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.plan-upgrade-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.plan-upgrade-confirm {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 255, 136, 0.1) 100%);
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--ultra-color);
}

.plan-upgrade-confirm:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 255, 136, 0.15) 100%);
  border-color: rgba(0, 255, 136, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}