/* =========================================================

   ISLAMIC QALAM PROFILE PAGE

   ========================================================= */



/* ================= HIDDEN ================= */



[hidden] {

  display: none !important;

}



/* ================= PAGE ================= */



.profile-page {

  width: 100%;

  flex: 1;



  margin-top: 0;

  padding: 82px 0 6rem;



  background: var(--home-bg);



  text-align: left;

}



/* ================= LOADING ================= */



.profile-loading {

  display: flex;



  min-height: 100vh;



  gap: 1rem;



  align-items: center;

  justify-content: center;



  flex-direction: column;



  color: var(--home-muted);



  background: var(--home-bg);

}



.profile-spinner {

  width: 38px;

  height: 38px;



  border: 3px solid rgba(13, 59, 38, 0.14);



  border-top-color: var(--home-green);



  border-radius: 50%;



  animation: profile-spin 0.8s linear infinite;

}



@keyframes profile-spin {

  to {

    transform: rotate(360deg);

  }

}



/* ================= LAYOUT ================= */



.profile-layout {

  display: grid;



  width: min(1080px, calc(100% - 40px));



  grid-template-columns: 300px minmax(0, 1fr);



  gap: 1.5rem;



  align-items: start;



  margin-inline: auto;



  padding-top: 4.5rem;

}



/* ================= PROFILE SUMMARY ================= */



.profile-summary {

  padding: 2rem;



  border: 1px solid var(--home-border);



  border-radius: var(--home-radius);



  background: var(--home-surface);



  box-shadow: 0 8px 28px rgba(33, 42, 32, 0.05);



  text-align: center;

}



.profile-avatar {

  display: grid;



  width: 92px;

  height: 92px;



  margin: 0 auto 1.2rem;



  place-items: center;



  border: 1px solid rgba(140, 98, 57, 0.2);



  border-radius: 50%;



  color: #ffffff;



  background: var(--home-green);



  box-shadow: 0 10px 25px rgba(13, 59, 38, 0.16);



  font-family: Georgia, "Times New Roman", serif;



  font-size: 2.1rem;

}



.profile-summary h1 {

  margin: 0;



  color: var(--home-green);



  font-family: Georgia, "Times New Roman", serif;



  font-size: 1.6rem;



  font-weight: 600;

}



.profile-username {

  margin-top: 0.3rem;



  color: var(--home-muted);



  font-size: 0.9rem;

}



/* ================= VERIFIED ================= */



.verification-badge {

  display: inline-flex;



  gap: 0.35rem;



  align-items: center;



  margin-top: 1rem;



  padding: 0.4rem 0.65rem;



  border-radius: 999px;



  color: #17613d;



  background: #e8f5ec;



  font-size: 0.72rem;



  font-weight: 800;

}



.verification-badge.unverified {

  color: #8a5815;



  background: #fff1d8;

}



/* ================= SUMMARY DETAILS ================= */



.profile-summary-divider {

  height: 1px;



  margin: 1.6rem 0;



  background: var(--home-border);

}



.profile-summary-details {

  display: flex;



  flex-direction: column;



  gap: 1rem;



  text-align: left;

}



.profile-summary-row {

  display: flex;



  gap: 0.8rem;



  align-items: center;

}



.summary-icon {

  display: grid;



  width: 40px;

  height: 40px;



  flex: 0 0 auto;



  place-items: center;



  border-radius: 11px;



  color: var(--home-brown-dark);



  background: var(--home-surface-soft);

}



.profile-summary-row > div {

  display: flex;



  min-width: 0;



  flex-direction: column;



  gap: 0.12rem;

}



.profile-summary-row span:not(.summary-icon) {

  color: var(--home-muted);



  font-size: 0.73rem;



  font-weight: 700;

}



.profile-summary-row strong {

  color: var(--home-text);



  font-size: 0.88rem;

}



/* ================= LOGOUT ================= */



.profile-logout {

  display: flex;



  width: 100%;



  min-height: 45px;



  gap: 0.5rem;



  align-items: center;

  justify-content: center;



  margin-top: 1.8rem;



  border: 1px solid rgba(181, 33, 33, 0.2);



  border-radius: 10px;



  color: var(--red-color);



  background: transparent;



  font: inherit;



  font-weight: 800;



  cursor: pointer;



  transition:

    background-color 0.2s ease,

    border-color 0.2s ease;

}



.profile-logout:hover {

  border-color: rgba(181, 33, 33, 0.35);



  background: #fff0f0;

}



/* ================= MAIN CONTENT ================= */



.profile-content {

  display: flex;



  flex-direction: column;



  gap: 1rem;

}



/* ================= PAGE HEADING ================= */



.profile-page-heading {

  padding: 0.5rem 0 1.2rem;

}



.profile-page-heading h2 {

  margin: 0;



  color: var(--home-green);



  font-family: Georgia, "Times New Roman", serif;



  font-size: clamp(2rem, 4vw, 3rem);



  font-weight: 600;



  letter-spacing: -0.025em;

}



