/* ─── Calendar Page Styles ───────────────────────────────────────────────────
   Loaded only on calendar.html
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Design token aliases that calendar.css requires but base.css names differently ── */
:root {
  --surface-card:     var(--color-surface,        rgba(255, 255, 255, 0.04));
  --surface-elevated: var(--color-surface-strong,  rgba(255, 255, 255, 0.06));
  --surface-hover:    rgba(9, 159, 255, 0.1);
  --color-primary:    var(--color-accent,          #099fff);
  --color-primary-hover: var(--color-accent-hover, #0284c7);
  --color-danger:     var(--color-error,           #ef4444);
}

/* ── Remove app-main's double padding so the 3-column grid gets full width ──
   This sheet is only loaded on calendar.html, so the override is safe.         */
.app-main {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ── Layout ── */
.calendar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 28px);
  display: grid;
  /* Fluid columns: sidebars shrink gracefully on mid-PC */
  grid-template-columns: clamp(220px, 18vw, 300px) 1fr clamp(220px, 18vw, 300px);
  gap: clamp(16px, 2vw, 24px);
  min-height: calc(100vh - 140px);
  width: 100%;
  box-sizing: border-box;
}

/* Collapse to single column below 1100px (where sidebars become too narrow) */
@media (max-width: 1100px) {
  .calendar-container {
    grid-template-columns: 1fr;
  }

  .calendar-sidebar,
  .calendar-notifications {
    max-width: 100%;
  }
}

/* ── Card ── */
.calendar-card {
  background: var(--surface-card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--color-border, rgba(9, 159, 255, 0.25));
  border-radius: var(--radius-lg, 18px);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

/* ── Calendar Header ── */
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.calendar-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary, #099fff);
  margin: 0;
}

/* ── Calendar Grid ── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.calendar-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted, #94a3b8);
  padding: 8px;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 4px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.2));
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 80px;
  overflow: hidden;
}

.calendar-day:hover {
  background: var(--surface-hover, rgba(9, 159, 255, 0.1));
  border-color: var(--color-primary, #099fff);
}

.calendar-day.today {
  background: var(--color-primary, #099fff);
  color: #fff;
  font-weight: 700;
}

.calendar-day.has-routine {
  border: 2px solid var(--color-success, #10b981);
  background: rgba(16, 185, 129, 0.1);
}

.calendar-day.has-note {
  border-left: 3px solid var(--color-warning, #f59e0b);
}

.calendar-day-number {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.calendar-day-indicators {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.indicator-routine     { background: var(--color-success, #10b981); }
.indicator-note        { background: var(--color-warning, #f59e0b); }
.indicator-notification { background: var(--color-danger, #ef4444); }

/* ── Routine Cards ── */
.routine-card {
  background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-md, 12px);
  padding: 16px;
  margin-bottom: 12px;
  border-left: 4px solid var(--color-primary, #099fff);
  cursor: pointer;
  transition: all 0.2s ease;
}

.routine-card:hover {
  transform: translateX(4px);
  background: var(--surface-hover, rgba(9, 159, 255, 0.15));
}

.routine-card.active {
  border-left-color: var(--color-success, #10b981);
  background: rgba(16, 185, 129, 0.1);
}

.routine-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text, #e0e6ff);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.routine-time {
  font-size: 14px;
  color: var(--color-text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.routine-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
}

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

.stat.success { color: var(--color-success, #10b981); }
.stat.danger  { color: var(--color-danger, #ef4444); }
.stat.warning { color: var(--color-warning, #f59e0b); }

/* ── Notifications ── */
.notification-item {
  background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
  border-radius: var(--radius-md, 12px);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--color-primary, #099fff);
  position: relative;
}

.notification-item.unread {
  background: rgba(9, 159, 255, 0.15);
}

.notification-item.urgent {
  border-left-color: var(--color-danger, #ef4444);
  animation: cal-pulse 2s infinite;
}

@keyframes cal-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

.notification-time {
  font-size: 11px;
  color: var(--color-text-muted, #94a3b8);
  margin-top: 4px;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-danger, #ef4444);
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* ── Calendar-scoped button overrides ── */
.calendar-container .btn,
.calendar-card .btn {
  background: var(--color-primary, #099fff);
  border-radius: var(--radius-md, 12px);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
}

.calendar-container .btn:hover,
.calendar-card .btn:hover {
  background: var(--color-primary-hover, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(9, 159, 255, 0.3);
}

.calendar-container .btn-secondary,
.calendar-card .btn-secondary {
  background: var(--surface-elevated, rgba(255, 255, 255, 0.1));
  color: var(--color-text, #e0e6ff);
}

.calendar-container .btn-secondary:hover,
.calendar-card .btn-secondary:hover {
  background: var(--surface-hover, rgba(255, 255, 255, 0.15));
}

.calendar-container .btn-sm,
.calendar-card .btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text, #e0e6ff);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.2));
  border-radius: var(--radius-sm, 8px);
  padding: 10px 12px;
  color: var(--color-text, #e0e6ff);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary, #099fff);
  box-shadow: 0 0 0 3px rgba(9, 159, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Modal ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 24px;
  overflow-y: auto;
}

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

.modal-content {
  background: var(--surface-card, rgba(15, 23, 42, 0.95));
  border: 1px solid var(--color-border, rgba(9, 159, 255, 0.25));
  border-radius: var(--radius-lg, 18px);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary, #099fff);
}

.btn-close {
  background: none;
  border: none;
  color: var(--color-text-muted, #94a3b8);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: var(--surface-hover, rgba(255, 255, 255, 0.1));
  color: var(--color-text, #e0e6ff);
}

/* ── Recommendations ── */
.routine-recommendations {
  background: var(--surface-elevated, rgba(16, 185, 129, 0.1));
  border: 1px solid var(--color-success, #10b981);
  border-radius: var(--radius-md, 12px);
  padding: 16px;
  margin-top: 16px;
}

.recommendation-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-success, #10b981);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendation-list li {
  font-size: 13px;
  color: var(--color-text, #e0e6ff);
  padding: 6px 0 6px 20px;
  position: relative;
}

.recommendation-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success, #10b981);
  font-weight: 700;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted, #94a3b8);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--color-success, #10b981); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--color-warning, #f59e0b); }
.badge-danger  { background: rgba(239, 68, 68,  0.2); color: var(--color-danger,  #ef4444); }
.badge-info    { background: rgba(9, 159, 255,  0.2); color: var(--color-primary, #099fff); }

/* ── Day info panel ── */
.day-info {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.2));
}

/* ═══════════════════════════════════════════════════════════════════════════
   FullCalendar v6 — dark theme overrides
   ═══════════════════════════════════════════════════════════════════════════ */
.fc {
  --fc-border-color: rgba(148, 163, 184, 0.15);
  --fc-button-bg-color: var(--surface-card, #1e2435);
  --fc-button-border-color: rgba(99, 102, 241, 0.4);
  --fc-button-hover-bg-color: rgba(99, 102, 241, 0.25);
  --fc-button-hover-border-color: #6366f1;
  --fc-button-active-bg-color: #6366f1;
  --fc-today-bg-color: rgba(99, 102, 241, 0.08);
  --fc-event-bg-color: #6366f1;
  --fc-event-border-color: transparent;
  --fc-page-bg-color: transparent;
  font-family: inherit;
}
.fc .fc-col-header-cell-cushion,
.fc .fc-daygrid-day-number,
.fc .fc-timegrid-slot-label-cushion {
  color: var(--color-text-muted, rgba(148, 163, 184, 0.85));
  text-decoration: none;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.fc-event-routine  { background: #6366f1 !important; border: none !important; }
.fc-event-trade    { background: #10b981 !important; border: none !important; }
.fc-event-window   { opacity: 0.8; }

/* View toggle buttons */
.fc-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.fc-toggle-btn {
  padding: 6px 16px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: var(--surface-card, #1e2435);
  color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}
.fc-toggle-btn:hover { background: rgba(99, 102, 241, 0.15); color: #fff; }
.fc-toggle-btn.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Window card (AI trading window)
   ═══════════════════════════════════════════════════════════════════════════ */
.window-hours {
  font-size: 22px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 4px;
}
.window-pairs {
  font-size: 12px;
  color: var(--color-text-muted, rgba(255,255,255,0.6));
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.window-detail {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}
.window-reasoning {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  border-top: 1px solid var(--color-border, rgba(148,163,184,0.15));
  padding-top: 8px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Achievements panel
   ═══════════════════════════════════════════════════════════════════════════ */
.ach-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border, rgba(148,163,184,0.1));
}
.ach-item:last-child { border-bottom: none; }
.ach-text { flex: 1; min-width: 0; }
.ach-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text, rgba(255,255,255,0.9));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ach-date { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.ach-new {
  display: inline-block;
  padding: 1px 6px;
  background: #10b981;
  color: #fff;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: middle;
}
.ach-badge {
  background: #6366f1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pair performance bars
   ═══════════════════════════════════════════════════════════════════════════ */
.pair-perf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}
.pair-perf-name {
  font-size: 12px;
  font-weight: 600;
  width: 90px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}
.pair-perf-bar-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.pair-perf-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}
.pair-perf-pct { font-size: 12px; font-weight: 700; width: 38px; text-align: right; flex-shrink: 0; }
.pair-perf-trades { font-size: 11px; color: rgba(255,255,255,0.4); width: 30px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   Onboarding wizard modal
   ═══════════════════════════════════════════════════════════════════════════ */
.modal.active { display: flex !important; }
.modal-lg .modal-content { max-width: 580px; }

/* Progress dots */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.wizard-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  background: var(--surface-card, #1e2435);
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}
.wizard-step.active {
  border-color: #6366f1;
  background: #6366f1;
  color: #fff;
  box-shadow: 0 0 12px rgba(99,102,241,0.4);
}
.wizard-step.done {
  border-color: #10b981;
  background: #10b981;
  color: #fff;
}
.wizard-line {
  flex: 1;
  height: 2px;
  background: rgba(99,102,241,0.2);
  max-width: 48px;
}

/* Wizard panel */
.wizard-panel { display: none; min-height: 200px; }
.wizard-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text, rgba(255,255,255,0.95));
  margin-bottom: 20px;
}
.wizard-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, rgba(148,163,184,0.15));
}

/* Chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px;
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 20px;
  background: var(--surface-card, #1e2435);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.chip:hover { border-color: #6366f1; color: #fff; }
.chip.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
  font-weight: 600;
}

/* Form elements inside wizard */
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-range { width: 100%; accent-color: #6366f1; margin-top: 4px; }
.form-hint { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* Onboarding result */
.onboarding-result {
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 12px;
  padding: 20px;
}
.onboarding-result-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-align: center;
}
.onboarding-result-window {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.onboarding-result-window strong { color: #6366f1; font-size: 20px; }
.onboarding-result-pairs,
.onboarding-result-sessions { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.onboarding-result-reasoning {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}
.onboarding-result-tip {
  font-size: 12px;
  color: #10b981;
  background: rgba(16,185,129,0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

/* Loading spinner */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 0;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.loading-spinner::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99,102,241,0.3);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════════
   Toast notification
   ═══════════════════════════════════════════════════════════════════════════ */
.proto-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--surface-card, #1e2435);
  color: var(--color-text, rgba(255,255,255,0.9));
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  border: 1px solid rgba(99,102,241,0.35);
  font-size: 14px;
  z-index: 10000;
  animation: slideIn 0.25s ease;
  pointer-events: none;
}
.proto-toast.fade-out {
  animation: slideOut 0.25s ease forwards;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(20px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .form-row { flex-direction: column; gap: 8px; }
  .modal-lg .modal-content { max-width: 96vw; margin: 16px; }
  .pair-perf-name { width: 70px; }
  .fc-toggle-btn { padding: 5px 10px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Daily results — day cell dots
   ═══════════════════════════════════════════════════════════════════════════ */
.dr-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  min-height: 24px;
}

.dr-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 4px;
  box-shadow: 0 0 4px currentColor;
}
.dr-dot--win  { background: #10b981; color: #10b981; }
.dr-dot--loss { background: #ef4444; color: #ef4444; }
.dr-dot--even { background: #f59e0b; color: #f59e0b; }

/* ═══════════════════════════════════════════════════════════════════════════
   Daily results — summary card
   ═══════════════════════════════════════════════════════════════════════════ */
.dr-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.dr-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.dr-stat-val {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.dr-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}

.dr-pnl--pos  { color: #10b981; }
.dr-pnl--neg  { color: #ef4444; }
.dr-pnl--even { color: #f59e0b; }
.dr-wr--good  { color: #10b981; }
.dr-wr--ok    { color: #f59e0b; }
.dr-wr--bad   { color: #ef4444; }

.dr-trade-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.dr-trade-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.03);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}
.dr-trade-ico  { font-size: 14px; flex-shrink: 0; }
.dr-trade-pair { flex: 1; font-weight: 600; color: rgba(255,255,255,.85); }
.dr-trade-time { font-size: 11px; color: rgba(255,255,255,.4); flex-shrink: 0; }

.dr-empty {
  text-align: center;
  color: rgba(255,255,255,.4);
  padding: 16px 0;
  font-size: 14px;
}

@media (max-width: 600px) {
  .dr-stats { grid-template-columns: repeat(2, 1fr); }
}
