/* =========================================
   VESTRY — style.css
   Personal Stock Research Organizer
   Design system: white cards, #061d33 text,
   #ff9901 accent — DM Sans + IBM Plex Mono
   ========================================= */

:root {
  --primary:        #ff9901;
  --primary-hover:  #e68a00;
  --primary-light:  #fff7e6;
  --primary-border: rgba(255,153,1,0.3);
  --dark:           #061d33;
  --mid:            #4a5568;
  --muted:          #9ca3af;
  --border:         #e2e8f0;
  --bg:             #f7f8fa;
  --white:          #ffffff;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow:         0 4px 10px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.12);
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;
  --success:        #10b981;
  --success-light:  #ecfdf5;
  --success-border: #a7f3d0;
  --danger:         #ef4444;
  --danger-light:   #fef2f2;

  /* Conviction colors */
  --conv-1: #9ca3af;
  --conv-2: #f59e0b;
  --conv-3: #f97316;
  --conv-4: #84cc16;
  --conv-5: #10b981;
}

/* ---- TABS ---- */
.vs-tabs {
  display: flex;
  gap: 2px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 5px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vs-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.vs-tab:hover { color: var(--dark); background: var(--bg); }
.vs-tab.active { background: var(--primary); color: var(--white); }

/* ---- PANELS ---- */
.vs-panels {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.vs-panel { display: none; }
.vs-panel.active { display: block; }

/* ---- SECTION LABELS ---- */
.vs-section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.vs-section-hint {
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 8px;
}
.vs-req { color: var(--primary); font-size: 13px; }

/* ---- GRIDS ---- */
.vs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ---- FIELDS ---- */
.vs-field { display: flex; flex-direction: column; gap: 5px; }
.vs-field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}
.vs-field input,
.vs-field textarea,
.vs-field select {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.vs-field input:focus,
.vs-field textarea:focus,
.vs-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,153,1,0.15);
}
.vs-field select {
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%239ca3af%22 d=%22M2 4l4 4 4-4z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.vs-field a { color: var(--primary); }

/* ---- MONEY INPUT ---- */
.vs-money-wrap { position: relative; display: flex; align-items: center; }
.vs-money-sym {
  position: absolute;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.vs-money-wrap input { padding-left: 22px !important; }

/* ---- BUTTONS ---- */
.vs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s;
}
.vs-btn-primary:hover { background: var(--primary-hover); }
.vs-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--mid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.vs-btn-ghost:hover { border-color: var(--dark); color: var(--dark); }
.vs-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--danger);
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.vs-btn-danger:hover { background: var(--danger-light); border-color: var(--danger); }

/* ---- INFO CARD ---- */
.vs-info-card {
  background: var(--bg);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ---- STATUS TOGGLE ---- */
.vs-status-toggle {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.vs-status-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.vs-status-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ---- CONVICTION PICKER ---- */
.vs-conviction-picker {
  display: flex;
  gap: 6px;
}
.vs-conv-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.15s;
}
.vs-conv-btn[data-level="1"].active { background: var(--conv-1); border-color: var(--conv-1); color: var(--white); }
.vs-conv-btn[data-level="2"].active { background: var(--conv-2); border-color: var(--conv-2); color: var(--white); }
.vs-conv-btn[data-level="3"].active { background: var(--conv-3); border-color: var(--conv-3); color: var(--white); }
.vs-conv-btn[data-level="4"].active { background: var(--conv-4); border-color: var(--conv-4); color: var(--white); }
.vs-conv-btn[data-level="5"].active { background: var(--conv-5); border-color: var(--conv-5); color: var(--white); }

/* ---- FORM ACTIONS ---- */
.vs-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ---- DASHBOARD ---- */
.vs-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.vs-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.vs-stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.vs-stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.vs-stat-sub {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.vs-stat-value.positive { color: var(--success); }
.vs-stat-value.negative { color: var(--danger); }

/* ---- CONVICTION GRID (dashboard top picks) ---- */
.vs-conviction-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.vs-conv-card {
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
}
.vs-conv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.vs-conv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.vs-conv-card[data-conv="1"]::before { background: var(--conv-1); }
.vs-conv-card[data-conv="2"]::before { background: var(--conv-2); }
.vs-conv-card[data-conv="3"]::before { background: var(--conv-3); }
.vs-conv-card[data-conv="4"]::before { background: var(--conv-4); }
.vs-conv-card[data-conv="5"]::before { background: var(--conv-5); }
.vs-conv-symbol {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.vs-conv-name {
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-conv-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 8px;
}
.vs-conv-upside {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}
.vs-conv-upside.positive { color: var(--success); }
.vs-conv-upside.negative { color: var(--danger); }

/* ---- SECTOR BARS ---- */
.vs-sector-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 12px;
}
.vs-sector-bar-label { width: 180px; flex-shrink: 0; color: var(--mid); font-weight: 600; }
.vs-sector-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}
.vs-sector-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.vs-sector-bar-count { color: var(--muted); font-size: 11px; width: 30px; text-align: right; }

/* ---- RECENT LIST ---- */
.vs-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mid);
  cursor: pointer;
  transition: color 0.15s;
}
.vs-recent-row:hover { color: var(--dark); }
.vs-recent-row:last-child { border-bottom: none; }
.vs-recent-symbol {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--dark);
  width: 60px;
}
.vs-recent-name { flex: 1; }
.vs-recent-date { color: var(--muted); font-size: 11px; }

