/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1200px) {
  body { padding: 0; }
  header { padding: 0 10px; }
  #toolbar {
    position: absolute;
    top: 42px;
    left: 0;
    z-index: 20;
    width: 100%;
    background: var(--bg-secondary);
  }
  .container { padding: 10px 0; padding-top: 50px; }
  #chart { width: calc(100% - 30px); height: 450px; }
  .zoom-control { right: 0; -webkit-overflow-scrolling: touch; }
  footer { position: relative; }
}

@media (hover: none) {
  .tool-item:hover { background: transparent !important; }
}

@media (max-width: 768px) {
  .symbol-selector { margin: 0 6px; }
  .symbol-selector select { font-size: 12px; padding: 3px 20px 3px 8px; }

  .ohlc-info {
    font-size: 11px;
    gap: 6px;
    left: 45px;
    top: 24px;
  }

  .account-bar {
    gap: 10px;
    padding: 8px 12px;
    font-size: 12px;
    margin: 4px 4px 0;
  }
  .account-label { font-size: 10px; }
  .account-value { font-size: 14px; }
  .account-pct { font-size: 10px; }

  .controls { gap: 6px; padding: 10px 8px; flex-wrap: wrap; }
  button { padding: 7px 14px; font-size: 13px; min-width: 42px; border-radius: var(--radius-sm); }
  button#buyBtn, button.sell { min-width: 52px; }

  .settings-group { width: 100%; justify-content: center; margin-top: 4px; }
  .settings-item input { width: 56px; padding: 4px 5px; font-size: 11px; }

  .history, .performance { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { font-size: 11px; min-width: 560px; }
  th, td { padding: 6px 4px; }

  .instructions ul li { font-size: 12px; }

  .perf-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .stat-value { font-size: 17px; }
  .stat-card { padding: 10px 12px; }
  .equity-chart { height: 160px; }
}

@media (max-width: 480px) {
  header { padding: 0 6px; }
  #toolbar { gap: 0; padding: 0 4px; }
  .tool-item { width: 28px; height: 28px; }

  .container { padding: 6px 0; padding-top: 48px; }

  .ohlc-info {
    font-size: 10px;
    gap: 4px;
    left: 35px;
    top: 22px;
  }

  .account-bar {
    gap: 8px;
    padding: 6px 10px;
    margin: 3px 2px 0;
  }
  .account-item { gap: 3px; }
  .account-label { font-size: 10px; }
  .account-value { font-size: 14px; }
  .account-pct { font-size: 10px; }

  .controls { gap: 4px; padding: 8px 4px; }
  button { padding: 6px 10px; font-size: 12px; min-width: 36px; border-radius: var(--radius-sm); }
  button#buyBtn, button.sell { min-width: 44px; }
  .settings-item input { width: 48px; }
  .settings-item label { font-size: 10px; }

  #chart { height: 350px; }
}
