/* =========================================================
   ETICKS USER PROFILE MODAL
   Clean, fixed, working action menu
   ========================================================= */

#userProfileModal,
#userProfileModal *,
#userProfileModal *::before,
#userProfileModal *::after {
  box-sizing: border-box;
}

#userProfileModal .hidden {
  display: none !important;
}

#userProfileModal .no-scrollbar::-webkit-scrollbar {
  display: none;
}

#userProfileModal .no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* =========================
   ROOT / OVERLAY / PANEL
========================= */
#userProfileModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#userProfileModal.hidden {
  display: none !important;
}

#userProfileModal #eticksUserProfileModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#userProfileModal #userProfileOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

#userProfileModal.active #userProfileOverlay {
  opacity: 1 !important;
}

#userProfileModal #userProfilePanel {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top, rgba(25, 25, 28, 0.98), rgba(12, 12, 14, 1) 48%, #060607 100%);
  color: #f5f7fb;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(.22,.61,.36,1), opacity 0.22s ease;
  z-index: 2;
  will-change: transform, opacity;
}

#userProfileModal.active #userProfilePanel {
  transform: translateY(0);
  opacity: 1;
}

#userProfileModal .user-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  background: transparent;
  overflow: visible;
}

/* =========================
   TOP BAR
========================= */
#userProfileModal .user-topbar {
  position: sticky;
  top: 0;
  z-index: 2000 !important;
  overflow: visible !important;
  isolation: isolate;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: rgba(10, 10, 12, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#userProfileModal .user-top-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#userProfileModal .user-title {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f6f7fb;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#userProfileModal .user-top-actions {
  position: relative;
  z-index: 3000 !important;
  overflow: visible !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#userProfileModal .user-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5f7fb;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

#userProfileModal .user-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

#userProfileModal .user-icon-btn:active {
  transform: scale(0.96);
}

#userProfileModal .user-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* =========================
   ACTION MENU
========================= */
#userProfileModal .user-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(18, 18, 20, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99999 !important;
  transform-origin: top right;
  animation: userMenuPop 160ms ease-out;
  pointer-events: auto;
}

#userProfileModal .user-popover.hidden {
  display: none !important;
}

#userProfileModal .user-popover-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #f5f7fb;
  text-align: left;
  padding: 12px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

#userProfileModal .user-popover-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

#userProfileModal .user-popover-item:active {
  transform: scale(0.98);
}

#userProfileModal .user-popover-item.danger {
  color: #ff6b6b;
}

#userProfileModal .user-popover-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 4px;
}

@keyframes userMenuPop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   MAIN SHELL
========================= */
#userProfileModal .user-grid-shell {
  flex: 1;
  overflow: hidden;
  padding-top: 0;
}

#userProfileModal .user-loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#userProfileModal .user-loading--tab {
  min-height: 260px;
}

#userProfileModal .user-spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: #fff;
  animation: userSpin 0.85s linear infinite;
}

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

#userProfileModal .user-empty {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 28px 22px;
  background: transparent;
  color: rgba(245, 247, 251, 0.72);
}

#userProfileModal .user-empty h3 {
  margin: 0;
  color: #f5f7fb;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

#userProfileModal .user-empty p {
  margin: 8px 0 0;
  max-width: 320px;
  color: rgba(245, 247, 251, 0.58);
  font-size: 13px;
  line-height: 1.55;
}

#userProfileModal #userProfileError {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #f5f7fb;
  font-weight: 700;
}

/* =========================
   HERO
========================= */
#userProfileModal .user-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 16px 14px;
}

#userProfileModal .user-avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  margin-top: 6px;
  margin-bottom: 12px;
}

#userProfileModal .user-avatar-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  background: conic-gradient(#ffb800, #ff5f6d, #ff2d95, #7b61ff, #ffb800);
  z-index: 0;
}

#userProfileModal .user-avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: #0b0b0d;
  z-index: 0;
}

#userProfileModal .user-avatar,
#userProfileModal .user-avatar-fallback {
  position: relative;
  z-index: 1;
}

#userProfileModal .user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #1a1a1d;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

#userProfileModal .user-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f1f23, #0f0f12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

#userProfileModal .user-avatar-edit {
  position: absolute;
  right: -4px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  border: 3px solid #0b0b0d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.18s ease;
  z-index: 3;
}

#userProfileModal .user-avatar-edit:hover {
  transform: scale(1.04);
}

#userProfileModal .user-avatar-edit:active {
  transform: scale(0.96);
}