.profile-page-heading > p:last-child {

  max-width: 650px;



  margin-top: 0.65rem;



  color: var(--home-muted);



  line-height: 1.65;

}



/* ================= PANELS ================= */



.profile-panel {

  padding: clamp(1.3rem, 3vw, 2rem);



  border: 1px solid var(--home-border);



  border-radius: var(--home-radius);



  background: var(--home-surface);



  box-shadow: 0 8px 28px rgba(33, 42, 32, 0.045);

}



.profile-panel-heading {

  display: flex;



  gap: 0.9rem;



  align-items: center;



  margin-bottom: 1.8rem;

}



.profile-panel-icon {

  display: grid;



  width: 46px;

  height: 46px;



  flex: 0 0 auto;



  place-items: center;



  border-radius: 13px;



  color: var(--home-brown-dark);



  background: var(--home-surface-soft);

}



.profile-panel-heading h3 {

  margin: 0;



  color: var(--home-green);



  font-family: Georgia, "Times New Roman", serif;



  font-size: 1.3rem;

}



.profile-panel-heading p {

  margin-top: 0.2rem;



  color: var(--home-muted);



  font-size: 0.84rem;

}



/* ================= FORM ================= */



#profileForm {

  display: flex;



  flex-direction: column;



  gap: 1.3rem;

}



.profile-form-group {

  display: flex;



  flex-direction: column;



  gap: 0.5rem;

}



.profile-form-group label {

  color: var(--home-green);



  font-size: 0.86rem;



  font-weight: 800;

}



.profile-input-wrapper {

  position: relative;



  display: flex;



  align-items: center;

}



.profile-input-wrapper i {

  position: absolute;



  left: 1rem;



  color: var(--home-muted);



  font-size: 0.85rem;



  pointer-events: none;

}



.profile-input-wrapper input {

  width: 100%;



  min-height: 50px;



  padding: 0.8rem 1rem 0.8rem 2.8rem;



  border: 1px solid rgba(13, 59, 38, 0.18);



  border-radius: 11px;



  outline: none;



  color: var(--home-text);



  background: #ffffff;



  font: inherit;



  transition:

    border-color 0.2s ease,

    box-shadow 0.2s ease;

}



.profile-input-wrapper input:focus {

  border-color: rgba(140, 98, 57, 0.6);



  box-shadow: 0 0 0 4px rgba(140, 98, 57, 0.09);

}



.profile-input-wrapper input[readonly] {

  color: var(--home-muted);



  background: #f5f2eb;



  cursor: not-allowed;

}



.profile-field-note {

  margin: 0;



  color: var(--home-muted);



  font-size: 0.74rem;



  line-height: 1.45;

}



/* ================= SAVE ================= */



.profile-save-button {

  display: inline-flex;



  align-self: flex-start;



  min-height: 47px;



  gap: 0.55rem;



  align-items: center;

  justify-content: center;



  padding: 0.75rem 1.1rem;



  border: none;



  border-radius: 10px;



  color: #ffffff;



  background: var(--home-green);



  font: inherit;



  font-weight: 800;



  cursor: pointer;



  transition:

    background-color 0.2s ease,

    transform 0.2s ease;

}



.profile-save-button:hover {

  background: var(--home-green-light);



  transform: translateY(-1px);

}



.profile-save-button:disabled {

  opacity: 0.6;



  cursor: not-allowed;



  transform: none;

}



/* ================= MESSAGE ================= */



.profile-message {

  display: none;



  padding: 0.75rem 0.9rem;



  border-radius: 9px;



  font-size: 0.84rem;

}



.profile-message.show {

  display: block;

}



.profile-message.success {

  border: 1px solid rgba(23, 97, 61, 0.15);



  color: #17613d;



  background: #edf8f1;

}



.profile-message.error {

  border: 1px solid rgba(181, 33, 33, 0.17);



  color: #a12626;



  background: #fff1f1;

}



/* ================= ACCOUNT DETAILS ================= */



.account-details {

  border: 1px solid var(--home-border);



  border-radius: 12px;



  overflow: hidden;



  background: #ffffff;

}



.account-detail-row {

  display: flex;



  gap: 1.5rem;



  align-items: center;

  justify-content: space-between;



  padding: 1rem 1.1rem;



  border-bottom: 1px solid var(--home-border);

}



.account-detail-row:last-child {

  border-bottom: none;

}



.account-detail-row > div {

  display: flex;



  min-width: 0;



  flex-direction: column;



  gap: 0.25rem;

}



.account-detail-label {

  color: var(--home-muted);



  font-size: 0.72rem;



  font-weight: 800;



  letter-spacing: 0.04em;



  text-transform: uppercase;

}



.account-detail-row strong {

  color: var(--home-text);



  font-size: 0.88rem;



  overflow-wrap: anywhere;

}



.account-id {

  font-family: monospace;



  font-size: 0.78rem !important;



  color: var(--home-muted) !important;

}



.account-status {

  flex: 0 0 auto;



  padding: 0.35rem 0.55rem;



  border-radius: 999px;



  color: #17613d;



  background: #e8f5ec;



  font-size: 0.7rem;



  font-weight: 800;

}



