/* YCNP Frontend */
:root {
  --ycnp-primary: #0d6efd;
  --ycnp-dark: #1a1f36;
  --ycnp-muted: #6b7280;
  --ycnp-bg: #f4f6fb;
  --ycnp-card: #ffffff;
  --ycnp-danger: #dc2626;
  --ycnp-radius: 12px;
  --ycnp-shadow: 0 8px 24px rgba(26, 31, 54, 0.08);
}

.ycnp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 16px;
  background: var(--ycnp-bg);
  border-radius: var(--ycnp-radius);
}

.ycnp-btn {
  border: 1px solid #dbe1ef;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s ease;
}

.ycnp-btn:hover,
.ycnp-btn.is-active {
  border-color: var(--ycnp-primary);
  color: var(--ycnp-primary);
  background: #eef5ff;
}

.ycnp-reading-time {
  color: var(--ycnp-muted);
  font-size: 13px;
  margin-top: 8px;
}

.ycnp-copyright-warning {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.ycnp-community-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.ycnp-profile-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.ycnp-profile-hero {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--ycnp-card);
  border-radius: var(--ycnp-radius);
  box-shadow: var(--ycnp-shadow);
  padding: 24px;
}

.ycnp-profile-hero img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eefc;
}

.ycnp-profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.ycnp-profile-stats .stat {
  background: var(--ycnp-card);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--ycnp-shadow);
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  border: 0;
  cursor: default;
  font: inherit;
}

.ycnp-profile-stats button.stat {
  cursor: pointer;
}

.ycnp-profile-stats a.stat:hover,
.ycnp-profile-stats button.stat:hover,
.ycnp-profile-stats button.stat.is-active,
.ycnp-profile-sidebar-stats a.stat:hover,
.ycnp-profile-sidebar-stats a.stat.is-active {
  outline: 2px solid var(--ycnp-primary);
}

.ycnp-profile-stats .stat strong {
  display: block;
  font-size: 22px;
  color: var(--ycnp-dark);
}

.ycnp-profile-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.ycnp-profile-tabs {
  display: flex;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.ycnp-content-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

.ycnp-content-search,
.ycnp-content-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ycnp-content-search {
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 360px;
}

.ycnp-content-sort-label {
  font-size: 13px;
  font-weight: 600;
  color: #5a6d85;
  white-space: nowrap;
}

.ycnp-content-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #d5deeb;
  background: #fff;
  color: #243447;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
}

.ycnp-content-search-btn {
  border: 0;
  background: var(--ycnp-primary, #0d6efd);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.ycnp-content-search-clear {
  font-size: 13px;
  font-weight: 600;
  color: #5a6d85;
  text-decoration: none;
  white-space: nowrap;
}

.ycnp-content-search-clear:hover {
  color: var(--ycnp-primary, #0d6efd);
  text-decoration: underline;
}

.ycnp-content-sort-select {
  min-width: 140px;
  border: 1px solid #d5deeb;
  background: #fff;
  color: #243447;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.ycnp-content-search-input:focus,
.ycnp-content-sort-select:focus {
  outline: 2px solid rgba(13, 110, 253, 0.25);
  border-color: var(--ycnp-primary, #0d6efd);
}

.ycnp-profile-tabs-row.is-community .ycnp-content-toolbar--profile {
  display: none;
}

.ycnp-profile-tabs button,
.ycnp-profile-tabs a {
  border: 0;
  background: #e8eefc;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  font: inherit;
}

.ycnp-profile-tabs button.active,
.ycnp-profile-tabs button:hover,
.ycnp-profile-tabs a.active,
.ycnp-profile-tabs a:hover {
  background: var(--ycnp-primary);
  color: #fff;
}

.ycnp-member-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.ycnp-edit-profile-wrap {
  max-width: 720px;
}

.ycnp-edit-profile-card {
  background: var(--ycnp-card);
  border-radius: var(--ycnp-radius);
  box-shadow: var(--ycnp-shadow);
  padding: 24px;
}

.ycnp-edit-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.ycnp-edit-profile-head h1 {
  margin: 0;
  font-size: 28px;
}

.ycnp-edit-avatar-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.ycnp-edit-avatar-block img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eefc;
}

.ycnp-edit-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #667;
}

.ycnp-edit-field {
  margin-bottom: 14px;
}

.ycnp-edit-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.ycnp-edit-field input,
.ycnp-edit-field textarea {
  width: 100%;
  border: 1px solid #d5dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.ycnp-edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ycnp-edit-msg {
  margin-top: 12px;
  color: #0a7a32;
}

.ycnp-edit-msg.is-error {
  color: #b00020;
}

.ycnp-community-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.ycnp-edit-field select {
  width: 100%;
  border: 1px solid #d5dbe8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.ycnp-manage-community-card {
  margin-top: 20px;
}

.ycnp-manage-community-card h2 {
  margin: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ycnp-pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff4e5;
  color: #9a5b00;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.ycnp-manage-member-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e8eef5;
}

.ycnp-manage-member-row:last-child {
  border-bottom: 0;
}

.ycnp-manage-member-row img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #e8eefc;
}

.ycnp-manage-member-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ycnp-manage-member-info small {
  color: #778;
}

.ycnp-manage-member-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ycnp-status-pill {
  display: inline-block;
  width: fit-content;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 600;
}

.ycnp-status-pending {
  background: #fff4e5;
  color: #9a5b00;
}

.ycnp-status-active {
  background: #e8f8ee;
  color: #0a7a32;
}

.ycnp-manage-empty {
  margin: 0;
  color: #667;
}

.ycnp-join-community.is-pending {
  background: #f0a500;
  border-color: #f0a500;
}

.ycnp-join-community.is-closed {
  opacity: 0.75;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .ycnp-manage-member-row {
    grid-template-columns: 48px 1fr;
  }
  .ycnp-manage-member-actions {
    grid-column: 1 / -1;
  }
}

.ycnp-profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  align-items: start;
}