#userProfileModal .user-edit-icon {
  width: 16px;
  height: 16px;
}

#userProfileModal .user-handle-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px !important;
  flex-wrap: wrap;
}

#userProfileModal .user-at,
#userProfileModal .user-handle {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
  color: #008d92;
  letter-spacing: -0.02em;
}

#userProfileModal .user-handle {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#userProfileModal .user-owner-edit {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, background 0.18s ease;
}

#userProfileModal .user-owner-edit:hover {
  background: rgba(255, 255, 255, 0.1);
}

#userProfileModal .user-owner-edit:active {
  transform: scale(0.96);
}

#userProfileModal .user-owner-edit-icon {
  width: 15px;
  height: 15px;
}

#userProfileModal .user-display-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 10px;
}

/* =========================
   STATS
========================= */
#userProfileModal .user-stats {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

#userProfileModal .user-stat {
  text-align: center;
}

#userProfileModal .user-stat-value {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
}

#userProfileModal .user-stat-label {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(245, 247, 251, 0.62);
  line-height: 1.2;
}

/* =========================
   ACTION BUTTONS
========================= */
#userProfileModal .user-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

#userProfileModal .user-follow-btn,
#userProfileModal .user-message-btn,
#userProfileModal .user-mini-btn {
  border: 0;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

#userProfileModal .user-follow-btn:active,
#userProfileModal .user-message-btn:active,
#userProfileModal .user-mini-btn:active {
  transform: scale(0.97);
}

#userProfileModal .user-follow-btn {
  background: #fff;
  color: #111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

#userProfileModal .user-follow-btn:hover {
  background: #f2f4f8;
}

#userProfileModal .user-follow-btn.is-following {
  background: #16a34a;
  color: #fff;
}

#userProfileModal .user-message-btn {
  min-width: 104px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#userProfileModal .user-message-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

#userProfileModal .user-mini-btn {
  min-width: 72px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#userProfileModal .user-mini-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================
   BIO
========================= */
#userProfileModal .user-bio {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#userProfileModal .user-bio-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  opacity: 0.9;
}

#userProfileModal .user-bio-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 247, 251, 0.84);
  text-align: center;
  max-width: 360px;
}

#userProfileModal .user-bio-meta {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 251, 0.56);
  text-align: center;
}

/* =========================
   TABS
========================= */
#userProfileModal .user-tabs-wrap {
  padding: 10px 14px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#userProfileModal .user-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
}

#userProfileModal .user-tab {
  height: 42px;
  border: 0;
  background: transparent;
  color: rgba(245, 247, 251, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: 14px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

#userProfileModal .user-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

#userProfileModal .user-tab-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

#userProfileModal .user-tab-active::after {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.95;
}

/* =========================
   CONTENT AREA
========================= */
#userProfileModal .user-content {
  flex: 1;
  overflow: hidden;
  padding: 0;
}

#userProfileModal .user-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
}

#userProfileModal .user-post-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #151518;
  cursor: pointer;
}

#userProfileModal .user-post-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

#userProfileModal .user-post-card:hover img {
  transform: scale(1.05);
}

#userProfileModal .user-post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.00) 45%, rgba(0,0,0,0.12));
  pointer-events: none;
}

#userProfileModal .user-post-copy {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  color: #fff;
}

#userProfileModal .user-post-copy h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#userProfileModal .user-post-copy p {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 10.5px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Photos tab */
#userProfileModal .user-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

#userProfileModal .user-photo-card {
  border: 0;
  background: #141416;
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  position: relative;
}

#userProfileModal .user-photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

#userProfileModal .user-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.32), rgba(0,0,0,0));
  pointer-events: none;
}




/* =========================================================
   SAVED EVENTS GRID
   Instagram Profile Style
   ========================================================= */

#userProfileModal .user-saved-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:2px;
    padding:0;
    margin:0;
    width:100%;
    background:#fff;
}

/* Tile */

#userProfileModal .user-saved-card{
    position:relative;
    width:100%;
       /* YOU control this */
    height:180px;
    overflow:hidden;

    padding:0;
    margin:0;

    border:0;
    border-radius:0;

    background:#efefef;

    cursor:pointer;

    display:block;
}

/* Image */

#userProfileModal .user-saved-image{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center;

    display:block;

    transition:transform .25s ease;
}

/* Hover */

#userProfileModal .user-saved-card:hover .user-saved-image{
    transform:scale(1.03);
}

#userProfileModal .user-saved-card:active .user-saved-image{
    transform:scale(.98);
}

