/* ==========================================================================
   Groyt Dashboard — 🍯 Honeypot sekmesi (15 Ekim 2026)
   Kehribar tasarım dili: nötr siyah yüzey, ölçülü amber ışıma. Geniş kartlar,
   yatay satırlar; dar uzun sütun yok. Geniş ekranda yan panel alta iner.
   ========================================================================== */
@media (min-width: 1360px) {
  body.k-page #dashSettings:has(.settings-section[data-panel="honeypot"]:not([hidden])) { grid-template-columns: 264px minmax(0, 1fr); }
  body.k-page #dashSettings:has(.settings-section[data-panel="honeypot"]:not([hidden])) .identity-sidebar { grid-column: 2; grid-row: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  body.k-page #dashSettings:has(.settings-section[data-panel="honeypot"]:not([hidden])) .identity-sidebar > * { flex: 1 1 320px; }
}

#dashSettings .hp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
#dashSettings .hp > .settings-section-head { margin-bottom: 0; }

#dashSettings .hp-card {
  min-width: 0;
  padding: 18px 20px;
  border-radius: var(--k-r-m, 14px);
  border: 1px solid var(--k-line, #22252D);
  background: var(--k-bg-2, #111318);
}
#dashSettings .hp-card > * + * { margin-top: 14px; }
#dashSettings .hp-card-head { display: flex; align-items: flex-start; gap: 12px; }
#dashSettings .hp-card-head > div { flex: 1; min-width: 0; }
#dashSettings .hp-card-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  font-size: 18px; background: rgba(255, 193, 7, 0.08); border: 1px solid rgba(255, 193, 7, 0.22);
}
#dashSettings .hp-card-title { font: 700 16px var(--k-display, sans-serif); letter-spacing: -0.01em; color: var(--k-text, #F5F6F8); }
#dashSettings .hp-card-desc { margin: 3px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--k-text-3, #7C8290); }
#dashSettings .hp-head-toggle { flex: none; margin-left: auto; }

/* Yatay satırlar: alanlar yan yana, gerekirse alta kayar */
#dashSettings .hp-row { display: grid; gap: 14px 16px; align-items: start; }
#dashSettings .hp-row > * { min-width: 0; margin: 0; }
#dashSettings .hp-row-2 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
#dashSettings .hp-row-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
#dashSettings .hp-row-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
#dashSettings .hp-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: stretch; }
#dashSettings .hp-grid-2 > .hp-card { margin: 0; }

/* Durum şeridi */
#dashSettings .hp-hero {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 18px; align-items: center;
  background: linear-gradient(120deg, rgba(255, 193, 7, 0.07), rgba(255, 193, 7, 0.01) 55%), var(--k-bg-2, #111318);
  border-color: rgba(255, 193, 7, 0.22);
  box-shadow: 0 24px 60px -40px rgba(255, 193, 7, 0.45);
}
#dashSettings .hp-hero > * + * { margin-top: 0; }
#dashSettings .hp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#dashSettings .hp-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--k-line, #22252D);
}
#dashSettings .hp-stat-label { font-size: 12.5px; color: var(--k-text-3, #7C8290); }
#dashSettings .hp-stat-num { font: 700 22px var(--k-display, sans-serif); color: var(--k-text, #F5F6F8); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dashSettings .hp-stat-num.is-on { color: var(--k-amber-2, #FFD452); }
#dashSettings .hp-stat-num.is-off { color: var(--k-text-3, #7C8290); }
#dashSettings .hp-stat-sm { font-size: 15px; padding-top: 4px; }
#dashSettings .hp-hero-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-left: 18px; border-left: 1px solid var(--k-line, #22252D); }

/* Eylem satırı */
#dashSettings .hp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#dashSettings .hp-name { flex: 1 1 200px; max-width: 280px; }
#dashSettings .hp-dur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6px; }

/* Onay kutulu muafiyet kartları */
#dashSettings .hp-check {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; cursor: var(--c-link);
  border: 1px solid var(--k-line, #22252D); background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.15s, background 0.15s;
}
#dashSettings .hp-check:hover { border-color: var(--k-line-2, #30343E); }
#dashSettings .hp-check:has(input:checked) { border-color: rgba(255, 193, 7, 0.4); background: rgba(255, 193, 7, 0.05); }
#dashSettings .hp-check input { margin-top: 3px; accent-color: var(--k-amber, #FFC107); width: 16px; height: 16px; flex: none; }
#dashSettings .hp-check > span:not(.field-status) { display: grid; gap: 2px; min-width: 0; }
#dashSettings .hp-check strong { font-size: 14px; color: var(--k-text, #F5F6F8); }
#dashSettings .hp-check small { font-size: 12.5px; line-height: 1.45; color: var(--k-text-3, #7C8290); }
#dashSettings .hp-check .field-status { margin-left: auto; }
#dashSettings .hp-check-inline { display: inline-flex; padding: 8px 12px; margin-top: 8px; }
#dashSettings .hp-inline-toggle { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--k-line, #22252D); }

