    /* ===============================
         POST 3 DOT MENU
         ================================ */
         .post-menu-wrap{
         position: relative;
         display: inline-block;
         }
         div#loginOffcanvas{
             height: 100vh !important;
            
         }
         
         .otp-container {
  position: relative;
}
body{
        margin: 0 auto;
}

.mini-otp-box {
  display: none;
  margin-top: 15px;
  padding: 15px;
  border-radius: 14px;
  background: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.otp-inputs input {
  width: 45px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  background: #fff;
  transition: 0.2s;
}

.otp-inputs input:focus {
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
  outline: none;
}

         #loginOffcanvas .offcanvas-header{
            background-image: url(https://media.istockphoto.com/id/2188199076/vector/social-network-communication-concept-global-network-connection-abstract-background.jpg?s=612x612&w=0&k=20&c=XXbHhSh6BjtBtfZECsJwdzQSElMsMe1B4JvnYRWivrI=);
            color: white;
            backdrop-filter: blur(16px);
            background-attachment: fixed;
         }
         .nearby-sheet{
             height: 600px !important;
             overflow-y: auto;
         }
         * COMMON MODAL STYLE */
         .modal, .modal-screen {
         display: none;
         position: fixed;
         top:0; left:0;
         width: 100%;
         height: 100%;
         background: rgba(0,0,0,0.6);
         z-index: 9999;
         overflow-y: auto;
         }
         .modal-content, .modal-screen > div {
         background: #fff;
         margin: 10% auto;
         padding: 20px;
         border-radius: 12px;
         width: 90%;
         max-width: 450px;
         }
         .handle {
         width: 50px;
         height: 5px;
         background: #ccc;
         margin: 0 auto 15px;
         border-radius: 5px;
         }
         .option {
         display: flex;
         align-items: center;
         padding: 10px 0;
         cursor: pointer;
         }
         .option i {
         font-size: 24px;
         margin-right: 12px;
         }
         .option div h6 {
         margin: 0;
         }
         .comment-sheet { 
         height: 70vh; 
         display:flex; 
         flex-direction: column; 
         border-top-left-radius:12px;
         border-top-right-radius:12px;
         background:#fff;
         }
         .sheet-body { 
         flex-grow: 1; 
         overflow-y:auto; 
         padding: 10px; 
         }
         .sheet-footer { 
         display:flex; 
         align-items:center; 
         gap:5px; 
         }
         .input-wrap { position: relative; }
         .mention-dropdown .mention-item:hover {
         background-color: #f0f0f0;
         }
         .emoji-picker { max-height:200px; overflow-y:auto; }
         .btn-close { border:none; background:transparent; }
         .option div p {
         margin: 2px 0 0 0;
         font-size: 12px;
         color: #666;
         }
         /* Header */
         .modal-screen .cp-header {
         display: flex;
         justify-content: space-between;
         align-items: center;
         margin-bottom: 15px;
         }
         .modal-screen .cp-user {
         display: flex;
         align-items: center;
         margin-bottom: 10px;
         }
         .modal-screen .cp-user img {
         width: 40px;
         height: 40px;
         border-radius: 50%;
         margin-right: 10px;
         }
         .modal-screen textarea {
         width: 100%;
         min-height: 80px;
         margin-bottom: 10px;
         padding: 8px;
         border-radius: 8px;
         border: 1px solid #ccc;
         resize: vertical;
         }
         /* Preview */
         .preview-box {
         position: relative;
         display: inline-block;
         margin-bottom: 10px;
         }
         .preview-box img, .preview-box video {
         max-width: 100%;
         border-radius: 8px;
         }
         .remove-preview {
         position: absolute;
         top: 5px;
         right: 5px;
         background: #000;
         color: #fff;
         border-radius: 50%;
         cursor: pointer;
         padding: 2px 6px;
         }
         .add-grid {
         display: flex;
         flex-wrap: wrap;
         gap: 10px;
         }
         .add-card {
         flex: 1 0 30%;
         background: #f4f4f4;
         border-radius: 8px;
         padding: 8px;
         text-align: center;
         cursor: pointer;
         }
         .add-card i {
         font-size: 20px;
         display: block;
         margin-bottom: 4px;
         }
         .post-btn.disabled {
         opacity: 0.5;
         pointer-events: none;
         }
         .post-menu-btn{
         cursor: pointer;
         font-size: 20px;
         padding: 6px;
         border-radius: 50%;
         }
         .post-menu-btn:hover{
         background: rgba(0,0,0,0.08);
         }
         .post-menu{
         position: absolute;
         top: 30px;
         right: 0;
         background: #ffffff;
         border-radius: 10px;
         width: 150px;
         box-shadow: 0 8px 25px rgba(0,0,0,0.15);
         display: none;
         z-index: 9999;
         overflow: hidden;
         }
         textarea{
         height: auto;
         }
         .post-menu div{
         padding: 12px 14px;
         cursor: pointer;
         display: flex;
         align-items: center;
         gap: 10px;
         font-size: 14px;
         }
         .post-menu div:hover{
         background: #f5f5f5;
         }
         .post-menu .danger{
         color: #e53935;
         }
         .reel-bottom-sheet {
         position: fixed;
         left: 0;
         right: 0;
         bottom: -100%;
         height: 85vh;
         background: #fff;
         border-radius: 18px 18px 0 0;
         z-index: 999999;
         transition: bottom 0.35s ease;
         box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
         display: flex;
         flex-direction: column;
         }
         .reel-bottom-sheet.active {
         bottom: 0;
         }
         .reel-body {
         flex: 1;
         overflow-y: auto;
         padding: 14px;
         }
         .upload-reel-btn {
         border: 2px dashed #ff2d55;
         padding: 16px;
         text-align: center;
         border-radius: 12px;
         color: #ff2d55;
         font-weight: 600;
         cursor: pointer;
         margin-top: 12px;
         }
         .upload-reel-btn:hover {
         background: #fff3f6;
         }
         .preview-box video {
         width: 100%;
         max-height: 50vh;
         border-radius: 12px;
         }
         .app-offcanvas {
         width: 85%;
         max-width: 360px;
         border-radius: 0 20px 20px 0;
         }
         /* HEADER */
         .app-header {
         background: linear-gradient(135deg,#6f2cff,#9b4dff);
         padding: 16px;
         }
         /* BODY */
         .app-body {
         background: #f9f9f9;
         }
         /* GUIDE CARD */
         .guide-card video {
         border-radius: 16px;
         }
         /* MENU ITEMS */
         .app-menu {
         margin-top: 10px;
         }
         .menu-item {
         display: flex;
         align-items: center;
         gap: 14px;
         padding: 12px 10px;
         border-radius: 12px;
         color: #333;
         text-decoration: none;
         font-weight: 500;
         transition: 0.15s;
         }
         .menu-item i {
         font-size: 20px;
         color: #7b3cff;
         }
         .menu-item:hover {
         background: #eee;
         }
         /* LOGOUT */
         .logout-btn {
         display: block;
         text-align: center;
         padding: 12px;
         border-radius: 20px;
         background: #ff4d4d;
         color: white;
         text-decoration: none;
         font-weight: 600;
         }
         .nav-link{
         font-size: 16px !important;
         color: black;
         width:; 100%;
         }
         .nav-link.active{
         background-color: #9b4dff !important;
         color: white !important;
         }
/* Story Wrapper */
.stories-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
}

/* Story Item */
.story-item {
    text-align: center;
    flex: 0 0 auto;
}

.story-ring {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.story-ring img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.add-story {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #0f0;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.live-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: red;
    color: #fff;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 10px;
}

/* Story Modal */
.story-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
}

.story-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.story-header {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #fff;
    font-weight: bold;
}

.story-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

#storyClose {
    margin-left: auto;
    cursor: pointer;
    font-size: 20px;
}

