/* ═══════════════════════════════════════════════════════════════════════════
   BSF TransfertMarket — tm.css
   "Bloomberg Terminal meets Transfermarkt"
   Extends social.css design tokens. Self-contained.
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* ── Root tokens ─────────────────────────────────────────────────────────── */
:root {
  /* BSF base (mirrored from social.css) */
  --s-bg:       #F4F6F8;
  --s-bg1:      #EDF0F4;
  --s-card:     #FFFFFF;
  --s-brand:    #0C304C;
  --s-accent:   #1E70B8;
  --s-accent2:  #1558A0;
  --s-border:   rgba(12,48,76,.10);
  --s-text:     #1A2D42;
  --s-muted:    #6B7A8D;
  --s-shadow:   0 20px 60px rgba(20,30,50,.12);
  --s-shadow-sm:0 8px 24px rgba(20,30,50,.08);
  --s-shadow-xs:0 4px 12px rgba(20,30,50,.06);
  --s-r-xl: 24px; --s-r-lg: 18px; --s-r-md: 14px; --s-r-sm: 10px; --s-r-xs: 6px;

  /* TransfertMarket tiers */
  --tm-gold:      #F59E0B;
  --tm-gold-2:    #D97706;
  --tm-gold-light:rgba(245,158,11,.12);
  --tm-diamond:   #00C6FB;
  --tm-diamond-2: #0072FF;
  --tm-platinum:  #8B9DC3;
  --tm-silver:    #9CA3AF;
  --tm-bronze:    #CD7F32;

  /* Topbar unified (80px) + sub-nav (52px) + ticker (28px) */
  --bsf-topbar-h: 80px;
  --tm-subnav-h:  52px;
  --tm-ticker-h:  28px;
  --tm-nav-bg:    #071828;
  /* offset for sticky elements = topbar + ticker + subnav */
  --tm-sticky-top: calc(var(--bsf-topbar-h) + var(--tm-ticker-h) + var(--tm-subnav-h) + 12px);

  /* Layout */
  --tm-sidebar:   240px;
  --tm-right:     280px;
  --tm-max:       1380px;
  --tm-pad:       20px;
}