.ycnp-profile-sidebar-inner {
  background: var(--ycnp-card);
  border-radius: var(--ycnp-radius);
  box-shadow: var(--ycnp-shadow);
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 16px;
}

.ycnp-profile-sidebar-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
  background: #e8eefc;
}

.ycnp-profile-sidebar-name {
  font-size: 22px;
  margin: 0 0 6px;
}

.ycnp-profile-sidebar-name a {
  color: inherit;
  text-decoration: none;
}

.ycnp-profile-sidebar-role {
  color: #667;
  font-size: 13px;
  margin-bottom: 8px;
}

.ycnp-profile-sidebar-bio {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
}

.ycnp-profile-sidebar-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.ycnp-profile-sidebar-stats .stat {
  background: #f4f7ff;
  border-radius: 8px;
  padding: 8px 4px;
  text-decoration: none;
  color: inherit;
}

.ycnp-profile-sidebar-stats .stat.is-active {
  outline: 2px solid var(--ycnp-primary);
  background: #e8f0ff;
}

.ycnp-profile-sidebar-stats .stat strong {
  display: block;
  font-size: 16px;
}

.ycnp-site-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  text-align: center;
  color: #667;
  font-size: 14px;
}

.ycnp-site-footer a {
  color: var(--ycnp-primary);
  text-decoration: none;
  font-weight: 600;
}

body.ycnp-frontend-body {
  background: var(--ycnp-bg);
  min-height: 100vh;
}

.ycnp-single-article {
  background: var(--ycnp-card);
  border-radius: var(--ycnp-radius);
  box-shadow: var(--ycnp-shadow);
  padding: 20px 22px 28px;
}

.ycnp-single-cover,
.ycnp-cover img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  display: block;
}

.ycnp-single-title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--ycnp-dark);
}

.ycnp-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--ycnp-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.ycnp-single-meta a {
  color: inherit;
}

.ycnp-single-content {
  line-height: 1.7;
  color: #2d3348;
  margin-bottom: 24px;
}

.ycnp-single-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 28px;
}

.ycnp-comments-block {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e8eef5;
}

.ycnp-comments-block h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

.ycnp-comments-list {
  margin: 0 0 22px;
}

.ycnp-comments-list .ycnp-comment,
.ycnp-comments-list .comment {
  margin: 0 0 14px;
}

.ycnp-comment-body {
  align-items: flex-start;
}

.ycnp-comment-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.ycnp-comment-author {
  font-size: 15px;
  margin-bottom: 4px;
}

.ycnp-comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: #243447;
}

.ycnp-comment-text p:last-child {
  margin-bottom: 0;
}

/* Nested reply thread: vertical line + indent */
.ycnp-comments-list .children {
  margin: 8px 0 0 12px;
  padding: 0 0 0 14px;
  border-left: 2px solid #c5d4e8;
  list-style: none;
}

.ycnp-comments-list .children .ycnp-comment,
.ycnp-comments-list .children .comment {
  position: relative;
  margin-top: 12px;
}

