dialog:modal {
    max-width: 95vw;
    padding: 1vw;
  }

  /* Try the new card model  */

.card {
    /* Add shadows to create the "card" effect */
    width:33%;
    height:50vw;
    /*transition: 0.2s; */
    background-clip: content-box; 
  background-position: center center; 
  opacity: 1;
  background-repeat: no-repeat;
  background-size: auto 100%;
  link: hover;
  position: relative;
  line-height: 1.0; 
  background-color: white;
    color: white;
  font-family: Arial;
   font-size: 2vw ; 
    font-weight: 400;
    top: 0%;
    padding: 0.3vw;
  
    text-align: left;
    float: left;

  margin-bottom:1vw;
  
   word-wrap: break-word  !important;
   overflow:hidden;
  }
  
  /* On mouse-over, add a deeper shadow */
  .card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    /* border:red;*/
  
     
  
  }

  .cardDynamic{
    width:50%;
    height:40vw;
    transition: 0.2s;
    background-clip: content-box; 
  background-position: center center; 
  opacity: 1;
  background-repeat: no-repeat;
  background-size: auto 100%;
  link: hover;
  position: relative;
  line-height: 1.0; 
  background-color: white;
    color: white;
  font-family: Arial;
   font-size: 2vw ; 
    font-weight: 500;
    top: 0%;
    padding: 0.3vw;
  
    text-align: left;
    float: left;
  margin-bottom:1vw;
  
   word-wrap: break-word  !important;
   overflow:hidden;

  }

  .cardDynamic:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    /* border:red;*/
  
     
  
  }

  
  /* inner box */
  .box {
  font-size: 4vw; 
  transition: 0.2s;
  padding:1vw; 
   background:rgba(255, 255, 255, 0.1);
  color:white;height:45vw; 
  
  }
  
  .box:hover {
   background:rgba(255, 255, 255, 0.5);

     
  
  }
  
  .card_pop {
    /* Add shadows to create the "card" effect */
  
    transition: 0.2s;
    background-clip: content-box; 
  background-position: center center; 
  opacity: 1;
  /*background-repeat: no-repeat;*/
  background-size: auto 100%;
  
  link: hover;
  position: relative;
  line-height: 1.0; 
  background-color: white;
    color: white;
  font-family: Arial;
   font-size: 2vw ; 
    font-weight: 400;
    top: 0%;
    padding: 0.3vw;
  
    text-align: left;
    float: left;
  width:100%;
  height:50vw;
  
  
   word-wrap: break-word  !important;
   overflow:hidden;
  }
  
  
  
  
  
  
  /* Coin */
  .coin {
  
   transition: 0.3s;
      margin:0.5vw;
  
      /* padding needs to be 1.5vw 0 and width 6vw to have a square of 6x6 */
    padding: 10px 0;
   
    width:40px;
    height:40px;
    background-color:black;
    color:white;
    text-align: center;
    float: left;
  
  }
  
  .coin:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    background-color:gold;
     
  
  }


  /* Protected (greyed out) state */
.protected {
  opacity: 0.5;              /* visually grey out */
  cursor: not-allowed;       /* visual feedback */
  pointer-events: none;      /* disable clicking/hovering */
}