[data-theme="dark"] {
  --s-bg:    #07111D;
  --s-bg1:   #0B1E33;
  --s-card:  #0F2540;
  --s-accent:#4D9ED0;
  --s-border:rgba(77,158,208,.12);
  --s-text:  #E2EAF2;
  --s-muted: #7A8FA6;
  --s-shadow:0 20px 60px rgba(0,0,0,.5);
  --s-shadow-sm:0 8px 24px rgba(0,0,0,.35);
  --s-shadow-xs:0 4px 12px rgba(0,0,0,.25);
  --tm-nav-bg:#030E18;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--s-bg);
  color: var(--s-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Ticker tape ─────────────────────────────────────────────────────────── */
.tm-ticker {
  height: var(--tm-ticker-h);
  background: var(--tm-nav-bg);
  border-bottom: 1px solid rgba(245,158,11,.15);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.tm-ticker-track {
  display: flex;
  gap: 48px;
  animation: tmTicker 40s linear infinite;
  white-space: nowrap;
}
.tm-ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.55);
}
.tm-ticker-item strong {
  color: rgba(255,255,255,.85);
  font-weight: 500;
}
.tm-ticker-item .up   { color: #22c55e; }
.tm-ticker-item .down { color: #ef4444; }
@keyframes tmTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Sub-Navigation (site-specific, below unified topbar) ─────────────────── */
.tm-subnav {
  height: var(--tm-subnav-h);
  background: var(--tm-nav-bg);
  position: sticky;
  top: var(--bsf-topbar-h);
  z-index: 90;
  box-shadow: 0 1px 0 rgba(245,158,11,.15), 0 4px 20px rgba(0,0,0,.25);
}
[data-theme="light"] .tm-subnav {
  background: #0C304C;
}
.tm-subnav-inner {
  max-width: var(--tm-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 var(--tm-pad);
  gap: 4px;
}
.tm-subnav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 20px;
}
.tm-subnav-logo {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--tm-gold), var(--tm-gold-2));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 13px;
  color: #071828;
}
.tm-subnav-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: rgba(255,255,255,.9);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.tm-subnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.tm-subnav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--s-r-sm);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,.58);
  transition: all .15s;
  white-space: nowrap;
}
.tm-subnav-link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
.tm-subnav-link.active { color: var(--tm-gold); background: rgba(245,158,11,.1); }
.tm-subnav-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.tm-subnav-value-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--tm-gold), var(--tm-gold-2));
  color: #071828;
  text-decoration: none;
  border-radius: var(--s-r-sm);
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
  transition: all .2s;
  white-space: nowrap;
}
.tm-subnav-value-btn:hover { box-shadow: 0 3px 12px rgba(245,158,11,.4); transform: translateY(-1px); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.tm-layout {
  max-width: var(--tm-max);
  margin: 0 auto;
  padding: 24px var(--tm-pad);
  display: grid;
  grid-template-columns: var(--tm-sidebar) 1fr var(--tm-right);
  gap: 20px;
  align-items: start;
}
.tm-main   { min-width: 0; }
.tm-sidebar { position: sticky; top: var(--tm-sticky-top); }
.tm-right-col { position: sticky; top: var(--tm-sticky-top); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.tm-hero {
  background: linear-gradient(140deg, #030e18 0%, #071828 40%, #0a2040 70%, #0d2d58 100%);
  padding: 52px var(--tm-pad) 44px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(245,158,11,.15);
}
.tm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.tm-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,.12) 0%, transparent 65%);
  pointer-events: none;
}
.tm-hero-inner {
  max-width: var(--tm-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.tm-hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--tm-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tm-hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--tm-gold);
  opacity: .6;
}
.tm-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  color: #fff;
  letter-spacing: -1px;
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tm-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--tm-gold), #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tm-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.tm-stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
}
.tm-stat {
  padding: 0 24px 0 0;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 24px;
}
.tm-stat:last-child { border-right: none; margin-right: 0; }
.tm-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #fff;
  line-height: 1;
}
.tm-stat-num span { color: var(--tm-gold); }
.tm-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 3px;
}

/* ── Search bar ──────────────────────────────────────────────────────────── */
.tm-search-bar {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--s-r-lg);
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 800px;
}
.tm-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
}
.tm-search-input::placeholder { color: rgba(255,255,255,.35); }
.tm-search-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}
.tm-search-select {
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  appearance: none;
}
.tm-search-select option { background: #071828; color: #fff; }
.tm-search-btn {
  background: linear-gradient(135deg, var(--tm-gold), var(--tm-gold-2));
  border: none;
  padding: 0 24px;
  height: 100%;
  min-height: 52px;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #071828;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-search-btn:hover { background: linear-gradient(135deg, #FCD34D, var(--tm-gold)); }
.tm-search-btn svg { width: 16px; height: 16px; }

/* ── Section title ───────────────────────────────────────────────────────── */
.tm-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.tm-section-title h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--s-text);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.tm-section-title .tm-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--s-muted);
  background: var(--s-bg1);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--s-border);
}
.tm-section-title .tm-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--s-border), transparent);
}

/* ══════════════════════════════════════════════════════════════════════════
   MARKET VALUE CARD — the hero component
   ══════════════════════════════════════════════════════════════════════════ */
