/* === VARIABLES === */
:root {
  --profile-accent: var(--user-accent);
  --profile-gradient: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
}

[data-theme="dark"] {
  --profile-accent: var(--user-accent-light, var(--user-accent));
  --profile-gradient: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-dark) 100%);
}

/* === PROFILE BASE === */
.mb-profile {
  min-height: 80vh;
  background: var(--user-accent-soft);
  padding-top: 120px;
}

/* === GUEST VIEW === */
.mb-profile__guest {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.mb-profile__guest-content {
  text-align: center;
  max-width: 400px;
}

.mb-profile__guest-content ion-icon {
  font-size: 80px;
  color: var(--user-accent);
  margin-bottom: 20px;
}

.mb-profile__guest-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.mb-profile__guest-content p {
  color: #6b6b8a;
  margin-bottom: 25px;
  line-height: 1.6;
}

.mb-profile__guest-btn {
  display: inline-block;
  padding: 14px 35px;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mb-profile__guest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 155, 94, 0.4);
}

/* === PROFILE WRAPPER === */
.mb-profile__wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

/* === PROFILE HEADER === */
.mb-profile__header {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

/* === COVER IMAGE === */
.mb-profile__cover {
  height: 260px;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 50%, #8fa67a 100%);
  position: relative;
  background-size: cover;
  background-position: center;
}

.mb-profile__cover-edit {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mb-profile__cover-edit:hover {
  background: #fff;
  transform: scale(1.1);
}

.mb-profile__cover-edit ion-icon {
  font-size: 1.2rem;
  color: #1a1a2e;
}

.mb-profile__info {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  padding: 25px 30px 30px;
  align-items: flex-start;
}

.mb-profile__avatar-wrap {
  position: relative;
  margin-top: -70px;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}

/* === FILE INPUTS === */
#avatarInput,
#coverInput {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* === AVATAR PICKER === */
.mb-avatar-picker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.mb-avatar-picker[hidden] {
  display: none !important;
}

.mb-avatar-picker__content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 30px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
}

.mb-avatar-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.mb-avatar-picker__header span {
  font-weight: 600;
  color: #333;
  font-size: 1.25rem;
}

.mb-avatar-picker__close {
  background: #f5f5f5;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mb-avatar-picker__close:hover {
  background: #e0e0e0;
  color: #333;
}

.mb-avatar-picker__presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.mb-avatar-preset {
  width: 80px;
  height: 80px;
  padding: 0;
  border: 4px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  background: none;
  overflow: hidden;
  transition: all 0.2s ease;
}

.mb-avatar-preset:hover {
  border-color: var(--user-accent);
  transform: scale(1.08);
}

.mb-avatar-preset.selected {
  border-color: var(--user-accent);
  box-shadow: 0 0 0 4px rgba(184, 155, 94, 0.3);
}

.mb-avatar-preset img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.mb-avatar-picker__upload {
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.mb-avatar-upload-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.mb-avatar-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 155, 94, 0.4);
}

[data-theme="dark"] .mb-avatar-picker__content {
  background: #2d2b3d;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .mb-avatar-picker__header {
  border-color: #3d3a50;
}

[data-theme="dark"] .mb-avatar-picker__header span {
  color: #fff;
}

[data-theme="dark"] .mb-avatar-picker__close {
  background: #3d3a50;
  color: #ccc;
}

[data-theme="dark"] .mb-avatar-picker__close:hover {
  background: #4d4a60;
  color: #fff;
}

[data-theme="dark"] .mb-avatar-picker__upload {
  border-color: #3d3a50;
}

/* === AVATAR === */
.mb-profile__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #fff;
  object-fit: cover;
  background: #f0f0f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mb-profile__avatar-initials {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 0;
  left: 0;
}

[data-theme="dark"] .mb-profile__avatar-initials {
  border-color: #1a1a2e;
}