.account-status.unverified {

  color: #8a5815;



  background: #fff1d8;

}



/* ================= TABLET ================= */



@media only screen and (max-width: 850px) {

  .profile-layout {

    grid-template-columns: 1fr;

  }



  .profile-summary {

    max-width: none;

  }



  .profile-summary-details {

    display: grid;



    grid-template-columns: repeat(2, minmax(0, 1fr));

  }

}



/* ================= MOBILE ================= */



@media only screen and (max-width: 768px) {

  .profile-page {

    padding-top: 72px;

  }



  .profile-layout {

    width: min(100% - 28px, 1080px);



    padding-top: 3rem;

  }

}



/* ================= SMALL MOBILE ================= */



@media only screen and (max-width: 500px) {

  .profile-summary-details {

    grid-template-columns: 1fr;

  }



  .account-detail-row {

    align-items: flex-start;



    flex-direction: column;

  }



  .profile-save-button {

    width: 100%;

  }

}



/* =========================================================

   PROFILE AVATAR

   ========================================================= */



.profile-avatar {

  display: block;



  width: 108px;

  height: 108px;



  margin: 0 auto 1.2rem;



  padding: 4px;



  overflow: hidden;



  border: 2px solid rgba(140, 98, 57, 0.25);



  border-radius: 50%;



  background: var(--home-surface-soft);



  box-shadow: 0 10px 25px rgba(13, 59, 38, 0.12);

}



.profile-avatar img {

  display: block;



  width: 100%;

  height: 100%;



  border-radius: 50%;



  object-fit: cover;

}



/* ================= AVATAR OPTIONS ================= */



.avatar-options {

  display: grid;



  grid-template-columns: repeat(2, minmax(0, 170px));



  gap: 1rem;



  margin-top: 0.5rem;

}



.avatar-option {

  position: relative;



  cursor: pointer;

}



.avatar-option input {

  position: absolute;



  width: 1px;

  height: 1px;



  opacity: 0;



  pointer-events: none;

}



.avatar-option-card {

  position: relative;



  display: flex;



  gap: 0.7rem;



  align-items: center;



  flex-direction: column;



  padding: 0.9rem;



  border: 2px solid var(--home-border);



  border-radius: 15px;



  background: #ffffff;



  color: var(--home-green);



  font-size: 0.82rem;



  font-weight: 800;



  transition:

    border-color 0.2s ease,

    background-color 0.2s ease,

    transform 0.2s ease,

    box-shadow 0.2s ease;

}



.avatar-option-card img {

  display: block;



  width: 92px;

  height: 92px;



  border-radius: 50%;



  object-fit: cover;



  border: 1px solid rgba(140, 98, 57, 0.2);

}



.avatar-option:hover .avatar-option-card {

  border-color: rgba(140, 98, 57, 0.45);



  transform: translateY(-2px);

}



/* ================= SELECTED AVATAR ================= */



.avatar-option input:checked + .avatar-option-card {

  border-color: var(--home-green);



  background: rgba(13, 59, 38, 0.04);



  box-shadow: 0 8px 20px rgba(13, 59, 38, 0.08);

}



.avatar-check {

  position: absolute;



  top: 8px;

  right: 8px;



  display: none;



  width: 24px;

  height: 24px;



  align-items: center;

  justify-content: center;



  border-radius: 50%;



  color: #ffffff;



  background: var(--home-green);



  font-size: 0.65rem;

}



.avatar-option input:checked + .avatar-option-card .avatar-check {

  display: flex;

}



/* ================= KEYBOARD FOCUS ================= */



.avatar-option input:focus-visible + .avatar-option-card {

  outline: 3px solid rgba(140, 98, 57, 0.4);



  outline-offset: 3px;

}



/* ================= MOBILE ================= */



@media only screen and (max-width: 480px) {

  .avatar-options {

    grid-template-columns: repeat(2, minmax(0, 1fr));

  }



  .avatar-option-card img {

    width: 78px;

    height: 78px;

  }

}



/* =========================================================

   CHANGE PASSWORD

   ========================================================= */



#changePasswordForm {

  display: flex;



  flex-direction: column;



  gap: 1.3rem;

}



.profile-password-wrapper input {

  padding-right: 3.2rem;

}



.profile-password-toggle {

  position: absolute;



  right: 0.55rem;



  display: grid;



  width: 38px;

  height: 38px;



  place-items: center;



  border: none;



  border-radius: 8px;



  color: var(--home-muted);



  background: transparent;



  cursor: pointer;

}



.profile-password-toggle:hover {

  color: var(--home-green);



  background: var(--home-surface-soft);

}



/* =========================================================

   PROFILE DASHBOARD NAVIGATION

   ========================================================= */



.profile-navigation {

  display: flex;

  flex-direction: column;

  gap: 0.4rem;



  margin-top: 1.5rem;

  padding-top: 1.4rem;



  border-top: 1px solid var(--home-border);



  text-align: left;

}