/* Düzenle | önizleme yan yana */
#dashSettings .hp-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
#dashSettings .hp-split-edit { display: grid; gap: 14px; min-width: 0; }
#dashSettings .hp-split-preview { display: grid; gap: 8px; position: sticky; top: calc(var(--k-nav-h, 68px) + 16px); min-width: 0; }
#dashSettings .hp-prev-label { font-size: 12.5px; font-weight: 600; color: var(--k-text-3, #7C8290); }
#dashSettings .hp-dc { padding: 12px 14px; border-radius: 12px; background: #313338; border: 1px solid var(--k-line, #22252D); }
#dashSettings .hp-dc-embed { padding: 10px 14px 10px 12px; border-radius: 4px; background: #2b2d31; border-left: 4px solid #FFC107; }
#dashSettings .hp-dc-embed.is-red { border-left-color: #ED4245; }
#dashSettings .hp-dc-title { font-weight: 700; font-size: 14.5px; color: #f2f3f5; margin-bottom: 6px; }
#dashSettings .hp-dc-body { font-size: 14px; line-height: 1.45; color: #dbdee1; white-space: pre-wrap; overflow-wrap: anywhere; }
#dashSettings .hp-dc-body .hp-mention { padding: 0 3px; border-radius: 3px; background: rgba(88, 101, 242, 0.3); color: #c9cdfb; }
#dashSettings .hp-dc-foot { margin-top: 8px; font-size: 12px; color: #949ba4; }

/* Son yakalananlar: yatay satırlar */
#dashSettings .hp-recent { display: grid; gap: 6px; }
#dashSettings .hp-rec {
  display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(110px, auto) minmax(0, 2fr) auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 12px; border: 1px solid var(--k-line, #22252D); background: rgba(255, 255, 255, 0.015);
}
#dashSettings .hp-rec-user { display: grid; min-width: 0; }
#dashSettings .hp-rec-user strong { font-size: 14px; color: var(--k-text, #F5F6F8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dashSettings .hp-rec-user small, #dashSettings .hp-rec-time { font-size: 12.5px; color: var(--k-text-3, #7C8290); white-space: nowrap; }
#dashSettings .hp-rec-act { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255, 193, 7, 0.35); background: rgba(255, 193, 7, 0.08); color: var(--k-amber-2, #FFD452); }
#dashSettings .hp-rec-act.is-soft { border-color: var(--k-line-2, #30343E); background: transparent; color: var(--k-text-2, #B8BDC8); }
#dashSettings .hp-rec-act.is-hard { border-color: rgba(237, 66, 69, 0.4); background: rgba(237, 66, 69, 0.08); color: #ff8a8c; }
#dashSettings .hp-rec-msg { font-size: 13px; color: var(--k-text-2, #B8BDC8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--k-mono, monospace); }

#dashSettings .hp #hpAlert[data-tone="error"] { border-color: rgba(237, 66, 69, 0.45); color: #ffb3b4; }
#dashSettings .hp #hpAlert[data-tone="success"] { border-color: rgba(59, 165, 93, 0.45); color: #a6e3b8; }

@media (max-width: 900px) {
  #dashSettings .hp-hero { grid-template-columns: 1fr; }
  #dashSettings .hp-hero-toggle { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--k-line, #22252D); }
  #dashSettings .hp-split { grid-template-columns: 1fr; }
  #dashSettings .hp-split-preview { position: static; }
}
@media (max-width: 640px) {
  #dashSettings .hp-card { padding: 14px; }
  #dashSettings .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #dashSettings .hp-grid-2 { grid-template-columns: 1fr; }
  #dashSettings .hp-rec { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  #dashSettings .hp-rec-msg { grid-column: 1 / -1; }
  #dashSettings .hp-name { max-width: none; }
}

/* 17 Ekim 2026: tuzak kanal kartı (Groyt V2) */
#dashSettings .hp-v2 { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
#dashSettings .hp-v2-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
#dashSettings .hp-v2-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#dashSettings .hp-v2-title { font-weight: 700; font-size: 18px; color: #f2f3f5; display: flex; align-items: center; gap: 6px; }
#dashSettings .hp-v2-sub { font-size: 12px; color: #949ba4; }
#dashSettings .hp-v2-thumb { width: 64px; height: 64px; border-radius: 8px; flex: none; object-fit: cover; }
#dashSettings .hp-v2-sep { height: 1px; background: #3f4147; }
#dashSettings .hp-v2-rules { line-height: 1.7; }
#dashSettings .hp-v2-btns { display: flex; flex-wrap: wrap; gap: 8px; }
#dashSettings .hp-v2-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; background: #4e5058; color: #dbdee1; font-size: 13px; font-weight: 600; opacity: .6; }
#dashSettings .hp-emo { width: 18px; height: 18px; vertical-align: -4px; }
#dashSettings .hp-emo.is-lg { width: 24px; height: 24px; }