.ycnp-comments-list .children .ycnp-comment-body::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 22px;
  width: 12px;
  height: 2px;
  background: #c5d4e8;
}

.ycnp-comments-list .children .ycnp-comment-body {
  position: relative;
}

.ycnp-comment-reply-to {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6d85;
}

.ycnp-reply-arrow {
  display: inline-block;
  color: var(--ycnp-primary, #0d6efd);
  font-size: 14px;
  line-height: 1;
}

.ycnp-reply-parent-link {
  font-weight: 500;
  text-decoration: underline;
  color: var(--ycnp-primary, #0d6efd);
}

.ycnp-comment-reply {
  margin: 8px 0 0;
}

.ycnp-comment-reply .comment-reply-link,
.ycnp-comment-reply a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ycnp-primary, #0d6efd);
  text-decoration: none;
}

.ycnp-comment-reply .comment-reply-link:hover,
.ycnp-comment-reply a:hover {
  text-decoration: underline;
}

.ycnp-comment-form-wrap {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed #e8eef5;
}

.ycnp-reply-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.ycnp-cancel-reply a {
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}

@media (max-width: 575px) {
  .ycnp-comments-list .children {
    margin-left: 6px;
    padding-left: 10px;
  }

  .ycnp-comments-list .children .ycnp-comment-body::before {
    left: -10px;
    width: 8px;
  }
}

.ycnp-profile-main > .ycnp-edit-profile-card {
  margin-bottom: 0;
}

.ycnp-edit-profile-wrap {
  max-width: none;
}


.ycnp-share-profile.is-shared {
  border-color: #198754;
  color: #198754;
}

.ycnp-profile-sidebar .btn {
  margin-top: 8px;
}

.ycnp-profile-main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ycnp-profile-main-head-text {
  flex: 1 1 220px;
  min-width: 0;
}

.ycnp-profile-main-head h2 {
  margin: 0 0 4px;
}

.ycnp-profile-main-head p {
  margin: 0;
  color: #667;
}

.ycnp-card-placeholder {
  height: 160px;
  background: linear-gradient(135deg, #e8eefc, #f7f9ff);
}

.ycnp-card-meta {
  margin: 0 14px 4px;
  font-size: 12px;
  color: #889;
}

.ycnp-read-link {
  display: inline-block;
  margin: 0 14px 14px;
  color: var(--ycnp-primary);
  font-weight: 600;
  text-decoration: none;
}

.ycnp-pagination {
  margin-top: 24px;
  text-align: center;
}

.ycnp-pagination .page-numbers {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 2px;
  background: #e8eefc;
  border-radius: 6px;
  text-decoration: none;
}

.ycnp-pagination .page-numbers.current {
  background: var(--ycnp-primary);
  color: #fff;
}

.ycnp-community-members {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ycnp-member-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--ycnp-card);
  border-radius: var(--ycnp-radius);
  box-shadow: var(--ycnp-shadow);
  padding: 14px 16px;
}

.ycnp-member-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #e8eefc;
}

.ycnp-member-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.ycnp-member-info h3 a {
  color: inherit;
  text-decoration: none;
}

.ycnp-member-role,
.ycnp-member-joined {
  margin: 0;
  font-size: 13px;
  color: #667;
}

.ycnp-community-bar a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 768px) {
  .ycnp-member-card {
    grid-template-columns: 56px 1fr;
  }
  .ycnp-member-card .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .ycnp-profile-layout {
    grid-template-columns: 1fr;
  }
  .ycnp-profile-sidebar-inner {
    position: static;
  }
}

.ycnp-reco-grid,
.ycnp-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.ycnp-reco-card,
.ycnp-archive-card {
  background: var(--ycnp-card);
  border-radius: var(--ycnp-radius);
  overflow: hidden;
  box-shadow: var(--ycnp-shadow);
}

.ycnp-reco-card img,
.ycnp-archive-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.ycnp-reco-card h4,
.ycnp-archive-card h3 {
  margin: 12px 14px 6px;
  font-size: 16px;
}

.ycnp-reco-card p,
.ycnp-archive-card p {
  margin: 0 14px 16px;
  color: var(--ycnp-muted);
  font-size: 14px;
}