/* ---- STOCKS TOOLBAR ---- */
.vs-stocks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vs-filter-group {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.vs-filter-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.vs-filter-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.vs-stocks-right { display: flex; gap: 8px; }
.vs-sort-select {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%239ca3af%22 d=%22M2 4l4 4 4-4z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  outline: none;
}

/* ---- STOCKS GRID ---- */
.vs-stocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.vs-stock-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.15s;
  cursor: pointer;
  position: relative;
}
.vs-stock-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d1d5db; }
.vs-stock-card-top {
  height: 4px;
}
.vs-stock-card[data-conv="1"] .vs-stock-card-top { background: var(--conv-1); }
.vs-stock-card[data-conv="2"] .vs-stock-card-top { background: var(--conv-2); }
.vs-stock-card[data-conv="3"] .vs-stock-card-top { background: var(--conv-3); }
.vs-stock-card[data-conv="4"] .vs-stock-card-top { background: var(--conv-4); }
.vs-stock-card[data-conv="5"] .vs-stock-card-top { background: var(--conv-5); }
.vs-stock-card-body { padding: 14px; }
.vs-stock-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}
.vs-stock-symbol {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.vs-stock-exchange {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}
.vs-stock-status-badge {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 10px;
}
.vs-stock-status-badge.watchlist { background: #eff6ff; color: #3b82f6; }
.vs-stock-status-badge.owned { background: var(--success-light); color: var(--success); }
.vs-stock-name {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--mid);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs-stock-sector {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 10px;
}
.vs-stock-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.vs-stock-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.vs-stock-target {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.vs-stock-upside {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}
.vs-stock-upside.positive { color: var(--success); }
.vs-stock-upside.negative { color: var(--danger); }
.vs-stock-position {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--mid);
  padding: 6px 8px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.vs-stock-position .gain { font-weight: 700; }
.vs-stock-position .gain.positive { color: var(--success); }
.vs-stock-position .gain.negative { color: var(--danger); }
.vs-stock-thesis-preview {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.vs-stock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}
.vs-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--mid);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 7px;
}
.vs-stock-card-footer {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.vs-card-btn {
  flex: 1;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  background: var(--white);
  color: var(--mid);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 0;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.vs-card-btn:hover { border-color: var(--primary); color: var(--primary); }
.vs-card-btn.edit:hover { border-color: var(--dark); color: var(--dark); }
.vs-card-btn.delete:hover { border-color: var(--danger); color: var(--danger); }
.vs-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
}
.vs-empty-state svg { margin-bottom: 12px; opacity: 0.3; }
.vs-empty-state strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 6px; }

/* ---- CONVICTION DOT ---- */
.vs-conv-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vs-conv-dot[data-conv="1"] { background: var(--conv-1); }
.vs-conv-dot[data-conv="2"] { background: var(--conv-2); }
.vs-conv-dot[data-conv="3"] { background: var(--conv-3); }
.vs-conv-dot[data-conv="4"] { background: var(--conv-4); }
.vs-conv-dot[data-conv="5"] { background: var(--conv-5); }

/* ---- MODAL ---- */
.vs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,29,51,0.55);
  backdrop-filter: blur(4px);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  padding: 20px;
}
.vs-modal-overlay.open { display: flex; opacity: 1; }
.vs-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.vs-modal-overlay.open .vs-modal { transform: translateY(0); }
.vs-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 14px 14px -14px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
  z-index: 1;
}
.vs-modal-close:hover { color: var(--dark); border-color: var(--dark); }
.vs-modal-body { padding: 24px; }
.vs-modal-symbol {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.vs-modal-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--mid);
  margin-top: 4px;
  margin-bottom: 16px;
}
.vs-modal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.vs-metric {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.vs-metric-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.vs-metric-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.vs-metric-value.positive { color: var(--success); }
.vs-metric-value.negative { color: var(--danger); }
.vs-modal-section { margin-bottom: 16px; }
.vs-modal-section-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 6px;
}
.vs-modal-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--mid);
  line-height: 1.6;
  white-space: pre-wrap;
}
.vs-modal-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ---- BOTTOM BAR ---- */
.vs-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 0;
  margin-top: 4px;
  margin-bottom: 60px;
}
.vs-save-status {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
}
.vs-stock-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---- CONFIRM ---- */
.vs-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,29,51,0.5);
  backdrop-filter: blur(3px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.vs-confirm-overlay.open { display: flex; opacity: 1; }
.vs-confirm {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  transform: translateY(8px);
  transition: transform 0.15s;
}
.vs-confirm-overlay.open .vs-confirm { transform: translateY(0); }
.vs-confirm-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  margin: 0 0 20px;
  line-height: 1.5;
}
.vs-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.vs-confirm-cancel {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
}
.vs-confirm-cancel:hover { border-color: var(--dark); color: var(--dark); }
.vs-confirm-ok {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--danger);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.vs-confirm-ok:hover { background: #dc2626; }

/* ---- TOAST ---- */
.vs-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 6000;
  white-space: nowrap;
}
.vs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- PRICE REFRESH ---- */
.vs-price-refreshing { opacity: 0.5; pointer-events: none; }
.vs-price-live::after {
  content: ' ●';
  color: var(--success);
  font-size: 8px;
  vertical-align: super;
}