.mb-profile__avatar-edit {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mb-profile__avatar-edit:hover {
  transform: scale(1.1);
}

.mb-profile__avatar-edit ion-icon {
  font-size: 1rem;
  color: #fff;
}

/* === PROFILE DETAILS === */
.mb-profile__details {
  padding-top: 10px;
  flex: 1;
  min-width: 200px;
}

.mb-profile__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.mb-profile__email {
  font-size: 0.875rem;
  color: #6b6b8a;
  margin-bottom: 10px;
}

.mb-profile__bio {
  font-size: 0.95rem;
  color: #4a4a68;
  line-height: 1.5;
  margin-bottom: 15px;
  max-width: 400px;
}

/* === TABS === */
.mb-profile__tabs {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 10px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mb-profile__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6b6b8a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mb-profile__tab ion-icon {
  font-size: 1.1rem;
}

.mb-profile__tab:hover {
  background: var(--user-accent-soft);
  color: #1a1a2e;
}

.mb-profile__tab.is-active {
  background: var(--profile-accent, var(--user-accent));
  color: #fff;
}

/* === TAB PANELS === */
.mb-profile__panel {
  display: none;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.mb-profile__panel.is-active {
  display: block;
}

/* === LOADING STATE === */
.mb-profile__loading {
  text-align: center;
  padding: 60px 20px;
  color: #6b6b8a;
}

.mb-profile__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--user-accent-light);
  border-top-color: var(--profile-accent, var(--user-accent));
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

[data-theme="dark"] .mb-profile__spinner {
  border-color: #3a3a5a;
  border-top-color: var(--profile-accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === EMPTY STATE === */
.mb-profile__empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b6b8a;
}

.mb-profile__empty ion-icon {
  font-size: 50px;
  margin-bottom: 15px;
  color: var(--user-accent-light);
}

.mb-profile__empty p {
  margin-bottom: 15px;
}

.mb-profile__empty a {
  color: var(--user-accent);
  font-weight: 600;
}

/* === ACTIVITY FEED === */
.mb-profile__activity {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

.mb-profile__activity::-webkit-scrollbar {
  width: 5px;
}

.mb-profile__activity::-webkit-scrollbar-track {
  background: transparent;
}

.mb-profile__activity::-webkit-scrollbar-thumb {
  background: var(--user-accent-light);
  border-radius: 10px;
}

[data-theme="dark"] .mb-profile__activity::-webkit-scrollbar-thumb {
  background: #3d3a50;
}

.mb-activity-item {
  display: flex;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.mb-activity-item:last-child {
  border-bottom: none;
}

.mb-activity-item__icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--user-accent-soft) 0%, #fff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mb-activity-item__icon ion-icon {
  font-size: 1.2rem;
  color: var(--user-accent);
}

.mb-activity-item__content {
  flex: 1;
}

.mb-activity-item__text {
  font-size: 0.95rem;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.mb-activity-item__text strong {
  font-weight: 600;
}

.mb-activity-item__time {
  font-size: 0.8rem;
  color: #6b6b8a;
}

/* === LIKED POSTS === */
#likedPosts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.mb-liked-post {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.mb-liked-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mb-liked-post__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mb-liked-post__avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.mb-liked-post__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0ebe3;
}

.mb-liked-post__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mb-liked-post__author-name {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mb-liked-post__time {
  font-size: 0.8rem;
  color: #8a8a9a;
}

.mb-liked-post__content {
  margin-bottom: 16px;
}

.mb-liked-post__content p {
  color: #4a4a68;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mb-liked-post__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f0ebe3;
}

.mb-liked-post__stats {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e74c3c;
  font-weight: 500;
  font-size: 0.9rem;
}

.mb-liked-post__stats ion-icon {
  font-size: 1.1rem;
}

.mb-liked-post__view {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--user-accent);
  font-size: 0.85rem;
  font-weight: 500;
  transition: gap 0.2s ease;
}

.mb-liked-post:hover .mb-liked-post__view {
  gap: 8px;
}

.mb-liked-post__view ion-icon {
  font-size: 0.95rem;
}

[data-theme="dark"] .mb-liked-post {
  background: #2d2b3d;
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .mb-liked-post:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mb-liked-post__avatar img {
  border-color: #3d3a50;
}

[data-theme="dark"] .mb-liked-post__author-name {
  color: #fff;
}

[data-theme="dark"] .mb-liked-post__time {
  color: #9a9ab0;
}

[data-theme="dark"] .mb-liked-post__content p {
  color: #b8b8d0;
}

[data-theme="dark"] .mb-liked-post__footer {
  border-color: #3d3a50;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #likedPosts {
    grid-template-columns: 1fr;
  }
}

/* === SETTINGS === */
.mb-profile__settings-section {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: #faf9f6;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
}

.mb-profile__settings-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ece8e0;
}

[data-theme="dark"] .mb-profile__settings-section {
  background: #2d2b3d;
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .mb-profile__settings-section h3 {
  color: #e0e0e8;
  border-bottom-color: #3d3a50;
}

.mb-profile__settings-item {
  margin-bottom: 16px;
}

.mb-profile__settings-item label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a4a68;
  margin-bottom: 6px;
}

.mb-profile__settings-item input,
.mb-profile__settings-item textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0dcd4;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  background: #fff;
}

[data-theme="dark"] .mb-profile__settings-item input,
[data-theme="dark"] .mb-profile__settings-item textarea {
  background: #1e1c2e;
  border-color: #3d3a50;
  color: #e0e0e8;
}

.mb-profile__settings-item input:focus,
.mb-profile__settings-item textarea:focus {
  outline: none;
  border-color: var(--user-accent);
}

.mb-profile__settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece4;
}

[data-theme="dark"] .mb-profile__settings-toggle {
  border-bottom-color: #3d3a50;
}

.mb-profile__settings-toggle span {
  font-size: 0.88rem;
  color: #4a4a68;
}

[data-theme="dark"] .mb-profile__settings-toggle span {
  color: #b0b0c8;
}

.mb-profile__save-btn {
  padding: 11px 28px;
  background: var(--user-accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.mb-profile__save-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.mb-profile__danger-zone {
  margin-top: 12px;
  padding: 20px 24px;
  background: #fef7f7;
  border-radius: 14px;
  border: 1px solid rgba(220, 53, 69, 0.12);
}

[data-theme="dark"] .mb-profile__danger-zone {
  background: #2d2030;
  border-color: rgba(220, 53, 69, 0.2);
}

.mb-profile__logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: #fff;
  border: 1.5px solid #dc3545;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #dc3545;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

[data-theme="dark"] .mb-profile__logout-btn {
  background: transparent;
}

.mb-profile__logout-btn:hover {
  background: #dc3545;
  color: #fff;
}

/* === MODAL === */
.mb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mb-modal[hidden] {
  display: none;
}

.mb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mb-modal__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.mb-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b6b8a;
  cursor: pointer;
}

.mb-modal__content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.mb-modal__field {
  margin-bottom: 20px;
}

.mb-modal__field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.mb-modal__field input,
.mb-modal__field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--user-accent-light);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
}

.mb-modal__field input:focus,
.mb-modal__field textarea:focus {
  outline: none;
  border-color: var(--user-accent);
}

.mb-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 25px;
}

