/* ====== TELEGRAM-STYLE PROFILE FOR REGULAR USERS (user_group=3) ====== */
.is-regular-user-profile .profile-cover-wrapper { display: none !important; }
.is-regular-user-profile .profile-name-wrapper { display: none !important; }
.is-regular-user-profile .profile-avatar-wrapper { display: none !important; }
.is-regular-user-profile .ig-mobile-profile-header { display: none !important; }

.tg-profile-header {
  display: none;
}

.is-regular-user-profile .tg-profile-header {
  display: block !important;
}

/* Telegram-style profile card */
.tg-profile-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.tg-profile-top {
  position: relative;
  background: linear-gradient(135deg, #ee848e 0%, #f0a0a8 50%, #f5bcc2 100%);
  padding: 28px 20px 70px;
  text-align: center;
  min-height: 120px;
}

.tg-profile-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1));
}

.tg-profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: 0;
  z-index: 2;
}

.tg-profile-avatar-wrap img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  background: #fff;
}

.tg-profile-avatar-controls {
  position: absolute;
  right: -8px;
  bottom: -8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tg-profile-avatar-wrap:hover .tg-profile-avatar-controls {
  opacity: 1;
}

/* Show controls on mobile (no hover) */
@media (max-width: 767.98px) {
  .tg-profile-avatar-controls {
    opacity: 0.7;
  }
}

.tg-profile-avatar-controls .profile-avatar-change,
.tg-profile-avatar-controls .profile-avatar-crop,
.tg-profile-avatar-controls .profile-avatar-delete {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.15s;
}

.tg-profile-avatar-controls .profile-avatar-change:hover,
.tg-profile-avatar-controls .profile-avatar-crop:hover,
.tg-profile-avatar-controls .profile-avatar-delete:hover {
  transform: scale(1.1);
}

.tg-profile-avatar-controls i {
  font-size: 13px;
  color: #333;
}

.tg-profile-info {
  padding: 16px 20px 24px;
  text-align: center;
  position: relative;
  margin-top: -44px;
  z-index: 1;
}

.tg-profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.tg-profile-name a {
  color: inherit !important;
  text-decoration: none !important;
}

.tg-profile-username {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 0;
}

.tg-profile-username a {
  color: inherit !important;
  text-decoration: none;
}

.tg-profile-bio {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

.tg-profile-stats {
  display: flex;
  border-top: 1px solid #f0f0f0;
}

.tg-profile-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.15s;
  border-right: 1px solid #f0f0f0;
}

.tg-profile-stat:last-child {
  border-right: none;
}

.tg-profile-stat:hover {
  background: #fafafa;
}

.tg-profile-stat-num {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.tg-profile-stat-label {
  font-size: 12px;
  color: #8e8e93;
  margin-top: 2px;
  font-weight: 500;
}

/* Profile actions */
.tg-profile-actions {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tg-profile-actions .btn {
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 10px 20px !important;
  transition: all 0.2s !important;
}

/* Telegram-style menu items */
.tg-menu-section {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}

.tg-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  text-decoration: none !important;
  color: #111 !important;
  transition: background 0.15s;
  border-bottom: 1px solid #f2f2f7;
  cursor: pointer;
}

.tg-menu-item:last-child {
  border-bottom: none;
}

.tg-menu-item:hover {
  background: #f9f9f9;
}

.tg-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  font-size: 16px;
  color: #fff;
}

.tg-menu-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.tg-menu-badge {
  font-size: 14px;
  font-weight: 600;
  color: #8e8e93;
  margin-right: 8px;
}

.tg-menu-arrow {
  color: #c7c7cc;
  font-size: 14px;
}

/* Telegram-style special offer */
.tg-special-offer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.tg-special-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.tg-special-offer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}

.tg-special-offer p {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-bottom: 16px;
}

.tg-offer-card {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 14px;
  padding: 20px 16px;
  max-width: 300px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
}

.tg-offer-price-old {
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  font-size: 16px;
  margin-bottom: 4px;
}

