/*
 * ═══════════════════════════════════════════════════
 *  DARVAS STREET — Design System v5
 *  Professional Financial Theme
 *  Light: Pure white + navy blue + sky blue + orange
 *  Dark:  Deep navy + sky blue + orange
 * ═══════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ══════════════════════════════════════════════════
   LIGHT THEME (default)
   Pure white + navy blue text + sky blue + orange
══════════════════════════════════════════════════ */
:root {
  /* Page surfaces */
  --bg-page:         #ffffff;
  --bg-card:         #ffffff;
  --bg-elevated:     #f0f6ff;
  --bg-subtle:       #e8f1fc;
  --bg-hover:        rgba(14,90,173,0.05);
  --bg-selected:     rgba(14,90,173,0.08);

  /* Borders */
  --border:          rgba(14,90,173,0.12);
  --border-strong:   rgba(14,90,173,0.22);
  --border-accent:   #0e5aad;

  /* Text — navy blue hierarchy */
  --text-primary:    #0a1628;   /* deepest navy */
  --text-secondary:  #1e3a5f;   /* mid navy */
  --text-muted:      #4a6680;   /* muted navy */
  --text-faint:      #8ea8c3;   /* faint blue-grey */
  --text-inverse:    #ffffff;

  /* Brand accents */
  --blue:            #0e5aad;   /* primary sky blue */
  --blue-light:      #1a73e8;   /* lighter blue */
  --blue-dim:        rgba(14,90,173,0.1);
  --blue-hover:      rgba(14,90,173,0.18);

  --orange:          #e8650a;   /* primary orange */
  --orange-light:    #f07d2a;
  --orange-dim:      rgba(232,101,10,0.1);
  --orange-hover:    rgba(232,101,10,0.18);

  /* Semantic colours */
  --green:           #0a7c3e;
  --green-dim:       rgba(10,124,62,0.1);
  --red:             #c0392b;
  --red-dim:         rgba(192,57,43,0.1);
  --yellow:          #b8860b;
  --yellow-dim:      rgba(184,134,11,0.1);

  /* Navigation */
  --nav-bg:          rgba(255,255,255,0.92);
  --nav-border:      rgba(14,90,173,0.1);
  --nav-shadow:      0 1px 0 rgba(14,90,173,0.08), 0 2px 8px rgba(14,90,173,0.06);

  /* Table */
  --table-head-bg:   #0a1628;
  --table-head-text: rgba(255,255,255,0.82);
  --table-head-text-active: #ffffff;
  --table-row-bg:    #ffffff;
  --table-alt-bg:    #f7fbff;
  --table-hover-bg:  #edf4ff;
  --table-border:    rgba(14,90,173,0.08);

  /* Input */
  --input-bg:        #ffffff;
  --input-border:    rgba(14,90,173,0.2);
  --input-focus:     #0e5aad;

  /* Scrollbar */
  --scrollbar-thumb: rgba(14,90,173,0.2);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.05);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.1),  0 2px 6px rgba(10,22,40,0.06);
  --shadow-lg:  0 12px 32px rgba(10,22,40,0.12), 0 4px 10px rgba(10,22,40,0.07);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Geometry */
  --radius-xs:   4px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-pill: 999px;

  --header-h: 54px;
}