.mb-modal__btn {
  padding: 10px 25px;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mb-modal__btn--cancel {
  background: #f0f0f0;
  border: none;
  color: #6b6b8a;
}

.mb-modal__btn--save {
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  border: none;
  color: #fff;
}

.mb-modal__btn--save:hover {
  transform: translateY(-2px);
}

/* === DARK MODE === */
[data-theme="dark"] .mb-profile {
  background: #0f0f1a;
}

[data-theme="dark"] .mb-profile__guest-content ion-icon {
  color: var(--profile-accent);
}

[data-theme="dark"] .mb-profile__guest-content h1,
[data-theme="dark"] .mb-profile__name {
  color: #fff;
}

[data-theme="dark"] .mb-profile__guest-content p,
[data-theme="dark"] .mb-profile__bio {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .mb-profile__header,
[data-theme="dark"] .mb-profile__tabs,
[data-theme="dark"] .mb-profile__panel {
  background: #1a1a2e;
}

[data-theme="dark"] .mb-profile__avatar {
  border-color: #1a1a2e;
}

[data-theme="dark"] .mb-profile__email,
[data-theme="dark"] .mb-profile__stat-label {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .mb-profile__stat-num {
  color: #fff;
}

[data-theme="dark"] .mb-profile__tab {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .mb-profile__tab:hover {
  background: #252542;
  color: #fff;
}

[data-theme="dark"] .mb-profile__settings-section h3 {
  color: #fff;
  border-color: #3a3a5a;
}

[data-theme="dark"] .mb-profile__settings-item label,
[data-theme="dark"] .mb-profile__settings-toggle span {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .mb-profile__settings-item input,
[data-theme="dark"] .mb-profile__settings-item textarea {
  background: #252542;
  border-color: #3a3a5a;
  color: #fff;
}

[data-theme="dark"] .mb-activity-item {
  border-color: #3a3a5a;
}

[data-theme="dark"] .mb-activity-item__text {
  color: #fff;
}

[data-theme="dark"] .mb-modal__content {
  background: #1a1a2e;
}

[data-theme="dark"] .mb-modal__content h2,
[data-theme="dark"] .mb-modal__field label {
  color: #fff;
}

[data-theme="dark"] .mb-modal__field input,
[data-theme="dark"] .mb-modal__field textarea {
  background: #252542;
  border-color: #3a3a5a;
  color: #fff;
}

@media (max-width: 768px) {
  .mb-profile__info {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .mb-profile__avatar-wrap {
    margin: -50px auto 0;
    width: 100px;
    height: 100px;
  }
  
  .mb-profile__avatar {
    width: 100px;
    height: 100px;
  }

  .mb-profile__avatar-initials {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }
  
  .mb-profile__bio {
    max-width: none;
  }
  
  .mb-profile__stats {
    justify-content: center;
    padding-top: 0;
  }
  
  .mb-profile__tabs {
    flex-wrap: wrap;
  }
  
  .mb-profile__tab {
    flex: 1 1 calc(33.33% - 10px);
    font-size: 0.8rem;
    padding: 12px 10px;
  }
  
  .mb-profile__tab span:not(ion-icon) {
    display: none;
  }
}

.mb-profile__badges-row {
  display: none;
}

.mb-profile__reputation,
.mb-profile__streak {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.18) 0%, rgba(212, 165, 116, 0.08) 100%);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--user-accent);
  flex: 1;
  justify-content: center;
  transition: all 0.3s ease;
}

.mb-profile__reputation:hover,
.mb-profile__streak:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 155, 94, 0.2);
}

.mb-profile__reputation ion-icon,
.mb-profile__streak ion-icon {
  font-size: 1.1rem;
}

[data-theme="dark"] .mb-profile__reputation,
[data-theme="dark"] .mb-profile__streak {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.25) 0%, rgba(212, 165, 116, 0.1) 100%);
}

.mb-profile__activity-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0dcd4;
}

.mb-profile__filter {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid #e0dcd4;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b6b8a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mb-profile__filter:hover {
  border-color: var(--user-accent);
  color: var(--user-accent);
}

.mb-profile__filter.is-active {
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  border-color: transparent;
  color: #fff;
}

.mb-profile__liked {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mb-profile__liked-post {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mb-profile__liked-post .post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #6b6b8a;
}

.mb-profile__liked-post .post-content {
  color: #1a1a2e;
  line-height: 1.6;
  margin-bottom: 10px;
}

.mb-profile__liked-post .post-meta {
  font-size: 0.8rem;
  color: #9a9ab5;
}

.mb-profile__saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.mb-profile__saved-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mb-profile__saved-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.mb-profile__saved-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.mb-profile__saved-card .card-body {
  padding: 15px;
}

.mb-profile__saved-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.mb-profile__saved-card .saved-date {
  font-size: 0.8rem;
  color: #9a9ab5;
}

.mb-profile__achievements-header {
  margin-bottom: 25px;
}

.mb-profile__achievement-stats {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.mb-profile__achievement-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--user-accent);
}

.mb-profile__achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mb-profile__badge {
  padding: 20px 15px;
  background: #f8f9fc;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mb-profile__badge:hover {
  transform: translateY(-2px);
}

.mb-profile__badge .badge-lock-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.9rem;
  color: #9a9ab5;
  opacity: 0.7;
}

.mb-profile__badge.unlocked {
  background: linear-gradient(135deg, #fffdf5 0%, #fff9e6 100%);
  border: 2px solid rgba(184, 155, 94, 0.5);
  box-shadow: 0 0 20px rgba(184, 155, 94, 0.25);
}

.mb-profile__badge.locked {
  opacity: 0.85;
}

.mb-profile__badge-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 100, 140, 0.1);
  border-radius: 50%;
  font-size: 1.5rem;
  color: #7a7a9a;
}

.mb-profile__badge-icon ion-icon {
  font-size: 1.5rem;
}

.mb-profile__badge.unlocked .mb-profile__badge-icon {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.3) 0%, rgba(184, 155, 94, 0.15) 100%);
  color: var(--user-accent-grad-end);
}

.mb-profile__badge h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.mb-profile__badge p {
  font-size: 0.7rem;
  color: #6b6b8a;
  line-height: 1.3;
  flex-grow: 1;
}

.mb-profile__badge .badge-points {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9a9ab5;
}

.mb-profile__badge.unlocked .badge-points {
  color: var(--user-accent-grad-end);
}

.mb-profile__wellness {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mb-profile__wellness-section {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mb-profile__wellness-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0dcd4;
}

.mb-profile__wellness-section h3 ion-icon {
  color: var(--user-accent);
}

.mb-profile__mood-input {
  text-align: center;
  margin-bottom: 25px;
}

.mb-profile__mood-input p {
  margin-bottom: 15px;
  color: #6b6b8a;
}

.mb-profile__mood-selector {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.mb-profile__mood-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #e0dcd4;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-profile__mood-btn:hover,
.mb-profile__mood-btn.is-selected {
  border-color: var(--user-accent);
  transform: scale(1.1);
}

.mb-profile__mood-btn.is-selected {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.05) 100%);
}

.mood-emoji {
  font-size: 1.5rem;
}

.mb-profile__mood-note {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 1px solid #e0dcd4;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.mb-profile__mood-note:focus {
  outline: none;
  border-color: var(--user-accent);
}