.tg-offer-price {
  color: #ffd700;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.tg-offer-price-label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-bottom: 14px;
}

.tg-offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333 !important;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 24px;
  font-size: 15px;
  text-decoration: none !important;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
  width: 100%;
}

.tg-offer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,215,0,0.5);
  color: #333 !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .tg-profile-top {
    padding: 20px 16px 60px;
    min-height: 100px;
  }
  
  .tg-profile-avatar-wrap img {
    width: 86px;
    height: 86px;
  }
  
  .tg-profile-name {
    font-size: 20px;
  }
  
  .tg-profile-username {
    font-size: 14px;
  }
  
  .tg-profile-stat-num {
    font-size: 16px;
  }
  
  .tg-profile-info {
    margin-top: -38px;
  }
  
  .tg-menu-item {
    padding: 12px 16px;
  }
}

/* Layout for regular user profiles */
.is-regular-user-profile + .profile-content .creator-feed-row {
  /* Override creator grid for regular users */
}

.tg-profile-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 768px) {
  .tg-profile-wrapper {
    padding: 0 20px;
  }
}

/* When viewing own profile for user_group=3, hide the sidebar and make content full-width */
.is-regular-user-profile .tg-own-profile-active .col-lg-4.order-1 {
  display: none !important;
}
.is-regular-user-profile .tg-own-profile-active .col-lg-8.order-2 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}
/* ====== END TELEGRAM-STYLE ====== */
/* Subscribe button styles */
.subscribe-btn {
  background-color: rgba(0, 123, 255, 0.8) !important;
  color: white !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.subscribe-btn:hover {
  background-color: rgba(0, 123, 255, 1) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
}

.subscribe-btn:active {
  transform: translateY(0) !important;
}

.subscribe-btn span {
  color: white !important;
  font-weight: 500 !important;
}
.profile-name-wrapper {
  text-align: center !important;
  display: block !important;
  border-radius: 12px !important;
  -webkit-border-radius: 12px !important;
  -moz-border-radius: 12px !important;
  overflow: hidden !important;
}

.profile-name-wrapper > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.profile-name-wrapper > div:nth-child(2) {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: #6c757d !important;
  text-align: center !important;
  width: 100% !important;
}

.profile-name-wrapper > div:last-child {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  justify-content: center !important;
  margin-top: 15px !important;
  background: transparent !important;
  background-color: transparent !important;
}


/* Instagram-like profile header (shown on all screens for creator profiles) */
.ig-mobile-profile-header {
  display: none;
}

/* Creator profile: show IG header on all screen sizes */
.is-creator-profile .ig-mobile-profile-header {
  display: block !important;
}
.is-creator-profile .profile-cover-wrapper {
  display: none !important;
}
.is-creator-profile .profile-name-wrapper {
  display: none !important;
}

@media (max-width: 767.98px) {
  /* Prevent FOUC/layout-jump on mobile: apply final container styles immediately */
  .profile-header {
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
  }

  .profile-header * {
    transition: none !important;
  }

  .ig-mobile-profile-header {
    display: block;
    background: #ffffff;
    color: #000000;
    padding: 14px 16px;
    border-bottom: 1px solid #dbdbdb;
    transition: none !important;
  }

  .ig-mobile-profile-header a {
    color: inherit;
    text-decoration: none;
  }

  .ig-mobile-profile-header .ig-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .ig-mobile-profile-header .ig-avatar {
    flex: 0 0 auto;
    position: relative;
  }

  .ig-mobile-profile-header .ig-avatar-controls {
    position: absolute;
    right: -6px;
    bottom: -6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .ig-mobile-profile-header .ig-avatar-controls .profile-avatar-change,
  .ig-mobile-profile-header .ig-avatar-controls .profile-avatar-crop,
  .ig-mobile-profile-header .ig-avatar-controls .profile-avatar-delete {
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
  }

  .ig-mobile-profile-header .ig-avatar-controls i {
    font-size: 13px;
    color: #111111;
  }

  .ig-mobile-profile-header .ig-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dbdbdb;
  }

  .ig-mobile-profile-header .ig-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ig-mobile-profile-header .ig-username-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Mobile: profile share button (user_group=2) */
  .ig-mobile-profile-header .ig-share-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }
  .ig-mobile-profile-header .ig-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #dbdbdb;
    background: #ffffff;
    color: #111111;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    flex: 0 0 auto;
  }
  .ig-mobile-profile-header .ig-share-btn:hover { background: #f6f6f6; }
  .ig-mobile-profile-header .ig-share-btn i { font-size: 13px; }

  .ig-mobile-profile-header .ig-username-row .ig-username {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ig-mobile-profile-header .verified-badge svg {
    width: 18px !important;
    height: 18px !important;
  }

  .ig-mobile-profile-header .ig-stats {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .ig-mobile-profile-header .ig-stat {
    flex: 0 0 auto;
    text-align: left;
  }

  .ig-mobile-profile-header .ig-stat .ig-num {
    font-weight: 600;
    font-size: 16px;
    line-height: 1.1;
  }

  .ig-mobile-profile-header .ig-stat .ig-label {
    font-size: 13px;
    line-height: 1.1;
    color: #737373;
    margin-top: 2px;
  }

  /* Mobile: clickable @username above actions */
  .ig-mobile-profile-header .ig-handle {
    margin-top: 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ig-mobile-profile-header .ig-handle a {
    color: #000000 !important;
    text-decoration: none;
  }

  .ig-mobile-profile-header .ig-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .ig-mobile-profile-header .ig-actions .btn,
  .ig-mobile-profile-header .ig-actions a.btn {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    padding: 7px 10px !important;
    border-radius: 8px !important;
    font-weight: 600;
  }

  /* Primary (Subscribe) */
  .ig-mobile-profile-header .ig-actions .subscribe-btn {
    background-color: #0095f6 !important;
    border: 1px solid #0095f6 !important;
  }

  .ig-mobile-profile-header .ig-actions .subscribe-btn span {
    color: #ffffff !important;
  }

  /* Unsubscribe / Following */
  .ig-mobile-profile-header .ig-actions .js_unfollow.subscribe-btn {
    background: #efefef !important;
    border: 1px solid #dbdbdb !important;
  }

  .ig-mobile-profile-header .ig-actions .js_unfollow.subscribe-btn span {
    color: #000000 !important;
  }

  /* Secondary (Message) */
  .ig-mobile-profile-header .ig-actions .ig-btn-secondary,
  .ig-mobile-profile-header .ig-content-actions .ig-btn-secondary,
  .ig-mobile-profile-header .ig-subscription-actions .ig-btn-secondary {
    background: #efefef !important;
    color: #000000 !important;
    border: 1px solid #dbdbdb !important;
  }

  .ig-mobile-profile-header .ig-content-actions i,
  .ig-mobile-profile-header .ig-subscription-actions i {
    font-size: 14px;
    color: #111111;
  }

  .ig-mobile-profile-header .ig-content-actions span {
    color: #111111;
  }



  /* Remove the blank cover block under the IG mobile header */
  .profile-cover-wrapper {
    display: none !important;
  }

  /* Mobile: all action buttons in a single 3-column row */
  .ig-mobile-profile-header .ig-actions {
    display: none;
  }

  .ig-mobile-profile-header .ig-content-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .ig-mobile-profile-header .ig-content-actions .btn,
  .ig-mobile-profile-header .ig-content-actions a.btn {
    width: 100%;
    min-width: 0;
    padding: 6px 4px !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  /* Mobile: subscription plans section (Instagram-like) */
  .ig-mobile-profile-header .ig-subscription {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbdbdb;
  }

  /* gifts section — removed */

  .ig-mobile-profile-header .ig-subscription-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 10px;
  }

  .ig-mobile-profile-header .ig-subscription-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ig-mobile-profile-header .ig-subscription-actions .ig-plan-btn {
    flex-direction: column;
    gap: 2px;
    text-align: center;
    padding: 8px 6px !important;
  }

  .ig-mobile-profile-header .ig-subscription-actions .ig-plan-label {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
  }

  .ig-mobile-profile-header .ig-subscription-actions .ig-plan-price {
    font-size: 11px;
    font-weight: 600;
    color: #111111;
    line-height: 1.1;
    opacity: 0.9;
  }

  /* Mobile: support creator (Instagram-like) */
  .ig-mobile-profile-header .ig-support {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbdbdb;
  }

  .ig-mobile-profile-header .ig-support-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ig-mobile-profile-header .ig-support-title i {
    color: #ff3b96;
  }

  .ig-mobile-profile-header .ig-support-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .ig-mobile-profile-header .ig-support-meta .ig-support-collected {
    font-size: 12px;
    color: #737373;
  }

  .ig-mobile-profile-header .ig-support-meta .ig-support-collected strong {
    color: #111111;
  }

  .ig-mobile-profile-header .ig-support-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .ig-mobile-profile-header .ig-support-form .ig-support-input {
    height: 36px;
    border-radius: 8px;
    border: 1px solid #dbdbdb;
    padding: 0 10px;
    font-weight: 600;
    font-size: 13px;
    background: #ffffff;
    color: #111111;
  }

  .ig-mobile-profile-header .ig-support-form .ig-support-btn {
    height: 36px;
    padding: 0 12px !important;
    border-radius: 8px !important;
    font-weight: 700;
    background: #0095f6 !important;
    border: 1px solid #0095f6 !important;
    color: #ffffff !important;
    white-space: nowrap;
  }

  /* Mobile: Instagram-like recommendations section */
  .ig-mobile-profile-header .ig-recommended {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dbdbdb;
  }

  .ig-mobile-profile-header .ig-recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .ig-mobile-profile-header .ig-recommended-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
  }

  .ig-mobile-profile-header .ig-rec-more {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0095f6;
    cursor: pointer;
  }

  /* Mobile: recommendations should fit 3 items and not be horizontally scrollable */
  #recommended-channels-wrapper-mobile {
    overflow: hidden !important;
  }

  #recommended-channels-list-mobile {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    scroll-behavior: auto !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important;
  }

  #recommended-channels-list-mobile::-webkit-scrollbar {
    display: none !important;
  }

  #recommended-channels-list-mobile .recommended-channel-item {
    width: auto !important;
  }

  #recommended-channels-list-mobile .recommended-channel-avatar {
    width: 64px !important;
    height: 64px !important;
    border-width: 2px !important;
    margin-bottom: 8px !important;
  }

  #recommended-channels-list-mobile .recommended-channel-name {
    font-size: 12px !important;
  }

  #recommended-channels-list-mobile .recommended-channel-username {
    font-size: 11px !important;
  }

  /* Hide desktop Recommended Channels card on mobile */
  #recommended-channels-container {
    display: none !important;
  }

  /* Hide existing desktop header block on mobile */
  .profile-name-wrapper {
    display: none !important;
  }
}

