/* ============================================================
   CrossKit Account UX — quota / favorites / feedback
   ============================================================ */

/* ---- Nav quota pill ---- */
.ck-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ck-quota-pill:hover { transform: translateY(-1px); }
.ck-quota-pill.ck-quota-loading { color: #94a3b8; }
.ck-quota-pill.ck-quota-free {
  background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe;
}
.ck-quota-pill.ck-quota-member {
  background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff;
  box-shadow: 0 2px 8px rgba(217,119,6,.35);
}
.ck-quota-pill.ck-quota-guest {
  background: #fff; color: #4338ca; border: 1px solid #c7d2fe; cursor: pointer;
}
.ck-quota-pill.ck-quota-guest:hover { background: #eef2ff; }
.ck-quota-sub { font-weight: 500; opacity: .85; font-size: 11px; }

/* ---- Tool page top bar ---- */
.ck-tool-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13px;
  color: #334155;
}
.ck-plan-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 22px; padding: 0 10px;
  border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .3px;
}
.ck-badge-free { background: #e0e7ff; color: #4338ca; }
.ck-badge-pro  { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.ck-quota-remaining { font-weight: 600; }
.ck-quota-remaining b { color: #16a34a; font-size: 15px; }
.ck-quota-remaining.ck-need-login a { color: #2563eb; }
.ck-quota-used { color: #94a3b8; font-weight: 500; font-size: 12px; }
.ck-consume-note {
  color: #64748b; font-size: 12px;
  border-left: 1px solid #cbd5e1; padding-left: 14px;
}
.ck-fav-star {
  margin-left: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff; color: #cbd5e1;
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: all .15s ease;
}
.ck-fav-star:hover { border-color: #fcd34d; color: #f59e0b; }
.ck-fav-star.active { background: #fffbeb; border-color: #fcd34d; color: #f59e0b; }

/* ---- Homepage favorites ---- */
.ck-fav-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
}
.ck-fav-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
}
.ck-fav-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0; color: #1e293b;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .15s ease;
}
.ck-fav-chip:hover { border-color: #6366f1; color: #4338ca; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,.15); }
.ck-fav-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fee2e2; color: #dc2626; font-size: 14px; cursor: pointer;
}
.ck-fav-remove:hover { background: #fecaca; }
.ck-fav-hint { color: #94a3b8; font-size: 13px; margin: 10px 0 0; }

/* Feedback widgets removed from the product UI. */
.feedback-float-btn,
.feedback-modal,
.feedback-success-modal,
.feedback-fab,
.ck-feedback-fab,
.ck-feedback-modal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ---- Feedback FAB + modal (kept unused; hidden above) ---- */
.ck-feedback-fab {
  position: fixed; left: 20px; bottom: 86px; z-index: 9000;
  padding: 11px 18px; border: none; border-radius: 999px;
  background: linear-gradient(135deg,#6366f1,#4338ca); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 18px rgba(67,56,202,.4);
  transition: transform .12s ease;
}
.ck-feedback-fab:hover { transform: translateY(-2px); }

.ck-feedback-modal {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.5); padding: 16px;
}
.ck-feedback-box {
  width: 100%; max-width: 460px; background: #fff; border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden;
}
.ck-feedback-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 16px; font-weight: 700; color: #1e293b;
  background: #f8fafc; border-bottom: 1px solid #eef2f7;
}
.ck-feedback-close { border: none; background: none; font-size: 22px; cursor: pointer; color: #94a3b8; line-height: 1; }
.ck-feedback-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.ck-feedback-body label { font-size: 13px; font-weight: 600; color: #475569; margin-top: 6px; }
.ck-fb-category, .ck-fb-desc {
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; color: #1e293b;
}
.ck-fb-desc { min-height: 96px; resize: vertical; }
.ck-fb-shot-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ck-fb-shot {
  border: 1px solid #6366f1; background: #eef2ff; color: #4338ca;
  border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ck-fb-shot-status { color: #94a3b8; font-size: 12px; }
.ck-fb-preview { margin-top: 8px; }
.ck-fb-img { max-width: 100%; max-height: 160px; border: 1px solid #e2e8f0; border-radius: 8px; }
.ck-fb-meta { color: #94a3b8; font-size: 11px; word-break: break-all; margin: 6px 0 0; }
.ck-feedback-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 20px; border-top: 1px solid #eef2f7;
}
.ck-fb-cancel, .ck-fb-submit {
  border-radius: 9px; padding: 9px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.ck-fb-cancel { border: 1px solid #cbd5e1; background: #fff; color: #475569; }
.ck-fb-submit { border: none; background: linear-gradient(135deg,#6366f1,#4338ca); color: #fff; }
.ck-fb-submit:disabled { opacity: .6; cursor: default; }

/* ---- Toast ---- */
.ck-toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  z-index: 9999; padding: 11px 20px; border-radius: 10px;
  background: #1e293b; color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .28s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.ck-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ck-tool-bar { font-size: 12px; gap: 6px 10px; }
  .ck-consume-note { border-left: none; padding-left: 0; width: 100%; }
  .ck-feedback-fab { left: 14px; bottom: 76px; padding: 10px 15px; }
}