.mb-profile__mood-log-btn {
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.mb-profile__mood-log-btn:hover {
  opacity: 0.9;
}

.mb-profile__mood-history h4 {
  font-size: 0.95rem;
  color: #6b6b8a;
  margin-bottom: 15px;
}

.mb-profile__mood-chart {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 20px;
  background: var(--user-accent-soft);
  border-radius: 12px;
  min-height: auto;
}

.mb-profile__mood-chart .mood-bar-old {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mb-profile__mood-chart .mood-bar-old .bar {
  width: 100%;
  max-width: 30px;
  background: linear-gradient(to top, var(--user-accent), var(--user-accent-light));
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.mb-profile__mood-chart .mood-bar-old .date {
  font-size: 0.7rem;
  color: #9a9ab5;
}

.mb-profile__goals-add {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mb-profile__goal-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.mb-profile__goal-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid #e0dcd4;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #faf9f6;
  transition: border-color 0.2s ease;
}

.mb-profile__goal-input:focus {
  border-color: var(--user-accent);
  outline: none;
}

.mb-profile__goal-select {
  padding: 12px 16px;
  border: 1px solid #e0dcd4;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #faf9f6;
  min-width: 140px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.mb-profile__goal-select:focus {
  border-color: var(--user-accent);
  outline: none;
}

.mb-profile__goal-add-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 22px;
  background: var(--user-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.mb-profile__goal-add-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.mb-profile__goals-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.mb-profile__goal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--user-accent-soft);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--user-accent);
  transition: box-shadow 0.2s ease;
}

.mb-profile__goal-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mb-profile__goal-item[data-category="mindfulness"] { border-left-color: #8b5cf6; }
.mb-profile__goal-item[data-category="exercise"] { border-left-color: #10b981; }
.mb-profile__goal-item[data-category="social"] { border-left-color: #f59e0b; }
.mb-profile__goal-item[data-category="sleep"] { border-left-color: #3B8DD4; }
.mb-profile__goal-item[data-category="nutrition"] { border-left-color: #ef4444; }
.mb-profile__goal-item[data-category="self-care"] { border-left-color: #ec4899; }

.mb-profile__goal-item .goal-check {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--user-accent);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mb-profile__goal-item .goal-check:hover {
  background: rgba(91, 164, 230, 0.1);
}

.mb-profile__goal-item .goal-check.completed {
  background: var(--user-accent);
  color: #fff;
  border-color: var(--user-accent);
}

.mb-profile__goal-item .goal-info {
  flex: 1;
  min-width: 0;
}

.mb-profile__goal-item .goal-title {
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.mb-profile__goal-item .goal-category {
  font-size: 0.78rem;
  color: #9a9ab5;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  text-transform: capitalize;
}

.mb-profile__goal-item .goal-delete {
  color: #c0c0d0;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px;
  border-radius: 6px;
}

.mb-profile__goal-item .goal-delete:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.mb-profile__goals-empty {
  text-align: center;
  padding: 30px 20px;
  color: #9a9ab5;
  font-size: 0.9rem;
}

.mb-profile__streak-display {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}

.mb-profile__streak-current,
.mb-profile__streak-best {
  text-align: center;
  padding: 22px 36px;
  background: var(--user-accent-soft);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  flex: 1;
  max-width: 200px;
  position: relative;
  overflow: hidden;
}

.mb-profile__streak-current::before,
.mb-profile__streak-best::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--user-accent), var(--user-accent-light, var(--user-accent)));
  border-radius: 16px 16px 0 0;
}

[data-theme="dark"] .mb-profile__streak-current,
[data-theme="dark"] .mb-profile__streak-best {
  background: #2d2b3d;
  border-color: rgba(255,255,255,0.08);
}

.streak-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--user-accent);
  line-height: 1;
  margin-bottom: 4px;
}

.streak-label {
  font-size: 0.8rem;
  color: #6b6b8a;
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .streak-label {
  color: #9a9ab5;
}

.mb-profile__streak-calendar {
  display: block;
  background: #faf9f6;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.06);
}

[data-theme="dark"] .mb-profile__streak-calendar {
  background: #2d2b3d;
  border-color: rgba(255,255,255,0.08);
}

.streak-calendar-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.streak-day-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #888;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.streak-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

[data-theme="dark"] .streak-day-label {
  color: #777;
}

.streak-day {
  aspect-ratio: 1;
  border-radius: 8px;
  background: #eae6de;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #9a9ab5;
  min-width: 32px;
  min-height: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.streak-day.active {
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light, var(--user-accent)) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.streak-day.today {
  box-shadow: 0 0 0 2.5px var(--user-accent);
  font-weight: 700;
}

.streak-day.today.active {
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--user-accent);
}

[data-theme="dark"] .streak-day {
  background: #3d3a50;
  color: #9a9ab5;
}

[data-theme="dark"] .streak-day.today {
  box-shadow: 0 0 0 2.5px var(--user-accent-light, var(--user-accent));
}

[data-theme="dark"] .streak-day.today.active {
  box-shadow: 0 0 0 2.5px #2d2b3d, 0 0 0 4.5px var(--user-accent-light, var(--user-accent));
}

.streak-milestone-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.streak-milestone-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f0ece4;
  color: #6b6b8a;
  border: 1px solid rgba(0,0,0,0.06);
}

.streak-milestone-badge.earned {
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light, var(--user-accent)) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

[data-theme="dark"] .streak-milestone-badge {
  background: #3d3a50;
  color: #9a9ab5;
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .streak-milestone-badge.earned {
  border-color: transparent;
}

.mb-profile__settings-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mb-profile__settings-section h3 ion-icon {
  color: var(--user-accent);
}

.mb-profile__settings-item label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mb-profile__settings-item label ion-icon {
  color: #9a9ab5;
}

.mb-profile__settings-toggle .toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mb-profile__settings-toggle .toggle-info small {
  font-size: 0.75rem;
  color: #9a9ab5;
}

.mb-profile__theme-picker {
  margin-bottom: 20px;
}

.mb-profile__theme-picker label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #1a1a2e;
}

.mb-profile__color-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mb-profile__color-btn {
  width: 40px;
  height: 40px;
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mb-profile__color-btn:hover {
  transform: scale(1.1);
}

.mb-profile__color-btn.is-active {
  border-color: #1a1a2e;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1);
}

[data-theme="dark"] .mb-profile__wellness-section,
[data-theme="dark"] .mb-profile__saved-card {
  background: #2d2b3d;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

[data-theme="dark"] .mb-profile__badge {
  background: #252540;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .mb-profile__badge.unlocked {
  background: linear-gradient(135deg, #2d2b45 0%, #252540 100%);
  border: 2px solid rgba(212, 165, 116, 0.6);
  box-shadow: 0 0 25px rgba(212, 165, 116, 0.25);
}

[data-theme="dark"] .mb-profile__badge h4 {
  color: #e8e8f0;
}

[data-theme="dark"] .mb-profile__badge.unlocked h4 {
  color: #f5e8d8;
}

[data-theme="dark"] .mb-profile__badge p {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .mb-profile__badge .badge-lock-icon {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .mb-profile__badge-icon {
  background: rgba(100, 100, 140, 0.2);
  color: #7a7a9a;
}

[data-theme="dark"] .mb-profile__badge.unlocked .mb-profile__badge-icon {
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.35) 0%, rgba(184, 155, 94, 0.2) 100%);
  color: var(--user-accent-grad-end);
}

[data-theme="dark"] .mb-profile__badge .badge-points {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .mb-profile__badge.unlocked .badge-points {
  color: var(--user-accent-grad-end);
}

[data-theme="dark"] .mb-profile__filter {
  background: #2d2b3d;
  border-color: #3d3a50;
  color: #b0b0c8;
}

[data-theme="dark"] .mb-profile__goal-item,
[data-theme="dark"] .mb-profile__mood-chart {
  background: #2d2b3d;
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .mb-profile__goal-item .goal-title {
  color: #e0e0e8;
}

[data-theme="dark"] .mb-profile__streak-current,
[data-theme="dark"] .mb-profile__streak-best {
  border-color: #3d3a50;
}

[data-theme="dark"] .streak-number {
  color: var(--user-accent-light);
}

[data-theme="dark"] .mb-profile__streak-label {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .mb-profile__wellness-section h3 {
  color: #fff;
}

[data-theme="dark"] .mb-profile__empty-state {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .mb-profile__empty-state ion-icon {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .mb-profile__mood-note,
[data-theme="dark"] .mb-profile__goal-input,
[data-theme="dark"] .mb-profile__goal-select {
  background: #2d2b3d;
  border-color: #3d3a50;
  color: #e0e0e8;
}

@media (max-width: 992px) {
  .mb-profile__achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .mb-profile__badges-row {
    flex-direction: column;
    align-items: center;
  }
  
  .mb-profile__achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mb-profile__streak-display {
    flex-direction: column;
    gap: 15px;
  }
  
  .mb-profile__goals-add {
    flex-direction: column;
  }
  
  .mb-profile__mood-selector {
    gap: 10px;
  }
  
  .mb-profile__mood-btn {
    width: 42px;
    height: 42px;
  }
}

.mb-profile__saved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.mb-profile__saved-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mb-profile__saved-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.saved-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.saved-card-link img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.saved-card-link .card-body {
  padding: 20px;
}

.saved-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(184, 155, 94, 0.1);
  color: var(--user-accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 10px;
}

.saved-card-link h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.4;
}

.saved-date {
  font-size: 0.8rem;
  color: #8888a0;
}

[data-theme="dark"] .mb-profile__saved-card {
  background: #2a2a4a;
}

[data-theme="dark"] .saved-card-link h4 {
  color: #f0f0f5;
}

[data-theme="dark"] .saved-category {
  background: rgba(184, 155, 94, 0.2);
}

@media (max-width: 768px) {
  .mb-profile__saved-grid {
    grid-template-columns: 1fr;
  }
}

.mb-profile__social-links {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.social-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--profile-accent, var(--user-accent)) 15%, transparent);
  color: var(--profile-accent, var(--user-accent));
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--profile-accent, var(--user-accent));
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--profile-accent, var(--user-accent)) 35%, transparent);
}

.mb-profile__social-links:empty,
.mb-profile__social-links:not(:has(a:not([hidden]))) {
  display: none;
}

.social-link ion-icon {
  font-size: 1.3rem;
}

.social-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  padding: 6px 12px;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.social-link:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

[data-theme="dark"] .social-link {
  background: rgba(184, 155, 94, 0.2);
}

[data-theme="dark"] .social-link::after {
  background: #f0f0f5;
  color: #1a1a2e;
}

.mb-profile__right-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 320px;
}

.mb-profile__stats-card {
  background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .mb-profile__stats-card {
  background: linear-gradient(135deg, #2a2a4a 0%, #252545 100%);
  border-color: rgba(255, 255, 255, 0.06);
}

.mb-profile__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mb-profile__stats {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.mb-profile__stat {
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  cursor: default;
  min-width: 50px;
}

.mb-profile__stat:hover {
  background: rgba(184, 155, 94, 0.1);
  transform: translateY(-2px);
}

[data-theme="dark"] .mb-profile__stat {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .mb-profile__stat:hover {
  background: color-mix(in srgb, var(--profile-accent, var(--user-accent)) 15%, transparent);
}

.mb-profile__stat-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--profile-accent, #1a1a2e);
  line-height: 1.2;
}

.mb-profile__stat.is-clickable {
  cursor: pointer;
}

.mb-profile__stat.is-clickable:hover .mb-profile__stat-num {
  text-decoration: underline;
}

[data-theme="dark"] .mb-profile__stat-num {
  color: #fff;
}

.mb-profile__stat-label {
  font-size: 0.7rem;
  color: #6b6b8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.mb-profile__stats-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mb-profile__quick-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.mb-profile__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--profile-accent, var(--user-accent));
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--profile-accent, var(--user-accent)) 30%, transparent);
}

.mb-profile__edit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--profile-accent, var(--user-accent)) 40%, transparent);
}

.mb-profile__edit-btn ion-icon {
  font-size: 1.1rem;
}

.mb-profile__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  background: transparent;
  color: #4a4a68;
  border: 2px solid #e0dcd4;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mb-profile__action-btn:hover {
  border-color: var(--user-accent);
  color: var(--user-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 155, 94, 0.15);
}

.mb-profile__action-btn ion-icon {
  font-size: 1rem;
}

.mb-profile__follow-container {
  display: inline-flex;
}

.mb-profile__follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4a7c59 0%, #6ba17a 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.mb-profile__follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 124, 89, 0.4);
}

.mb-profile__follow-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.mb-profile__follow-btn.is-following {
  background: linear-gradient(135deg, var(--user-accent-light) 0%, var(--user-accent-soft) 100%);
  color: #4a4a68;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mb-profile__follow-btn.is-following:hover {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.mb-profile__follow-btn ion-icon {
  font-size: 1.1rem;
}

[data-theme="dark"] .mb-profile__follow-btn.is-following {
  background: linear-gradient(135deg, #3d3a50 0%, #4a4868 100%);
  color: #e0e0ea;
}

[data-theme="dark"] .mb-profile__follow-btn.is-following:hover {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  color: #fff;
}

.mb-profile__action-btn.is-copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

[data-theme="dark"] .mb-profile__action-btn {
  border-color: #3a3a5a;
  color: #b0b0c0;
}

[data-theme="dark"] .mb-profile__action-btn:hover {
  border-color: var(--user-accent-light);
  color: var(--user-accent-light);
}

.mb-profile__completion {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #faf8f5 0%, #f5f0ea 100%);
  border-radius: 16px;
  border: 1px solid rgba(184, 155, 94, 0.2);
  flex-shrink: 0;
  min-width: 280px;
}

[data-theme="dark"] .mb-profile__completion {
  background: linear-gradient(135deg, #2a2a4a 0%, #252545 100%);
  border-color: rgba(184, 155, 94, 0.3);
}

.completion-ring {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.completion-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.completion-ring__bg {
  fill: none;
  stroke: #e0e0ea;
  stroke-width: 6;
}

[data-theme="dark"] .completion-ring__bg {
  stroke: #3a3a5a;
}

.completion-ring__progress {
  fill: none;
  stroke: var(--user-accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s ease-out;
}

.completion-ring.is-complete .completion-ring__progress {
  stroke: #4caf50;
}

.completion-ring__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--user-accent);
}

.completion-ring.is-complete .completion-ring__text {
  color: #4caf50;
}

.completion-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.completion-title {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
}

[data-theme="dark"] .completion-title {
  color: #f0f0f5;
}

.completion-label {
  font-size: 0.8rem;
  color: #6b6b8a;
  line-height: 1.4;
}

[data-theme="dark"] .completion-label {
  color: #a0a0b8;
}

.completion-label.is-complete {
  color: #4caf50;
}

.mb-profile__stat {
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 12px;
}

.mb-profile__stat:hover {
  background: rgba(184, 155, 94, 0.08);
  transform: translateY(-3px);
}

.mb-profile__tab {
  transition: all 0.3s ease;
}

.mb-profile__tab:hover:not(.is-active) {
  background: rgba(184, 155, 94, 0.1);
  transform: translateY(-2px);
}

.mb-profile__activity-item {
  transition: all 0.3s ease;
}

.mb-profile__activity-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mb-profile__badge {
  transition: all 0.3s ease;
}

.mb-profile__badge:hover:not(.locked) {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(184, 155, 94, 0.2);
}

.mb-profile__goal-item {
  transition: all 0.3s ease;
}

.mb-profile__goal-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mb-profile__filter {
  transition: all 0.3s ease;
}

.mb-profile__filter:hover:not(.is-active) {
  background: rgba(184, 155, 94, 0.15);
  transform: scale(1.05);
}

.mb-profile__tab:focus-visible,
.mb-profile__action-btn:focus-visible,
.mb-profile__edit-btn:focus-visible,
.mb-profile__filter:focus-visible {
  outline: 2px solid var(--user-accent);
  outline-offset: 2px;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mb-profile__stat-num {
  animation: countUp 0.5s ease-out;
}

@keyframes completePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.completion-ring.is-complete {
  animation: completePulse 2s ease-in-out infinite;
  border-radius: 50%;
}

.completion-ring.is-complete .completion-ring__progress {
  stroke: #10b981;
}

.completion-ring.is-complete + .completion-label {
  color: #10b981;
}

@media (max-width: 768px) {
  .mb-profile__completion {
    order: -1;
    margin-bottom: 15px;
  }
  
  .completion-ring {
    width: 60px;
    height: 60px;
  }
  
  .completion-ring__text {
    font-size: 0.85rem;
  }
  
  .mb-profile__quick-actions {
    justify-content: center;
  }
}

.mb-profile__preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mb-profile__preview-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.preview-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.preview-modal__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.mb-profile__preview-modal.is-visible .preview-modal__content {
  transform: translateY(0);
}

.preview-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.preview-modal__header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.preview-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f0f0f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.preview-modal__close:hover {
  background: #e0e0ea;
}

.preview-modal__close ion-icon {
  font-size: 1.3rem;
  color: #666;
}

.preview-modal__body {
  padding: 20px;
}

.preview-card {
  background: var(--user-accent-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.preview-cover {
  height: 80px;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 50%, #8fa67a 100%);
  background-size: cover;
  background-position: center;
}

.preview-info {
  padding: 15px;
  text-align: center;
  margin-top: -40px;
}

.preview-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  background: #f0f0f0;
}

.preview-info h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 10px 0 5px;
}

.preview-info p {
  font-size: 0.85rem;
  color: #6b6b8a;
  margin-bottom: 12px;
}

.preview-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.8rem;
  color: #8888a0;
}

.preview-note {
  text-align: center;
  font-size: 0.8rem;
  color: #8888a0;
  margin-top: 15px;
}

[data-theme="dark"] .preview-modal__content {
  background: #1a1a2e;
}

[data-theme="dark"] .preview-modal__header {
  border-color: #3a3a5a;
}

[data-theme="dark"] .preview-modal__header h3 {
  color: #f0f0f5;
}

[data-theme="dark"] .preview-modal__close {
  background: #3a3a5a;
}

[data-theme="dark"] .preview-card {
  background: #2a2a4a;
}

[data-theme="dark"] .preview-info h4 {
  color: #f0f0f5;
}

@media (max-width: 900px) {
  .mb-profile__info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .mb-profile__details {
    text-align: center;
  }
  
  .mb-profile__right-section {
    margin-left: 0;
    align-items: center;
    width: 100%;
    min-width: unset;
  }
  
  .mb-profile__stats-card {
    width: 100%;
  }
  
  .mb-profile__stats {
    justify-content: center;
  }
  
  .mb-profile__stat {
    min-width: 45px;
    padding: 8px 10px;
  }
  
  .mb-profile__stat-num {
    font-size: 1.15rem;
  }
  
  .mb-profile__quick-actions {
    justify-content: center;
  }
  
  .mb-profile__edit-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
  
  .mb-profile__action-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
  }
  
  .mb-profile__social-links {
    justify-content: center;
  }
  
  .social-link {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-profile__stat,
  .mb-profile__tab,
  .mb-profile__activity-item,
  .mb-profile__badge,
  .mb-profile__goal-item,
  .mb-profile__filter,
  .mb-profile__action-btn,
  .social-link,
  .completion-ring__progress {
    transition: none;
  }
  
  .mb-profile__stat-num {
    animation: none;
  }
  
  .completion-ring.is-complete {
    animation: none;
  }
  
  .mb-profile__preview-modal,
  .preview-modal__content {
    transition: none;
  }
}

.mb-follow-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
}

.mb-follow-modal[hidden] {
  display: none;
}

.mb-follow-modal__content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .mb-follow-modal__content {
  background: #2d2b3d;
}

.mb-follow-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mb-follow-modal__header {
  border-color: rgba(255, 255, 255, 0.1);
}

.mb-follow-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a2e;
}

[data-theme="dark"] .mb-follow-modal__title {
  color: #fff;
}

.mb-follow-modal__close {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mb-follow-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .mb-follow-modal__close {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mb-follow-modal__list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.mb-follow-modal__empty {
  text-align: center;
  padding: 40px 20px;
  color: #6b6b8a;
}

.mb-follow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.2s ease;
}

.mb-follow-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .mb-follow-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mb-follow-item__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-light) 100%);
  flex-shrink: 0;
}