.profile-nav-button {

  display: grid;



  width: 100%;

  min-height: 50px;



  grid-template-columns:

    34px

    minmax(0, 1fr)

    auto

    14px;



  gap: 0.6rem;



  align-items: center;



  padding: 0.55rem 0.7rem;



  border: 1px solid transparent;

  border-radius: 11px;



  color: var(--home-muted);

  background: transparent;



  font: inherit;

  font-size: 0.84rem;

  font-weight: 800;



  text-align: left;



  cursor: pointer;



  transition:

    color 0.2s ease,

    border-color 0.2s ease,

    background-color 0.2s ease,

    transform 0.2s ease;

}



.profile-nav-button:hover {

  color: var(--home-green);

  background: var(--home-surface-soft);

}



.profile-nav-button.active {

  border-color: rgba(13, 59, 38, 0.12);



  color: var(--home-green);

  background: rgba(13, 59, 38, 0.07);

}



.profile-nav-icon {

  display: grid;



  width: 34px;

  height: 34px;



  place-items: center;



  border-radius: 9px;



  color: var(--home-brown-dark);

  background: var(--home-surface-soft);

}



.profile-nav-button.active .profile-nav-icon {

  color: #ffffff;

  background: var(--home-green);

}



.profile-nav-label {

  min-width: 0;

}



.profile-nav-arrow {

  color: rgba(13, 59, 38, 0.3);

  font-size: 0.65rem;

}



.profile-nav-count {

  display: grid;



  min-width: 26px;

  height: 23px;



  padding: 0 0.4rem;



  place-items: center;



  border-radius: 999px;



  color: var(--home-green);

  background: var(--home-surface-soft);



  font-size: 0.68rem;

}



/* =========================================================

   PROFILE SECTIONS

   ========================================================= */



.profile-section {

  animation: profile-section-in 0.24s ease;

}



/* =========================================================

   PROFILE COMMENT ENGAGEMENT

========================================================= */



.profile-comment-footer-info {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 0.65rem;

}



.profile-comment-engagement {

  display: inline-flex;

  align-items: center;

  gap: 0.3rem;



  color: var(--home-muted);



  font-size: 0.75rem;

  font-weight: 700;

}



.profile-comment-engagement i {

  color: var(--home-green);

}



/* =========================================================

   PROFILE COMMENT REPLIES

========================================================= */



.profile-comment-replies {

  margin-top: 1rem;

  padding-top: 1rem;



  border-top: 1px solid var(--home-border);

}



.profile-replies-heading {

  display: block;



  margin-bottom: 0.8rem;



  color: var(--home-green);



  font-size: 0.78rem;

}



.profile-reply-card {

  display: grid;



  grid-template-columns:

    38px

    minmax(0, 1fr);



  gap: 0.7rem;



  padding: 0.75rem 0;



  border-bottom: 1px solid rgba(13, 59, 38, 0.07);

}



.profile-reply-card:last-child {

  border-bottom: 0;

}



.profile-reply-avatar {

  width: 38px;

  height: 38px;



  border-radius: 50%;



  object-fit: cover;

}



.profile-reply-header {

  display: flex;



  align-items: flex-start;

  justify-content: space-between;



  gap: 1rem;

}



.profile-reply-header strong {

  display: block;



  color: var(--home-text);



  font-size: 0.78rem;

}



.profile-reply-username {

  display: block;



  margin-top: 0.1rem;



  color: var(--home-muted);



  font-size: 0.68rem;

}



.profile-reply-date {

  flex-shrink: 0;



  color: var(--home-muted);



  font-size: 0.68rem;

}



.profile-reply-content {

  margin: 0.4rem 0;



  color: var(--home-text);



  font-size: 0.78rem;



  line-height: 1.6;

}



.profile-reply-engagement {

  display: flex;

  align-items: center;

  gap: 0.3rem;



  color: var(--home-muted);



  font-size: 0.7rem;

}



/* =========================================================

   MESSAGES

========================================================= */



.profile-messages-toolbar {

  display: flex;



  align-items: center;

  justify-content: space-between;



  gap: 1rem;



  margin-bottom: 1.2rem;

}



.profile-messages-toolbar h3 {

  margin: 0;



  color: var(--home-green);

}



.profile-messages-toolbar p {

  margin: 0.2rem 0 0;



  color: var(--home-muted);



  font-size: 0.78rem;

}



.profile-mark-read-button {

  display: inline-flex;



  align-items: center;



  gap: 0.4rem;



  padding: 0.55rem 0.8rem;



  border: 1px solid var(--home-border);



  border-radius: 999px;



  color: var(--home-green);



  background: transparent;



  font: inherit;

  font-size: 0.72rem;

  font-weight: 800;



  cursor: pointer;

}



.profile-messages-list {

  display: flex;

  flex-direction: column;



  gap: 0.7rem;

}



.profile-message-card {

  display: grid;



  grid-template-columns:

    42px

    minmax(0, 1fr);



  gap: 0.8rem;



  padding: 1rem;



  border: 1px solid var(--home-border);



  border-radius: 14px;



  background: var(--home-surface);



  cursor: pointer;

}