.coin.protected:hover {
  background-color: black;
  box-shadow: none;
}

  
  
  /* Close */
  .close {
  
  
   transition: 0.3s;
      margin:0.5vw;
    padding: 1vw 0;
   
    width:4vw;
    background-color:black;
    color:white;
    text-align: center;
    float: left;
  
  
  }
  
  .close:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    background-color:red;
     
  
  }

  .social {
  
    transition: 0.3s;
       margin:0.5vw;
       display: flex;
    padding:5px;
    
     width:40px;
     height:40px;
     background-color:rgb(234, 239, 241);
     color:white;
     text-align: center;
     float: left;
    
   
   }

   .social:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    background-color:rgb(225, 214, 214);
     
  
  }








  
  
  .likes {
  transition: 0.3s;
      margin:0.5vw;
  
      /* padding needs to be 1.5vw 0 and width 6vw to have a square of 6x6 */
  
   
    width:40px;
    height:40px;
    color:white;
    text-align: center;
    float: left;
  opacity:0.4;
   border: 0.5vw solid white;
    border-radius: 50%;
   background-color:white;
  
  }
  
  .likes:hover{
  opacity:0.8;
   box-shadow:
      0 0 2px 1px #fff,  /* inner white */
      0 0 3px 2px #f0f, /* middle magenta */
      0 0 5px 3px #0ff; /* outer cyan */
  
  }
  
  
  
  .arrowleft {
    /* thankyou https://bennettfeely.com/clippy/ */
  
    transition: 0.2s;
    background-clip: content-box; 
  background-position: center center; 
  
  background-repeat: no-repeat;
  background-size: auto 100%;
  link: hover;
  z-index: 600;
  background-color: blue;
  
   
   
    float: left;
   word-wrap: break-word  !important;
   overflow:hidden;
  width: 4vh; height: 12vh; top: 60vh; left:5%; position: fixed;
  opacity:0.4; clip-path: polygon(100% 0%, 75% 50%, 100% 100%, 25% 100%, 0% 50%, 25% 0%);
  
  
  }
  
  .arrowleft:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    background-color:black;  
    opacity:0.7; 
  
  }
  
  
  .arrowright {
    /* thankyou https://bennettfeely.com/clippy/ */
  
    transition: 0.2s;
    background-clip: content-box; 
  background-position: center center; 
  z-index: 600;
  background-repeat: no-repeat;
  background-size: auto 100%;
  link: hover;
  
  background-color: blue;
  
  
   
    float: left;
   word-wrap: break-word  !important;
   overflow:hidden;
  width: 4vh; height: 12vh; top: 60vh; right:7%; position: fixed;
  
  opacity:0.4; clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
  
  
  }
  
  .arrowright:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    background-color:black; 
    opacity:0.7; 
  
  }
  
  @keyframes emerge {
    from {opacity: 0;}
    to {opacity: 1}
  }
  

  #loading {
  display: none;                 /* hidden by default */
  position: fixed;               /* stay fixed on screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(255,255,255,0.7);  /* translucent white overlay */
  z-index: 9999;                 /* above everything else */
  
  /* Flexbox to center the spinner */
 position: flex; 
  align-items: center;
  justify-content: center;
}


  .loader {
      width: 48px;
      height: 48px;
      border: 5px solid #CCC;
      border-bottom-color: #FF3D00;
      border-radius: 50%;
      display: inline-block;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
      }
  
      @keyframes rotation {
      0% {
          transform: rotate(0deg);
      }
      100% {
          transform: rotate(360deg);
      }
      } 

.menubox {
        /* Add shadows to create the "card" effect */
    justify-content: flex-start;
    transition: 0.2s;
    width:100%;
    display: flex;
    opacity:0;
    background-clip: content-box; 
    background-position: center center; 
    opacity: 1;
    background-repeat: no-repeat;
    background-size: auto 100%;
    link: hover;
    line-height: 1.0; 
    
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;



    color: white;
    font-family: Arial;
    font-size: 2vw ; 
    font-weight: 500;
    top: 0%;
    padding: 0.3vw;
      
    text-align: left;
    float: left;
    height:48vw;
    margin-bottom:1vw;
      
    word-wrap: break-word  !important;
    overflow:hidden;
     font-size: 16px ;  z-index: 599;
         
    background: grey;
    height:54px;  background-color: white;
    color:black; 
    margin: 1px auto; 
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);  
    position: fixed;
    top: 25px;


      }

    /* Tooltip text */
        .menubox .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
   
    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
    width: 120px;
    top: 100%;
    left: 50%; 
    margin-left: -60px;
   
    
}

      
    /* On mouse-over, add a deeper shadow */
    .menubox:hover .tooltiptext {
        box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
        visibility: visible;
      
    }


.bottom-overflow-fade {
        mask-image: linear-gradient(black, transparent);
        -webkit-mask-image: linear-gradient(black, transparent);
        height:25vh; overflow: hidden; margin:0 auto
      }

.bottom-overflow-fade-gentle {
        mask-image: linear-gradient(black 95%, transparent);
        -webkit-mask-image: linear-gradient(black 95%, transparent);
        height:10px; overflow: hidden;
      }


      .cardSmall {
        /* Add shadows to create the "card" effect */
        top: 1px;
 
  width: 65vw; height: 20vh;  padding: 1vw;
  background-color:white; color:black; margin:0 auto;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
      
        transition: 0.2s;
       
      }
      
      /* On mouse-over, add a deeper shadow */
      .cardSmall:hover {
        box-shadow: 0 16px 32px 0 rgba(0,0,0,0.2);
        border:red;
      
         
      
      }



.subMenu {
        /* Add shadows to create the "card" effect */
        margin:5pt;
        transition: 0.3s;
        text-decoration: none;
       
      }

.subMenuSelected {
        /* Add shadows to create the "card" effect */
        margin:5pt;
        color:rgb(207, 76, 53);
        transition: 0.3s;
        text-decoration: none;
       
        
       
      }
  
  /* On mouse-over, add a deeper shadow */
  .subMenu:hover {
    color:red;
    text-decoration: none;
  
  }

  .subMenuSelected:hover {
    /* Add shadows to create the "card" effect */
    color:red;

    text-decoration: none;
   
  }