.mb-follow-item__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.mb-follow-item__info {
  flex: 1;
}

.mb-follow-item__name {
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mb-follow-item__name:hover {
  color: var(--profile-accent, var(--user-accent));
}

[data-theme="dark"] .mb-follow-item__name {
  color: #fff;
}

.mb-follow-item__bio {
  font-size: 0.85rem;
  color: #6b6b8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.mb-profile__danger-zone h3 {
  color: #dc3545;
}

.mb-profile__danger-zone .mb-profile__logout-btn {
  margin-bottom: 10px;
}

.mb-profile__delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fff;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.mb-profile__delete-btn:hover {
  background: #dc3545;
  color: #fff;
}

[data-theme="dark"] .mb-profile__delete-btn {
  background: transparent;
}

.mb-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
}

.mb-delete-modal[hidden] {
  display: none;
}

.mb-delete-modal__content {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  text-align: center;
}

[data-theme="dark"] .mb-delete-modal__content {
  background: #2d2b3d;
}

.mb-delete-modal__icon {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 15px;
}

.mb-delete-modal__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}

[data-theme="dark"] .mb-delete-modal__title {
  color: #fff;
}

.mb-delete-modal__text {
  color: #6b6b8a;
  margin-bottom: 20px;
  line-height: 1.6;
}