.tm-mv-card {
  --tier-color: var(--tm-silver);
  --tier-glow: rgba(156,163,175,.25);
  --tier-grad: linear-gradient(135deg, #6b7280, #9ca3af);
  position: relative;
  background: var(--s-card);
  border-radius: var(--s-r-xl);
  overflow: hidden;
  border: 1.5px solid var(--tier-color);
  box-shadow: 0 0 0 0 var(--tier-glow), var(--s-shadow-sm);
  transition: box-shadow .4s, transform .3s;
  cursor: default;
}
.tm-mv-card:hover {
  box-shadow: 0 0 28px 4px var(--tier-glow), var(--s-shadow);
  transform: translateY(-3px);
}
/* Tier variants */
.tm-mv-card.bronze  { --tier-color: var(--tm-bronze);  --tier-glow: rgba(205,127,50,.3);  --tier-grad: linear-gradient(135deg, #92450a, #cd7f32, #e8a45a); }
.tm-mv-card.silver  { --tier-color: var(--tm-silver);  --tier-glow: rgba(156,163,175,.3); --tier-grad: linear-gradient(135deg, #6b7280, #9ca3af, #d1d5db); }
.tm-mv-card.gold    { --tier-color: var(--tm-gold);    --tier-glow: rgba(245,158,11,.4);  --tier-grad: linear-gradient(135deg, #92400e, #d97706, #fbbf24, #fde68a); }
.tm-mv-card.platinum{ --tier-color: var(--tm-platinum);--tier-glow: rgba(139,157,195,.4); --tier-grad: linear-gradient(135deg, #3d4f7a, #8b9dc3, #c8d0e4); }
.tm-mv-card.diamond { --tier-color: var(--tm-diamond); --tier-glow: rgba(0,198,251,.5);   --tier-grad: linear-gradient(135deg, #0072ff, #00c6fb, #7ed8f9); }

/* Holographic shine on hover */
.tm-mv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.07) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform .6s;
  pointer-events: none;
  z-index: 2;
}
.tm-mv-card:hover::before { transform: translateX(100%); }

.tm-mv-header {
  background: var(--tier-grad);
  padding: 20px 22px 16px;
  position: relative;
  overflow: hidden;
}
.tm-mv-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 8px,
    rgba(255,255,255,.03) 8px, rgba(255,255,255,.03) 9px
  );
}
.tm-mv-score-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.tm-mv-score-big {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 68px;
  color: rgba(255,255,255,.95);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
  letter-spacing: -2px;
}
.tm-mv-score-meta {
  padding-bottom: 8px;
  flex: 1;
}
.tm-mv-score-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.tm-mv-position {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.tm-mv-tier-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}
.tm-mv-body { padding: 18px 20px 20px; }
.tm-mv-salary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--s-bg1);
  border-radius: var(--s-r-sm);
  border: 1px solid var(--s-border);
}
.tm-mv-salary-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--s-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tm-mv-salary-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--s-text);
}
.tm-mv-salary-val span { color: var(--s-muted); font-size: 12px; font-weight: 400; font-family: 'Inter', sans-serif; }

/* Sub-scores grid */
.tm-mv-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-mv-score-item { }
.tm-mv-score-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--s-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.tm-mv-score-name em {
  font-style: normal;
  font-family: 'DM Mono', monospace;
  color: var(--s-text);
  font-weight: 500;
}
.tm-mv-score-bar {
  height: 4px;
  background: var(--s-bg1);
  border-radius: 2px;
  overflow: hidden;
}
.tm-mv-score-fill {
  height: 100%;
  background: var(--tier-grad);
  border-radius: 2px;
  transition: width .8s cubic-bezier(.22,1,.36,1);
}

/* ── Tier badges ─────────────────────────────────────────────────────────── */
.tm-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tm-tier-badge.bronze  { background: rgba(205,127,50,.15); color: #cd7f32; border: 1px solid rgba(205,127,50,.3); }
.tm-tier-badge.silver  { background: rgba(156,163,175,.15); color: #6b7280; border: 1px solid rgba(156,163,175,.3); }
.tm-tier-badge.gold    { background: var(--tm-gold-light); color: var(--tm-gold-2); border: 1px solid rgba(245,158,11,.3);
  box-shadow: 0 0 10px rgba(245,158,11,.2); }
.tm-tier-badge.platinum{ background: rgba(139,157,195,.15); color: var(--tm-platinum); border: 1px solid rgba(139,157,195,.3); }
.tm-tier-badge.diamond { background: rgba(0,198,251,.12); color: var(--tm-diamond); border: 1px solid rgba(0,198,251,.3);
  box-shadow: 0 0 14px rgba(0,198,251,.25); animation: tmDiamondPulse 3s infinite; }
@keyframes tmDiamondPulse {
  0%,100% { box-shadow: 0 0 10px rgba(0,198,251,.2); }
  50%     { box-shadow: 0 0 20px rgba(0,198,251,.45); }
}
.tm-tier-badge .tm-tier-gem { font-size: 13px; }

/* ══════════════════════════════════════════════════════════════════════════
   TALENT CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.tm-talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.tm-talent-card {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-lg);
  padding: 16px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.tm-talent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tier-grad, linear-gradient(90deg, var(--s-accent), var(--s-accent2)));
  opacity: 0;
  transition: opacity .25s;
}
.tm-talent-card:hover { box-shadow: var(--s-shadow-sm); transform: translateY(-2px); border-color: rgba(30,112,184,.2); }
.tm-talent-card:hover::before { opacity: 1; }
.tm-talent-card.gold   { --tier-grad: linear-gradient(90deg, var(--tm-gold), var(--tm-gold-2)); }
.tm-talent-card.diamond{ --tier-grad: linear-gradient(90deg, var(--tm-diamond), var(--tm-diamond-2)); }
.tm-talent-card.platinum{ --tier-grad: linear-gradient(90deg, var(--tm-platinum), #6375a0); }

.tm-talent-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.tm-talent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s-accent), var(--s-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--s-border);
}
.tm-talent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tm-talent-info { flex: 1; min-width: 0; }
.tm-talent-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--s-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-talent-headline {
  font-size: 12px;
  color: var(--s-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-talent-loc {
  font-size: 11px;
  color: var(--s-muted);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}
.tm-talent-loc svg { width: 10px; height: 10px; }
.tm-talent-score-bar {
  height: 5px;
  background: var(--s-bg1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tm-talent-score-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--s-accent), var(--s-accent2));
  transition: width 1s cubic-bezier(.22,1,.36,1);
}
.tm-talent-score-fill.gold    { background: linear-gradient(90deg, var(--tm-gold-2), var(--tm-gold)); }
.tm-talent-score-fill.diamond { background: linear-gradient(90deg, var(--tm-diamond-2), var(--tm-diamond)); }
.tm-talent-score-fill.platinum{ background: linear-gradient(90deg, #3d4f7a, var(--tm-platinum)); }

.tm-salary-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  background: var(--s-bg1);
  color: var(--s-text);
  border: 1px solid var(--s-border);
  white-space: nowrap;
}
.tm-salary-pill.gold { background: var(--tm-gold-light); color: var(--tm-gold-2); border-color: rgba(245,158,11,.25); }
.tm-salary-pill.diamond { background: rgba(0,198,251,.1); color: var(--tm-diamond); border-color: rgba(0,198,251,.2); }

.tm-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.tm-skill-chip {
  padding: 2px 8px;
  border-radius: var(--s-r-xs);
  background: rgba(30,112,184,.08);
  border: 1px solid rgba(30,112,184,.15);
  font-size: 10px;
  font-weight: 600;
  color: var(--s-accent);
}
.tm-talent-actions {
  display: flex;
  gap: 7px;
  margin-top: 12px;
}
.tm-btn-sm {
  flex: 1;
  padding: 7px 0;
  border-radius: var(--s-r-sm);
  border: none;
  cursor: pointer;
  font: 600 12px 'Inter', sans-serif;
  text-align: center;
  text-decoration: none;
  transition: all .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tm-btn-sm svg { width: 12px; height: 12px; }
.tm-btn-primary { background: var(--s-accent); color: #fff; }
.tm-btn-primary:hover { background: var(--s-accent2); }
.tm-btn-ghost { background: var(--s-bg1); color: var(--s-text); border: 1px solid var(--s-border); }
.tm-btn-ghost:hover { border-color: var(--s-accent); color: var(--s-accent); }

/* ══════════════════════════════════════════════════════════════════════════
   JOB OFFER CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.tm-offer-card {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-lg);
  padding: 18px 20px;
  transition: all .22s;
  display: flex;
  gap: 16px;
  position: relative;
}
.tm-offer-card:hover { box-shadow: var(--s-shadow-sm); border-color: rgba(30,112,184,.2); transform: translateX(2px); }
.tm-offer-card.featured {
  border-color: rgba(245,158,11,.3);
  background: linear-gradient(135deg, var(--s-card) 85%, rgba(245,158,11,.04));
}
.tm-offer-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--s-r-sm);
  background: linear-gradient(135deg, var(--s-brand), var(--s-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.tm-offer-logo img { width: 100%; height: 100%; object-fit: contain; }
.tm-offer-body { flex: 1; min-width: 0; }
.tm-offer-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--s-text);
  margin-bottom: 4px;
}
.tm-offer-company { font-size: 12px; color: var(--s-muted); margin-bottom: 8px; }
.tm-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  align-items: center;
}
.tm-offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--s-r-xs);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
}
.tm-offer-tag.location { background: rgba(30,112,184,.07); color: var(--s-accent); border-color: rgba(30,112,184,.2); }
.tm-offer-tag.contract { background: rgba(16,185,129,.07); color: #059669; border-color: rgba(16,185,129,.2); }
.tm-offer-tag.remote   { background: rgba(139,92,246,.07); color: #7c3aed; border-color: rgba(139,92,246,.2); }
.tm-offer-tag.sector   { background: var(--s-bg1); color: var(--s-muted); border-color: var(--s-border); }
.tm-offer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tm-offer-salary {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--s-text);
}
.tm-match-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
}
.tm-match-badge.high { background: rgba(16,185,129,.12); color: #059669; }
.tm-match-badge.mid  { background: var(--tm-gold-light); color: var(--tm-gold-2); }
.tm-match-badge.low  { background: var(--s-bg1); color: var(--s-muted); }
.tm-offer-actions { display: flex; gap: 7px; align-items: center; }
.tm-bookmark-btn {
  width: 32px; height: 32px;
  background: var(--s-bg1);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--s-muted);
  transition: all .15s;
}
.tm-bookmark-btn:hover { color: var(--tm-gold); border-color: rgba(245,158,11,.3); background: var(--tm-gold-light); }
.tm-offer-date { font-size: 10px; color: var(--s-muted); font-family: 'DM Mono', monospace; }

/* ══════════════════════════════════════════════════════════════════════════
   TECH WATCH ITEMS
   ══════════════════════════════════════════════════════════════════════════ */
.tm-watch-grid { display: flex; flex-direction: column; gap: 10px; }
.tm-watch-item {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-md);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  transition: all .2s;
}
.tm-watch-item:hover { box-shadow: var(--s-shadow-xs); border-color: rgba(30,112,184,.2); }
.tm-watch-item.featured {
  border-left: 3px solid var(--s-accent);
  padding-left: 14px;
}
.tm-watch-source {
  width: 36px;
  height: 36px;
  border-radius: var(--s-r-xs);
  background: var(--s-bg1);
  border: 1px solid var(--s-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--s-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.tm-watch-source img { width: 100%; height: 100%; object-fit: contain; }
.tm-watch-body { flex: 1; min-width: 0; }
.tm-watch-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--s-text);
  line-height: 1.35;
  margin-bottom: 5px;
}
.tm-watch-title a { text-decoration: none; color: inherit; }
.tm-watch-title a:hover { color: var(--s-accent); }
.tm-watch-excerpt { font-size: 12px; color: var(--s-muted); line-height: 1.5; margin-bottom: 8px; }
.tm-watch-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tm-watch-tag {
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(30,112,184,.08);
  color: var(--s-accent);
  border: 1px solid rgba(30,112,184,.15);
}
.tm-watch-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--s-muted);
  margin-left: auto;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.tm-sidebar-card {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-lg);
  padding: 16px;
  margin-bottom: 14px;
}
.tm-sidebar-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--s-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tm-sidebar-card h3 svg { width: 14px; height: 14px; color: var(--s-accent); }
.tm-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--s-r-sm);
  text-decoration: none;
  color: var(--s-text);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.tm-sidebar-link:hover { background: var(--s-bg1); color: var(--s-accent); }
.tm-sidebar-link.active { background: rgba(30,112,184,.08); color: var(--s-accent); font-weight: 700; }
.tm-sidebar-link svg { width: 16px; height: 16px; color: var(--s-muted); flex-shrink: 0; }
.tm-sidebar-link.active svg { color: var(--s-accent); }
.tm-sidebar-link span.tm-badge-count {
  margin-left: auto;
  background: var(--s-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: 'DM Mono', monospace;
}

/* ── Leaderboard ─────────────────────────────────────────────────────────── */
.tm-rank-list { display: flex; flex-direction: column; gap: 2px; }
.tm-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--s-r-sm);
  transition: background .15s;
  cursor: pointer;
  text-decoration: none;
}
.tm-rank-item:hover { background: var(--s-bg1); }
.tm-rank-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.tm-rank-num.rank-1 { color: var(--tm-gold); }
.tm-rank-num.rank-2 { color: var(--tm-silver); }
.tm-rank-num.rank-3 { color: var(--tm-bronze); }
.tm-rank-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s-accent), var(--s-accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.tm-rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tm-rank-name { font-size: 12px; font-weight: 600; color: var(--s-text); }
.tm-rank-score {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--s-muted);
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.tm-card {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--s-r-lg);
  padding: 20px;
}
.tm-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--s-muted);
}
.tm-empty svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: .4; }
.tm-empty p { font-size: 14px; }

