/* News panel + new-card indicators */

/* Bell */
.tk-bell {
  position: relative; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--dark); border: 1px solid var(--gray-border); background: var(--white);
  border-radius: var(--radius); transition: border-color .15s, color .15s;
}
.tk-bell:hover { border-color: var(--primary); color: var(--primary); }
.tk-bell-dot {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: var(--white);
  font-size: 10px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 2px solid var(--white);
}

/* News panel — anchored floating dropdown */
.tk-news-panel {
  position: fixed; top: calc(var(--topbar-h) + var(--header-h) + 8px); right: 24px;
  width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 120px);
  background: var(--white); border: 1px solid var(--dark);
  box-shadow: var(--shadow-lg); z-index: 70;
  display: flex; flex-direction: column;
  animation: tkPop .18s cubic-bezier(.2,.8,.2,1);
}
.tk-news-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 18px; border-bottom: 2px solid var(--primary);
}
.tk-news-title { font-size: 16px; font-weight: 700; margin: 0; }

.tk-news-banner {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 18px; background: var(--primary-bg);
  font-size: 13px; color: #6e4511; border-bottom: 1px solid rgba(232,102,26,0.2);
}
.tk-news-banner svg { color: var(--primary); flex: 0 0 auto; }
.tk-news-banner strong { color: var(--dark); }

.tk-news-list { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 18px; }
.tk-news-item { border-left: 3px solid var(--primary); padding: 4px 0 4px 14px; }
.tk-news-item-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.tk-news-date { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-muted); font-weight: 700; }
.tk-news-item-title { font-size: 14px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.tk-news-item-sum { font-size: 13px; color: var(--gray-text); margin: 0 0 10px; line-height: 1.55; }
.tk-news-cards { display: flex; flex-direction: column; gap: 4px; }
.tk-news-card {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px; background: var(--gray-bg); border: 1px solid var(--gray-border);
  text-align: left; transition: border-color .15s, background .15s;
}
.tk-news-card:hover { border-color: var(--primary); background: var(--white); }
.tk-news-card-left { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tk-news-card-title { font-size: 12px; font-weight: 600; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-news-card svg { color: var(--gray-muted); flex: 0 0 auto; }
.tk-news-card:hover svg { color: var(--primary); }

.tk-news-foot { padding: 14px 18px; border-top: 1px solid var(--gray-border); background: var(--gray-bg); }
.tk-news-empty { padding: 40px 24px; text-align: center; color: var(--gray-text); }
.tk-news-empty svg { margin: 0 auto 12px; color: var(--success); }
.tk-news-empty p { margin: 2px 0; font-size: 14px; }

/* New chip */
.tk-chip-new {
  background: var(--primary); color: var(--white); border-color: var(--primary);
  animation: tkPulse 2s ease-out infinite;
}
@keyframes tkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,102,26,0.5); }
  50%      { box-shadow: 0 0 0 4px rgba(232,102,26,0); }
}

/* New-card card ribbon */
.tk-card.is-new { position: relative; }
.tk-card.is-new::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary); z-index: 1;
}
.tk-card.is-flash {
  animation: tkFlash 2.2s ease-out;
}
@keyframes tkFlash {
  0%   { box-shadow: 0 0 0 0 rgba(232,102,26,0.6); border-color: var(--primary); }
  40%  { box-shadow: 0 0 0 12px rgba(232,102,26,0); border-color: var(--primary); }
  100% { box-shadow: 0 0 0 0 rgba(232,102,26,0); }
}

/* New strip above catalog count bar */
.tk-new-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--primary-bg);
  border-left: 3px solid var(--primary); margin-bottom: 12px; font-size: 13px; flex-wrap: wrap;
}
.tk-new-strip-left { display: flex; gap: 8px; align-items: center; color: #5e3c10; }
.tk-new-strip-left svg { color: var(--primary); }
.tk-new-strip-left strong { color: var(--dark); }
.tk-btn-ghost-accent {
  color: var(--primary); padding: 0 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; height: 32px;
  border: 1px solid var(--primary);
}
.tk-btn-ghost-accent:hover, .tk-btn-ghost-accent.is-active { background: var(--primary); color: var(--white); }