.mb-delete-modal__confirm {
  width: 100%;
  margin-bottom: 15px;
}

.mb-delete-modal__confirm input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0dcd4;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  text-align: center;
}

.mb-delete-modal__confirm input:focus {
  outline: none;
  border-color: #dc3545;
}

.mb-delete-modal__actions {
  display: flex;
  gap: 10px;
}

.mb-delete-modal__cancel {
  flex: 1;
  padding: 12px;
  background: var(--user-accent-soft);
  color: #4a4a68;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mb-delete-modal__cancel:hover {
  background: var(--user-accent-light);
}

.mb-delete-modal__submit {
  flex: 1;
  padding: 12px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
  pointer-events: none;
}

.mb-delete-modal__submit.is-enabled {
  opacity: 1;
  pointer-events: auto;
}

.mb-delete-modal__submit.is-enabled:hover {
  background: #c82333;
}

.mb-profile__mood-insights {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mb-profile__mood-insights > h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 20px;
}

.mb-profile__mood-insights > h4 ion-icon {
  color: var(--profile-accent, var(--user-accent));
}

.mood-insights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .mood-insights__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .mood-insights__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.mood-insight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.mood-insight-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mood-insight-card__icon ion-icon {
  font-size: 1.5rem;
  color: #fff;
}

.mood-insight-card__icon--avg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mood-insight-card__icon--best {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mood-insight-card__icon--entries {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.mood-insight-card__icon--streak {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mood-insight-card__content {
  display: flex;
  flex-direction: column;
}

.mood-insight-card__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.2;
}

.mood-insight-card__label {
  font-size: 0.8rem;
  color: #777;
  margin-top: 2px;
}

.mood-chart-container {
  margin-bottom: 28px;
}

.mood-chart-container h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 16px;
}

.mood-line-chart {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mood-line-chart__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1.2rem;
  padding-right: 12px;
  border-right: 1px solid var(--user-accent-light);
  margin-right: 16px;
}

.mood-line-chart__graph {
  flex: 1;
  height: 120px;
  position: relative;
}

.mood-line-chart__svg {
  width: 100%;
  height: 100%;
}

.mood-line-chart__area {
  opacity: 0.8;
}

.mood-line-chart__line {
  filter: drop-shadow(0 2px 4px rgba(212, 168, 83, 0.3));
}

.mood-line-chart__dots circle {
  fill: var(--blue-crayola, #2068A8);
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
  transition: r 0.2s ease;
}

.mood-line-chart__dots circle:hover {
  r: 8;
}

.mood-line-chart__x-axis {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 0 60px;
  font-size: 0.75rem;
  color: #888;
}

.mood-distribution h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 16px;
}

.mood-distribution__bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mood-distribution__bars .mood-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mood-bar__emoji {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
}

.mood-bar__fill-container {
  flex: 1;
  min-width: 100px;
  height: 20px;
  background: #f0ebe3;
  border-radius: 10px;
  overflow: hidden;
}

.mood-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.mood-bar[data-mood="very_happy"] .mood-bar__fill {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.mood-bar[data-mood="happy"] .mood-bar__fill {
  background: linear-gradient(90deg, #a8e063 0%, #56ab2f 100%);
}

.mood-bar[data-mood="neutral"] .mood-bar__fill {
  background: linear-gradient(90deg, #ffd86f 0%, #fc6262 100%);
}

.mood-bar[data-mood="sad"] .mood-bar__fill {
  background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 100%);
}

.mood-bar[data-mood="very_sad"] .mood-bar__fill {
  background: linear-gradient(90deg, #a8caba 0%, #5d4e87 100%);
}

.mood-bar__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  min-width: 24px;
  text-align: right;
}

[data-theme="dark"] .mood-insight-card {
  background: #3d3a50;
}

[data-theme="dark"] .mood-insight-card__value {
  color: #bde0fe;
}

[data-theme="dark"] .mood-insight-card__label {
  color: #aaa;
}

[data-theme="dark"] .mood-line-chart {
  background: #3d3a50;
}

[data-theme="dark"] .mood-line-chart__y-axis {
  border-color: #4d4a60;
}

[data-theme="dark"] .mood-distribution__bars {
  background: #3d3a50;
}

[data-theme="dark"] .mood-bar__fill-container {
  background: #4d4a60;
}

[data-theme="dark"] .mood-bar__count {
  color: #ccc;
}

[data-theme="dark"] .mood-chart-container h5,
[data-theme="dark"] .mood-distribution h5 {
  color: #ccc;
}

[data-theme="dark"] .mb-profile__mood-insights > h4 {
  color: #bde0fe;
}

.mb-profile__analytics-section {
  margin-bottom: 24px;
}

.mb-profile__section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8ed;
}

.mb-profile__section-title ion-icon {
  font-size: 22px;
  color: var(--user-accent-grad-end);
}

.mb-profile__community-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .mb-profile__section-title {
  color: #f1f1f1;
  border-color: #3a3a50;
}

[data-theme="dark"] .mb-profile__section-title ion-icon {
  color: var(--user-accent-light, var(--user-accent));
}

[data-theme="dark"] .mb-profile__community-section {
  background: #242440;
}

.onboarding-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.onboarding-modal[hidden] {
  display: none;
}

.onboarding-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
}

.onboarding-modal__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: onboardingSlideIn 0.3s ease-out;
}