/* Remove all old styles */

#userProfileModal .user-saved-image-wrap,
#userProfileModal .user-saved-copy,
#userProfileModal .user-saved-badge{
    display:none !important;
}

/* Mobile */

@media (max-width:767px){

    #userProfileModal .user-saved-grid{
        grid-template-columns:repeat(3,1fr);
        gap:2px;
    }

}



/* About tab */
#userProfileModal .user-about-card {
  margin: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

#userProfileModal .user-about-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

#userProfileModal .user-about-section p {
  margin: 0;
  color: rgba(245, 247, 251, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

#userProfileModal .user-about-meta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

#userProfileModal .user-about-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#userProfileModal .user-about-row span {
  color: rgba(245, 247, 251, 0.58);
  font-size: 12px;
  font-weight: 700;
}

#userProfileModal .user-about-row b {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

#userProfileModal .user-about-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 251, 0.74);
  font-size: 12px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#userProfileModal .user-about-edit {
  margin-top: 14px;
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

#userProfileModal .user-about-edit:hover {
  background: #f2f4f8;
}

/* =========================
   IMAGE PREVIEW
========================= */
#userProfileModal #userImagePreview {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#userProfileModal #userImagePreview img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.08);
}

#userProfileModal #userImagePreviewClose {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* =========================
   EDIT / SAVE STATES
========================= */
#userProfileModal .is-disabled,
#userProfileModal button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
  #userProfileModal .user-topbar {
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
  }

  #userProfileModal .user-title {
    font-size: 15px;
  }

  #userProfileModal .user-hero {
    padding: 16px 14px 12px;
  }

  #userProfileModal .user-avatar-wrap {
    width: 104px;
    height: 104px;
  }

  #userProfileModal .user-display-name {
    font-size: 19px;
  }

  #userProfileModal .user-stats {
    gap: 8px;
  }

  #userProfileModal .user-actions {
    grid-template-columns: 1fr 1fr;
  }

  #userProfileModal .user-mini-btn {
    grid-column: 1 / -1;
  }

  #userProfileModal .user-tabs {
    gap: 4px;
  }

  #userProfileModal .user-tab {
    height: 40px;
    font-size: 12px;
  }

  #userProfileModal .user-photo-grid,
  #userProfileModal .user-saved-grid {
    gap: 8px;
    padding: 12px;
  }

  #userProfileModal .user-photo-card img {
    height: 180px;
  }

  #userProfileModal .user-about-card {
    margin: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  #userProfileModal .user-about-row {
    flex-direction: column;
    align-items: flex-start;
  }

  #userProfileModal .user-about-row b {
    text-align: left;
  }
}

@media (max-width: 380px) {
  #userProfileModal .user-avatar-wrap {
    width: 96px;
    height: 96px;
  }

  #userProfileModal .user-at,
  #userProfileModal .user-handle {
    font-size: 16px;
  }

  #userProfileModal .user-display-name {
    font-size: 18px;
  }

  #userProfileModal .user-stat-value {
    font-size: 16px;
  }

  #userProfileModal .user-stat-label {
    font-size: 11px;
  }

  #userProfileModal .user-follow-btn,
  #userProfileModal .user-message-btn,
  #userProfileModal .user-mini-btn {
    height: 40px;
    font-size: 13px;
  }
}


#userProfileModal .ig-top-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: visible !important;
  z-index: 3000 !important;
}

#userProfileModal .ig-logout-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f7fb;
}

#userProfileModal .ig-logout-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   LIGHT / WHITE THEME OVERRIDES
   Paste below the existing CSS
   ========================================================= */

#userProfileModal #userProfileOverlay {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#userProfileModal #userProfilePanel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%) !important;
  color: #111827 !important;
}

#userProfileModal .user-shell {
  background: transparent !important;
}

#userProfileModal .user-topbar {
  background: rgba(255, 255, 255, 0.78) !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#userProfileModal .user-title,
#userProfileModal .user-empty h3,
#userProfileModal .user-display-name,
#userProfileModal .user-stat-value,
#userProfileModal .user-bio-label,
#userProfileModal .user-about-section h3,
#userProfileModal .user-about-row b {
  color: #111827 !important;
}

#userProfileModal .user-empty p,
#userProfileModal .user-bio-text,
#userProfileModal .user-bio-meta,
#userProfileModal .user-stat-label,
#userProfileModal .user-about-section p,
#userProfileModal .user-about-note,
#userProfileModal .user-about-row span,
#userProfileModal .user-saved-copy p,
#userProfileModal .user-post-copy p {
  color: rgba(17, 24, 39, 0.68) !important;
}