.profile-message-card.unread {

  border-color: rgba(13, 59, 38, 0.28);



  background: var(--home-surface-soft);

}



.profile-message-icon {

  display: grid;



  width: 42px;

  height: 42px;



  place-items: center;



  border-radius: 50%;



  color: var(--home-green);



  background: var(--home-surface-soft);

}



.profile-message-card-top {

  display: flex;



  align-items: flex-start;

  justify-content: space-between;



  gap: 1rem;

}



.profile-message-card-top strong {

  color: var(--home-green);

}



.profile-message-card-top time {

  flex-shrink: 0;



  color: var(--home-muted);



  font-size: 0.68rem;

}



.profile-message-body p {

  margin: 0.4rem 0 0;



  color: var(--home-text);



  font-size: 0.78rem;



  line-height: 1.65;

}



.profile-message-new {

  display: inline-block;



  margin-top: 0.55rem;



  padding: 0.2rem 0.45rem;



  border-radius: 999px;



  color: #ffffff;



  background: var(--home-green);



  font-size: 0.62rem;



  font-weight: 800;

}



.profile-comment-page {

  color: var(--home-green);



  text-decoration: none;



  cursor: pointer;



  transition: color 0.2s ease;

}



.profile-comment-page:hover {

  color: var(--home-brown-dark);



  text-decoration: underline;

}



@keyframes profile-section-in {

  from {

    opacity: 0;

    transform: translateY(5px);

  }



  to {

    opacity: 1;

    transform: translateY(0);

  }

}



/* =========================================================

   COMMENTS TOOLBAR

   ========================================================= */



.profile-comments-toolbar {

  display: flex;



  gap: 1rem;



  align-items: center;

  justify-content: space-between;



  margin-bottom: 1.25rem;

}



.profile-comments-total {

  display: flex;



  gap: 0.35rem;



  flex-direction: column;

}



.profile-comments-total span {

  color: var(--home-muted);



  font-size: 0.72rem;

  font-weight: 800;



  text-transform: uppercase;

  letter-spacing: 0.04em;

}



.profile-comments-total strong {

  color: var(--home-green);



  font-family: Georgia, "Times New Roman", serif;



  font-size: 1.5rem;

}



.profile-comments-filter select {

  min-height: 42px;



  padding: 0.65rem 2.2rem 0.65rem 0.8rem;



  border: 1px solid var(--home-border);

  border-radius: 9px;



  outline: none;



  color: var(--home-text);

  background: #ffffff;



  font: inherit;

  font-size: 0.8rem;

  font-weight: 700;



  cursor: pointer;

}



/* =========================================================

   COMMENTS LIST

   ========================================================= */



.profile-comments-list {

  display: flex;



  flex-direction: column;



  gap: 0.8rem;

}



.profile-comment-card {

  padding: 1rem 1.1rem;



  border: 1px solid var(--home-border);

  border-radius: 13px;



  background: #ffffff;



  transition:

    border-color 0.2s ease,

    box-shadow 0.2s ease,

    transform 0.2s ease;

}



.profile-comment-card:hover {

  border-color: rgba(140, 98, 57, 0.28);



  box-shadow: 0 8px 22px rgba(33, 42, 32, 0.055);



  transform: translateY(-1px);

}



.profile-comment-top {

  display: flex;



  gap: 1rem;



  align-items: flex-start;

  justify-content: space-between;



  margin-bottom: 0.75rem;

}



.profile-comment-meta {

  display: flex;



  gap: 0.45rem 0.7rem;



  align-items: center;

  flex-wrap: wrap;



  color: var(--home-muted);



  font-size: 0.72rem;

}



.profile-comment-meta i {

  color: var(--home-brown);

}



.profile-comment-page {

  color: var(--home-green);



  font-weight: 800;

}



.profile-comment-status {

  display: inline-flex;



  align-items: center;



  padding: 0.3rem 0.55rem;



  border-radius: 999px;



  font-size: 0.67rem;

  font-weight: 800;



  white-space: nowrap;

}



.profile-comment-status.approved {

  color: #17613d;

  background: #e8f5ec;

}



.profile-comment-status.pending {

  color: #8a5815;

  background: #fff1d8;

}



.profile-comment-status.rejected {

  color: #a12626;

  background: #fff0f0;

}



.profile-comment-content {

  margin: 0;



  color: var(--home-text);



  font-size: 0.88rem;

  line-height: 1.65;



  white-space: pre-wrap;

  overflow-wrap: anywhere;

}



.profile-comment-footer {

  display: flex;



  gap: 0.6rem;



  align-items: center;



  margin-top: 0.8rem;

  padding-top: 0.7rem;



  border-top: 1px solid rgba(13, 59, 38, 0.08);



  color: var(--home-muted);



  font-size: 0.7rem;

}



.profile-comment-reply-badge {

  display: inline-flex;



  gap: 0.3rem;



  align-items: center;



  color: var(--home-brown-dark);



  font-weight: 700;

}



/* ================= COMMENTS LOADING ================= */