/* CH: profile tags (chips) */
.ch-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ch-profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 850;
  color: rgba(15,23,42,.92) !important;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.ch-profile-tag:hover {
  transform: translateY(-0.5px);
  background: rgba(255,255,255,.95);
  border-color: rgba(79,70,229,.25);
}
[data-bs-theme="dark"] .ch-profile-tag {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92) !important;
}

/* Desktop: profile share button (user_group=2) */
.ch-profile-share-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.ch-profile-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.9);
  color: rgba(15,23,42,.92);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15,23,42,.06);
  text-decoration: none;
}
.ch-profile-share-btn:hover { background: rgba(255,255,255,1); transform: translateY(-0.5px); }
[data-bs-theme="dark"] .ch-profile-share-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
}


/* ===== Desktop styles for IG-style creator profile header ===== */
@media (min-width: 768px) {
  .is-creator-profile .ig-mobile-profile-header {
    background: #ffffff;
    color: #000000;
    padding: 30px 40px;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    max-width: 680px;
    margin: 0 auto 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }

  .is-creator-profile .ig-mobile-profile-header a {
    color: inherit;
    text-decoration: none;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-top {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: center;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-avatar {
    flex: 0 0 auto;
    position: relative;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-avatar img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ee848e;
    box-shadow: 0 4px 16px rgba(238,132,142,0.2);
  }

  .is-creator-profile .ig-mobile-profile-header .ig-avatar-controls {
    position: absolute;
    right: -6px;
    bottom: -6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-avatar-controls .profile-avatar-change,
  .is-creator-profile .ig-mobile-profile-header .ig-avatar-controls .profile-avatar-crop,
  .is-creator-profile .ig-mobile-profile-header .ig-avatar-controls .profile-avatar-delete {
    background: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    cursor: pointer;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-avatar-controls i {
    font-size: 14px;
    color: #111111;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-handle {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #555;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-handle a {
    color: #000000 !important;
    text-decoration: none;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-share-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #dbdbdb;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    cursor: pointer;
    transition: background 0.15s;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-share-btn:hover { background: #f6f6f6; }
  .is-creator-profile .ig-mobile-profile-header .ig-share-btn i { font-size: 13px; }

  .is-creator-profile .ig-mobile-profile-header .ig-username-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-username-row .ig-username {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .is-creator-profile .ig-mobile-profile-header .verified-badge svg {
    width: 22px !important;
    height: 22px !important;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-stats {
    display: flex;
    justify-content: flex-start;
    gap: 28px;
    margin-bottom: 16px;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-stat {
    text-align: left;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
    transition: background 0.15s;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-stat:hover {
    background: #f5f5f5;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-stat .ig-num {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: #111;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-stat .ig-label {
    font-size: 13px;
    line-height: 1.2;
    color: #737373;
    margin-top: 3px;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-actions {
    display: none;
  }

  .is-creator-profile .ig-mobile-profile-header .ig-actions .btn,
  .is-creator-profile .ig-mobile-profile-header .ig-actions a.btn {
    padding: 9px 24px !important;
    border-radius: 10px !important;
    font-weight: 600;
    font-size: 14px;
    min-width: 130px;
    text-align: center;
    transition: all 0.2s;
  }

  /* Primary (Subscribe) */
  .is-creator-profile .ig-mobile-profile-header .ig-actions .subscribe-btn {
    background-color: #0095f6 !important;
    border: 1px solid #0095f6 !important;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-actions .subscribe-btn span {
    color: #ffffff !important;
  }
  /* Unsubscribe / Following */
  .is-creator-profile .ig-mobile-profile-header .ig-actions .js_unfollow.subscribe-btn {
    background: #efefef !important;
    border: 1px solid #dbdbdb !important;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-actions .js_unfollow.subscribe-btn span {
    color: #000000 !important;
  }

  /* Secondary (Message) */
  .is-creator-profile .ig-mobile-profile-header .ig-actions .ig-btn-secondary,
  .is-creator-profile .ig-mobile-profile-header .ig-content-actions .ig-btn-secondary,
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-actions .ig-btn-secondary {
    background: #efefef !important;
    color: #000000 !important;
    border: 1px solid #dbdbdb !important;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-content-actions i,
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-actions i {
    font-size: 14px;
    color: #111111;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-content-actions span {
    color: #111111;
  }

  /* Desktop: content buttons (Message / Videos / Photos) */
  .is-creator-profile .ig-mobile-profile-header .ig-content-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-content-actions .btn,
  .is-creator-profile .ig-mobile-profile-header .ig-content-actions a.btn {
    padding: 8px 10px !important;
    border-radius: 10px !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    min-width: 0;
    transition: all 0.2s;
  }

  /* Desktop: gifts section — removed */

  /* Desktop: recommendations */
  .is-creator-profile .ig-mobile-profile-header .ig-recommended {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #efefef;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-recommended-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-rec-more {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0095f6;
    cursor: pointer;
  }
  .is-creator-profile #recommended-channels-wrapper-mobile {
    overflow: hidden !important;
  }
  .is-creator-profile #recommended-channels-list-mobile {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    overflow: hidden !important;
    max-width: 400px;
    margin: 0 auto;
  }
  .is-creator-profile #recommended-channels-list-mobile .recommended-channel-item {
    width: auto !important;
  }
  .is-creator-profile #recommended-channels-list-mobile .recommended-channel-avatar {
    width: 80px !important;
    height: 80px !important;
    border-width: 2px !important;
    margin-bottom: 8px !important;
  }
  .is-creator-profile #recommended-channels-list-mobile .recommended-channel-name {
    font-size: 13px !important;
  }
  .is-creator-profile #recommended-channels-list-mobile .recommended-channel-username {
    font-size: 12px !important;
  }

  /* Desktop: subscription section */
  .is-creator-profile .ig-mobile-profile-header .ig-subscription {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #efefef;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 14px;
    text-align: center;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-actions .ig-plan-btn {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 10px 8px !important;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-actions .ig-plan-label {
    font-size: 14px;
    font-weight: 700;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-subscription-actions .ig-plan-price {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    opacity: 0.9;
  }

  /* Desktop: support creator */
  .is-creator-profile .ig-mobile-profile-header .ig-support {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #efefef;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-title {
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-title i {
    color: #ff3b96;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-meta .ig-support-collected {
    font-size: 14px;
    color: #737373;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-meta .ig-support-collected strong {
    color: #111111;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-form .ig-support-input {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #dbdbdb;
    padding: 0 14px;
    font-weight: 600;
    font-size: 14px;
    background: #fafafa;
    color: #111111;
    transition: border-color 0.2s;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-form .ig-support-input:focus {
    border-color: #0095f6;
    outline: none;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-form .ig-support-btn {
    height: 42px;
    padding: 0 20px !important;
    border-radius: 10px !important;
    font-weight: 700;
    background: #0095f6 !important;
    border: 1px solid #0095f6 !important;
    color: #ffffff !important;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.2s;
  }
  .is-creator-profile .ig-mobile-profile-header .ig-support-form .ig-support-btn:hover {
    background: #0081d6 !important;
    border-color: #0081d6 !important;
  }

  /* Desktop: hide the old desktop sidebar cards when creator profile is shown */
  .is-creator-profile ~ .desktop-creator-card-hide {
    display: none !important;
  }

  /* Desktop: center active subscribers count */
  .is-creator-profile .ig-mobile-profile-header .purchases-count-info {
    display: flex !important;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Desktop: center support creator text blocks */
  .is-creator-profile .ig-mobile-profile-header .ig-support .text-muted,
  .is-creator-profile .ig-mobile-profile-header .ig-support .d-flex {
    justify-content: center;
    text-align: center;
  }

  /* Desktop: gifts send centered — removed */

  /* Desktop: tags */
  .is-creator-profile .ch-profile-tags {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #efefef;
    justify-content: center;
  }

  /* Desktop: center the whole profile-header for creator */
  .is-creator-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Creator profile: center feed layout on all screen sizes ===== */
@media (min-width: 768px) {
  .creator-feed-row > .col-lg-4.order-1 {
    display: none !important;
  }
  .creator-feed-row > .col-lg-8.order-2 {
    flex: 0 0 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    float: none !important;
  }
  .creator-feed-row {
    justify-content: center !important;
  }
}

/* Keyframes for desktop (already defined in mobile, but let's ensure they work globally) */
@keyframes vipGlow {
  0% { box-shadow: 0 6px 18px rgba(249,115,22,0.14); }
  50% { box-shadow: 0 10px 26px rgba(249,115,22,0.28); }
  100% { box-shadow: 0 6px 18px rgba(249,115,22,0.14); }
}
@keyframes collectibleGlow {
  0% { box-shadow: 0 4px 14px rgba(245,158,11,0.10); }
  50% { box-shadow: 0 8px 22px rgba(245,158,11,0.22); }
  100% { box-shadow: 0 4px 14px rgba(245,158,11,0.10); }
}