.story-media-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-media-wrapper img,
.story-media-wrapper video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

.story-footer {
    padding: 10px;
    color: #fff;
    font-size: 14px;
}

#storyCommentInput {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border-radius: 5px;
    border: none;
}

/* Progress bars */
.story-progress {
    display: flex;
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    gap: 3px;
}

.story-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.5);
}

.story-progress-bar.active {
    background: #fff;
}
#igForwardOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:flex;
  align-items:flex-end;
  z-index:9999;
}

#igForwardSheet{
  background:#fff;
  width:100%;
  height:80vh;
  border-top-left-radius:20px;
  border-top-right-radius:20px;
  padding:10px 15px;
  animation:slideUp .25s ease;
  display:flex;
  flex-direction:column;
}

@keyframes slideUp{
  from{transform:translateY(100%);}
  to{transform:translateY(0);}
}

.igSheetHandle{
  width:40px;
  height:4px;
  background:#ccc;
  border-radius:5px;
  margin:5px auto 10px;
}

.igSheetHeader input{
  width:100%;
  border:none;
  background:#f2f2f2;
  padding:8px 12px;
  border-radius:10px;
  font-size:13px;
}

.igShareRow{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding:15px 0;
  justify-content: space-around;
}

.igShareItem{
  text-align:center;
  font-size:11px;
  cursor:pointer;
}