.profile-comments-loading {

  display: flex;



  gap: 0.7rem;



  align-items: center;

  justify-content: center;



  padding: 2rem;



  color: var(--home-muted);



  font-size: 0.82rem;

}



.profile-mini-spinner {

  width: 22px;

  height: 22px;



  border: 2px solid rgba(13, 59, 38, 0.12);



  border-top-color: var(--home-green);



  border-radius: 50%;



  animation: profile-spin 0.8s linear infinite;

}



/* ================= EMPTY COMMENTS ================= */



.profile-comments-empty {

  padding: 3rem 1.5rem;



  text-align: center;

}



.profile-comments-empty-icon {

  display: grid;



  width: 58px;

  height: 58px;



  margin: 0 auto 1rem;



  place-items: center;



  border-radius: 50%;



  color: var(--home-brown-dark);

  background: var(--home-surface-soft);



  font-size: 1.25rem;

}



.profile-comments-empty h3 {

  margin: 0;



  color: var(--home-green);



  font-family: Georgia, "Times New Roman", serif;



  font-size: 1.2rem;

}



.profile-comments-empty p {

  margin-top: 0.45rem;



  color: var(--home-muted);



  font-size: 0.82rem;

}



/* ================= ACCESSIBILITY ================= */



.sr-only {

  position: absolute;



  width: 1px;

  height: 1px;



  padding: 0;

  margin: -1px;



  overflow: hidden;



  clip: rect(0, 0, 0, 0);



  white-space: nowrap;



  border: 0;

}



/* =========================================================

   MOBILE DASHBOARD

   ========================================================= */



@media only screen and (max-width: 850px) {

  .profile-navigation {

    display: grid;



    grid-template-columns: repeat(3, minmax(0, 1fr));



    gap: 0.5rem;

  }



  .profile-nav-button {

    display: flex;



    min-height: 74px;



    align-items: center;

    justify-content: center;



    flex-direction: column;



    gap: 0.3rem;



    text-align: center;

  }



  .profile-nav-arrow {

    display: none;

  }



  .profile-nav-count {

    position: absolute;



    margin: -48px 0 0 42px;

  }

}



@media only screen and (max-width: 520px) {

  .profile-comments-toolbar {

    align-items: stretch;



    flex-direction: column;

  }



  .profile-comments-filter select {

    width: 100%;

  }



  .profile-comment-top {

    flex-direction: column;

  }

}



/* =========================================================

   COMMENT ACTIONS

   ========================================================= */



.profile-comment-footer {

  justify-content: space-between;

}



.profile-comment-footer-info {

  display: flex;

  align-items: center;

  gap: 0.55rem;

}



.profile-comment-actions {

  display: flex;

  align-items: center;

  gap: 0.45rem;

}



.profile-comment-action {

  display: inline-flex;

  align-items: center;

  justify-content: center;



  gap: 0.35rem;



  min-height: 34px;



  padding: 0.45rem 0.7rem;



  border: 1px solid var(--home-border);

  border-radius: 8px;



  color: var(--home-muted);

  background: transparent;



  font: inherit;

  font-size: 0.72rem;

  font-weight: 800;



  cursor: pointer;



  transition:

    color 0.2s ease,

    border-color 0.2s ease,

    background-color 0.2s ease;

}



.profile-comment-action:hover {

  color: var(--home-green);

  border-color: rgba(13, 59, 38, 0.25);

  background: var(--home-surface-soft);

}



.profile-comment-action.delete:hover {

  color: #a12626;

  border-color: rgba(161, 38, 38, 0.2);

  background: #fff3f3;

}



/* =========================================================

   COMMENT EDITOR

   ========================================================= */



.profile-comment-editor {

  margin-top: 0.35rem;

}



.profile-comment-edit-textarea {

  display: block;



  width: 100%;

  min-height: 120px;



  padding: 0.9rem 1rem;



  resize: vertical;



  border: 1px solid var(--home-border);

  border-radius: 10px;



  outline: none;



  color: var(--home-text);

  background: #ffffff;



  font: inherit;

  font-size: 0.88rem;

  line-height: 1.65;



  transition:

    border-color 0.2s ease,

    box-shadow 0.2s ease;

}



.profile-comment-edit-textarea:focus {

  border-color: var(--home-green);



  box-shadow: 0 0 0 3px rgba(13, 59, 38, 0.08);

}



.profile-comment-editor-bottom {

  display: flex;



  gap: 0.75rem;



  align-items: center;

  justify-content: space-between;



  margin-top: 0.7rem;

}



.profile-comment-character-count {

  color: var(--home-muted);



  font-size: 0.7rem;

}



.profile-comment-editor-actions {

  display: flex;

  gap: 0.5rem;

}



.profile-comment-save,

.profile-comment-cancel {

  display: inline-flex;



  min-height: 36px;



  align-items: center;

  justify-content: center;



  gap: 0.4rem;



  padding: 0.5rem 0.8rem;



  border-radius: 8px;



  font: inherit;

  font-size: 0.73rem;

  font-weight: 800;



  cursor: pointer;

}



.profile-comment-save {

  border: 1px solid var(--home-green);



  color: #ffffff;

  background: var(--home-green);

}