@keyframes onboardingSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.onboarding-modal__header {
  text-align: center;
  padding: 20px 20px 15px;
  background: linear-gradient(135deg, var(--user-accent-grad-end) 0%, var(--user-accent-dark) 100%);
  color: #fff;
}

.onboarding-modal__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.onboarding-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.onboarding-modal__subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

.onboarding-modal__body {
  padding: 20px;
}

.onboarding-modal__body .form-group {
  margin-bottom: 16px;
}

.onboarding-modal__body label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.onboarding-modal__body .required {
  color: #ef4444;
}

.onboarding-modal__body input,
.onboarding-modal__body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f9fafb;
}

.onboarding-modal__body input:focus,
.onboarding-modal__body textarea:focus {
  outline: none;
  border-color: var(--user-accent-grad-end);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
  background: #fff;
}

.onboarding-modal__body textarea {
  resize: vertical;
  min-height: 60px;
}

.onboarding-modal__body .form-hint {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
}

.onboarding-modal__footer {
  padding: 12px 20px 20px;
  text-align: center;
}

.onboarding-modal__note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.onboarding-modal__note i {
  margin-right: 5px;
}

.onboarding-modal__footer .btn-primary {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--user-accent-grad-end) 0%, var(--user-accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.onboarding-modal__footer .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 165, 116, 0.35);
}