/* ---- FETCH BAR ---- */
.vs-fetch-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.vs-fetch-status {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vs-fetch-status.success { color: var(--success); }
.vs-fetch-status.error   { color: var(--danger);  }
.vs-fetch-status.partial { color: var(--success); }
.vs-fetch-warn {
  font-size: 11px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 2px 7px;
  cursor: help;
  white-space: nowrap;
}

/* ---- API PROVIDER ---- */
.vs-api-links {
  margin-top: 8px;
}
.vs-api-link {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.vs-api-link:hover { text-decoration: underline; }
.vs-yahoo-warning {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 2px;
  line-height: 1.5;
}

/* ---- 52-WEEK BAR ---- */
.vs-52w-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.vs-52w-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
  white-space: nowrap;
}
.vs-52w-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
}
.vs-52w-fill {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .vs-stocks-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .vs-conviction-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .vs-grid-2, .vs-grid-3 { grid-template-columns: 1fr; }
  .vs-stocks-grid { grid-template-columns: 1fr; }
  .vs-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .vs-conviction-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-panels { padding: 18px; }
  .vs-modal-metrics { grid-template-columns: repeat(2, 1fr); }
  .vs-tabs { gap: 2px; }
  .vs-tab { font-size: 11px; padding: 7px 8px; }
  .vs-tab svg { display: none; }
  .vs-stocks-toolbar { flex-direction: column; align-items: flex-start; }
}