.profile-comment-save:hover {

  background: var(--home-green-light);

}



.profile-comment-cancel {

  border: 1px solid var(--home-border);



  color: var(--home-muted);

  background: transparent;

}



.profile-comment-cancel:hover {

  color: var(--home-text);

  background: var(--home-surface-soft);

}



/* =========================================================

   DELETE CONFIRMATION

   ========================================================= */



.profile-delete-confirmation {

  display: flex;



  gap: 0.55rem;



  align-items: center;

  flex-wrap: wrap;

}



.profile-delete-confirmation span {

  margin-right: 0.25rem;



  color: #8f2929;



  font-size: 0.72rem;

  font-weight: 800;

}



.profile-delete-confirm,

.profile-delete-cancel {

  min-height: 32px;



  padding: 0.4rem 0.65rem;



  border-radius: 7px;



  font: inherit;

  font-size: 0.7rem;

  font-weight: 800;



  cursor: pointer;

}



.profile-delete-confirm {

  border: 1px solid #a12626;



  color: #ffffff;

  background: #a12626;

}



.profile-delete-cancel {

  border: 1px solid var(--home-border);



  color: var(--home-muted);

  background: transparent;

}



.profile-delete-confirm:disabled,

.profile-comment-save:disabled {

  opacity: 0.65;

  cursor: wait;

}



@media only screen and (max-width: 600px) {

  .profile-comment-footer {

    align-items: flex-start;

    flex-direction: column;

    gap: 0.7rem;

  }



  .profile-comment-actions {

    width: 100%;

  }



  .profile-comment-action {

    flex: 1;

  }



  .profile-comment-editor-bottom {

    align-items: stretch;

    flex-direction: column;

  }



  .profile-comment-editor-actions {

    width: 100%;

  }



  .profile-comment-save,

  .profile-comment-cancel {

    flex: 1;

  }

}

/* =========================================================
   PREMIUM MEMBERSHIP — CLEAN ACCOUNT MANAGEMENT
   ========================================================= */
#profileSectionPremium .premium-profile-panel {
    overflow: hidden;
    border-color: rgba(153, 124, 68, 0.28);
    padding: clamp(1.1rem, 2.8vw, 1.8rem);
}
#profileSectionPremium .premium-profile-panel [hidden] {
    display: none !important;
}
#profileSectionPremium .premium-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #d0ac6b;
}
#profileSectionPremium .premium-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    background: linear-gradient(120deg, #123c2b 0%, #20523b 62%, #326145 100%);
    color: #fff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
#profileSectionPremium .premium-hero::after {
    content: "";
    position: absolute;
    right: -66px;
    top: -88px;
    width: 235px;
    height: 235px;
    border: 1px solid rgba(236, 206, 146, 0.19);
    border-radius: 50%;
    box-shadow: 0 0 0 30px rgba(236,206,146,0.04), 0 0 0 65px rgba(236,206,146,0.04);
    pointer-events: none;
}
#profileSectionPremium .premium-hero.is-ended {
    background: linear-gradient(120deg, #35473e 0%, #4c6255 100%);
}
#profileSectionPremium .premium-hero-icon,
#profileSectionPremium .premium-restart-icon,
#profileSectionPremium .premium-detail-icon,
#profileSectionPremium .premium-empty-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
}
#profileSectionPremium .premium-hero-icon {
    width: 56px;
    height: 56px;
    background: rgba(230,190,119,0.17);
    border: 1px solid rgba(230,190,119,0.35);
    color: #efcf91;
    font-size: 1.35rem;
}
#profileSectionPremium .premium-hero-copy {
    min-width: 190px;
    flex: 1 1 240px;
    position: relative;
    z-index: 1;
}
#profileSectionPremium .premium-hero-copy h3 {
    margin: 0;
    font: 600 clamp(1.3rem, 3vw, 1.8rem)/1.2 Georgia, "Times New Roman", serif;
    color: #fff;
}
#profileSectionPremium .premium-hero-copy > p:last-child {
    margin: 0.55rem 0 0;
    color: #e0ebe3;
    font-size: 0.85rem;
    line-height: 1.55;
}
#profileSectionPremium .premium-status-pill {
    position: relative;
    z-index: 1;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 800;
    background: rgba(255,255,255,0.13);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
#profileSectionPremium .premium-status-pill.is-active {
    color: #1d4f35;
    background: #e4f5e9;
}
#profileSectionPremium .premium-status-pill.is-pending {
    color: #734c15;
    background: #fff0cf;
}
#profileSectionPremium .premium-status-pill.is-ended {
    color: #fff;
    background: rgba(255,255,255,0.18);
}
#profileSectionPremium .premium-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 0.85rem;
    margin: 1.1rem 0;
}
#profileSectionPremium .premium-fact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem;
    border: 1px solid var(--home-border);
    border-radius: 12px;
    background: var(--home-surface);
    min-width: 0;
}
#profileSectionPremium .premium-fact span {
    color: var(--home-muted);
    font-size: 0.73rem;
    font-weight: 750;
}
#profileSectionPremium .premium-fact strong {
    color: var(--home-green);
    font-size: 0.89rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