.ycnp-badge-verified {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Advertisement slots */
.ycnp-ad-slot {
  display: block;
  width: 100%;
  margin: 16px 0;
  text-align: center;
  overflow: hidden;
}

.ycnp-ad-slot--top {
  margin: 0 0 18px;
}

.ycnp-ad-slot--after_image {
  margin: 12px 0 18px;
}

.ycnp-ad-slot--before_content {
  margin: 8px 0 16px;
}

.ycnp-ad-slot--between {
  margin: 22px 0;
  padding: 10px 0;
  border-top: 1px dashed #e5e7eb;
  border-bottom: 1px dashed #e5e7eb;
}

.ycnp-ad-slot--bottom {
  margin: 20px 0 8px;
}

.ycnp-ad-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.ycnp-ad-layout.has-left,
.ycnp-ad-layout.has-right {
  grid-template-columns: 1fr;
}

.ycnp-ad-layout.has-left.has-right {
  grid-template-columns: 160px minmax(0, 1fr) 160px;
}

.ycnp-ad-layout.has-left:not(.has-right) {
  grid-template-columns: 160px minmax(0, 1fr);
}

.ycnp-ad-layout.has-right:not(.has-left) {
  grid-template-columns: minmax(0, 1fr) 160px;
}

.ycnp-ad-rail {
  position: sticky;
  top: 88px;
}

.ycnp-ad-rail .ycnp-ad-slot {
  margin: 0;
}

.ycnp-ad-slot--sticky,
.ycnp-sticky-ad {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  margin: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 8px;
  text-align: center;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

body.admin-bar .ycnp-ad-slot--sticky {
  bottom: 0;
}

@media (max-width: 991px) {
  .ycnp-ad-layout.has-left,
  .ycnp-ad-layout.has-right,
  .ycnp-ad-layout.has-left.has-right {
    grid-template-columns: 1fr;
  }

  .ycnp-ad-rail {
    position: static;
    order: 3;
  }
}

.ycnp-notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ycnp-notify-bell .badge {
  background: var(--ycnp-danger);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ycnp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.ycnp-modal.is-open {
  display: flex;
}

.ycnp-modal-card {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  padding: 20px;
}

.ycnp-modal-card textarea,
.ycnp-modal-card input {
  width: 100%;
  margin: 8px 0 12px;
}

.ycnp-report-preview {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 0 10px;
  background: #f4f7ff;
}

@media (max-width: 768px) {
  .ycnp-profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .ycnp-profile-hero img {
    margin: 0 auto;
  }
  .ycnp-actions {
    justify-content: center;
  }
  .sidebar {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }
  .wrapper {
    display: block !important;
  }
  .content {
    margin-left: 0 !important;
  }
}

/* Top bar + notification bell */
.ycnp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid #e8eef5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.ycnp-topbar-brand {
  font-weight: 700;
  color: var(--ycnp-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.ycnp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ycnp-topbar-link {
  color: var(--ycnp-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.ycnp-topbar-link:hover {
  color: var(--ycnp-primary);
}

.ycnp-notify-wrap {
  position: relative;
}

.ycnp-notify-bell {
  position: relative;
  border: 1px solid #dbe1ef;
  background: #fff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--ycnp-dark);
}

.ycnp-notify-bell:hover {
  border-color: var(--ycnp-primary);
  color: var(--ycnp-primary);
}

.ycnp-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ycnp-danger);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
}

.ycnp-notify-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 92vw);
  max-height: 420px;
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  box-shadow: var(--ycnp-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ycnp-notify-dropdown[hidden] {
  display: none !important;
}

.ycnp-notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
}

.ycnp-notify-mark-read {
  border: 0;
  background: transparent;
  color: var(--ycnp-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.ycnp-notify-list {
  overflow-y: auto;
  max-height: 360px;
}

.ycnp-notify-empty {
  margin: 0;
  padding: 20px 14px;
  color: var(--ycnp-muted);
  font-size: 13px;
  text-align: center;
}

.ycnp-notify-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f4fa;
  text-decoration: none;
  color: inherit;
}

.ycnp-notify-item:hover {
  background: #f7f9fc;
}

.ycnp-notify-item.is-unread {
  background: #eef5ff;
}

.ycnp-notify-type {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ycnp-primary);
  margin-bottom: 4px;
}

.ycnp-notify-msg {
  display: block;
  font-size: 13px;
  color: var(--ycnp-dark);
  line-height: 1.4;
}

.ycnp-notify-time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--ycnp-muted);
}

a.ycnp-mention {
  color: var(--ycnp-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted rgba(13, 110, 253, 0.45);
}

a.ycnp-mention:hover {
  text-decoration: none;
  border-bottom-color: var(--ycnp-primary);
  background: #eef5ff;
}

/* Floating notify + chat chrome (frontend & creator/customer wp-admin) */
.ycnp-float-chrome {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100000;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 10px;
  font-family: inherit;
}

.ycnp-float-chrome .ycnp-notify-wrap,
.ycnp-float-chrome .ycnp-chat-root {
  position: relative;
  right: auto;
  bottom: auto;
}

.ycnp-float-chrome .ycnp-notify-dropdown {
  right: 0;
  left: auto;
  bottom: calc(100% + 10px);
  top: auto;
}

.ycnp-float-chrome .ycnp-chat-panel {
  right: 0;
  left: auto;
  bottom: calc(100% + 10px);
  top: auto;
}

.ycnp-notify-foot {
  padding: 10px 14px;
  border-top: 1px solid #eef2f8;
  text-align: center;
}

.ycnp-notify-foot a {
  font-size: 12px;
  font-weight: 600;
  color: var(--ycnp-primary);
  text-decoration: none;
}

body.wp-admin .ycnp-float-chrome {
  bottom: 28px;
  right: 24px;
}

/* Chat with Admin */
.ycnp-chat-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  font-family: inherit;
}

.ycnp-chat-launcher,
.ycnp-float-chrome .ycnp-notify-bell {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--ycnp-primary);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ycnp-float-chrome .ycnp-notify-bell {
  background: #1a1f36;
  box-shadow: 0 10px 24px rgba(26, 31, 54, 0.28);
  border: 1px solid transparent;
}

.ycnp-ico-bell,
.ycnp-ico-chat {
  line-height: 1;
  font-size: 22px;
}

.ycnp-chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ycnp-danger);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
}

