.happy-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.happy-action,
.happy-follow-mini,
.happy-profile-follow {
  border: 1px solid #f4c7dc;
  background: #fff;
  color: #e85b96;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.happy-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.happy-action strong {
  min-width: 16px;
  color: inherit;
}

.happy-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff3f8;
  font-size: 12px;
  line-height: 1;
}

.happy-action:hover,
.happy-follow-mini:hover,
.happy-profile-follow:hover {
  border-color: #eb6aa0;
  color: #d93678;
  transform: translateY(-1px);
}

.happy-action.is-active,
.happy-follow-mini.is-active,
.happy-profile-follow.is-active {
  border-color: #eb6aa0;
  background: #eb6aa0;
  color: #fff;
}

.happy-action.is-active .happy-action-icon {
  background: rgba(255,255,255,.2);
}

.happy-action:disabled,
.happy-follow-mini:disabled,
.happy-profile-follow:disabled {
  opacity: .68;
  cursor: wait;
  transform: none;
}

.happy-author-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.happy-author-stats span,
.happy-my-stats span {
  border: 1px solid #f1dce6;
  border-radius: 8px;
  background: #fff8fb;
  color: #8b6b7a;
  text-align: center;
  padding: 8px 6px;
  font-size: 13px;
}

.happy-author-stats b,
.happy-my-stats b {
  display: block;
  color: #2f3440;
  font-size: 16px;
}

.happy-follow-mini,
.happy-profile-follow {
  width: 100%;
  min-height: 34px;
  margin-top: 10px;
  font-weight: 700;
}

.happy-profile-follow {
  width: auto;
  min-height: 30px;
  padding: 0 14px;
}

.happy-my-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.happy-my-stats span {
  padding: 6px 4px;
  font-size: 12px;
}

@media (max-width: 576px) {
  .happy-actions,
  .happy-action {
    width: 100%;
  }

  .happy-action {
    justify-content: center;
  }
}