.onboarding-modal__footer .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.onboarding-modal__footer .btn-primary i {
  margin-right: 6px;
}

@media (max-width: 400px) {
  .onboarding-modal {
    padding: 8px;
  }
  
  .onboarding-modal__content {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .onboarding-modal__header {
    padding: 16px 16px 12px;
  }
  
  .onboarding-modal__icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .onboarding-modal__title {
    font-size: 1.1rem;
  }
  
  .onboarding-modal__subtitle {
    font-size: 0.8rem;
  }
  
  .onboarding-modal__body {
    padding: 16px;
  }
  
  .onboarding-modal__footer {
    padding: 10px 16px 16px;
  }
}

[data-theme="dark"] .onboarding-modal__content {
  background: #1a1a2e;
}

[data-theme="dark"] .onboarding-modal__header {
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-dark) 100%);
}

[data-theme="dark"] .onboarding-modal__body label {
  color: #e5e5e5;
}

[data-theme="dark"] .onboarding-modal__body input,
[data-theme="dark"] .onboarding-modal__body textarea {
  background: #2d2b3d;
  border-color: #3d3a50;
  color: #fff;
}

[data-theme="dark"] .onboarding-modal__body input:focus,
[data-theme="dark"] .onboarding-modal__body textarea:focus {
  border-color: var(--user-accent-light, var(--user-accent));
  box-shadow: 0 0 0 4px rgba(var(--user-accent-rgb, 91, 164, 230), 0.2);
  background: #2d2b3d;
}

[data-theme="dark"] .onboarding-modal__body .form-hint,
[data-theme="dark"] .onboarding-modal__note {
  color: #a0a0b8;
}

[data-theme="dark"] .onboarding-modal__footer .btn-primary {
  background: linear-gradient(135deg, var(--user-accent) 0%, var(--user-accent-dark) 100%);
}

/* === MOOD ENTRY DELETE BUTTON === */
.mood-entry-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  opacity: 0;
  font-size: 0.85rem;
}

.mood-entry-card:hover .mood-entry-delete {
  opacity: 1;
}

.mood-entry-delete:hover {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

[data-theme="dark"] .mood-entry-delete {
  color: #666;
}

[data-theme="dark"] .mood-entry-delete:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.15);
}

.mood-count-bar {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #8b8ba3;
  padding: 8px 0 12px;
  font-weight: 500;
}

.mood-load-more-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}

.mood-load-more-btn {
  background: var(--user-accent, #5BA4E6);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.mood-load-more-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

[data-theme="dark"] .mood-count-bar {
  color: #9a9ab5;
}