/* Progress circle for score */
.tm-score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tm-score-ring svg { transform: rotate(-90deg); }
.tm-score-ring-val {
  position: absolute;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--s-text);
}

/* Pulse animation for live elements */
.tm-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: tmLivePulse 2s infinite;
}
@keyframes tmLivePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* Page entry animation */
.tm-fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: tmFadeIn .4s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes tmFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.tm-fade-in:nth-child(1) { animation-delay: .05s; }
.tm-fade-in:nth-child(2) { animation-delay: .1s; }
.tm-fade-in:nth-child(3) { animation-delay: .15s; }
.tm-fade-in:nth-child(4) { animation-delay: .2s; }
.tm-fade-in:nth-child(5) { animation-delay: .25s; }
.tm-fade-in:nth-child(6) { animation-delay: .3s; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.tm-footer {
  background: var(--tm-nav-bg);
  border-top: 1px solid rgba(245,158,11,.1);
  margin-top: 60px;
  padding: 40px var(--tm-pad) 28px;
}
.tm-footer-inner {
  max-width: var(--tm-max);
  margin: 0 auto;
}
.tm-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.tm-footer-brand-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.tm-footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  line-height: 1.6;
  max-width: 240px;
}
.tm-footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.35);
  margin-bottom: 14px;
}
.tm-footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  margin-bottom: 9px;
  transition: color .15s;
}
.tm-footer-col a:hover { color: var(--tm-gold); }
.tm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tm-footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,.25);
}
.tm-footer-ecosystem {
  display: flex;
  gap: 16px;
}
.tm-footer-ecosystem a {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .15s;
}
.tm-footer-ecosystem a:hover { color: rgba(255,255,255,.7); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tm-layout { grid-template-columns: var(--tm-sidebar) 1fr; }
  .tm-right-col { display: none; }
  .tm-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .tm-layout { grid-template-columns: 1fr; padding: 16px 12px; }
  .tm-sidebar { position: static; }
  .tm-subnav-links { display: none; }
  .tm-subnav-value-btn { display: none; }
  .tm-hero { padding: 32px 16px 28px; }
  .tm-hero h1 { font-size: 32px; }
  .tm-stats-row { flex-wrap: wrap; gap: 16px; }
  .tm-search-bar { flex-direction: column; border-radius: var(--s-r-md); }
  .tm-search-select, .tm-search-sep { display: none; }
  .tm-search-btn { width: 100%; justify-content: center; border-radius: 0 0 var(--s-r-md) var(--s-r-md); }
  .tm-talent-grid { grid-template-columns: 1fr; }
  .tm-offer-card { flex-direction: column; }
  .tm-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .tm-footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Nav user pill / dropdown ────────────────────────────────────────────── */
.tm-nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  cursor: pointer;
}
.tm-nav-user:hover { background: rgba(255,255,255,.12); }
.tm-nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--s-accent), var(--s-accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.tm-nav-username {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tm-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #0a1f35;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--s-r-md);
  box-shadow: var(--s-shadow);
  overflow: hidden;
  z-index: 2000;
}
.tm-nav-user:hover .tm-nav-dropdown { display: block; }
.tm-nav-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tm-nav-dropdown a:last-child { border-bottom: none; }
.tm-nav-dropdown a:hover { background: rgba(255,255,255,.07); color: #fff; }

/* My Value nav button */
.tm-nav-value-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--s-r-sm);
  color: var(--tm-gold);
  text-decoration: none;
  font-size: 12px; font-weight: 700;
  transition: all .18s;
}
.tm-nav-value-btn:hover { background: rgba(245,158,11,.2); }

