/* ==========================================================================
   Njoftimet (activity) + Kërkesat për ndjekje — social sheet views
   ========================================================================== */

.sx-modal[data-view="activity"],
.sx-modal[data-view="requests"],
.sx-modal[data-view="feedback"] {
  --nt-teal: #3fbfa9;
  --nt-teal-hi: #5eead4;
  --nt-teal-ink: #04241e;
  --nt-red: #ff5a52;
  --nt-green: #30d158;
  --nt-amber: #ff9f0a;
  --nt-text: #f2f2f4;
  --nt-mute: #8e8e96;
  --nt-card: rgba(255, 255, 255, 0.045);
  --nt-line: rgba(255, 255, 255, 0.07);
  --nt-bg: #0b0b0e;
}

.sx-modal[data-view="activity"] .st-sheet,
.sx-modal[data-view="requests"] .st-sheet,
.sx-modal[data-view="feedback"] .st-sheet {
  position: relative;
  background:
    radial-gradient(110% 50% at 50% -14%, rgba(63, 191, 169, 0.16), transparent 62%),
    radial-gradient(60% 40% at 110% 36%, rgba(63, 191, 169, 0.05), transparent 70%),
    linear-gradient(180deg, #0d0d11 0%, var(--nt-bg) 100%);
}

.sx-modal[data-view="activity"] .st-topbar,
.sx-modal[data-view="requests"] .st-topbar,
.sx-modal[data-view="feedback"] .st-topbar {
  position: relative;
  z-index: 2;
  background: rgba(12, 12, 16, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}

.sx-modal[data-view="activity"] .st-topbar h2,
.sx-modal[data-view="requests"] .st-topbar h2,
.sx-modal[data-view="feedback"] .st-topbar h2 {
  font-weight: 800;
  letter-spacing: -0.015em;
}

.nt {
  padding-top: 14px;
  padding-bottom: 8px;
}

/* ---------- section headers ---------- */
.nt-section {
  margin-top: 22px;
  animation: ntIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nt-section:first-child {
  margin-top: 4px;
}

.nt-section + .nt-section {
  animation-delay: 40ms;
}

.nt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 4px 8px;
}

.nt-head h3 {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--nt-text);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nt-head-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #c7c7cc;
  font-size: 0.72rem;
  font-weight: 800;
}

.nt-head-new {
  color: var(--nt-teal-hi);
  font-size: 0.76rem;
  font-weight: 750;
}

/* ---------- follow requests summary card ---------- */
.nt-requests {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 14px 14px 12px;
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(63, 191, 169, 0.13), rgba(63, 191, 169, 0.03) 60%),
    var(--nt-card);
  box-shadow: inset 0 0 0 1px rgba(63, 191, 169, 0.22), 0 14px 30px -22px rgba(63, 191, 169, 0.55);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease, box-shadow 0.2s ease;
  animation: ntIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nt-requests:active {
  transform: scale(0.985);
}

.nt-requests:focus-visible,
.nt-item:focus-visible,
.nt-person:focus-visible,
.nt-btn:focus-visible {
  outline: 2px solid var(--nt-teal-hi);
  outline-offset: 2px;
}

.nt-stack {
  display: flex;
  flex: 0 0 auto;
  padding-left: 2px;
}

.nt-stack .sx-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px #12161a;
}

.nt-stack .sx-av + .sx-av {
  margin-left: -14px;
}

.nt-stack .sx-av .sx-av-inner {
  font-size: 0.88rem;
}

.nt-stack .sx-av::after,
.nt-stack .av-frame {
  display: none;
}