/* ══════════════════════════════════════════════════
   DARK THEME
   Deep navy (not black) + sky blue + orange
══════════════════════════════════════════════════ */
html[data-theme="dark"] {
  /* Page surfaces — deep navy, NOT black */
  --bg-page:         #0a1628;   /* deep navy */
  --bg-card:         #0f1f38;   /* navy card */
  --bg-elevated:     #152744;   /* elevated panel */
  --bg-subtle:       #1a2f50;   /* subtle highlight */
  --bg-hover:        rgba(99,172,255,0.06);
  --bg-selected:     rgba(99,172,255,0.1);

  /* Borders */
  --border:          rgba(99,172,255,0.12);
  --border-strong:   rgba(99,172,255,0.22);
  --border-accent:   #4d9fff;

  /* Text — light blue-white hierarchy */
  --text-primary:    #e8f0fc;   /* near white with blue tint */
  --text-secondary:  #a8c4e8;   /* light sky */
  --text-muted:      #6a90b8;   /* muted sky */
  --text-faint:      #3a5f85;   /* faint */
  --text-inverse:    #0a1628;

  /* Brand accents — brighter for dark bg */
  --blue:            #4d9fff;
  --blue-light:      #7ab8ff;
  --blue-dim:        rgba(77,159,255,0.12);
  --blue-hover:      rgba(77,159,255,0.2);

  --orange:          #ff8c38;
  --orange-light:    #ffaa66;
  --orange-dim:      rgba(255,140,56,0.12);
  --orange-hover:    rgba(255,140,56,0.2);

  /* Semantic */
  --green:           #3ecf7a;
  --green-dim:       rgba(62,207,122,0.12);
  --red:             #ff6b6b;
  --red-dim:         rgba(255,107,107,0.12);
  --yellow:          #ffd048;
  --yellow-dim:      rgba(255,208,72,0.12);

  /* Navigation */
  --nav-bg:          rgba(10,22,40,0.88);
  --nav-border:      rgba(99,172,255,0.1);
  --nav-shadow:      0 1px 0 rgba(99,172,255,0.08), 0 2px 12px rgba(0,0,0,0.3);

  /* Table */
  --table-head-bg:   #071020;
  --table-head-text: rgba(168,196,232,0.7);
  --table-head-text-active: #e8f0fc;
  --table-row-bg:    #0a1628;
  --table-alt-bg:    rgba(99,172,255,0.03);
  --table-hover-bg:  rgba(77,159,255,0.08);
  --table-border:    rgba(99,172,255,0.07);

  /* Input */
  --input-bg:        #0f1f38;
  --input-border:    rgba(99,172,255,0.18);
  --input-focus:     #4d9fff;

  /* Scrollbar */
  --scrollbar-thumb: rgba(99,172,255,0.2);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4),  0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.25s ease, color 0.25s ease;
}

/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.ds-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
  transition: background 0.25s, border-color 0.25s;
}

/* Brand */
.ds-nav-brand {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.ds-nav-brand::before {
  content: '▲';
  font-size: 0.58rem;
  color: var(--orange);
}

/* Nav links */
.ds-nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
}
.ds-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.ds-nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.ds-nav-links a.active {
  color: var(--blue);
  background: var(--blue-dim);
  font-weight: 600;
}
.ds-nav-links a.watchlist {
  color: var(--orange);
  font-weight: 600;
}
.ds-nav-links a.watchlist:hover { background: var(--orange-dim); }
.ds-nav-links a.logout {
  color: var(--red);
  border: 1px solid var(--red-dim);
  margin-left: 0.25rem;
}
.ds-nav-links a.logout:hover { background: var(--red-dim); }

/* Theme toggle */
.ds-theme-toggle {
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.15s;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.ds-theme-toggle:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

/* Hamburger */
.ds-nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
}

/* Mobile menu */
.ds-mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--nav-border);
  padding: 0.5rem 1.5rem 1rem;
  flex-direction: column;
  gap: 2px;
  z-index: 999;
}
.ds-mobile-menu.open { display: flex; }
.ds-mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}
.ds-mobile-menu a:hover { background: var(--bg-hover); color: var(--text-primary); }

@media (max-width: 960px) {
  .ds-nav-links { display: none; }
  .ds-nav-hamburger { display: block; }
}

/* ══════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════ */
.ds-page {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ds-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
}

/* ══════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════ */
.ds-page-header {
  padding: 1rem 0 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--blue-dim);
  margin-bottom: 0.75rem;
}
.ds-page-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: -0.02em;
}
.ds-badge {
  display: inline-flex; align-items: center;
  padding: 0.15rem 0.6rem;
  background: var(--blue-dim);
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  color: var(--blue);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.ds-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.ds-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}
.ds-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--blue-dim);
}
.ds-btn.sky {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--blue);
}
.ds-btn.sky:hover { background: var(--blue-hover); }

/* ══════════════════════════════════════════════════
   FILTER BAR BUTTONS (scans page compatibility)
══════════════════════════════════════════════════ */
.button-group button {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.9rem;
  font-weight: 500;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}
.button-group button:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}
.button-active {
  background: var(--orange) !important;
  color: #ffffff !important;
  border-color: var(--orange) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px var(--orange-dim) !important;
}

/* ══════════════════════════════════════════════════
   INPUTS
══════════════════════════════════════════════════ */
.ds-input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: 0.33rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.ds-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--blue-dim);
}
.ds-input::placeholder { color: var(--text-faint); }

.ds-select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  padding: 0.33rem 2rem 0.33rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a6680'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
}
.ds-select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

/* ══════════════════════════════════════════════════
   TABLE
══════════════════════════════════════════════════ */
.ds-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--table-row-bg);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s;
}

table.ds-table { width: 100%; border-collapse: collapse; }