/* Login button */
.tm-nav-login-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  background: linear-gradient(135deg, var(--tm-gold), var(--tm-gold-2));
  color: #071828;
  text-decoration: none;
  border-radius: var(--s-r-sm);
  font-size: 13px; font-weight: 700;
  transition: all .2s;
}
.tm-nav-login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245,158,11,.4); }

/* Hamburger */
.tm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--s-r-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tm-hamburger span {
  display: block; width: 18px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 1px;
  transition: all .2s;
}
@media (max-width: 768px) { .tm-hamburger { display: flex; } }

/* Mobile nav drawer */
.tm-mobile-nav {
  display: none;
  flex-direction: column;
  background: #071828;
  border-bottom: 1px solid rgba(245,158,11,.12);
  padding: 8px 16px 16px;
}
.tm-mobile-nav.open { display: flex; }
.tm-mobile-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: var(--s-r-sm);
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.tm-mobile-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); }
.tm-mobile-link.active { color: var(--tm-gold); background: rgba(245,158,11,.08); }
.tm-mobile-link svg { width: 16px; height: 16px; }

/* ── Footer extra classes ──────────────────────────────────────────────────── */
.tm-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.tm-footer-col {}
.tm-footer-brand {}
.tm-footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tm-footer-tagline {
  font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6; max-width: 240px; margin-bottom: 14px;
}
.tm-footer-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,.35); margin-bottom: 14px;
}
.tm-footer-links { list-style: none; padding: 0; margin: 0; }
.tm-footer-links li { margin-bottom: 9px; }
.tm-footer-links a {
  font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .15s;
}
.tm-footer-links a:hover { color: var(--tm-gold); }
.tm-footer-stat-box {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--s-r-sm);
}
.tm-footer-stat-label { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.tm-footer-stat-val { font-size: 13px; color: var(--tm-gold); }
.tm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 20px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace; font-size: 11px; color: rgba(255,255,255,.25);
  flex-wrap: wrap;
}
.tm-footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.tm-footer-bottom a:hover { color: rgba(255,255,255,.7); }
.tm-footer-bottom-sep { color: rgba(255,255,255,.15); }

@media (max-width: 1100px) {
  .tm-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tm-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .tm-footer-bottom { flex-direction: column; text-align: center; }
}

/* Dark mode overrides */
[data-theme="dark"] .tm-mv-card,
[data-theme="dark"] .tm-talent-card,
[data-theme="dark"] .tm-offer-card,
[data-theme="dark"] .tm-watch-item,
[data-theme="dark"] .tm-sidebar-card,
[data-theme="dark"] .tm-card {
  background: var(--s-card);
  border-color: var(--s-border);
}
[data-theme="dark"] .tm-search-bar {
  background: rgba(255,255,255,.04);
}
[data-theme="dark"] .tm-skill-chip {
  background: rgba(77,158,208,.1);
  border-color: rgba(77,158,208,.2);
  color: var(--s-accent);
}