.boxWriterEnabled{
    border: 3px solid blue; 
    width:48vw; padding: 10px;
    border-radius: 5px;

}

.boxWriterDisabled{
    border: 3px solid red; 
    width:48vw; padding: 10px;
    border-radius: 5px;

}


.commentBlock{

   overflow-x:hidden; 
   width: 49%; 
   display:inline-block;
   padding:1%;
   box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}

  /* On mouse-over, add a deeper shadow */
  .commentBlock:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    /* border:red;*/
  
     
  
  }

@media screen and (max-width: 800px) {
    .commentBlock {
      width: 100%; /* The width is 100%, when the viewport is 800px or smaller */
    }
  }

  @media screen and (max-width: 800px) {
    .cardDynamic {
    /* The width changes when the viewport is 800px or smaller */
    width:33.3%;
    height:40vw;
    }
  }




  /* ===== Comment Form Styling ===== */
.comment-form {
  display: block;              /* keep it as a block container */
  width: 100%;
  margin: 20px auto;
  padding: 20px;

  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fafafa;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);

  font-family: "Segoe UI", Tahoma, sans-serif;
  clear: both;                 /* fixes float issues */
  box-sizing: border-box;      /* prevents padding from messing with width */
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form textarea:focus {
  border-color: #0077ff;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.25);
}

.comment-form button {
  margin-top: 12px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #0077ff;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.comment-form button:hover {
  background: #005fcc;
  transform: translateY(-1px);
}


/* ===== Comment List Styling ===== */
.comment-list {
  width: 100%;
  max-width: 700px;
  margin: 25px auto;
}

.comment {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

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

.comment .author {
  font-weight: 600;
  color: #0077ff;
  margin-bottom: 4px;
  display: inline-block;
}

.comment .date {
  font-size: 12px;
  color: #888;
  margin-left: 8px;
}

.comment .text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.load-more-btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0077ff;
  border: none;
  border-radius: 30px;   /* pill-style */
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #005fcc;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

/*Search Bar */
.search-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.search-wrapper input[type="text"] {
  padding-right: 30px; /* space for the X */
  box-sizing: border-box;
}

.clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #888;
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 0;
}

.clear-search:hover {
  color: #000;
}



  

/*MAIN MENUS */
.mnu-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 50px;
   padding: 0 5px 0 10px;  /* top right bottom left */
  flex-wrap: wrap;
}

.mnu-item img {
  width: 28px;
  height: 28px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mnu-item img:hover {
  transform: scale(1.1);
}

.mnu-right {
  margin-left: auto; /* ✨ pushes this div all the way to the right */
}

.mnu-right img {
  display: block;
  height: 30px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .mnu-bar {
    gap: 35px;
  }

  .mnu-item img {
    width: 24px;
    height: 24px;
  }

  .mnu-right img {
    height: 26px;
  }
}




/*AVATAR*/
/* ============================= */
/* Author container & avatar     */
/* ============================= */
.author-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: default;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 100%;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.author-avatar:hover {
  transform: scale(1.05);
}

/* ============================= */
/* Author name area              */
/* ============================= */
.author-info {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1; /* ✅ allows the name to grow fluidly */
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;      /* up to 2 lines before truncating */
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.2s ease;
  max-width: 100%;            /* ✅ fluid width */
  text-align: left;
}

.author-container:hover .author-name {
  color: #0056d6;
}

/* ============================= */
/* Pop-down panel                */
/* ============================= */
.author-popdown {
  position: absolute;
  top: 50px;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 12px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  z-index: 999;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.author-popdown.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.author-popdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  transform: rotate(45deg);
}

/* ============================= */
/* About text in popdown         */
/* ============================= */
.author-about {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.4;
  max-width: 100%;
   text-align: left; 
}

/* ============================= */
/* Buttons in popdown            */
/* ============================= */
.author-popdown button {
  background: none;
  border: none;
  text-align: left;
  padding: 6px 0;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-popdown button:hover {
  color: #0056d6;
  background-color: #f6f7f9;
  border-radius: 4px;
}

.author-followers {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
   text-align: left; 
}

.author-followers .followers-count {
  font-weight: 600;
  color: #111;
}

/* ============================= */
/* Responsive tweaks for mobile  */
/* ============================= */
@media (max-width: 500px) {
  .author-avatar {
    width: 36px;
    height: 36px;
  }

  .author-container {
    gap: 8px;
  }

  .author-name {
    font-size: 0.85rem;      /* slightly smaller on mobile */
    line-height: 1.3;
    -webkit-line-clamp: 3;   /* allow up to 3 lines on small screens */
    max-width: 80vw;         /* use most of screen width */
  }

  .author-popdown {
    min-width: 180px;
  }
}








 /* container to hold multiple cards */
.instaCard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1vw; /* spacing between cards */
}

/* card style */
.instaCard {
  flex: 1 1 calc(33.33% - 1vw); /* 3 per row */
  background-color: white;
  border: 2px solid #e2dbdb;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}


/* hover effect */
.instaCard:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* make it 1 per row on small devices */
@media screen and (max-width: 800px) {
  .instaCard {
    flex: 1 1 100%;
  }
}

.instaCard-imageWrapper {
  position: relative;
  width: 100%;
}

.instaCard-imageWrapper img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* centered overlay text */
.instaCard-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 6vw;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center;
}

.instaDialog {
  width: 90vw;
  max-width: 800px;
  max-height: 90vh;
  margin: auto;
  border: none;
  border-radius: 12px;
  background-color: white;
  color: black;
  font-family: Arial, sans-serif;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  padding: 0;
}

.instaDialog::backdrop {
  background: rgba(0,0,0,0.7);
}

.instaDialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vw;
  border-bottom: 1px solid #ddd;
}