table.ds-table thead th {
  position: sticky; top: 0; z-index: 5;
  background: var(--table-head-bg);
  color: var(--table-head-text);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.65rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--orange);
  user-select: none;
}
table.ds-table thead th.sortable { cursor: pointer; }
table.ds-table thead th.sortable:hover { color: var(--table-head-text-active); }
table.ds-table thead th.asc::after  { content: ' ↑'; color: var(--orange); font-size: 0.6rem; }
table.ds-table thead th.desc::after { content: ' ↓'; color: var(--orange); font-size: 0.6rem; }

table.ds-table tbody td {
  padding: 0.58rem 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--table-border);
  white-space: nowrap;
  vertical-align: middle;
  font-size: 0.8rem;
  transition: background 0.1s;
}
table.ds-table tbody tr:hover td {
  background: var(--table-hover-bg);
  color: var(--text-primary);
}
table.ds-table tbody tr:nth-child(even) td { background: var(--table-alt-bg); }
table.ds-table tbody tr:nth-child(even):hover td { background: var(--table-hover-bg); color: var(--text-primary); }

/* ══════════════════════════════════════════════════
   TV LINK
══════════════════════════════════════════════════ */
.tv-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}
.tv-link:hover { text-decoration: underline; color: var(--blue-light); }

/* ══════════════════════════════════════════════════
   PATTERN BADGES
══════════════════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center;
  padding: 0.11rem 0.5rem;
  border-radius: var(--radius-xs);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.tag-hz  { background: var(--green-dim);  color: var(--green);  border-color: rgba(10,124,62,0.2);  }
.tag-jl  { background: var(--blue-dim);   color: var(--blue);   border-color: rgba(14,90,173,0.2);  }
.tag-s   { background: var(--bg-elevated); color: var(--text-muted); border-color: var(--border); }
.tag-ot  { background: rgba(74,102,128,0.08); color: var(--text-faint); border-color: var(--border); }

/* Stage */
.stage-2     { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(10,124,62,0.2); }
.stage-2b    { background: rgba(10,124,62,0.2); color: var(--green); border: 1px solid rgba(10,124,62,0.35); }
.stage-1     { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(14,90,173,0.2); }
.stage-3     { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(232,101,10,0.2); }
.stage-4     { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(192,57,43,0.2); }
.stage-unk   { background: var(--bg-elevated); color: var(--text-faint); border: 1px solid var(--border); }

/* ══════════════════════════════════════════════════
   VALUE COLOURS
══════════════════════════════════════════════════ */
.pos { color: var(--green) !important; font-weight: 600; }
.neg { color: var(--red)   !important; font-weight: 600; }
.neu { color: var(--text-faint); }

/* ══════════════════════════════════════════════════
   WATCHLIST STAR
══════════════════════════════════════════════════ */
.wl-star {
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 4px;
  user-select: none;
  transition: color 0.15s, transform 0.15s;
  display: inline-block;
}
.wl-star:hover { transform: scale(1.25); }
.wl-star.in-wl  { color: var(--orange); }
.wl-star.out-wl { color: var(--text-faint); }
.wl-star.out-wl:hover { color: var(--orange); }

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.ds-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text-primary);
}
.ds-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════
   LOADING
══════════════════════════════════════════════════ */
#loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
html[data-theme="dark"] #loading-overlay { background: rgba(10,22,40,0.75); }
#loading-overlay.show { opacity: 1; pointer-events: all; }

.ds-spinner, .spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 10px; color: var(--text-muted); font-size: 0.78rem; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
#_wl-toast, .ds-toast {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-family: var(--font-sans);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 9999;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

/* ══════════════════════════════════════════════════
   INFO / ERROR BARS
══════════════════════════════════════════════════ */
.ds-info-bar {
  background: var(--blue-dim);
  border: 1px solid rgba(14,90,173,0.2);
  color: var(--blue);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.9rem;
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}
.ds-error-bar {
  background: var(--red-dim);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--red);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.9rem;
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════ */
.ds-empty { text-align: center; padding: 4rem 1rem; color: var(--text-faint); }
.ds-empty h3 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }
.ds-empty p  { font-size: 0.78rem; }

/* ══════════════════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════════════════ */
#back-to-top {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, background 0.15s;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
#back-to-top.show { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--blue-dim); color: var(--blue); border-color: var(--blue); }

/* ══════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.ds-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.71rem;
  margin-top: 1rem;
}

/* ══════════════════════════════════════════════════
   FILTERS BAR
══════════════════════════════════════════════════ */
.ds-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0 0.7rem;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.35s ease forwards; }