.igCircle{
  width:55px;
  height:55px;
  border-radius:50%;
  background:#f3f3f3;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  margin-bottom:5px;
}

#igForwardGrid{
  flex:1;
  overflow-y:auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
}

.igUserCard{
  text-align:center;
  cursor:pointer;
}

.igAvatar{
  width:55px;
  height:55px;
  border-radius:50%;
  object-fit:cover;
}

.igAvatarWrap{
  position:relative;
}

.igCheck{
  position:absolute;
  bottom:0;
  right:0;
  background:#0095f6;
  color:#fff;
  width:18px;
  height:18px;
  font-size:12px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  display:none;
}

.igUserCard.selected .igCheck{
  display:flex;
}

.igStickyFooter{
  padding:10px 0;
}

#igSendBtn{
  width:100%;
  border:none;
  background:#000;
  color:#fff;
  padding:10px;
  border-radius:12px;
}
/* UI Enhancement for Buttons */
.edit-btn, .filter-btn, .done-btn {
    padding:6px 14px;
    border-radius:6px;
    border:none;
    cursor:pointer;
    font-weight:500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.edit-btn {
    background: #fff;
    color: #333;
}

.edit-btn:hover {
    background: #007bff;
    color: #fff;
}

.filter-btn {
    background: #f5f5f5;
    color: #333;
}

.filter-btn:hover {
    background: #9b4dff;
    color: #fff;
}

.done-btn {
    background: #007bff;
    color: #fff;
    font-weight:600;
}

.done-btn:hover {
    background: #0056b3;
}
/* ===== Preview Box ===== */
#previewBox {
    display: none; /* will be toggled via JS */
    position: relative;
    margin-top: 15px;
    width: 100%;
    border-radius: 12px;
    background: #f9f9f9;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Image Container */
#previewBox .image-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
}

#previewBox .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 12px;
}

/* Transform Tools */
#previewBox .edit-tools {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

#previewBox .edit-btn {
    padding: 8px 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

#previewBox .edit-btn:hover {
    background: #0056b3;
}

/* Filter Buttons */
#previewBox .filter-tools {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

#previewBox .filter-btn {
    padding: 6px 12px;
    background: #eee;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

#previewBox .filter-btn:hover {
    background: #ddd;
    transform: scale(1.05);
}

/* Done Button */
#previewBox .done-btn {
    padding: 10px 20px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

#previewBox .done-btn:hover {
    background: #218838;
}

/* Remove Image Button */
#previewBox .remove-preview {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: #fff;
    padding: 5px 7px;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-weight: bold;
    transition: background 0.2s, transform 0.2s;
}

#previewBox .remove-preview:hover {
    background: #f8d7da;
    transform: scale(1.1);
}

   .stories-wrapper { display:flex; gap:10px; overflow-x:auto; padding:10px 0; }
            .story-item { text-align:center; cursor:pointer; }
            .story-ring { width:70px; height:70px; border-radius:50%; padding:2px; border:2px solid #f0f0f0; position:relative; }
            .story-ring img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
            .your-story .add-story {
            position:absolute; bottom:0; right:0;
            background:#9b4dff; color:#fff;
            border-radius:50%; width:24px; height:24px; font-size:16px;
            display:flex; align-items:center; justify-content:center; border:2px solid #fff;
            cursor:pointer;
            transition:all 0.2s;
            }
            .has-story { border:2px solid #9b4dff; }
            .story-modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); display:flex; align-items:center; justify-content:center; z-index:10000; }
            .story-content { width:400px; max-width:95%; display:flex; flex-direction:column; position:relative; }
            .story-media-wrapper { width:100%; height:auto; display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
            .story-header { display:flex; align-items:center; justify-content:space-between; color:#fff; padding:10px; }
            .story-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; }
            .story-footer { padding:10px; color:#fff; }
            .story-progress { display:flex; gap:2px; padding:5px; }
            .story-progress-bar { flex:1; height:3px; background:rgba(255,255,255,0.3); border-radius:2px; }
            .story-progress-bar.active { background:#fff; }