.nt-requests-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nt-requests-meta strong {
  overflow: hidden;
  font-size: 0.93rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-requests-meta span {
  overflow: hidden;
  color: var(--nt-mute);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-count {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--nt-teal);
  color: var(--nt-teal-ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.nt-chev {
  flex: 0 0 auto;
  margin-left: -4px;
  color: #6e6e76;
}

.nt-chev svg {
  width: 18px;
  height: 18px;
}

/* ---------- online now strip ---------- */
.nt-strip {
  display: flex;
  gap: 6px;
  margin: 0 -16px;
  padding: 2px 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.nt-strip::-webkit-scrollbar {
  display: none;
}

.nt-person {
  flex: 0 0 auto;
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0 2px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s ease;
}

.nt-person:active {
  transform: scale(0.95);
}

.nt-person-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #5eead4, #3fbfa9, #1f8f7e, #5eead4);
}

.nt-person-ring.is-busy {
  background: conic-gradient(from 210deg, #ffc56b, var(--nt-amber), #c26f00, #ffc56b);
}

.nt-person-ring .sx-av {
  width: 58px;
  height: 58px;
  box-shadow: 0 0 0 2.5px var(--nt-bg);
  border-radius: 50%;
}

.nt-person-ring .sx-av::after {
  right: -1px;
  bottom: -1px;
  width: 14px;
  height: 14px;
  box-shadow: 0 0 0 3px var(--nt-bg);
}

.nt-person-ring .av-frame {
  display: none;
}

.nt-person-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-person-state {
  color: var(--nt-green);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}

.nt-person-state.is-busy {
  color: var(--nt-amber);
}

/* ---------- feed rows ---------- */
.nt-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nt-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 10px 10px 8px;
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nt-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.nt-item.is-unread {
  background: linear-gradient(90deg, rgba(63, 191, 169, 0.1), rgba(63, 191, 169, 0.035) 70%);
}

.nt-item.is-unread::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--nt-teal-hi);
  box-shadow: 0 0 8px rgba(94, 234, 212, 0.8);
}

.nt-item.is-leaving {
  opacity: 0;
  transform: translateX(24px);
}

@media (hover: hover) {
  .nt-item:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nt-item.is-unread:hover {
    background: linear-gradient(90deg, rgba(63, 191, 169, 0.14), rgba(63, 191, 169, 0.05) 70%);
  }

  .nt-requests:hover {
    box-shadow: inset 0 0 0 1px rgba(63, 191, 169, 0.35), 0 14px 30px -20px rgba(63, 191, 169, 0.6);
  }
}

.nt-av {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.nt-av .sx-av {
  display: block;
  width: 50px;
  height: 50px;
}

.nt-av .sx-av::after {
  display: none;
}

.nt-kind {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 3;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px var(--nt-bg);
  color: #fff;
}

.nt-item.is-unread .nt-kind {
  box-shadow: 0 0 0 2.5px #0f1a19;
}

.nt-kind .nt-i svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.8;
}

.nt-kind-follow {
  background: linear-gradient(145deg, #5eead4, #1f9c87);
  color: var(--nt-teal-ink);
}

.nt-kind-accept,
.nt-kind-mutual {
  background: linear-gradient(145deg, #7aa7ff, #3b6ff0);
}

.nt-kind-missed {
  background: linear-gradient(145deg, #ff7a72, #e5342b);
}

.nt-i {
  display: inline-grid;
  place-items: center;
  line-height: 0;
}

.nt-i svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nt-text {
  margin: 0;
  color: #d9d9de;
  font-size: 0.875rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.nt-name {
  color: var(--nt-text);
  font-weight: 800;
}

.nt-name .ub-line {
  display: inline;
}

.nt-name .ub-text {
  display: inline;
}

.nt-name .ub {
  vertical-align: -2px;
}

.nt-name-block {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-meta {
  overflow: hidden;
  color: var(--nt-mute);
  font-size: 0.76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-meta-alert {
  color: var(--nt-red);
  font-weight: 750;
}

.nt-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- buttons ---------- */
.nt-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, background 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.nt-btn .nt-i svg {
  width: 15px;
  height: 15px;
}

.nt-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.nt-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.nt-btn-primary {
  background: linear-gradient(180deg, #4fd2bb, var(--nt-teal));
  box-shadow: 0 6px 16px -8px rgba(63, 191, 169, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--nt-teal-ink);
}

.nt-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--nt-text);
}

.nt-btn-muted {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--nt-mute);
  cursor: default;
}

.nt-btn.is-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
}

.nt-btn.is-icon .nt-i svg {
  width: 17px;
  height: 17px;
}

.nt-btn-call {
  background: linear-gradient(180deg, #3ddc6a, #24b552);
  box-shadow: 0 6px 16px -8px rgba(48, 209, 88, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #032810;
}

@media (hover: hover) {
  .nt-btn-primary:hover,
  .nt-btn-call:hover {
    filter: brightness(1.07);
  }

  .nt-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* requests page */
.nt-note {
  margin: 2px 4px 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--nt-card);
  box-shadow: inset 0 0 0 1px var(--nt-line);
  color: var(--nt-mute);
  font-size: 0.8rem;
  line-height: 1.45;
}

.nt-note + .nt-section {
  margin-top: 18px;
}

.nt-cta-pair .nt-btn {
  padding: 0 13px;
}

/* ---------- empty / error ---------- */
.nt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px 32px;
  text-align: center;
  animation: ntIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nt-empty-art {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.2), rgba(63, 191, 169, 0.05));
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.25), 0 20px 40px -24px rgba(63, 191, 169, 0.8);
  color: var(--nt-teal-hi);
}

.nt-empty-art.is-error {
  background: linear-gradient(145deg, rgba(255, 90, 82, 0.2), rgba(255, 90, 82, 0.05));
  box-shadow: inset 0 0 0 1px rgba(255, 90, 82, 0.3);
  color: var(--nt-red);
}

.nt-empty-art svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-empty strong {
  color: var(--nt-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.nt-empty p {
  max-width: 280px;
  margin: 0;
  color: var(--nt-mute);
  font-size: 0.86rem;
  line-height: 1.5;
}

.nt-empty-cta {
  height: 42px;
  margin-top: 14px;
  padding: 0 20px;
  border-radius: 13px;
  font-size: 0.88rem;
}

/* ---------- skeleton ---------- */
.nt-skel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nt-skel-card,
.nt-skel-av,
.nt-skel-lines span,
.nt-skel-btn {
  background: linear-gradient(90deg, #17171b 0%, #24242a 50%, #17171b 100%);
  background-size: 200% 100%;
  animation: sxShimmer 1.3s linear infinite;
}

.nt-skel-card {
  height: 68px;
  margin-bottom: 18px;
  border-radius: 18px;
}

.nt-skel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
}

.nt-skel-av {
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.nt-skel-lines {
  flex: 1;
  display: grid;
  gap: 8px;
}

.nt-skel-lines span {
  height: 11px;
  border-radius: 6px;
}

.nt-skel-lines span + span {
  width: 40%;
}

.nt-skel-btn {
  flex: 0 0 auto;
  width: 74px;
  height: 34px;
  border-radius: 11px;
}

@keyframes ntIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nt-section,
  .nt-requests,
  .nt-empty {
    animation: none;
  }

  .nt-skel-card,
  .nt-skel-av,
  .nt-skel-lines span,
  .nt-skel-btn {
    animation: none;
  }
}

/* Narrow phones: keep the action button readable, let the text wrap. */
@media (max-width: 360px) {
  .nt-item {
    gap: 10px;
    padding-right: 6px;
  }

  .nt-btn {
    padding: 0 11px;
  }

  .nt-cta-pair .nt-btn {
    padding: 0 10px;
  }
}

/* ==========================================================================
   Ankesë ose sugjerim (feedback to staff)
   ========================================================================== */
.fb {
  padding-top: 14px;
}

.fb-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: var(--nt-card);
  box-shadow: inset 0 0 0 1px var(--nt-line);
  animation: ntIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fb-lead {
  margin: 0;
  color: #c7c7cc;
  font-size: 0.86rem;
  line-height: 1.5;
}

.fb-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fb-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #d9d9de;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.fb-cat .sx-i svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fb-cat:active {
  transform: scale(0.96);
}

.fb-cat.is-on {
  background: rgba(63, 191, 169, 0.16);
  box-shadow: inset 0 0 0 1.5px var(--nt-teal);
  color: var(--nt-teal-hi);
}

.fb-field {
  position: relative;
  display: block;
}

.fb-input {
  width: 100%;
  min-height: 130px;
  padding: 13px 14px 26px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  color: var(--nt-text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.fb-input::placeholder {
  color: #6e6e76;
}

.fb-input:focus {
  box-shadow: inset 0 0 0 1.5px var(--nt-teal), 0 0 0 4px rgba(63, 191, 169, 0.12);
}

.fb-count {
  position: absolute;
  right: 12px;
  bottom: 9px;
  color: #6e6e76;
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fb-device {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 2px 0;
  color: var(--nt-mute);
  font-size: 0.74rem;
  line-height: 1.4;
}

.fb-device .sx-i svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fb-send {
  height: 46px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.fb-history {
  margin-top: 26px;
}

.fb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fb-ticket {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--nt-card);
  box-shadow: inset 0 0 0 1px var(--nt-line);
}

.fb-ticket.has-new {
  box-shadow: inset 0 0 0 1.5px rgba(63, 191, 169, 0.6), 0 10px 26px -18px rgba(63, 191, 169, 0.8);
}

.fb-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fb-ticket-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7c7cc;
  font-size: 0.78rem;
  font-weight: 750;
}

.fb-ticket-cat .sx-i svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.fb-status {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.fb-status.is-open {
  background: rgba(255, 255, 255, 0.08);
  color: #c7c7cc;
}

.fb-status.is-progress {
  background: rgba(255, 159, 10, 0.16);
  color: #ffb547;
}

.fb-status.is-done {
  background: rgba(48, 209, 88, 0.15);
  color: #4ade80;
}

.fb-ticket-msg {
  margin: 0;
  color: var(--nt-text);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fb-ticket-time {
  color: var(--nt-mute);
  font-size: 0.72rem;
  font-weight: 600;
}

.fb-reply {
  margin-top: 4px;
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(63, 191, 169, 0.14), rgba(63, 191, 169, 0.05));
  box-shadow: inset 0 0 0 1px rgba(63, 191, 169, 0.25);
}

.fb-reply-who {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--nt-teal-hi);
  font-size: 0.74rem;
  font-weight: 800;
}

.fb-reply-who small {
  color: var(--nt-mute);
  font-weight: 600;
}

.fb-reply-who .sx-i svg {
  width: 14px;
  height: 14px;
}

.fb-reply p {
  margin: 6px 0 0;
  color: var(--nt-text);
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.fb-new-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--nt-teal, #3fbfa9);
  color: #04241e;
  font-size: 0.72rem;
  font-weight: 800;
}
