/* ═══════════════════════════════════════════════════════════
   DevKit4You — Additions CSS (new features)
   ═══════════════════════════════════════════════════════════ */

/* ── Top announcement bar ── */
.announce-bar {
  background: linear-gradient(90deg, var(--volt) 0%, #f9a825 100%);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .03em;
  position: relative;
  z-index: 201;
}
.announce-bar a {
  color: var(--ink);
  text-decoration: underline;
  font-weight: 800;
}
.announce-bar .close-bar {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 1rem; cursor: pointer;
  color: var(--ink); opacity: .6;
  line-height: 1;
}
.announce-bar .close-bar:hover { opacity: 1; }

/* ── Keyboard shortcut modal ── */
.shortcuts-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 998;
  display: none; place-items: start center;
  padding-top: 12vh;
}
.shortcuts-overlay.open { display: grid; }

.shortcuts-modal {
  width: 100%; max-width: 520px;
  background: var(--ink2);
  border: 1px solid var(--wire2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideDown .18s cubic-bezier(.34,1.4,.64,1);
}
.shortcuts-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--wire);
  background: var(--ink3);
}
.shortcuts-header h2 {
  font-size: 1rem; font-weight: 700;
  letter-spacing: -.02em;
}
.shortcuts-close {
  background: none; border: none;
  color: var(--fog); font-size: 1.2rem;
  cursor: pointer; padding: 2px 6px;
  border-radius: 4px; transition: var(--trans);
}
.shortcuts-close:hover { color: var(--snow); background: var(--ink4); }

.shortcuts-body { padding: 8px 0 16px; }
.shortcut-section-title {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist); padding: 12px 24px 4px;
}
.shortcut-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 24px; transition: var(--trans);
}
.shortcut-row:hover { background: var(--ink3); }
.shortcut-desc { font-size: .85rem; color: var(--ash); }
.shortcut-keys { display: flex; gap: 4px; }
.shortcut-keys kbd {
  background: var(--ink4);
  border: 1px solid var(--wire2);
  border-bottom: 2px solid var(--wire2);
  border-radius: 5px;
  padding: 3px 8px;
  font-family: var(--mono); font-size: .68rem;
  color: var(--snow); white-space: nowrap;
}
.shortcut-keys .plus {
  color: var(--mist); font-size: .8rem;
  display: flex; align-items: center;
}

/* ── Share / copy-link button ── */
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  color: var(--fog); cursor: pointer;
  transition: var(--trans);
}
.share-btn:hover { border-color: var(--volt); color: var(--volt); background: var(--volt-dim); }
.share-btn svg { flex-shrink: 0; }

/* ── Back-to-top button ── */
.back-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; transition: var(--trans);
  opacity: 0; pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { border-color: var(--volt); background: var(--volt-dim); color: var(--volt); }
.back-top svg { color: var(--fog); transition: var(--trans); }
.back-top:hover svg { color: var(--volt); }

/* ── Newsletter / feedback section ── */
.feedback-section {
  padding: 72px 0 80px;
  border-top: 1px solid var(--wire);
  position: relative; overflow: hidden;
}
.feedback-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(245,200,66,.06) 0%, transparent 70%);
  pointer-events: none;
}
.feedback-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.feedback-left h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -.04em;
  color: var(--white); margin-bottom: 12px; line-height: 1.1;
}
.feedback-left h2 em { font-style: normal; color: var(--volt); }
.feedback-left p {
  font-size: .88rem; color: var(--fog); line-height: 1.75; margin-bottom: 24px;
}
.feedback-feature {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px;
}
.feedback-feature-icon {
  width: 28px; height: 28px;
  background: var(--volt-dim); border: 1px solid rgba(245,200,66,.2);
  border-radius: 6px; display: grid; place-items: center;
  font-size: .85rem; flex-shrink: 0;
}
.feedback-feature-text { font-size: .82rem; color: var(--ash); line-height: 1.5; }
.feedback-feature-text strong { color: var(--snow); display: block; margin-bottom: 1px; }

.feedback-right {
  background: var(--ink2);
  border: 1px solid var(--wire2);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.feedback-right h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 6px; color: var(--snow);
}
.feedback-right p {
  font-size: .82rem; color: var(--fog);
  margin-bottom: 20px; line-height: 1.6;
}
.feedback-tabs {
  display: flex; gap: 4px;
  background: var(--ink3); border-radius: 8px;
  padding: 3px; margin-bottom: 18px;
}
.feedback-tab {
  flex: 1; padding: 7px;
  background: none; border: none;
  border-radius: 6px;
  font-family: var(--font); font-size: .78rem; font-weight: 600;
  color: var(--fog); cursor: pointer; transition: var(--trans);
  text-align: center;
}
.feedback-tab.active { background: var(--ink4); color: var(--snow); }
.feedback-input {
  width: 100%; background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  color: var(--snow); font-family: var(--font);
  font-size: .88rem; padding: 10px 14px;
  outline: none; transition: var(--trans);
  margin-bottom: 10px;
}
.feedback-input:focus { border-color: var(--volt); box-shadow: 0 0 0 3px var(--volt-dim); }
.feedback-textarea {
  width: 100%; background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  color: var(--snow); font-family: var(--font);
  font-size: .85rem; padding: 10px 14px;
  outline: none; transition: var(--trans);
  min-height: 90px; resize: vertical;
  margin-bottom: 12px; line-height: 1.6;
}
.feedback-textarea:focus { border-color: var(--volt); box-shadow: 0 0 0 3px var(--volt-dim); }
.feedback-sent {
  display: none; text-align: center;
  padding: 20px 0;
}
.feedback-sent-icon { font-size: 2.5rem; margin-bottom: 10px; }
.feedback-sent p { font-size: .88rem; color: var(--fog); }
.feedback-sent strong { color: var(--lime); }

/* ── Stats ticker ── */
.stats-ticker {
  background: var(--ink3);
  border-top: 1px solid var(--wire);
  border-bottom: 1px solid var(--wire);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.stats-ticker::before,
.stats-ticker::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 80px;
  z-index: 2; pointer-events: none;
}
.stats-ticker::before { left: 0; background: linear-gradient(90deg, var(--ink3), transparent); }
.stats-ticker::after  { right: 0; background: linear-gradient(-90deg, var(--ink3), transparent); }
.ticker-track {
  display: flex; gap: 0;
  animation: ticker 30s linear infinite;
  width: max-content;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0 36px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--fog); white-space: nowrap;
  border-right: 1px solid var(--wire);
}
.ticker-item strong { color: var(--volt); }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--volt); opacity: .5; }

/* ── Tool search filter on homepage ── */
.tool-search-wrap {
  margin-bottom: 28px;
  position: relative;
}
.tool-search-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--mist); pointer-events: none;
}
.tool-search {
  width: 100%; max-width: 380px;
  background: var(--ink2);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  color: var(--snow); font-family: var(--font);
  font-size: .88rem; padding: 10px 14px 10px 40px;
  outline: none; transition: var(--trans);
}
.tool-search:focus { border-color: var(--volt); box-shadow: 0 0 0 3px var(--volt-dim); }
.tool-search::placeholder { color: var(--mist); }

/* ── Responsive additions ── */
@media (max-width: 760px) {
  .feedback-inner { grid-template-columns: 1fr; gap: 32px; }
  .back-top { bottom: 16px; right: 16px; }
}