.ycnp-chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(360px, calc(100vw - 24px));
  height: min(480px, calc(100vh - 120px));
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  box-shadow: var(--ycnp-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ycnp-chat-panel[hidden] {
  display: none !important;
}

.ycnp-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f8;
  background: #f8fafc;
}

.ycnp-chat-sub {
  display: block;
  font-size: 12px;
  color: var(--ycnp-muted);
  margin-top: 2px;
}

.ycnp-chat-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ycnp-muted);
  padding: 0 4px;
}

.ycnp-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #f4f6fb;
}

.ycnp-chat-empty {
  margin: 24px 0;
  text-align: center;
  color: var(--ycnp-muted);
  font-size: 13px;
}

.ycnp-chat-bubble {
  max-width: 88%;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8eef5;
}

.ycnp-chat-bubble.is-mine {
  margin-left: auto;
  background: #eef5ff;
  border-color: #d6e6ff;
}

.ycnp-chat-bubble.is-admin {
  margin-right: auto;
}

.ycnp-chat-bubble.is-highlight {
  box-shadow: 0 0 0 2px var(--ycnp-primary);
}

.ycnp-chat-bubble-meta {
  font-size: 11px;
  color: var(--ycnp-muted);
  margin-bottom: 4px;
}

.ycnp-chat-bubble-text {
  font-size: 13px;
  color: var(--ycnp-dark);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ycnp-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eef2f8;
  background: #fff;
}

.ycnp-chat-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid #dbe1ef;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}

.ycnp-chat-form .ycnp-btn {
  align-self: flex-end;
  border-radius: 10px;
  background: var(--ycnp-primary);
  color: #fff;
  border-color: var(--ycnp-primary);
}

.ycnp-bookmarks-section {
  margin-bottom: 28px;
}

.ycnp-bookmarks-heading {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--ycnp-dark);
}

.ycnp-profile-sidebar .btn.is-current {
  box-shadow: inset 0 0 0 1px currentColor;
}

.ycnp-saved-card {
  position: relative;
}

.ycnp-saved-card > .ycnp-remove-saved {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(26, 31, 54, 0.16);
  cursor: pointer;
  color: var(--ycnp-danger);
  padding: 0;
}

.ycnp-remove-saved:hover {
  background: #fff5f5;
}

.ycnp-remove-saved:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ycnp-remove-icon {
  font-size: 14px;
  line-height: 1;
}

.ycnp-remove-x {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin-left: -2px;
}

.ycnp-saved-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ycnp-remove-saved-btn {
  border: 1px solid #f1c0c0;
  background: #fff;
  color: var(--ycnp-danger);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ycnp-remove-saved-btn:hover {
  background: #fff5f5;
}

.ycnp-bookmarks-empty {
  color: var(--ycnp-muted);
  font-size: 14px;
}