.instaDialog-body {
  padding: 1vw;
}

.instaDialog-footer {
  padding: 0.5vw 1vw;
  border-top: 1px solid #ddd;
  display: flex;
  gap: 0.5vw;
  flex-wrap: wrap;
}

.category-pill {
  background: #eee;
  color: #333;
  padding: 0.2em 0.6em;
  border-radius: 12px;
  font-size: clamp(0.7rem, 0.8vw, 0.9rem); /* scales with viewport but stays in range */
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.category-pill:hover {
  background: #ddd;
  color: #000;
  text-decoration: none;
}


/* Comment Headlines  */
/* === ARTICLE CARD BASE === */
.article-card {
  display: flex;
  flex-direction: row;         /* image always on the left */
  align-items: flex-start;     /* headline aligns with top of image */
  gap: 0.75rem;
  background: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* === IMAGE + BADGE WRAPPER === */
.article-thumb-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.article-thumb {
  width: 100px;               /* small, fixed thumbnail */
  height: 70px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
  margin-bottom: 0;
}

/* === BADGE UNDER IMAGE === */
.article-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0;
  text-align: center;
  width: 100%;  /* match image width */
  border-radius: 0 0 0.5rem 0.5rem;
}

.my-badge {
  background-color: #e0f2fe;
  color: #0369a1;
}

.commented-badge {
  background-color: #fef3c7;
  color: #92400e;
}

/* === CONTENT AREA === */
.article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* headline aligns with top of image */
}

/* === HEADLINE (original style & color restored) === */
.article-title,
.article-content a {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  
  text-decoration: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;       
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* === ACCENT COLORS FOR CARD TYPES === */
.my-article {
  border-left: 4px solid #0ea5e9;
}

.commented-article {
  border-left: 4px solid #f59e0b;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .article-card {
    flex-direction: row;       /* stay side by side even on mobile */
  }

  .article-thumb {
    width: 90px;
    height: 60px;
  }

  .article-title,
  .article-title a,
  .article-content a {
    font-size: 0.95rem;
  }
}


/* CSS for the small counters on the header */

.comment-link {
  position: relative;         /* anchor for absolutely positioned badge */
  display: inline-block;
}

.comment-badge {
  position: absolute;
  top: -0.5em;                /* moves badge up */
  right: -0.75em;             /* pushes badge to the right edge of text */
  background-color: #ef4444;  /* Instagram-like red */
  color: white;
  border-radius: 50%;
  padding: 0.2em 0.45em;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  min-width: 1.1em;
  text-align: center;
  box-shadow: 0 0 0 2px white; /* nice white outline like IG */
}








/* Modal overlay */
/* Modal overlay */
#changeModal, 
#URLmodal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal content */
#changeModal .modal-content, 
#URLmodal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-family: Arial, sans-serif;
  text-align: left;
}

/* Animations */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.3s;
}

/* Header */
#changeModal h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* Old value text */
#oldValueText {
  font-size: 0.9rem;
  color: #666;
  margin: 12px 0;
}

/* Textarea */
#newValueInput {
  width: 100%;
  min-height: 60px;
  max-height: 200px;
  resize: none;
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  line-height: 1.4;
}

/* Buttons row */
.modal-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Buttons */
.m-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.m-btn.ok {
  background: #0078d7;
  color: #fff;
}

.m-btn.ok:hover {
  background: #005fa3;
}

.m-btn.cancel {
  background: #eee;
  color: #333;
}

.m-btn.cancel:hover {
  background: #ddd;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

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