#profileSectionPremium .premium-notice {
    margin: 0 0 1.15rem;
    padding: 0.95rem 1.1rem;
    background: #fff9ed;
    border: 1px solid rgba(185,142,65,0.24);
    border-radius: 10px;
    color: #665238;
    font-size: 0.84rem;
    line-height: 1.7;
}
#profileSectionPremium .premium-restart-panel {
    display: flex;
    gap: 1rem;
    margin: 1.2rem 0;
    padding: 1.4rem;
    background: #f1f7ef;
    border: 1px solid rgba(40,108,73,0.16);
    border-radius: 14px;
}
#profileSectionPremium .premium-restart-icon {
    width: 46px;
    height: 46px;
    background: #dcebdc;
    color: var(--home-green);
}
#profileSectionPremium .premium-restart-content { min-width: 0; }
#profileSectionPremium .premium-restart-content h4,
#profileSectionPremium .premium-billing-row h4,
#profileSectionPremium .premium-management-row h4 {
    margin: 0 0 0.45rem;
    color: var(--home-green);
    font-size: 0.98rem;
    font-weight: 800;
}
#profileSectionPremium .premium-restart-content p,
#profileSectionPremium .premium-billing-row p,
#profileSectionPremium .premium-management-row p {
    margin: 0 0 1rem;
    color: var(--home-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}
#profileSectionPremium .premium-billing-row,
#profileSectionPremium .premium-management-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 1.35rem 0;
}
#profileSectionPremium .premium-section-divider,
#profileSectionPremium .premium-management-row {
    border-top: 1px solid var(--home-border);
}
#profileSectionPremium .premium-detail-icon {
    width: 44px;
    height: 44px;
    background: var(--home-surface-soft);
    color: var(--home-brown-dark);
}
#profileSectionPremium .premium-billing-copy,
#profileSectionPremium .premium-management-row > div {
    flex: 1 1 225px;
    min-width: 0;
}
#profileSectionPremium .premium-billing-row p { margin-bottom: 0.25rem; }
#profileSectionPremium .premium-billing-row small {
    color: var(--home-muted);
    font-size: 0.72rem;
}
#profileSectionPremium .premium-management-row { padding-bottom: 0.1rem; }
#profileSectionPremium .premium-management-row p { margin-bottom: 0; }
#profileSectionPremium .premium-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.7rem 1.05rem;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.83rem;
    font-weight: 800;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}
#profileSectionPremium .premium-button:hover:not(:disabled) {
    transform: translateY(-1px);
}
#profileSectionPremium .premium-button:disabled { opacity: .55; cursor: wait; }
#profileSectionPremium .premium-button-gold {
    background: linear-gradient(130deg,#e9cb88,#c99b4c);
    color: #213c2d;
    border: 1px solid #c69c56;
}
#profileSectionPremium .premium-button-outline {
    border: 1px solid rgba(25,82,52,.23);
    background: #fff;
    color: var(--home-green);
}
#profileSectionPremium .premium-button-muted {
    border: 1px solid var(--home-border);
    background: var(--home-surface-soft);
    color: var(--home-green);
}
#profileSectionPremium .premium-empty {
    padding: clamp(1.2rem,4vw,2.3rem) 0;
    text-align: center;
}
#profileSectionPremium .premium-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    background: #f8eed7;
    color: #b98c3e;
    font-size: 1.4rem;
}
#profileSectionPremium .premium-empty .premium-eyebrow { color: #a47b39; }
#profileSectionPremium .premium-empty h3 {
    margin: 0 0 .7rem;
    color: var(--home-green);
    font: 600 clamp(1.4rem,3vw,1.9rem)/1.3 Georgia,serif;
}
#profileSectionPremium .premium-empty > p:not(.premium-eyebrow) {
    margin: 0 auto 1.25rem;
    max-width: 420px;
    color: var(--home-muted);
    font-size: .9rem;
    line-height: 1.7;
}
#profileSectionPremium .premium-empty-price {
    margin: 0 0 1.35rem;
    color: var(--home-green);
    font-size: 1.8rem;
    font-weight: 800;
}
#profileSectionPremium .premium-empty-price span {
    font-size: .85rem;
    font-weight: 500;
    color: var(--home-muted);
}
@media (max-width: 720px) {
    #profileSectionPremium .premium-facts { grid-template-columns: 1fr; }
    #profileSectionPremium .premium-hero { align-items: flex-start; }
    #profileSectionPremium .premium-status-pill { margin-left: 0; }
}
@media (max-width: 520px) {
    #profileSectionPremium .premium-billing-row,
    #profileSectionPremium .premium-management-row,
    #profileSectionPremium .premium-restart-panel { align-items: flex-start; }
    #profileSectionPremium .premium-billing-row .premium-button,
    #profileSectionPremium .premium-management-row .premium-button,
    #profileSectionPremium .premium-restart-panel .premium-button,
    #profileSectionPremium .premium-empty .premium-button { width: 100%; }
}