.happy-dialog-open { overflow: hidden; }
.happy-reward-dialog[hidden] { display: none !important; }
.happy-reward-dialog { position: fixed; z-index: 1095; inset: 0; display: grid; place-items: center; padding: 20px; }
.happy-reward-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(31, 27, 30, .46); cursor: default; }
.happy-reward-panel { position: relative; width: min(390px, 100%); padding: 26px; border: 1px solid #ebe6e9; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(34, 29, 32, .22); text-align: center; }
.happy-reward-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: #827980; font-size: 21px; cursor: pointer; }
.happy-reward-mark { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 12px; border-radius: 50%; background: #fff0f5; color: #d84f82; font-size: 25px; }
.happy-reward-panel h2 { margin: 0; color: #312d30; font-size: 20px; font-weight: 800; }
.happy-reward-panel > p { margin: 8px 0 18px; color: #81777e; font-size: 13px; }
.happy-reward-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.happy-reward-options button { min-width: 0; padding: 12px 6px; border: 1px solid #eadde3; border-radius: 7px; background: #fff; color: #433c41; cursor: pointer; }
.happy-reward-options button:hover { border-color: #e1719b; background: #fff6f9; color: #c73f72; }
.happy-reward-options button:disabled { opacity: .55; cursor: wait; }
.happy-reward-options b, .happy-reward-options span { display: block; }
.happy-reward-options b { font-size: 20px; }
.happy-reward-options span { margin-top: 2px; color: #978b93; font-size: 11px; }
.happy-reward-status { min-height: 20px; margin-top: 13px; color: #c54272; font-size: 13px; }

.happy-profile-extra-show {
  display: grid;
  gap: 6px;
  max-width: 620px;
  color: #6f7480;
  font-size: 13px;
}

.happy-profile-extra-show span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  border: 1px solid #e8edf5;
  border-radius: 999px;
  background: #f8fafc;
  color: #657184;
  font-weight: 800;
}

.happy-profile-extra-show p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.happy-profile-mini-stats {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.happy-profile-mini-stats > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #f1dce6;
  border-radius: 999px;
  background: #fff8fb;
  color: #8b6b7a;
  font-size: 12px;
  font-weight: 800;
}

.happy-i-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.happy-i-profile-tabs {
  gap: 4px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.happy-i-profile-tabs .nav-link span {
  margin-left: 4px;
  color: #8b93a1;
  font-size: 12px;
}

.happy-i-activity-list {
  display: grid;
  gap: 0;
  min-height: 180px;
}

.happy-i-reply-item,
.happy-i-thread-activity-item,
.happy-i-person-item {
  padding: 18px 4px;
  border-bottom: 1px solid #edf0f5;
}

.happy-i-reply-item:last-child,
.happy-i-thread-activity-item:last-child,
.happy-i-person-item:last-child {
  border-bottom: 0;
}

.happy-i-item-meta,
.happy-i-thread-activity-item,
.happy-i-person-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.happy-i-item-meta {
  justify-content: space-between;
  color: #8b93a1;
  font-size: 13px;
}

.happy-i-reply-item h3,
.happy-i-thread-activity-item h3 {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 800;
}

.happy-i-reply-content {
  max-height: 96px;
  overflow: hidden;
  color: #667085;
  line-height: 1.7;
}

.happy-i-person-item {
  color: inherit;
}

.happy-i-person-item:hover {
  color: inherit;
  text-decoration: none;
}

.happy-i-person-item img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.happy-i-person-item > span {
  display: grid;
  flex: 1;
}

.happy-i-person-item small,
.happy-i-thread-activity-item small,
.happy-i-person-item time,
.happy-i-thread-activity-item time {
  color: #8b93a1;
  font-size: 12px;
}

.happy-i-thread-activity-item > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  background: #fff1f6;
  color: #e85b96;
  font-size: 20px;
}

.happy-i-thread-activity-item > div {
  min-width: 0;
  flex: 1;
}

.happy-i-thread-activity-item h3 {
  margin: 3px 0 0;
}

.happy-i-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  min-height: 160px;
  color: #98a1ae;
}

.happy-i-empty i {
  font-size: 30px;
}

@media (max-width: 768px) {
  .happy-i-profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .happy-i-profile-tabs .nav-link {
    white-space: nowrap;
  }

  .happy-i-thread-activity-item time,
  .happy-i-person-item time {
    display: none;
  }
}

body.happy-profile-edit-route #my_main > .card { min-height: 0 !important; }
body.happy-profile-edit-route #my_main > .card > .card-body { padding: 0 !important; }
.happy-profile-edit-page { color: #34313a; }
.happy-profile-edit-head {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #f0edf0;
}
.happy-profile-edit-head h1 { margin: 0 0 5px; font-size: 20px; font-weight: 850; letter-spacing: 0; }
.happy-profile-edit-head p { margin: 0; color: #8b828b; font-size: 13px; }
.happy-profile-edit-back {
  display: inline-flex;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid #e8e3e7;
  border-radius: 7px;
  background: #fff;
  color: #6f6670;
  font-size: 12px;
  font-weight: 750;
}
.happy-profile-edit-back:hover { border-color: #efbfd0; color: #d84f83; text-decoration: none; }
.happy-profile-edit-pending { display: flex; align-items: center; gap: 8px; margin: 18px 24px 0; border-radius: 7px; }
.happy-profile-edit-form { display: grid; gap: 22px; padding: 24px; }
.happy-profile-edit-field { position: relative; display: grid; gap: 8px; }
.happy-profile-edit-field label { margin: 0; color: #4b454c; font-size: 13px; font-weight: 800; }
.happy-profile-edit-field .form-control {
  width: 100%;
  border: 1px solid #e3dfe3;
  border-radius: 7px;
  background: #fff;
  color: #353039;
  box-shadow: none;
  font-size: 14px;
}
.happy-profile-edit-field input.form-control { height: 44px; padding: 0 13px; }
.happy-profile-edit-field textarea.form-control { min-height: 150px; padding: 12px 13px 28px; line-height: 1.65; resize: vertical; }
.happy-profile-edit-field .form-control:focus { border-color: #e78cac; box-shadow: 0 0 0 3px rgba(231, 140, 172, .12); }
.happy-profile-edit-field > small { position: absolute; right: 11px; bottom: 8px; color: #aaa1a9; font-size: 11px; }
.happy-profile-edit-field:has(input) > small { bottom: 13px; }
.happy-profile-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid #f0edf0;
}
.happy-profile-edit-actions > span { display: inline-flex; align-items: center; gap: 6px; color: #918790; font-size: 12px; }
.happy-profile-edit-actions .btn-primary {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  border: 0;
  border-radius: 7px;
  background: #e94f87;
  font-size: 13px;
  font-weight: 800;
}
.happy-profile-edit-actions .btn-primary:hover { background: #d94279; }
.happy-profile-edit-actions .btn-primary:disabled { opacity: .58; }

@media (max-width: 640px) {
  .happy-profile-edit-head { min-height: 78px; padding: 17px 16px; }
  .happy-profile-edit-head h1 { font-size: 18px; }
  .happy-profile-edit-head p { display: none; }
  .happy-profile-edit-pending { margin: 14px 16px 0; }
  .happy-profile-edit-form { gap: 18px; padding: 18px 16px; }
  .happy-profile-edit-actions { align-items: stretch; flex-direction: column; }
  .happy-profile-edit-actions .btn-primary { justify-content: center; }
}

.happy-school-verified-badge {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: middle;
}

.happy-school-verified-badge img,
.happy-school-verified-icon {
  display: block;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px;
  object-fit: contain;
}

.happy-profile-extra-show .happy-school-verified-icon {
  margin-left: 2px;
}

.happy-school-verify {
  margin: 0 24px 24px;
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(36, 38, 49, .055);
  overflow: hidden;
}

.happy-school-verify > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f1f4;
}

.happy-school-verify-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff8e8;
}

.happy-school-verify-icon img { width: 25px; height: 25px; }
.happy-school-verify h2 { margin: 0; color: #34313a; font-size: 16px; font-weight: 800; }
.happy-school-verify header p { margin: 4px 0 0; color: #8d939f; font-size: 12px; }
.happy-school-verify header em { padding: 5px 9px; border-radius: 6px; background: #f2f3f6; color: #838996; font-size: 11px; font-style: normal; font-weight: 700; }
.happy-school-verify header em.is-pending { background: #fff7df; color: #9a6b12; }
.happy-school-verify header em.is-verified { background: #edf9f2; color: #27865a; }
.happy-school-verify-notice { display: flex; align-items: center; gap: 8px; margin: 16px 20px 0; padding: 10px 12px; border-radius: 7px; background: #fff8e8; color: #87631c; font-size: 12px; }
.happy-school-verify form { display: grid; gap: 18px; padding: 20px; }
.happy-school-verify .happy-profile-edit-field textarea.form-control { min-height: 110px; }
.happy-school-verify .happy-profile-edit-field .form-control:focus { border-color: #d4ad51; box-shadow: 0 0 0 3px rgba(212, 173, 81, .12); }
.happy-school-verify .happy-profile-edit-actions .btn-primary { background: #b88727; }
.happy-school-verify .happy-profile-edit-actions .btn-primary:hover { background: #9c701d; }

@media (max-width: 640px) {
  .happy-school-verify { margin: 0 16px 18px; }
  .happy-school-verify > header { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 15px; }
  .happy-school-verify-icon { width: 38px; height: 38px; }
  .happy-school-verify header p { display: none; }
  .happy-school-verify form { padding: 16px; }
}