#userProfileModal .user-icon-btn,
#userProfileModal .user-message-btn,
#userProfileModal .user-mini-btn,
#userProfileModal .user-tab,
#userProfileModal .user-about-row {
  background: #ffffff !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  color: #111827 !important;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06) !important;
}

#userProfileModal .user-icon-btn:hover,
#userProfileModal .user-message-btn:hover,
#userProfileModal .user-mini-btn:hover,
#userProfileModal .user-tab:hover {
  background: #f3f4f6 !important;
}

#userProfileModal .user-follow-btn {
  background: #111827 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12) !important;
}

#userProfileModal .user-follow-btn:hover {
  background: #0f172a !important;
}

#userProfileModal .user-follow-btn.is-following {
  background: #16a34a !important;
  color: #ffffff !important;
}

#userProfileModal .user-tabs-wrap {
  background: rgba(255, 255, 255, 0.92) !important;
  border-top: 1px solid rgba(17, 24, 39, 0.06) !important;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06) !important;
}

#userProfileModal .user-tab {
  color: rgba(17, 24, 39, 0.62) !important;
}

#userProfileModal .user-tab-active {
  color: #111827 !important;
  background: rgba(17, 24, 39, 0.05) !important;
}

#userProfileModal .user-tab-active::after {
  background: #111827 !important;
}

#userProfileModal .user-post-grid {
  background: rgba(17, 24, 39, 0.05) !important;
}

#userProfileModal .user-post-card,
#userProfileModal .user-saved-card,
#userProfileModal .user-photo-card,
#userProfileModal .user-about-card,
#userProfileModal #userImagePreview img {
  background: #ffffff !important;
  border: 1px solid rgba(17, 24, 39, 0.06) !important;
}

#userProfileModal .user-saved-badge {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #111827 !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
}

#userProfileModal .user-avatar-wrap::after {
  background: #ffffff !important;
}

#userProfileModal .user-avatar {
  border: 2px solid rgba(17, 24, 39, 0.06) !important;
}

#userProfileModal .user-avatar-fallback {
  background: linear-gradient(180deg, #eef2f7, #dfe6ef) !important;
  color: #111827 !important;
}

#userProfileModal .user-popover {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12) !important;
}

#userProfileModal .user-popover-item {
  color: #111827 !important;
}

#userProfileModal .user-popover-item:hover {
  background: rgba(17, 24, 39, 0.05) !important;
}

#userProfileModal .user-popover-item.danger {
  color: #dc2626 !important;
}

#userProfileModal .ig-logout-btn {
  background: #ffffff !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  color: #111827 !important;
}

#userProfileModal .ig-logout-btn:hover {
  background: #f3f4f6 !important;
}

#userProfileModal .user-about-edit,
#userProfileModal #userImagePreviewClose {
  background: #111827 !important;
  color: #ffffff !important;
}

#userProfileModal .user-about-edit:hover {
  background: #0f172a !important;
}

#userProfileModal .user-icon,
#userProfileModal .user-edit-icon,
#userProfileModal .user-owner-edit-icon {
  color: #111827 !important;
}

#userProfileModal .user-owner-edit,
#userProfileModal .user-avatar-edit {
  background: #ffffff !important;
  border: 1px solid rgba(17, 24, 39, 0.08) !important;
  color: #111827 !important;
}

#userProfileModal .user-loading .user-spinner {
  border-color: rgba(17, 24, 39, 0.12) !important;
  border-top-color: #111827 !important;
}

#userProfileModal .user-about-note {
  background: rgba(17, 24, 39, 0.03) !important;
  border: 1px solid rgba(17, 24, 39, 0.06) !important;
}

#userProfileModal .user-stat-label,
#userProfileModal .user-bio-meta {
  opacity: 0.78 !important;
}

#userProfileModal .user-photo-card::after,
#userProfileModal .user-saved-image-wrap::after,
#userProfileModal .user-post-card::after {
  background: linear-gradient(to top, rgba(255,255,255,0.18), rgba(255,255,255,0.00) 45%, rgba(17,24,39,0.08)) !important;
}

@media (max-width: 767px) {
  #userProfileModal .user-topbar {
    background: rgba(255, 255, 255, 0.9) !important;
  }

  #userProfileModal .user-tabs-wrap {
    background: rgba(255, 255, 255, 0.95) !important;
  }
}

