:root {
  --bg-primary: #0a0e14;
  --bg-card: #111318;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #fff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --accent-green: #10b981;
  --accent-cyan: #06b6d4;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}

.header {
  display: flex;
  align-items: center;
  padding: 1rem;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 10;
  border-bottom: 1px solid var(--border-color);
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

.header-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

.header-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 1.5rem;
  margin: 1rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--accent-orange);
  color: #000;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-decoration {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background: rgba(245, 158, 11, 0.1);
  border-radius: 50%;
}

.tabs {
  display: flex;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-orange);
  border-radius: 1px;
}

.section {
  padding: 1.5rem 1rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bot-card {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.bot-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bot-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-icon.grid {
  background: linear-gradient(135deg, #10b981, #059669);
}

.bot-icon.dca {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.bot-icon.martingale {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.bot-icon.arbitrage {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.bot-info {
  flex: 1;
}

.bot-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.bot-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.bot-status {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.bot-status.popular {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-orange);
}

.bot-status.new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.bot-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.75rem;
}

.bot-stat {
  text-align: center;
}

.bot-stat-value {
  font-size: 1rem;
  font-weight: 700;
}

.bot-stat-value.positive {
  color: var(--accent-green);
}

.bot-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.bot-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bot-feature {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.bot-feature svg {
  color: var(--accent-green);
}

.bot-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-orange);
  border: none;
  border-radius: 0.5rem;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bot-btn:hover {
  transform: translateY(-2px);
}

.my-bots-empty {
  text-align: center;
  padding: 2rem 1rem;
}

.my-bots-empty svg {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.my-bots-empty h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.my-bots-empty p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.active-bot {
  background: var(--bg-card);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}

.active-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.active-bot-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.active-bot-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-bot-name {
  font-weight: 600;
}

.active-bot-pair {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.active-bot-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}

.active-bot-toggle.on {
  background: var(--accent-green);
}

.active-bot-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.active-bot-toggle.on::after {
  transform: translateX(20px);
}

.active-bot-stats {
  display: flex;
  justify-content: space-between;
}

.active-stat-value {
  font-weight: 600;
}

.active-stat-value.positive {
  color: var(--accent-green);
}

.active-stat-value.negative {
  color: var(--accent-red);
}

.active-stat-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.inline-style-f2892a2e8a {
  display: none;
}

.inline-style-8d010fa266 {
  background: linear-gradient(135deg, #10b981, #059669);
}

.inline-style-da19f1fc28 {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}