@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');
/* Main Wordmark Instagram Typography */
.brand-wordmark {
  font-family: 'Grand Hotel', cursive, sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-decoration: none;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Fallback / Monochrome Logo Text */
.brand-wordmark.monochrome {
  -webkit-text-fill-color: #ffffff;
}

/* Navigation Header Alignment */
.main-header .brand-logo,
.mobile-top-bar .mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Grand Hotel', cursive, sans-serif !important;
  font-size: 28px !important;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ==========================================================================
   POST HEADER OVERLAY & AUDIO SUBTITLE TRACK STYLING
   ========================================================================== */

/* Container Layout */
.post-header-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: transparent;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
}

.post-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Avatar with Gradient Story Ring */
.avatar-story-wrapper {
  text-decoration: none;
  flex-shrink: 0;
}

.avatar-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Multi-color Instagram Gradient for Active Stories */
.avatar-story-wrapper.has-story .avatar-ring {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.author-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #000000;
}

/* User & Audio Details */
.post-meta-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.author-handle {
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-handle:hover {
  text-decoration: underline;
  color: #ffffff;
}

.meta-separator, .post-timestamp {
  font-size: 13px;
  color: #a8a8a8;
  font-weight: 400;
}

/* Audio Subtitle Track Line */
.audio-track-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  cursor: pointer;
  min-width: 0;
}

.audio-icon {
  font-size: 11px;
  color: #ffffff;
}

.audio-text {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-track-row:hover .audio-text {
  text-decoration: underline;
}

/* Right Controls & Star Badge */
.post-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-star-badge {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.star-icon {
  font-size: 16px;
  background: linear-gradient(45deg, #ff7e5f, #feb47b, #ff6a88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(254, 180, 123, 0.4));
}

.btn-post-menu {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  opacity: 0.9;
}

.btn-post-menu:hover {
  opacity: 1;
}

/* Dark Mode Context Menu Override */
.dark-dropdown {
  background-color: #1a1a1a !important;
  border: 1px solid #262626 !important;
  border-radius: 8px !important;
}

.dark-dropdown .dropdown-item {
  color: #ffffff !important;
  font-size: 13px !important;
  padding: 10px 16px !important;
}

.dark-dropdown .dropdown-item:hover {
  background-color: #262626 !important;
}



/* ==========================================================================
   INSTAGRAM 2026 MODERN DESIGN SYSTEM & 9:16 VERTICAL CONTAINERS
   ========================================================================== */

:root {
  --ig-black: #000000;
  --ig-surface: #121212;
  --ig-card-bg: #18181b;
  --ig-border: #27272a;
  --ig-primary: #ff6b00;
  --ig-accent: #ff9d00;
  --ig-accent-gradient: linear-gradient(135deg, #ff9d00 0%, #ff6b00 50%, #ad3900 100%);
  --ig-glow: rgba(255, 107, 0, 0.35);
  --ig-text-primary: #f4f4f5;
  --ig-text-secondary: #a1a1aa;
}

/* Logo Color Palette Overrides for Buttons, Links, Badges, & Highlights */
.btn-primary, .btn-main, .btn-publisher, .btn-follow-active, button.btn-primary {
  background-color: #ff6b00 !important;
  border-color: #ff6b00 !important;
  color: #ffffff !important;
}

.btn-primary:hover, .btn-main:hover, .btn-publisher:hover, button.btn-primary:hover {
  background-color: #e05a00 !important;
  border-color: #e05a00 !important;
  color: #ffffff !important;
}

.text-primary, .text-info, a.text-primary, .action-link-primary, .ig-link-accent {
  color: #ff9d00 !important;
}

a:hover {
  color: #ffb833 !important;
}

.badge-primary, .badge-info, .badge-verified, .ig-verified-badge {
  background-color: #ff6b00 !important;
  color: #ffffff !important;
}

.nav-pills .nav-link.active,
.btn-category-pill.active,
.explore-filter-btn.active,
.tab-link.active {
  background-color: #ff6b00 !important;
  border-color: #ff6b00 !important;
  color: #ffffff !important;
}

.form-check-input:checked,
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #ff6b00 !important;
  border-color: #ff6b00 !important;
}

.story-ring-unseen, .story-ring-active, .story-avatar-ring {
  background: linear-gradient(135deg, #ff9d00 0%, #ff6b00 50%, #ad3900 100%) !important;
}

/* Base Body Styling */
body {
  background-color: var(--ig-black) !important;
  color: var(--ig-text-primary) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Modern Card Layout with 16px Border Radius */
.ig-post-card {
  background: var(--ig-card-bg);
  border: 1px solid var(--ig-border);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ig-post-card:hover {
  border-color: #3f3f46;
}

/* Reels & Video Viewport Aspect Ratio (9:16 Full Vertical Support) */
.media-viewport-9-16 {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 720px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-viewport-9-16 video,
.media-viewport-9-16 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vibrant Story Ring Avatar Glow */
.ig-story-avatar-container {
  position: relative;
  padding: 3px;
  background: var(--ig-accent-gradient);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--ig-glow);
}

.ig-story-avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--ig-black);
  display: block;
}

/* Action Icons Toolbar & Pill Buttons */
.ig-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.ig-action-btn {
  background: transparent;
  border: none;
  color: var(--ig-text-primary);
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ig-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

/* Video Ad Overlay Styling */
.video-ad-overlay {
  position: absolute;
  inset: 0;
  background-color: #000000;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-ad-overlay .ad-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-ad-overlay .ad-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  z-index: 55;
  backdrop-filter: blur(4px);
}

.video-ad-overlay .skip-ad-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  z-index: 55;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.video-ad-overlay .skip-ad-btn:hover {
  background: #ff9d00;
  color: #000000;
  border-color: #ff9d00;
}



/* ==========================================================================
   DEMUREGRAM PITCH BLACK 1-SOLID COLOR OVERRIDE SYSTEM
   ========================================================================== */

html, body {
  background-color: #000000 !important;
  color: #f5f5f5 !important;
}

.app-wrapper,
.main-content-container,
.app-sidebar,
.sidebar-left,
.feed-column,
.stories-container,
.story-item,
.post,
.ig-post-card,
.post-header,
.post-actions,
.post-footer,
.explore-container,
.single-post-wrapper,
.profile-page-container,
.studio-wrapper,
.studio-main,
.studio-sidebar,
.hero-revenue-card,
.metric-card,
.table-card,
.dropdown-menu,
.more-dropdown-menu,
.offcanvas,
.panel,
.card {
  background-color: #000000 !important;
  border-color: #262626 !important;
  color: #f5f5f5 !important;
}

/* Borders & Dividers */
hr, .border, .border-top, .border-bottom, .border-left, .border-right, .border-end, .border-start {
  border-color: #262626 !important;
}

/* Form Inputs & Textareas */
input, textarea, select, .form-control {
  background-color: #000000 !important;
  border-color: #262626 !important;
  color: #f5f5f5 !important;
}

input:focus, textarea:focus, select:focus, .form-control:focus {
  background-color: #050505 !important;
  border-color: #ff9d00 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* ==========================================================================
   DEMUREGRAM MEDIA ASPECT RATIOS & CAROUSEL SPECIFICATIONS
   ========================================================================== */

/* Square: 1:1 ratio (1080 x 1080) */
.aspect-square, .media-ratio-1-1, .ig-media-square, .ratio-1x1 {
  aspect-ratio: 1 / 1 !important;
  width: 100%;
  object-fit: cover !important;
}

/* Portrait: 4:5 ratio (1080 x 1350) */
.aspect-portrait, .media-ratio-4-5, .ig-media-portrait, .ratio-4x5 {
  aspect-ratio: 4 / 5 !important;
  width: 100%;
  object-fit: cover !important;
}

/* Landscape: 1.91:1 ratio (1080 x 566) */
.aspect-landscape, .media-ratio-191-1, .ig-media-landscape, .ratio-191x1 {
  aspect-ratio: 1.91 / 1 !important;
  width: 100%;
  object-fit: cover !important;
}

/* Vertical (Reels & Stories): 9:16 ratio (1080 x 1920) */
.aspect-vertical, .media-ratio-9-16, .ig-media-vertical, .ratio-9x16, .reel-video-container {
  aspect-ratio: 9 / 16 !important;
  width: 100%;
  object-fit: cover !important;
}

/* Multi-Item Swipeable Carousel Post Container (Up to 20 items) */
.ig-carousel-track, .pg_wrapper.carousel-wrapper {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
.ig-carousel-track::-webkit-scrollbar, .pg_wrapper.carousel-wrapper::-webkit-scrollbar {
  display: none !important;
}
.ig-carousel-slide, .pg_wrapper.carousel-wrapper > .pg_photo {
  flex: 0 0 100% !important;
  min-width: 100% !important;
  scroll-snap-align: center !important;
  position: relative !important;
}
.ig-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
}
.ig-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}
.ig-carousel-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* Hide Facebook Reactions Menu Popover (Enforce Clean Single Like) */
.reactions-container, .js_reactions-container, .reactions-dropdown {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Double-Tap Thumbs-Up Burst Animation */
.ig-thumbsup-burst-anim {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 99;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  color: #ff6b00;
  font-size: 80px;
  filter: drop-shadow(0 0 25px rgba(255, 107, 0, 0.8));
}

.ig-thumbsup-burst-anim.animate {
  transform: translate(-50%, -50%) scale(1.2);
  opacity: 1;
}

/* Liked Thumbs-Up Active Color */
.js_like-post.liked i,
.js_react-post.liked i,
.btn-reel-action.active i,
.action-btn.liked i {
  color: #ff6b00 !important;
}

/* Repost Button & Active Highlight */
.repost-btn:hover i,
.ig-repost-action:hover i,
.js_repost-story:hover i {
  color: #ff9d00 !important;
  transform: rotate(45deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

.repost-btn.active i,
.ig-repost-action.active i,
.js_repost-post.active i,
.js_repost-story.active i {
  color: #ff6b00 !important;
}

.repost-count {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
}

/* ==========================================================================
   PILL-SHAPED FLOATING LEFT SIDEBAR NAVIGATION RAIL (END-TO-END)
   ========================================================================== */

@media (min-width: 768px) {
  .slim-left-sidebar,
  aside.slim-left-sidebar,
  .ig-desktop-sidebar,
  .ig-desktop-nav,
  #igDesktopNav {
    position: fixed !important;
    top: 16px !important;
    bottom: 16px !important;
    left: 14px !important;
    width: 68px !important;
    height: calc(100vh - 32px) !important;
    max-height: calc(100vh - 32px) !important;
    border-radius: 9999px !important; /* Continuous end-to-end pill shape */
    background: #000000 !important;
    border: 1px solid #262626 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.15) !important;
    padding: 22px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 1000 !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
  }

  .slim-left-sidebar:hover,
  aside.slim-left-sidebar:hover {
    border-color: #383838 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 107, 0, 0.15) !important;
  }

  .slim-left-sidebar .sidebar-top {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 6px !important;
  }

  .slim-left-sidebar .brand-avatar .brand-logo-emblem {
    border-radius: 50% !important;
    transition: transform 0.2s ease !important;
  }

  .slim-left-sidebar .brand-avatar:hover .brand-logo-emblem {
    transform: scale(1.1) !important;
  }

  .slim-left-sidebar .sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    width: 100% !important;
  }

  .slim-left-sidebar .nav-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #f5f5f5 !important;
    font-size: 19px !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
  }

  .slim-left-sidebar .nav-icon:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: scale(1.08) !important;
  }

  .slim-left-sidebar .nav-icon.active {
    background: rgba(255, 107, 0, 0.18) !important;
    color: #ff6b00 !important;
  }

  .slim-left-sidebar .sidebar-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 6px !important;
  }

  .slim-left-sidebar .sidebar-bottom img,
  .slim-left-sidebar .sidebar-bottom .avatar {
    border-radius: 50% !important;
  }

  /* Desktop Viewport Offsetting for Floating Pill */
  .app-wrapper,
  .main-content-container,
  main,
  .explore-container,
  .reels-wrapper,
  .profile-page-container,
  .single-post-wrapper,
  .studio-wrapper {
    padding-left: 10px !important;
  }

  body.has-ig-nav .main-content {
    margin-left: 92px !important;
  }
}

/* ==========================================================================
   INSTAGRAM OFFICIAL MODAL DESIGN SYSTEM & COLOR SPECIFICATIONS
   ========================================================================== */

/* 1. Backdrop Overlay (Semi-transparent black with subtle blur) */
.modal-backdrop,
.modal-backdrop.show,
.modal-backdrop.fade.show {
  background-color: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  opacity: 1 !important;
  z-index: 1050 !important;
}

/* 2. Dialog Container & Surfaces (#262626 Dark Surface, #363636 Borders) */
.modal-dialog {
  margin: 1.75rem auto !important;
  z-index: 1055 !important;
}

.modal-content,
div.modal-content,
#modal .modal-content,
#modal-payout-request .modal-content,
#share-post .modal-content,
#publisher-modal .modal-content,
.lightbox-content,
.sg-modal .modal-content {
  background-color: #262626 !important;
  border: 1px solid #363636 !important;
  color: #f5f5f5 !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 1px rgba(255, 255, 255, 0.15) !important;
  overflow: hidden !important;
}

/* 3. Modal Header */
.modal-header,
div.modal-header {
  background-color: #262626 !important;
  border-bottom: 1px solid #363636 !important;
  color: #f5f5f5 !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.modal-header .modal-title,
.modal-title,
h5.modal-title,
h6.modal-title {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.1px !important;
  margin: 0 !important;
}

.modal-header .btn-close,
.modal-header .close {
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: 0.7 !important;
  padding: 8px !important;
  transition: opacity 0.15s ease !important;
}

.modal-header .btn-close:hover,
.modal-header .close:hover {
  opacity: 1 !important;
}

/* 4. Modal Body */
.modal-body,
div.modal-body {
  background-color: #262626 !important;
  color: #f5f5f5 !important;
  padding: 20px !important;
}

/* 5. Modal Footer */
.modal-footer,
div.modal-footer {
  background-color: #262626 !important;
  border-top: 1px solid #363636 !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

/* 6. Form Controls & Inputs Inside Modals */
.modal-body .form-control,
.modal-body .form-select,
.modal-body input[type="text"],
.modal-body input[type="password"],
.modal-body input[type="email"],
.modal-body input[type="number"],
.modal-body input[type="url"],
.modal-body select,
.modal-body textarea,
.modal-content input,
.modal-content textarea,
.modal-content select {
  background-color: #121212 !important;
  border: 1px solid #363636 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: #737373 !important;
  background-color: #121212 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

.modal-body label,
.modal-body .form-label,
.modal-content label {
  color: #e4e4e7 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 6px !important;
}

.modal-body .form-text,
.modal-body .text-muted,
.modal-content .text-muted {
  color: #a1a1aa !important;
  font-size: 12px !important;
}

.modal-body .input-group-text,
.modal-content .input-group-text {
  background-color: #1a1a1a !important;
  border: 1px solid #363636 !important;
  color: #a8a8a8 !important;
}

/* 7. Action Modals & List-Group Action Menus (Share, Options, Delete, Unfollow) */
.modal .list-group,
.modal-content .list-group,
.modal-content .list-group-flush {
  background-color: transparent !important;
  border-radius: 0 !important;
}

.modal .list-group-flush .list-group-item,
.modal-content .list-group-item,
.modal-content .dropdown-item {
  background-color: transparent !important;
  color: #f5f5f5 !important;
  border-bottom: 1px solid #363636 !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: center !important;
  transition: background-color 0.15s ease !important;
}

.modal .list-group-flush .list-group-item:last-child,
.modal-content .list-group-item:last-child {
  border-bottom: none !important;
}

.modal .list-group-flush .list-group-item:hover,
.modal-content .list-group-item:hover,
.modal-content .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

.modal .list-group-item.text-danger,
.modal .list-group-item.danger-action,
.modal .text-danger {
  color: #ed4956 !important;
  font-weight: 700 !important;
}

/* 8. Modal Action Buttons */
.modal-footer .btn-secondary,
.modal-footer .btn-light {
  background-color: #363636 !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-light:hover {
  background-color: #424242 !important;
  color: #ffffff !important;
}

.modal-footer .btn-primary {
  background: linear-gradient(135deg, #ff9d00, #ff6b00) !important;
  border: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 7px 20px !important;
  border-radius: 8px !important;
}

.modal-footer .btn-primary:hover {
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.5) !important;
}






/* ==========================================================================
   OFFICIAL INSTAGRAM PROFILE PAGE DESIGN SYSTEM (FLAWLESS ALIGNMENT)
   ========================================================================== */

.profile-page-container {
  max-width: 935px !important;
  margin: 0 auto !important;
  padding: 36px 20px 60px 20px !important;
  color: #ffffff !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.profile-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 60px !important;
  margin: 0 0 44px 0 !important;
  padding: 0 0 24px 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative !important;
  width: 100% !important;
}

.profile-avatar-wrapper {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  width: 160px !important;
  height: 160px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 50% !important;
}

.profile-avatar-wrapper .avatar-container {
  position: relative !important;
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.profile-avatar-wrapper .avatar-ring {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  padding: 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent;
}

.profile-avatar-wrapper .has-story .avatar-ring {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.profile-avatar-wrapper .profile-avatar-img,
.profile-avatar-wrapper .author-avatar,
.profile-avatar-wrapper img {
  width: 142px !important;
  height: 142px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3px solid #000000 !important;
  display: block !important;
}

.profile-avatar-wrapper .avatar-note-bubble {
  position: absolute !important;
  top: -10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #262626 !important;
  color: #a8a8a8 !important;
  font-size: 11px !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  white-space: nowrap !important;
  z-index: 10 !important;
}

.profile-info-wrapper {
  position: static !important;
  flex: 1 1 0% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  min-width: 0 !important;
}

.profile-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.profile-username {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -0.2px !important;
}

.btn-profile-primary {
  background: #ff6b00 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 7px 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-profile-primary:hover {
  background: #e65c00 !important;
  color: #ffffff !important;
}

.btn-profile-sec {
  background: #262626 !important;
  color: #ffffff !important;
  border: 1px solid #363636 !important;
  border-radius: 8px !important;
  padding: 7px 16px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.btn-profile-sec:hover {
  background: #363636 !important;
  color: #ffffff !important;
}

.btn-profile-icon {
  background: #262626 !important;
  color: #ffffff !important;
  border: 1px solid #363636 !important;
  border-radius: 8px !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  text-decoration: none !important;
}

.profile-stats-row {
  display: flex !important;
  align-items: center !important;
  gap: 36px !important;
  font-size: 15.5px !important;
  color: #f5f5f5 !important;
  margin: 0 !important;
}

.profile-stats-row span strong {
  font-weight: 700 !important;
  color: #ffffff !important;
}

.profile-stats-row a {
  color: #f5f5f5 !important;
  text-decoration: none !important;
}

.profile-bio-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.profile-fullname {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.profile-category {
  font-size: 13px !important;
  color: #a8a8a8 !important;
  margin: 0 !important;
}

.profile-bio-text {
  font-size: 14px !important;
  color: #f5f5f5 !important;
  margin: 0 !important;
  white-space: pre-line !important;
}

.profile-website-link {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #e0f1ff !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  margin-top: 2px !important;
}

.profile-website-link a {
  color: #ff9d00 !important;
  text-decoration: none !important;
}

.profile-website-link a:hover {
  text-decoration: underline !important;
}

.profile-action-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.profile-action-bar .btn-action-blue {
  background: linear-gradient(135deg, #ff9d00, #ff6b00) !important;
  border: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.profile-action-bar .btn-action-dark {
  background: #262626 !important;
  border: 1px solid #363636 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
}

/* Profile Content Tabs */
.profile-tabs-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-top: 1px solid #262626 !important;
  gap: 48px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

.profile-tabs-bar .tab-btn {
  background: transparent !important;
  border: none !important;
  border-top: 2px solid transparent !important;
  color: #8e8e8e !important;
  font-size: 18px !important;
  padding: 14px 20px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.profile-tabs-bar .tab-btn.active {
  color: #ff6b00 !important;
  border-top: 2px solid #ff6b00 !important;
}

/* 3-Column Media Grid */
.profile-grid-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
  width: 100% !important;
}

.grid-media-card {
  position: relative !important;
  aspect-ratio: 1 / 1 !important;
  background-color: #121212 !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.grid-media-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.grid-card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
}

.grid-media-card:hover .grid-card-overlay {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .profile-header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .profile-avatar-wrapper {
    width: 96px !important;
    height: 96px !important;
  }
  .profile-avatar-wrapper .avatar-container,
  .profile-avatar-wrapper .avatar-ring {
    width: 96px !important;
    height: 96px !important;
  }
  .profile-avatar-wrapper .profile-avatar-img,
  .profile-avatar-wrapper .author-avatar,
  .profile-avatar-wrapper img {
    width: 88px !important;
    height: 88px !important;
  }
  .profile-info-wrapper {
    align-items: center !important;
  }
  .profile-title-row {
    justify-content: center !important;
  }
  .profile-stats-row {
    justify-content: center !important;
    gap: 24px !important;
  }
  .profile-tabs-bar {
    gap: 20px !important;
  }
}

/* ==========================================================================
   CREATOR STUDIO DASHBOARD LAYOUT & RESPONSIVENESS FIX
   ========================================================================== */

.studio-wrapper {
  margin-left: 92px !important;
  width: calc(100% - 92px) !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: row !important;
  background-color: #000000 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.studio-sidebar {
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  flex-shrink: 0 !important;
  background-color: #0a0c10 !important;
  border-right: 1px solid #262626 !important;
  padding: 28px 18px !important;
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  z-index: 50 !important;
}

.studio-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  padding: 36px 40px 80px 40px !important;
  background-color: #000000 !important;
  box-sizing: border-box !important;
}

.studio-brand h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.3px !important;
}

.studio-profile-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #141721 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  margin-bottom: 24px !important;
  border: 1px solid #232838 !important;
}

.studio-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #ff6b00 !important;
}

.studio-profile-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  overflow: hidden !important;
}

.studio-profile-info .profile-name {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.studio-profile-info .profile-handle {
  font-size: 12px !important;
  color: #8b949e !important;
}

.studio-profile-info .status-tag {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #ff9d00 !important;
  background: rgba(255, 157, 0, 0.12) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  margin-top: 4px !important;
  width: fit-content !important;
}

.studio-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.studio-menu .menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  color: #9ba1b0 !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.studio-menu .menu-item i {
  width: 20px !important;
  font-size: 16px !important;
  text-align: center !important;
}

.studio-menu .menu-item:hover {
  background: #161922 !important;
  color: #ffffff !important;
}

.studio-menu .menu-item.active {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 157, 0, 0.1)) !important;
  color: #ff9d00 !important;
  border: 1px solid rgba(255, 107, 0, 0.3) !important;
}

.hero-revenue-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: linear-gradient(135deg, #12151e, #1a1e2b) !important;
  border: 1px solid #282f42 !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  margin-bottom: 28px !important;
}

.hero-revenue-card .hero-amount {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 4px 0 !important;
}

.hero-payout-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 6px !important;
}

.hero-payout-box .payout-amount {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #ff9d00 !important;
}

.hero-payout-box .btn-request-payout {
  background: linear-gradient(135deg, #ff9d00, #ff6b00) !important;
  border: none !important;
  color: #000000 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.hero-payout-box .btn-request-payout:hover {
  opacity: 0.9 !important;
}

.studio-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  margin-bottom: 28px !important;
}

.metric-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  background: #10121a !important;
  border: 1px solid #202636 !important;
  border-radius: 14px !important;
  padding: 20px !important;
}

.metric-card .card-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
}

.metric-card .card-icon.blue-glow {
  background: rgba(255, 107, 0, 0.15) !important;
  color: #ff6b00 !important;
}

.metric-card .card-icon.purple-glow {
  background: rgba(255, 157, 0, 0.15) !important;
  color: #ff9d00 !important;
}

.metric-card .card-icon.pink-glow {
  background: rgba(237, 73, 86, 0.15) !important;
  color: #ed4956 !important;
}

.metric-card .card-value {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 4px 0 !important;
}

.metric-card .card-title {
  font-size: 13px !important;
  color: #8b949e !important;
  font-weight: 600 !important;
}

.metric-card .card-meta {
  font-size: 12px !important;
  color: #a8a8a8 !important;
}

.mini-card {
  background: #0d0f15 !important;
  border: 1px solid #1c212e !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
}

.mini-card .mini-title {
  font-size: 12.5px !important;
  color: #8b949e !important;
}

.mini-card .mini-value {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-top: 4px !important;
}

.table-card {
  background: #0f1118 !important;
  border: 1px solid #1f2533 !important;
  border-radius: 14px !important;
  padding: 24px !important;
  margin-top: 24px !important;
}

.table-card .card-header-clean h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
}

.studio-table {
  width: 100% !important;
  border-collapse: collapse !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
}

.studio-table th {
  padding: 12px 14px !important;
  background: #141720 !important;
  color: #8b949e !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #232938 !important;
  text-align: left !important;
}

.studio-table td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #1a1e2a !important;
}

@media (max-width: 991px) {
  .studio-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    flex-direction: column !important;
    padding-bottom: 70px !important;
  }
  .studio-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid #262626 !important;
  }
  .studio-main {
    padding: 20px 16px 80px 16px !important;
  }
  .studio-grid-3 {
    grid-template-columns: 1fr !important;
  }
  .hero-revenue-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .hero-payout-box {
    align-items: flex-start !important;
  }
}

/* ==========================================================================
   ADMIN CONTROL PANEL MASTER LAYOUT & ALIGNMENT
   ========================================================================== */

.admin-master-wrapper {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #000000 !important;
  box-sizing: border-box !important;
}

@media (min-width: 768px) {
  .admin-master-wrapper {
    margin-left: 92px !important;
    width: calc(100% - 92px) !important;
    max-width: calc(100% - 92px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  body.page-admin .main-content,
  body.page-admin .sg-offcanvas,
  body.page-admin .container-fluid {
    margin-left: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767.98px) {
  .admin-master-wrapper,
  body.page-admin .main-content,
  body.page-admin .sg-offcanvas,
  body.page-admin .container-fluid {
    margin-left: 0 !important;
    padding: 12px 12px 70px 12px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

.admin-top-header {
  background: #0a0c10 !important;
  border-bottom: 1px solid #262626 !important;
  padding: 14px 28px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 850 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.admin-sidebar .card {
  background: #0e1017 !important;
  border: 1px solid #262626 !important;
  border-radius: 12px !important;
  margin-bottom: 16px !important;
}

.admin-sidebar .card-header.block-title {
  background: #141721 !important;
  border-bottom: 1px solid #262626 !important;
  color: #ff9d00 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.9px !important;
}

/* ==========================================================================
   ADMIN 2-COLUMN SIDE-BY-SIDE GRID ARCHITECTURE FIX
   ========================================================================== */

@media (min-width: 768px) {
  .admin-master-wrapper .sg-offcanvas {
    padding-left: 24px !important;
    padding-right: 32px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .admin-master-wrapper .sg-offcanvas .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    align-items: flex-start !important;
    margin: 0 !important;
  }

  .admin-master-wrapper .admin-sidebar,
  .admin-master-wrapper .sg-offcanvas-sidebar {
    display: block !important;
    position: sticky !important;
    top: 75px !important;
    left: auto !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex: 0 0 280px !important;
    height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 100 !important;
  }

  .admin-master-wrapper .sg-offcanvas-mainbar {
    display: block !important;
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: calc(100% - 304px) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
}

@media (max-width: 767.98px) {
  .admin-master-wrapper .sg-offcanvas .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .admin-master-wrapper .admin-sidebar,
  .admin-master-wrapper .sg-offcanvas-sidebar {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .admin-master-wrapper .sg-offcanvas-mainbar {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ==========================================================================
   INSTAGRAM 2026 MASTER EXTENSION SUITE (CLEAN & CONSOLIDATED)
   ========================================================================== */

/* 1. UNIVERSAL PAGE SHELL (Clears 92px Pill Sidebar on Desktop) */
.ig-page-shell {
  min-height: 100vh;
  background-color: #000000;
}

@media (min-width: 768px) {
  .ig-page-shell {
    padding-left: 92px;
    padding-right: 24px;
    padding-top: 24px;
    padding-bottom: 40px;
  }
}

@media (max-width: 767px) {
  .ig-page-shell {
    padding: 60px 12px 80px 12px;
  }
}

@media (min-width: 992px) {
  .ig-page-shell.has-sidebar {
    max-width: 1020px;
    margin: 0 auto;
    margin-left: 92px;
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  .main-content-container {
    max-width: 1020px !important;
    gap: 40px !important;
  }

  .ig-feed-container,
  .feed-column,
  .main-content-container .feed-column {
    width: 100% !important;
    max-width: 630px !important;
  }

  .ig-right-sidebar,
  .widgets-column,
  .main-content-container .widgets-column {
    width: 330px !important;
    flex-shrink: 0 !important;
  }
}

/* 2. SEARCH & EXPLORE PAGE */
.ig-search-page {
  max-width: 935px;
  margin: 0 auto;
  width: 100%;
}

.ig-search-input-wrap {
  position: relative;
  width: 100%;
}

.ig-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888888;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.ig-search-input {
  width: 100% !important;
  background-color: #1c1c1c !important;
  border: 1px solid #363636 !important;
  border-radius: 10px !important;
  padding: 11px 16px 11px 40px !important;
  font-size: 15px !important;
  color: #ffffff !important;
  outline: none !important;
  transition: border-color 0.15s ease !important;
  box-sizing: border-box !important;
}

.ig-search-input:focus {
  border-color: #ff6b00 !important;
  box-shadow: 0 0 0 1px rgba(255,107,0,0.3) !important;
}

.ig-search-input::placeholder { color: #666666 !important; }

.nav-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 1px solid #262626;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.nav-search .nav-item { margin: 0; }

.nav-search .nav-link {
  color: #a0a0a0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  padding: 6px 16px !important;
  background: #1a1a1a !important;
  border: 1px solid #2a2a2a !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: block !important;
}

.nav-search .nav-link:hover {
  background: #262626 !important;
  color: #ffffff !important;
}

.nav-search .nav-link.active {
  background: #ff6b00 !important;
  border-color: #ff6b00 !important;
  color: #ffffff !important;
}

.ig-search-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.ig-search-landing-icon {
  font-size: 52px;
  color: #333333;
  margin-bottom: 8px;
}

.ig-search-landing-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.ig-search-landing-sub {
  font-size: 13px;
  color: #666666;
  max-width: 280px;
}

/* 3. DIRECT MESSAGING (DM INBOX) */
.ig-messages-page {
  padding-left: 92px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ig-messages-page {
    padding-left: 0;
    height: auto;
    overflow: visible;
  }
}

.ig-messages-panel {
  display: flex;
  flex-direction: row;
  border: 1px solid #262626;
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  max-width: 935px;
  margin: 24px auto;
  width: calc(100% - 48px);
  background: #0a0a0a;
  min-height: 0;
  height: calc(100vh - 48px);
}

.ig-dm-sidebar {
  width: 320px !important;
  min-width: 280px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #262626 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  overflow: hidden !important;
}

.ig-dm-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 18px 14px !important;
  border-bottom: 1px solid #262626 !important;
  flex-shrink: 0 !important;
}

.ig-dm-username {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.ig-dm-compose-btn {
  background: transparent !important;
  border: none !important;
  color: #e0e0e0 !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
}
.ig-dm-compose-btn:hover { background: rgba(255,255,255,0.08) !important; color: #ffffff !important; }

.ig-dm-list { flex: 1 !important; overflow-y: auto !important; padding: 8px 6px !important; }
.ig-dm-list::-webkit-scrollbar { width: 4px; }
.ig-dm-list::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.ig-dm-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  transition: background 0.12s ease !important;
  position: relative !important;
  margin-bottom: 2px !important;
}
.ig-dm-item:hover { background: #161616 !important; color: #ffffff !important; }
.ig-dm-item.active { background: #1c1c1c !important; }

.ig-dm-avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid #2a2a2a !important;
  flex-shrink: 0 !important;
}

.ig-dm-info { flex: 1 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 3px !important; }
.ig-dm-name { font-size: 14px !important; font-weight: 600 !important; color: #ffffff !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.ig-dm-preview { font-size: 12px !important; color: #888888 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.ig-dm-unread-dot { width: 8px !important; height: 8px !important; background: #ff6b00 !important; border-radius: 50% !important; flex-shrink: 0 !important; }
.ig-dm-empty-list { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; color: #444444 !important; font-size: 14px !important; padding: 48px 20px !important; gap: 10px !important; text-align: center !important; }

.ig-dm-viewport { flex: 1 !important; display: flex !important; align-items: center !important; justify-content: center !important; background: #050505 !important; min-width: 0 !important; }
.ig-dm-welcome { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 10px !important; padding: 40px 24px !important; max-width: 340px !important; }
.ig-dm-welcome-icon { width: 96px !important; height: 96px !important; border-radius: 50% !important; border: 2px solid #2a2a2a !important; display: flex !important; align-items: center !important; justify-content: center !important; color: #cccccc !important; margin-bottom: 8px !important; background: #0d0d0d !important; }
.ig-dm-welcome-title { font-size: 22px !important; font-weight: 700 !important; color: #ffffff !important; margin: 0 !important; }
.ig-dm-welcome-sub { font-size: 13px !important; color: #777777 !important; line-height: 1.5 !important; margin: 0 !important; }
.ig-dm-send-btn { display: inline-flex !important; align-items: center !important; gap: 8px !important; background: #ff6b00 !important; color: #ffffff !important; border: none !important; border-radius: 8px !important; padding: 10px 22px !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important; margin-top: 8px !important; text-decoration: none !important; transition: background 0.15s ease !important; }
.ig-dm-send-btn:hover { background: #ff9d00 !important; color: #ffffff !important; }

.ig-dm-conversation { flex: 1 !important; display: flex !important; flex-direction: column !important; background: #050505 !important; min-width: 0 !important; overflow: hidden !important; }
.ig-dm-convo-header { display: flex !important; align-items: center !important; gap: 12px !important; padding: 14px 18px !important; border-bottom: 1px solid #262626 !important; flex-shrink: 0 !important; }
.ig-dm-convo-avatar { width: 38px !important; height: 38px !important; border-radius: 50% !important; object-fit: cover !important; border: 1px solid #2a2a2a !important; }
.ig-dm-convo-name { font-size: 15px !important; font-weight: 700 !important; color: #ffffff !important; }
.ig-dm-messages { flex: 1 !important; overflow-y: auto !important; padding: 16px 18px !important; display: flex !important; flex-direction: column !important; gap: 10px !important; }
.ig-dm-messages::-webkit-scrollbar { width: 4px; }
.ig-dm-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
.ig-dm-bubble { max-width: 65% !important; padding: 10px 14px !important; border-radius: 18px !important; font-size: 14px !important; line-height: 1.45 !important; word-break: break-word !important; }
.ig-dm-bubble.sent { background: #ff6b00 !important; color: #ffffff !important; align-self: flex-end !important; border-bottom-right-radius: 4px !important; }
.ig-dm-bubble.received { background: #1a1a1a !important; color: #e0e0e0 !important; align-self: flex-start !important; border-bottom-left-radius: 4px !important; border: 1px solid #2a2a2a !important; }
.ig-dm-input-area { display: flex !important; align-items: center !important; gap: 10px !important; padding: 12px 18px !important; border-top: 1px solid #262626 !important; flex-shrink: 0 !important; }
.ig-dm-text-input { flex: 1 !important; background: #1a1a1a !important; border: 1px solid #2a2a2a !important; border-radius: 22px !important; padding: 10px 16px !important; font-size: 14px !important; color: #ffffff !important; outline: none !important; resize: none !important; }
.ig-dm-text-input:focus { border-color: #ff6b00 !important; }
.ig-dm-send-icon-btn { width: 38px !important; height: 38px !important; border-radius: 50% !important; background: #ff6b00 !important; border: none !important; color: #ffffff !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; flex-shrink: 0 !important; }
.ig-dm-send-icon-btn:hover { background: #ff9d00 !important; }

@media (max-width: 767px) {
  .ig-messages-panel { flex-direction: column !important; height: auto !important; border-radius: 0 !important; border: none !important; margin: 0 !important; width: 100% !important; }
  .ig-dm-sidebar { width: 100% !important; min-width: unset !important; border-right: none !important; border-bottom: 1px solid #262626 !important; max-height: 45vh !important; }
  .ig-dm-viewport, .ig-dm-conversation { display: none !important; }
}

/* 4. NOTIFICATIONS COMPONENT STYLES */
.ig-notifications-container { max-width: 680px !important; margin: 0 auto !important; padding: 10px 0 60px !important; width: 100% !important; }
.ig-notif-section-title { font-size: 15px !important; font-weight: 700 !important; color: #ffffff !important; margin: 20px 0 10px !important; padding-left: 4px !important; }
.ig-notif-card { background-color: #121212 !important; border: 1px solid #262626 !important; border-radius: 10px !important; padding: 12px 16px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 14px !important; margin-bottom: 8px !important; text-decoration: none !important; transition: background 0.15s ease, border-color 0.15s ease !important; }
.ig-notif-card:hover { background-color: #1a1a1a !important; border-color: #383838 !important; }
.ig-notif-card.unread { background-color: rgba(255, 107, 0, 0.08) !important; border-color: rgba(255, 107, 0, 0.35) !important; }
.ig-notif-avatar-wrapper { position: relative !important; flex-shrink: 0 !important; }
.ig-notif-avatar { width: 44px !important; height: 44px !important; border-radius: 50% !important; object-fit: cover !important; display: block !important; border: 1px solid #262626 !important; }
.ig-notif-badge { position: absolute !important; bottom: -2px !important; right: -2px !important; width: 20px !important; height: 20px !important; border-radius: 50% !important; background: #ff6b00 !important; color: #ffffff !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 10px !important; border: 2px solid #121212 !important; }
.ig-notif-badge.like { background: #ff3040 !important; }
.ig-notif-badge.sub { background: #ff9d00 !important; }
.ig-notif-badge.tip { background: #10b981 !important; }
.ig-notif-badge.comment { background: #007acc !important; }
.ig-notif-badge.follow { background: #ff6b00 !important; }
.ig-notif-text { flex: 1 !important; font-size: 13.5px !important; color: #d1d5db !important; line-height: 1.4 !important; }
.ig-notif-text strong { color: #ffffff !important; }
.ig-notif-time { font-size: 12px !important; color: #888888 !important; margin-top: 2px !important; }
.ig-notif-media-preview { width: 44px !important; height: 44px !important; border-radius: 6px !important; object-fit: cover !important; flex-shrink: 0 !important; border: 1px solid #262626 !important; }
.ig-notif-clear-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; background: transparent !important; border: 1px solid #363636 !important; border-radius: 8px !important; color: #e0e0e0 !important; font-size: 13px !important; font-weight: 600 !important; padding: 6px 12px !important; cursor: pointer !important; transition: background 0.15s ease, color 0.15s ease !important; }
.ig-notif-clear-btn:hover { background: #262626 !important; color: #ffffff !important; }
.ig-notif-del-btn { width: 28px !important; height: 28px !important; border-radius: 50% !important; background: transparent !important; border: none !important; color: #888888 !important; font-size: 13px !important; display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; transition: background 0.15s ease, color 0.15s ease !important; }
.ig-notif-del-btn:hover { background: rgba(255, 255, 255, 0.1) !important; color: #ffffff !important; }
.ig-notif-empty { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; text-align: center !important; padding: 60px 20px !important; gap: 12px !important; }
.ig-notif-empty-icon { font-size: 48px !important; color: #444444 !important; margin-bottom: 8px !important; }
.ig-notif-empty-title { font-size: 18px !important; font-weight: 700 !important; color: #ffffff !important; }
.ig-notif-empty-sub { font-size: 13px !important; color: #888888 !important; max-width: 320px !important; line-height: 1.5 !important; }

/* 5. LIKE BUTTON INSTANT UI TOGGLE */
.js_like-post svg, .ig-like-btn svg { fill: none; stroke: currentColor; transition: transform 0.15s ease-in-out, fill 0.1s; }
.js_like-post.active svg, .js_like-post.is-liked svg, .ig-like-btn.active svg { fill: #ff3040 !important; stroke: #ff3040 !important; animation: igLikePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.js_like-post.active i, .js_like-post.is-liked i, .ig-like-btn.active i { color: #ff3040 !important; animation: igLikePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@keyframes igLikePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* 6. ORANGE TO LIME GREEN PROFILE & STORY RINGS */
.ig-story-ring, 
.ig-avatar-ring,
.avatar-ring,
.avatar-story-wrapper.has-story .avatar-ring,
.story-avatar-wrapper.has-update,
.ig-profile-avatar-box.has-story {
  background: linear-gradient(135deg, #ff9800 0%, #8bc34a 100%) !important;
  padding: 2.5px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.ig-story-ring img, 
.ig-avatar-ring img,
.avatar-ring img,
.avatar-story-wrapper .author-avatar,
.story-avatar-wrapper.has-update img,
.ig-profile-avatar-box.has-story .ig-profile-avatar-img,
.ig-avatar-img {
  border: 2.5px solid #000000 !important;
  border-radius: 50% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  background-color: #000000 !important;
  display: block !important;
  box-sizing: border-box !important;
}

.ig-story-ring.viewed,
.ig-avatar-ring.viewed,
.avatar-story-wrapper.viewed .avatar-ring,
.story-avatar-wrapper.viewed {
  background: #333333 !important;
}

/* 7. FULL-BLEED 2026 POST CARD & VIDEO PLAYER SIZING */
article.instagram-post-card,
article.ig-post,
.post {
  background: #000000 !important;
  border: 1px solid #262626 !important;
  border-radius: 14px !important;
  margin-bottom: 24px !important;
  overflow: hidden !important;
  width: 100% !important;
}

.post-media-frame,
.ig-media-frame {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 750px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000000 !important;
  overflow: hidden !important;
  position: relative !important;
}

.post-media-img,
.post-media-video,
.ig-media-element {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 750px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Video Player Status Icon & Mute Toggle */
.video-status-icon {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.6) !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  z-index: 10 !important;
}

.video-status-icon.active-flash {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.reel-mute-btn {
  position: absolute !important;
  bottom: 14px !important;
  right: 14px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  cursor: pointer !important;
  z-index: 15 !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.reel-mute-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
  transform: scale(1.08) !important;
}

/* Post Action Bar & Controls */
.post-actions-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px 8px 16px !important;
}

.post-actions-bar .left-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.post-actions-bar .action-btn {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 22px !important;
  padding: 0 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}

.post-actions-bar .action-btn:hover {
  transform: scale(1.1) !important;
}

.post-details {
  padding: 0 16px 14px 16px !important;
}

.likes-count {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  margin-bottom: 6px !important;
}

.post-caption {
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #efefef !important;
}

.caption-author {
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  margin-right: 6px !important;
}

.view-comments-link {
  color: #8e96a3 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  display: block !important;
  margin-top: 6px !important;
}

.comment-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-top: 1px solid #262626 !important;
  padding-top: 10px !important;
  margin-top: 10px !important;
}

.js_post-comment-input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  flex: 1 !important;
  outline: none !important;
}

.js_post-comment-input::placeholder {
  color: #71717a !important;
}

.js_post-comment-submit {
  color: #ff9d00 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

/* 8. AUTHENTICATION (SIGNIN & SIGNUP) STYLES */
.ig-auth-wrapper {
  min-height: 100vh;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.ig-auth-card-container {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px auto 80px auto;
}

.ig-auth-box {
  background-color: #000000;
  border: 1px solid #262626;
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ig-auth-logo {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
  font-family: 'Grand Hotel', cursive, sans-serif !important;
}

.ig-auth-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ig-auth-input {
  width: 100% !important;
  background-color: #121212 !important;
  border: 1px solid #363636 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  padding: 10px 10px !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.ig-auth-input:focus { border-color: #737373 !important; }
.ig-auth-input::placeholder { color: #737373 !important; }

.ig-auth-btn-primary {
  width: 100% !important;
  background-color: #0095f6 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

.ig-auth-btn-primary:hover { background-color: #1877f2 !important; }

.ig-auth-divider { display: flex; align-items: center; width: 100%; margin: 20px 0; }
.ig-auth-divider-line { flex: 1; height: 1px; background-color: #262626; }
.ig-auth-divider-text { padding: 0 16px; font-size: 13px; font-weight: 600; color: #a8a8a8; }
.ig-auth-fb-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: #385185; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; margin-bottom: 16px; transition: color 0.15s ease; }
.ig-auth-fb-btn:hover { color: #ffffff; }
.ig-auth-forgot-link { font-size: 12px; color: #00376b; text-decoration: none; transition: color 0.15s ease; }
.ig-auth-forgot-link:hover { color: #ffffff; }
.ig-auth-signup-box { background-color: #000000; border: 1px solid #262626; border-radius: 4px; padding: 20px; text-align: center; font-size: 14px; color: #ffffff; }
.ig-auth-signup-link { color: #0095f6; font-weight: 600; text-decoration: none; margin-left: 4px; }
.ig-auth-signup-link:hover { color: #ffffff; }
.ig-auth-app-section { text-align: center; margin-top: 16px; }
.ig-auth-app-section p { font-size: 14px; color: #ffffff; margin-bottom: 16px; }
.ig-auth-app-badges { display: flex; justify-content: center; gap: 8px; }
.ig-auth-app-badge { height: 40px; cursor: pointer; }
.ig-auth-footer { position: absolute; bottom: 16px; left: 0; width: 100%; text-align: center; font-size: 12px; color: #737373; }
.ig-auth-footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; max-width: 680px; margin: 0 auto 8px auto; }
.ig-auth-footer-links a { color: #737373; text-decoration: none; }
.ig-auth-footer-links a:hover { text-decoration: underline; }

/* ==========================================================================
   INSTAGRAM 2026 MODAL & UPLOAD FLOW
   ========================================================================== */

#publisher-modal {
  transition: opacity 0.2s ease-in-out;
}

#publisher-modal.flex {
  display: flex !important;
}

.ig-create-card {
  animation: igModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes igModalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Custom Scrollbars inside publisher drawer */
#ig-upload-details::-webkit-scrollbar {
  width: 4px;
}
#ig-upload-details::-webkit-scrollbar-thumb {
  background: #363636;
  border-radius: 4px;
}

/* ==========================================================================
   INSTAGRAM 2026 MODAL & UPLOAD FLOW
   ========================================================================== */

#publisher-modal {
  transition: opacity 0.2s ease-in-out;
}

#publisher-modal.flex {
  display: flex !important;
}

.ig-create-card {
  animation: igModalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes igModalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Custom Scrollbars inside publisher drawer */
#ig-upload-details::-webkit-scrollbar {
  width: 4px;
}
#ig-upload-details::-webkit-scrollbar-thumb {
  background: #363636;
  border-radius: 4px;
}

/* 9:16 Vertical Reel Preview & Viewport */
#ig-upload-preview.is-reel video,
.ig-reel-preview-9-16 {
  max-width: 290px !important;
  max-height: 516px !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1px solid #363636 !important;
}

.aspect-\[9\/16\],
[aspect-ratio="9/16"] {
  aspect-ratio: 9 / 16 !important;
}

/* 9:16 Vertical Reel Preview & Viewport */
#ig-upload-preview.is-reel video,
.ig-reel-preview-9-16 {
  max-width: 290px !important;
  max-height: 516px !important;
  aspect-ratio: 9 / 16 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1px solid #363636 !important;
}

.aspect-\[9\/16\],
[aspect-ratio="9/16"] {
  aspect-ratio: 9 / 16 !important;
}

/* ==========================================================================
   INSTAGRAM 2026 DIRECT MESSENGER SUITE
   ========================================================================== */

.ig-messages-page {
  padding-left: 92px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ig-messages-page {
    padding-left: 0;
    height: auto;
    overflow: visible;
  }
}

.ig-messages-panel {
  display: flex;
  flex-direction: row;
  border: 1px solid #262626;
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  max-width: 1050px;
  margin: 16px auto;
  width: calc(100% - 32px);
  background: #000000;
  min-height: 0;
  height: calc(100vh - 32px);
}

@media (max-width: 991px) {
  .ig-messages-panel {
    margin: 0;
    width: 100%;
    height: calc(100vh - 60px);
    border-radius: 0;
    border: none;
  }
}

/* Sidebar */
.ig-dm-sidebar {
  width: 350px !important;
  min-width: 300px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #262626 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  overflow: hidden !important;
}

.ig-dm-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #1a1a1a !important;
  flex-shrink: 0 !important;
}

.ig-dm-user-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ig-dm-username {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.ig-dm-compose-btn {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
}
.ig-dm-compose-btn:hover { background: rgba(255,255,255,0.1) !important; color: #ff9800 !important; }

/* Filter Tabs */
.ig-dm-tabs {
  display: flex;
  border-bottom: 1px solid #1a1a1a;
  padding: 8px 16px 0;
  gap: 16px;
  background: #000000;
}

.ig-dm-tab {
  background: transparent;
  border: none;
  color: #8e8e8e;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 4px 10px;
  position: relative;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ig-dm-tab:hover { color: #ffffff; }
.ig-dm-tab.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Thread List */
.ig-dm-list {
  flex: 1 !important;
  overflow-y: auto !important;
  background: #000000 !important;
}

.ig-dm-threads-ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ig-dm-threads-ul li.feeds-item {
  border-bottom: none !important;
  margin: 0 !important;
  transition: background 0.15s ease;
}

.ig-dm-threads-ul li.feeds-item:hover,
.ig-dm-threads-ul li.feeds-item.active {
  background: #121212 !important;
}

.ig-dm-threads-ul .data-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 18px !important;
  text-decoration: none !important;
  color: inherit !important;
}

.ig-dm-threads-ul .data-avatar img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #262626 !important;
}

.ig-dm-threads-ul .data-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.ig-dm-threads-ul .name {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ig-dm-threads-ul .text {
  font-size: 12px !important;
  color: #8e8e8e !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
}

.ig-dm-threads-ul li.unread .text {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.ig-dm-threads-ul .time {
  font-size: 11px !important;
  color: #666666 !important;
  margin-top: 2px !important;
}

/* Right Main Conversation Bar */
.ig-dm-mainbar {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

.panel-messages {
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
}

.panel-messages .card-header {
  background: #000000 !important;
  border-bottom: 1px solid #262626 !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.panel-messages .card-header a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

.panel-messages .card-header .btn-light {
  background: transparent !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  transition: all 0.15s ease !important;
}
.panel-messages .card-header .btn-light:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}

.panel-messages .card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 20px !important;
  overflow: hidden !important;
  background: #000000 !important;
}

/* Chat Messages Bubble Stream */
.chat-conversations {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 10px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.chat-conversations ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.conversation {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}

.conversation.right {
  justify-content: flex-end !important;
}

.conversation-user img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.conversation .text {
  display: inline-block !important;
  padding: 10px 16px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  max-width: 480px !important;
  word-wrap: break-word !important;
}

/* Received Bubbles */
.conversation:not(.right) .text {
  background: #262626 !important;
  color: #f5f5f5 !important;
  border-bottom-left-radius: 4px !important;
}

/* Sent Bubbles (Instagram Gradient / Blue) */
.conversation.right .text {
  background: linear-gradient(135deg, #3797f0 0%, #1a73e8 100%) !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
}

.conversation .time {
  font-size: 10px !important;
  color: #666666 !important;
  margin-top: 2px !important;
}

/* Bottom Chat Form Bar */
.x-form.chat-form {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #333333 !important;
  border-radius: 26px !important;
  background: #121212 !important;
  padding: 6px 14px !important;
  margin-top: 12px !important;
  gap: 8px !important;
}

.chat-form-message {
  flex: 1 !important;
}

.chat-form-message textarea {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 14px !important;
  resize: none !important;
  padding: 6px 0 !important;
}
.chat-form-message textarea::placeholder {
  color: #777777 !important;
}

.x-form-tools {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.x-form-tools li i {
  color: #8e8e8e !important;
  cursor: pointer !important;
  font-size: 18px !important;
  transition: color 0.15s ease !important;
}
.x-form-tools li i:hover {
  color: #ffffff !important;
}

.x-form-tools li.x-form-tools-post i {
  color: #0095f6 !important;
  font-weight: 700 !important;
}
.x-form-tools li.x-form-tools-post i:hover {
  color: #3797f0 !important;
  transform: scale(1.1);
}

/* Welcome View */
.ig-dm-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  text-align: center;
  padding: 24px;
}

.ig-dm-welcome-icon {
  width: 96px;
  height: 96px;
  border: 2px solid #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ffffff;
  background: #0f0f0f;
}

.ig-dm-welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ig-dm-welcome-sub {
  font-size: 13px;
  color: #8e8e8e;
  max-width: 280px;
  margin: 0 auto 18px;
}

.ig-dm-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0095f6;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.ig-dm-send-btn:hover {
  background: #1877f2;
  color: #ffffff;
}

/* Compose View Dark Overrides */
.ig-chat-to-dark {
  border-bottom: 1px solid #262626 !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

.ig-chat-to-dark input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  padding: 6px !important;
}
/* ==========================================================================
   INSTAGRAM 2026 DIRECT MESSENGER SUITE
   ========================================================================== */

.ig-messages-page {
  padding-left: 92px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  overflow: hidden;
}

@media (max-width: 767px) {
  .ig-messages-page {
    padding-left: 0;
    height: auto;
    overflow: visible;
  }
}

.ig-messages-panel {
  display: flex;
  flex-direction: row;
  border: 1px solid #262626;
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  max-width: 1050px;
  margin: 16px auto;
  width: calc(100% - 32px);
  background: #000000;
  min-height: 0;
  height: calc(100vh - 32px);
}

@media (max-width: 991px) {
  .ig-messages-panel {
    margin: 0;
    width: 100%;
    height: calc(100vh - 60px);
    border-radius: 0;
    border: none;
  }
}

/* Sidebar */
.ig-dm-sidebar {
  width: 350px !important;
  min-width: 300px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid #262626 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  overflow: hidden !important;
}

.ig-dm-sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #1a1a1a !important;
  flex-shrink: 0 !important;
}

.ig-dm-user-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.ig-dm-username {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.ig-dm-compose-btn {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
}
.ig-dm-compose-btn:hover { background: rgba(255,255,255,0.1) !important; color: #ff9800 !important; }

/* Filter Tabs */
.ig-dm-tabs {
  display: flex;
  border-bottom: 1px solid #1a1a1a;
  padding: 8px 16px 0;
  gap: 16px;
  background: #000000;
}

.ig-dm-tab {
  background: transparent;
  border: none;
  color: #8e8e8e;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 4px 10px;
  position: relative;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ig-dm-tab:hover { color: #ffffff; }
.ig-dm-tab.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

/* Thread List */
.ig-dm-list {
  flex: 1 !important;
  overflow-y: auto !important;
  background: #000000 !important;
}

.ig-dm-threads-ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ig-dm-threads-ul li.feeds-item {
  border-bottom: none !important;
  margin: 0 !important;
  transition: background 0.15s ease;
}

.ig-dm-threads-ul li.feeds-item:hover,
.ig-dm-threads-ul li.feeds-item.active {
  background: #121212 !important;
}

.ig-dm-threads-ul .data-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 18px !important;
  text-decoration: none !important;
  color: inherit !important;
}

.ig-dm-threads-ul .data-avatar img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #262626 !important;
}

.ig-dm-threads-ul .data-content {
  flex: 1 !important;
  min-width: 0 !important;
}

.ig-dm-threads-ul .name {
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #ffffff !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ig-dm-threads-ul .text {
  font-size: 12px !important;
  color: #8e8e8e !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-top: 2px !important;
}

.ig-dm-threads-ul li.unread .text {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.ig-dm-threads-ul .time {
  font-size: 11px !important;
  color: #666666 !important;
  margin-top: 2px !important;
}

/* Right Main Conversation Bar */
.ig-dm-mainbar {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #000000 !important;
  overflow: hidden !important;
  min-height: 0 !important;
}

.panel-messages {
  background: #000000 !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  margin: 0 !important;
}

.panel-messages .card-header {
  background: #000000 !important;
  border-bottom: 1px solid #262626 !important;
  padding: 14px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.panel-messages .card-header a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

.panel-messages .card-header .btn-light {
  background: transparent !important;
  border: 1px solid #333333 !important;
  color: #e0e0e0 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 6px !important;
  transition: all 0.15s ease !important;
}
.panel-messages .card-header .btn-light:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border-color: #555555 !important;
}

.panel-messages .card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 16px 20px !important;
  overflow: hidden !important;
  background: #000000 !important;
}

/* Chat Messages Bubble Stream */
.chat-conversations {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 10px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.chat-conversations ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.conversation {
  display: flex !important;
  align-items: flex-end !important;
  gap: 8px !important;
  margin-bottom: 4px !important;
}

.conversation.right {
  justify-content: flex-end !important;
}

.conversation-user img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.conversation .text {
  display: inline-block !important;
  padding: 10px 16px !important;
  border-radius: 20px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  max-width: 480px !important;
  word-wrap: break-word !important;
}

/* Received Bubbles */
.conversation:not(.right) .text {
  background: #262626 !important;
  color: #f5f5f5 !important;
  border-bottom-left-radius: 4px !important;
}

/* Sent Bubbles (Instagram Gradient / Blue) */
.conversation.right .text {
  background: linear-gradient(135deg, #3797f0 0%, #1a73e8 100%) !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
}

.conversation .time {
  font-size: 10px !important;
  color: #666666 !important;
  margin-top: 2px !important;
}

/* Bottom Chat Form Bar */
.x-form.chat-form {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #333333 !important;
  border-radius: 26px !important;
  background: #121212 !important;
  padding: 6px 14px !important;
  margin-top: 12px !important;
  gap: 8px !important;
}

.chat-form-message {
  flex: 1 !important;
}

.chat-form-message textarea {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 14px !important;
  resize: none !important;
  padding: 6px 0 !important;
}
.chat-form-message textarea::placeholder {
  color: #777777 !important;
}

.x-form-tools {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.x-form-tools li i {
  color: #8e8e8e !important;
  cursor: pointer !important;
  font-size: 18px !important;
  transition: color 0.15s ease !important;
}
.x-form-tools li i:hover {
  color: #ffffff !important;
}

.x-form-tools li.x-form-tools-post i {
  color: #0095f6 !important;
  font-weight: 700 !important;
}
.x-form-tools li.x-form-tools-post i:hover {
  color: #3797f0 !important;
  transform: scale(1.1);
}

/* Welcome View */
.ig-dm-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  text-align: center;
  padding: 24px;
}

.ig-dm-welcome-icon {
  width: 96px;
  height: 96px;
  border: 2px solid #333333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #ffffff;
  background: #0f0f0f;
}

.ig-dm-welcome-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.ig-dm-welcome-sub {
  font-size: 13px;
  color: #8e8e8e;
  max-width: 280px;
  margin: 0 auto 18px;
}

.ig-dm-send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0095f6;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.ig-dm-send-btn:hover {
  background: #1877f2;
  color: #ffffff;
}

/* Compose View Dark Overrides */
.ig-chat-to-dark {
  border-bottom: 1px solid #262626 !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

.ig-chat-to-dark input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  padding: 6px !important;
}

/* ==========================================================================
   DEMUREGRAM CREATION STUDIO PRO SUITE (/create)
   Edge-to-Edge Cinematic Display, OLED Dark Glassmorphism, Live Filter Engine
   ========================================================================== */

.ig-create-page {
  padding-left: 92px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000000 !important;
  padding-bottom: 40px;
}

@media (max-width: 767px) {
  .ig-create-page {
    padding-left: 0;
    padding-bottom: 80px;
  }
}

.ig-create-studio-container {
  max-width: 1180px;
  width: calc(100% - 32px);
  margin: 20px auto 40px;
  display: flex;
  flex-direction: column;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (max-width: 767px) {
  .ig-create-studio-container {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
  }
}

/* Top Action Bar */
.ig-create-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(12, 12, 12, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

.ig-create-title-group {
  display: flex;
  flex-direction: column;
}

.ig-create-heading {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.ig-create-subheading {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  display: block;
  margin-top: 2px;
}

/* Target Switcher Tabs */
.ig-create-type-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
  backdrop-filter: blur(12px);
}

.ig-create-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-create-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.ig-create-tab.active {
  background: linear-gradient(135deg, #ff8a00 0%, #e52e71 100%);
  color: #ffffff;
  box-shadow: 0 2px 14px rgba(255, 107, 0, 0.35);
}

/* Share Action Button */
.ig-btn-share {
  background: linear-gradient(135deg, #ff7a00 0%, #ff007a 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.35);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-btn-share:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.5);
  filter: brightness(1.1);
}

.ig-btn-share:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Creation Studio Split Panel */
.ig-create-panel {
  display: flex;
  flex-direction: row;
  min-height: 680px;
  height: 740px;
  background: #000000;
}

@media (max-width: 900px) {
  .ig-create-panel {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
}

/* Left Canvas Stage */
.ig-create-media-canvas {
  flex: 1.45;
  background: #000000;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

@media (max-width: 900px) {
  .ig-create-media-canvas {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 420px;
  }
}

/* Dropzone Empty State */
.ig-create-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  width: 100%;
  height: 100%;
  transition: all 0.25s ease;
}

.ig-create-dropzone.dragover {
  background: rgba(255, 107, 0, 0.04);
}

.ig-create-upload-icon-wrapper {
  margin-bottom: 20px;
}

.ig-create-brand-emblem-wrap {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 107, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ig-create-dropzone:hover .ig-create-brand-emblem-wrap {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 32px rgba(255, 107, 0, 0.35);
  border-color: rgba(255, 107, 0, 0.4);
}

.ig-create-brand-emblem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.ig-create-drop-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.ig-create-drop-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 340px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.ig-btn-select-media {
  background: linear-gradient(135deg, #ff7a00 0%, #ff007a 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-btn-select-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.45);
  filter: brightness(1.1);
}

/* Loaded Media Preview - EDGE TO EDGE FULL BLEED */
.ig-create-preview-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000000;
  overflow: hidden;
}

.ig-create-media-viewer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #000000;
}

/* Edge to edge default */
.ig-create-media-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* When fit mode is toggled or ratio is original */
.ig-create-media-viewer.fit-contain .ig-create-media-element,
.ig-create-media-element.ratio-original {
  object-fit: contain !important;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.ig-create-media-element.ratio-4-5 {
  aspect-ratio: 4/5;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.ig-create-media-element.ratio-1-1 {
  aspect-ratio: 1/1;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.ig-create-media-element.ratio-9-16,
.ig-create-media-element.reel-mode {
  aspect-ratio: 9/16;
  height: 100%;
  max-height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.95);
}

video.ig-create-media-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.ig-create-media-element.reel-mode {
  aspect-ratio: 9/16;
  width: auto;
  height: 100%;
  object-fit: cover;
}

/* Floating Badges & Overlays */
.ig-create-multi-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  z-index: 15;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ig-canvas-music-pill,
.ig-canvas-loc-pill {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  z-index: 14;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ig-canvas-music-pill {
  top: 56px;
  left: 14px;
}

.ig-canvas-loc-pill {
  top: 92px;
  left: 14px;
}

.ig-pill-remove {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ig-pill-remove:hover {
  color: #ff3040;
}

/* In-Canvas Carousel Navigation */
.ig-canvas-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
}

.ig-canvas-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
}

.ig-canvas-nav-prev { left: 16px; }
.ig-canvas-nav-next { right: 16px; }

/* Studio Subtabs (Filters / Adjust / Ratio) */
.ig-studio-subtabs {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 15;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-studio-subtab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.ig-studio-subtab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ig-studio-subtab.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Filters Tray Overlay */
.ig-filters-tray-wrapper {
  position: absolute;
  bottom: 74px;
  left: 14px;
  right: 14px;
  z-index: 15;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.ig-filters-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}

.ig-filters-tray::-webkit-scrollbar {
  display: none;
}

.ig-filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  gap: 6px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-filter-card:hover {
  transform: translateY(-2px);
}

.ig-filter-preview {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background-color: #1a1a1a;
  background-image: url('../images/filter_sample.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-filter-card.active .ig-filter-preview {
  border-color: #ff6b00;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.6), 0 4px 14px rgba(0, 0, 0, 0.6);
}

.ig-filter-name {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.ig-filter-card.active .ig-filter-name {
  color: #ff9d00;
  font-weight: 600;
}

/* Filter CSS Presets - High fidelity */
.filter-normal { filter: none !important; }
.filter-clarendon { filter: contrast(1.25) saturate(1.35) brightness(1.05) !important; }
.filter-gingham { filter: brightness(1.1) hue-rotate(-10deg) sepia(0.25) contrast(0.95) !important; }
.filter-moon { filter: grayscale(1) contrast(1.3) brightness(1.1) !important; }
.filter-lark { filter: contrast(0.95) saturate(1.25) brightness(1.15) !important; }
.filter-reyes { filter: sepia(0.35) brightness(1.15) contrast(0.85) saturate(0.75) !important; }
.filter-juno { filter: contrast(1.2) saturate(1.4) hue-rotate(-12deg) !important; }
.filter-slumber { filter: saturate(0.6) brightness(1.05) sepia(0.35) contrast(0.9) !important; }
.filter-crema { filter: sepia(0.4) contrast(1.15) saturate(0.95) brightness(1.05) !important; }
.filter-golden { filter: sepia(0.45) saturate(1.6) contrast(1.15) brightness(1.1) !important; }
.filter-cyberpunk { filter: hue-rotate(185deg) saturate(1.8) contrast(1.35) brightness(1.05) !important; }
.filter-noir { filter: grayscale(1) contrast(1.8) brightness(0.85) !important; }

/* Adjustments Tray */
.ig-adjust-tray-wrapper {
  position: absolute;
  bottom: 74px;
  left: 14px;
  right: 14px;
  z-index: 15;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.ig-adjust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ig-adjust-item label {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
}

.ig-range-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
}

.ig-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff6b00;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.6);
}

.ig-btn-reset-adjust {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  padding: 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ig-btn-reset-adjust:hover {
  border-color: #ff3040;
  color: #ff3040;
}

/* Ratio Switcher */
.ig-ratio-tray-wrapper {
  position: absolute;
  bottom: 74px;
  left: 14px;
  right: 14px;
  z-index: 15;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

.ig-ratio-btns {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.ig-ratio-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  gap: 6px;
  transition: all 0.2s ease;
}

.ig-ratio-btn:hover {
  color: #ffffff;
}

.ig-ratio-box {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.ratio-4-5 { width: 20px; height: 25px; }
.ratio-1-1 { width: 22px; height: 22px; }
.ratio-9-16 { width: 16px; height: 28px; }
.ratio-orig { width: 24px; height: 18px; }

.ig-ratio-btn.active {
  color: #ff9d00;
}

.ig-ratio-btn.active .ig-ratio-box {
  border-color: #ff6b00;
  background: rgba(255, 107, 0, 0.2);
}

/* Bottom Thumbnails Strip */
.ig-create-thumbs-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ig-create-thumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.ig-create-thumbs-list::-webkit-scrollbar {
  display: none;
}

.ig-thumb-item {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  background: #111111;
  transition: all 0.2s ease;
}

.ig-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-thumb-item.active {
  border-color: #ff6b00;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.ig-thumb-video-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #1f1f1f;
  font-size: 14px;
}

.ig-thumb-delete {
  position: absolute;
  top: 1px;
  right: 1px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ig-thumb-delete:hover {
  background: #ff3040;
}

.ig-create-add-more-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ig-create-add-more-btn:hover {
  border-color: #ff9d00;
  color: #ff9d00;
  background: rgba(255, 107, 0, 0.1);
}

/* Floating Tools on Media */
.ig-create-canvas-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 16;
}

.ig-tool-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}

.ig-tool-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.ig-tool-btn.active {
  background: #ff6b00;
  border-color: #ff6b00;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.5);
}

.ig-tool-btn-danger:hover {
  background: #e11d48;
  border-color: #e11d48;
}

/* Right Metadata Sidebar - Sleek OLED Texture */
.ig-create-meta-sidebar {
  flex: 0.95;
  background: #000000;
  display: flex;
  flex-direction: column;
  padding: 22px;
  gap: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .ig-create-meta-sidebar {
    border-left: none;
  }
}

.ig-create-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-create-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff6b00;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.25);
}

.ig-create-author-info {
  display: flex;
  flex-direction: column;
}

.ig-create-author-name {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ig-create-badge-pill {
  font-size: 11px;
  color: #ff9d00;
  font-weight: 600;
}

.ig-create-caption-box {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ig-create-caption-box:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.ig-create-textarea {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  resize: none;
  width: 100%;
  line-height: 1.5;
}

.ig-create-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ig-create-caption-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 10px;
}

.ig-btn-emoji-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.ig-btn-emoji-toggle:hover {
  color: #ffffff;
}

.ig-create-char-counter {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.ig-create-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ig-meta-tool-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.ig-meta-tool-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.ig-meta-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ig-meta-tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ig-meta-active-badge {
  background: #ff9d00;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.ig-meta-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.ig-selected-music-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ig-music-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-btn-play-preview {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
}

.ig-music-info {
  display: flex;
  flex-direction: column;
}

.ig-music-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.ig-music-artist {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.ig-btn-remove-meta {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.ig-btn-remove-meta:hover {
  color: #ff3040;
}

.ig-create-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.ig-create-option-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.ig-create-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.ig-option-icon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.ig-create-option-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
}

.ig-create-option-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ig-option-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ig-create-select {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  padding: 6px 12px;
  outline: none;
  cursor: pointer;
}

.ig-create-select option {
  background: #111111;
  color: #ffffff;
}

/* Quick City Chips */
.ig-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ig-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ig-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Tagged Users Pills */
.ig-tagged-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ig-user-tag-pill {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: #ff9d00;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-tag-del {
  background: transparent;
  border: none;
  color: #ff9d00;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

/* Accordion */
.ig-create-accordion {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.ig-create-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.ig-create-accordion-header:hover {
  color: #ffffff;
}

.ig-accordion-chevron {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease;
}

.ig-accordion-chevron.rotated {
  transform: rotate(180deg);
}

.ig-create-accordion-body {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}

.ig-setting-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-setting-info {
  display: flex;
  flex-direction: column;
}

.ig-setting-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ig-setting-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* Progress bar */
.ig-create-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ig-create-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.ig-create-progress-text {
  font-size: 11px;
  color: #ff9d00;
  font-weight: 600;
  text-align: center;
}

/* Music Modal */
.ig-dark-modal-content {
  background: #0d0d0d !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9) !important;
}

.ig-dark-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 16px 20px !important;
}

.ig-music-search-box {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 10px;
}

.ig-music-search-icon {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.ig-music-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.ig-music-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.ig-music-list {
  max-height: 340px;
  overflow-y: auto;
}

.ig-music-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.ig-music-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ig-music-play-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.ig-music-play-btn:hover {
  background: #ff6b00;
  border-color: #ff6b00;
  transform: scale(1.08);
}

.ig-music-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: 12px;
}

.ig-track-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ig-track-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.ig-btn-use-track {
  background: linear-gradient(135deg, #ff8a00 0%, #e52e71 100%);
  color: #ffffff;
  border: none;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ig-btn-use-track:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}


/* Timeline Feed Header Overlay Meta (Location & Audio) */
.location-track-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.location-icon {
  font-size: 10px;
  color: #ff3040;
}

.location-text {
  font-size: 11px;
  color: #d1d5db;
  font-weight: 500;
}


/* ==========================================================================
   INSTAGRAM 2026 CREATION STUDIO PRO SUITE (FILTERS, MUSIC, LOC, TAGS)
   ========================================================================== */

/* Studio Subtabs (Filters / Adjust / Ratio) */
.ig-studio-subtabs {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 12;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ig-studio-subtab {
  background: transparent;
  border: none;
  color: #a8a8a8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.ig-studio-subtab:hover {
  color: #ffffff;
}

.ig-studio-subtab.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Floating Music & Location Pills on Canvas */
.ig-canvas-music-pill,
.ig-canvas-loc-pill {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-canvas-music-pill {
  top: 52px;
  left: 14px;
}

.ig-canvas-loc-pill {
  top: 86px;
  left: 14px;
}

.ig-pill-remove {
  background: transparent;
  border: none;
  color: #a8a8a8;
  font-size: 14px;
  line-height: 1;
  padding: 0 0 0 4px;
  cursor: pointer;
}
.ig-pill-remove:hover {
  color: #ff3040;
}

/* Filters Tray Overlay */
.ig-filters-tray-wrapper {
  position: absolute;
  bottom: 68px;
  left: 12px;
  right: 12px;
  z-index: 11;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-filters-tray {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ig-filters-tray::-webkit-scrollbar {
  display: none;
}

.ig-filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  gap: 4px;
}

.ig-filter-preview {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-color: #262626;
  background-image: linear-gradient(135deg, #4f46e5 0%, #ec4899 50%, #f59e0b 100%);
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.ig-filter-card.active .ig-filter-preview {
  border-color: #0095f6;
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(0, 149, 246, 0.5);
}

.ig-filter-name {
  font-size: 10px;
  font-weight: 600;
  color: #a8a8a8;
  white-space: nowrap;
}

.ig-filter-card.active .ig-filter-name {
  color: #0095f6;
}

/* Filter CSS Presets */
.filter-normal { filter: none !important; }
.filter-clarendon { filter: contrast(1.2) saturate(1.25) brightness(1.05) !important; }
.filter-gingham { filter: brightness(1.05) hue-rotate(-10deg) sepia(0.2) !important; }
.filter-moon { filter: grayscale(1) contrast(1.2) brightness(1.1) !important; }
.filter-lark { filter: contrast(1.1) brightness(1.15) saturate(1.1) !important; }
.filter-reyes { filter: sepia(0.35) brightness(1.15) contrast(0.9) saturate(0.85) !important; }
.filter-juno { filter: contrast(1.15) saturate(1.4) hue-rotate(-5deg) !important; }
.filter-slumber { filter: saturate(0.66) brightness(1.05) sepia(0.35) !important; }
.filter-crema { filter: contrast(0.9) brightness(1.1) saturate(0.9) sepia(0.2) !important; }
.filter-golden { filter: sepia(0.4) saturate(1.5) contrast(1.1) brightness(1.05) !important; }
.filter-cyberpunk { filter: hue-rotate(180deg) saturate(1.6) contrast(1.2) !important; }
.filter-noir { filter: grayscale(1) contrast(1.6) brightness(0.9) !important; }

/* Adjustments Tray */
.ig-adjust-tray-wrapper {
  position: absolute;
  bottom: 68px;
  left: 12px;
  right: 12px;
  z-index: 11;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-adjust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ig-adjust-item label {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #dbdbdb;
  margin-bottom: 4px;
}

.ig-range-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: #333333;
  border-radius: 2px;
  outline: none;
}
.ig-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0095f6;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 149, 246, 0.6);
}

.ig-btn-reset-adjust {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #a8a8a8;
  font-size: 11px;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
}
.ig-btn-reset-adjust:hover {
  border-color: #ff3040;
  color: #ff3040;
}

/* Ratio Switcher */
.ig-ratio-tray-wrapper {
  position: absolute;
  bottom: 68px;
  left: 12px;
  right: 12px;
  z-index: 11;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ig-ratio-btns {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.ig-ratio-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
  color: #a8a8a8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  gap: 6px;
  transition: all 0.2s ease;
}

.ig-ratio-box {
  border: 2px solid #555555;
  border-radius: 3px;
}
.ratio-4-5 { width: 20px; height: 25px; }
.ratio-1-1 { width: 22px; height: 22px; }
.ratio-9-16 { width: 16px; height: 28px; }
.ratio-orig { width: 24px; height: 18px; }

.ig-ratio-btn.active {
  color: #0095f6;
}
.ig-ratio-btn.active .ig-ratio-box {
  border-color: #0095f6;
  background: rgba(0, 149, 246, 0.2);
}

/* Music Tool Card & Selected Strip */
.ig-meta-tool-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ig-meta-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ig-meta-tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ig-meta-active-badge {
  background: #ff9d00;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.ig-meta-arrow {
  font-size: 12px;
  color: #737373;
}

.ig-selected-music-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: 8px;
  border-left: 3px solid #ff9d00;
}

.ig-music-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ig-btn-play-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff9d00;
  border: none;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}

.ig-music-info {
  display: flex;
  flex-direction: column;
}

.ig-music-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.ig-music-artist {
  font-size: 10px;
  color: #a8a8a8;
}

.ig-btn-remove-meta {
  background: transparent;
  border: none;
  color: #737373;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ig-btn-remove-meta:hover {
  color: #ff3040;
}

/* Quick City Chips */
.ig-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ig-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dbdbdb;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ig-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Tagged Users Pills */
.ig-tagged-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ig-user-tag-pill {
  background: rgba(0, 149, 246, 0.15);
  border: 1px solid rgba(0, 149, 246, 0.4);
  color: #0095f6;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-tag-del {
  background: transparent;
  border: none;
  color: #0095f6;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

/* Music Modal Styling */
.ig-dark-modal-content {
  background: #181818 !important;
  border: 1px solid #2e2e2e !important;
  border-radius: 16px !important;
  color: #ffffff !important;
}

.ig-dark-modal-header {
  border-bottom: 1px solid #282828 !important;
  padding: 14px 20px !important;
}

.ig-music-search-box {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #282828;
  gap: 10px;
}

.ig-music-search-icon {
  color: #737373;
  font-size: 14px;
}

.ig-music-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  outline: none;
}

.ig-music-list {
  max-height: 340px;
  overflow-y: auto;
}

.ig-music-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.ig-music-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ig-music-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #262626;
  border: 1px solid #363636;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}
.ig-music-play-btn:hover {
  background: #ff9d00;
  color: #000000;
}

.ig-music-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ig-track-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.ig-track-meta {
  font-size: 11px;
  color: #8e8e8e;
}

.ig-btn-use-track {
  background: #0095f6;
  color: #ffffff;
  border: none;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ig-btn-use-track:hover {
  background: #1877f2;
}

/* Timeline Feed Header Overlay Meta (Location & Audio) */
.location-track-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.location-icon {
  font-size: 10px;
  color: #ff3040;
}

.location-text {
  font-size: 11px;
  color: #d1d5db;
  font-weight: 500;
}

/* ==========================================================================
   INSTAGRAM 2026 DARK STORY VIEWER & TRAY STYLES
   ========================================================================== */

/* Stories Tray in Feed */
.stories-wrapper {
  padding: 12px 16px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
.stories-wrapper::-webkit-scrollbar {
  display: none !important;
}

#stories {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 4px 2px !important;
}

#stories .story {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

#stories .story > .item-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  gap: 6px !important;
}

#stories .story > .item-link > .item-preview {
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  padding: 2.5px !important;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease !important;
}

#stories .story:hover > .item-link > .item-preview {
  transform: scale(1.05) !important;
}

#stories .story.seen > .item-link > .item-preview {
  background: #383838 !important;
}

#stories .story > .item-link > .item-preview img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  border: 2px solid #000000 !important;
  object-fit: cover !important;
  display: block !important;
}

#stories .story > .item-link > .info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  max-width: 72px !important;
}

#stories .story > .item-link > .info .name {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #f5f5f5 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 70px !important;
  text-align: center !important;
}

#stories .story > .item-link > .info .time {
  display: none !important;
}

/* Add Story Button in Tray */
.add-story {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.add-story .img {
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  background-size: cover !important;
  background-position: center !important;
  border: 2px solid #262626 !important;
  position: relative !important;
}

.add-story .add {
  position: absolute !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 22px !important;
  height: 22px !important;
  background: #0095f6 !important;
  border: 2px solid #000000 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

.add-story .add svg {
  fill: #ffffff !important;
  width: 12px !important;
  height: 12px !important;
}

/* Zuck Modal Story Viewer (Dark 2026 Overlay) */
#zuck-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.94) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#zuck-modal-content {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#zuck-modal-content .story-viewer {
  width: 100% !important;
  max-width: 420px !important;
  height: 90vh !important;
  max-height: 840px !important;
  background: #121212 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 576px) {
  #zuck-modal-content .story-viewer {
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
}

#zuck-modal-content .story-viewer .head {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 16px 14px 28px 14px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%) !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

#zuck-modal-content .story-viewer .head .left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}

#zuck-modal-content .story-viewer .head .left .img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background-size: cover !important;
  background-position: center !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
}

#zuck-modal-content .story-viewer .head .left .info {
  display: flex !important;
  flex-direction: column !important;
}

#zuck-modal-content .story-viewer .head .left .info .name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}

#zuck-modal-content .story-viewer .head .left .info .time {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

#zuck-modal-content .story-viewer .head .right .close {
  width: 32px !important;
  height: 32px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

#zuck-modal-content .story-viewer .head .right .close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

#zuck-modal-content .story-viewer .slides {
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
}

#zuck-modal-content .story-viewer .slides .slide {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #000000 !important;
}

#zuck-modal-content .story-viewer .slides .slide img,
#zuck-modal-content .story-viewer .slides .slide video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Progress Bars */
#zuck-modal-content .story-viewer .head .progress {
  position: absolute !important;
  top: 8px !important;
  left: 12px !important;
  right: 12px !important;
  display: flex !important;
  gap: 4px !important;
  background: transparent !important;
  height: 2.5px !important;
}

#zuck-modal-content .story-viewer .head .progress .progress-bar {
  flex: 1 !important;
  height: 100% !important;
  background: rgba(255, 255, 255, 0.35) !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  position: relative !important;
}

#zuck-modal-content .story-viewer .head .progress .progress-bar .progress-fill {
  background: #ffffff !important;
  height: 100% !important;
  width: 0%;
  border-radius: 2px !important;
}



/* ==========================================================================
   INSTAGRAM 2026 VISUAL CSS FILTERS & CREATOR STUDIO
   ========================================================================== */
.filter-normal { filter: none !important; }
.filter-clarendon { filter: contrast(1.2) saturate(1.3) !important; }
.filter-gingham { filter: brightness(1.05) hue-rotate(-10deg) sepia(0.1) !important; }
.filter-juno { filter: contrast(1.15) saturate(1.4) sepia(0.15) !important; }
.filter-lark { filter: contrast(0.95) brightness(1.15) saturate(1.15) !important; }
.filter-moon { filter: grayscale(1) contrast(1.15) brightness(1.1) !important; }
.filter-valencia { filter: sepia(0.25) contrast(1.1) brightness(1.08) !important; }
.filter-slumber { filter: saturate(0.7) brightness(1.05) sepia(0.3) !important; }

.ig-preview-stage.ratio-1-1 { aspect-ratio: 1 / 1; }
.ig-preview-stage.ratio-4-5 { aspect-ratio: 4 / 5; }
.ig-preview-stage.ratio-16-9 { aspect-ratio: 16 / 9; }

.ig-filter-thumb.active > div {
  border-color: #0095f6 !important;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.4);
}

.custom-scrollbar::-webkit-scrollbar { height: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #363636; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* Reels Snap Scrolling Viewport */
.reels-scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  height: 100dvh;
}
.reel-item-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  height: 100dvh;
}

/* Monetization Paywall Overlay */
.ig-paywall-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
}


/* ==========================================================================
   INSTAGRAM 2026 VISUAL CSS FILTERS & CREATOR STUDIO
   ========================================================================== */
.filter-normal { filter: none !important; }
.filter-clarendon { filter: contrast(1.2) saturate(1.3) !important; }
.filter-gingham { filter: brightness(1.05) hue-rotate(-10deg) sepia(0.1) !important; }
.filter-juno { filter: contrast(1.15) saturate(1.4) sepia(0.15) !important; }
.filter-lark { filter: contrast(0.95) brightness(1.15) saturate(1.15) !important; }
.filter-moon { filter: grayscale(1) contrast(1.15) brightness(1.1) !important; }
.filter-valencia { filter: sepia(0.25) contrast(1.1) brightness(1.08) !important; }
.filter-slumber { filter: saturate(0.7) brightness(1.05) sepia(0.3) !important; }

.ig-preview-stage.ratio-1-1 { aspect-ratio: 1 / 1; }
.ig-preview-stage.ratio-4-5 { aspect-ratio: 4 / 5; }
.ig-preview-stage.ratio-16-9 { aspect-ratio: 16 / 9; }

.ig-filter-thumb.active > div {
  border-color: #0095f6 !important;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.4);
}

.custom-scrollbar::-webkit-scrollbar { height: 4px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #363636; border-radius: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* Reels Snap Scrolling Viewport */
.reels-scroll-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
  height: 100dvh;
}
.reel-item-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  height: 100dvh;
}

/* Monetization Paywall Overlay */
.ig-paywall-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border-radius: 12px;
}


/* ==========================================================================
   DEMUREGRAM / INSTAGRAM 2026 DARK SETTINGS 2-COLUMN EXPERIENCE
   ========================================================================== */

/* Main Container & Page Alignment */
.sg-offcanvas,
body.page-settings .container,
body.page-settings .container-fluid {
  max-width: 1200px !important;
  margin: 20px auto 60px auto !important;
}

@media (min-width: 768px) {
  body.page-settings .sg-offcanvas,
  body.page-settings .container,
  body.page-settings .container-fluid {
    padding-left: 90px !important;
    padding-right: 24px !important;
  }

  /* Force side-by-side 2-column layout (Sidebar Left + Content Top-Right) */
  .sg-offcanvas .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin: 0 !important;
  }

  .sg-offcanvas-sidebar {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 280px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: sticky !important;
    top: 24px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sg-offcanvas-mainbar {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 767px) {
  .sg-offcanvas .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
  }

  .sg-offcanvas-sidebar,
  .sg-offcanvas-mainbar {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }
}

/* Settings Cards & Panels */
.sg-offcanvas-sidebar .card,
.sg-offcanvas-mainbar .card {
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #f4f4f5 !important;
  margin-bottom: 0 !important;
}

.sg-offcanvas-mainbar .card-header,
.sg-offcanvas-sidebar .card-header {
  background: #121215 !important;
  border-bottom: 1px solid #27272a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 16px 20px !important;
  display: flex;
  align-items: center;
}

.sg-offcanvas-mainbar .card-body {
  padding: 24px !important;
  background: #18181b !important;
  color: #f4f4f5 !important;
}

.sg-offcanvas-mainbar .card-footer {
  background: #121215 !important;
  border-top: 1px solid #27272a !important;
  padding: 16px 24px !important;
}

/* Left Sidebar Navigation (side-nav) */
.side-nav {
  list-style: none;
  padding: 8px !important;
  margin: 0 !important;
}

.side-nav > li {
  margin-bottom: 4px;
}

.side-nav > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  color: #a1a1aa !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.side-nav > li > a:hover {
  background: #27272a !important;
  color: #ffffff !important;
}

.side-nav > li.active > a {
  background: #0095f6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 149, 246, 0.3);
}

.side-nav > li.active > a .main-icon,
.side-nav > li.active > a svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.side-nav .collapse {
  padding-left: 28px;
  margin-top: 4px;
}

.side-nav .collapse ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav .collapse ul li a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: #71717a;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.side-nav .collapse ul li a:hover {
  color: #ffffff;
  background: #27272a;
}

.side-nav .collapse ul li.active a {
  color: #0095f6;
  font-weight: 700;
  background: rgba(0, 149, 246, 0.1);
}

/* Form Controls, Inputs, Labels & Groups */
.form-label,
label.form-label,
.sg-offcanvas-mainbar label {
  color: #e4e4e7 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  margin-bottom: 6px;
}

.heading-small {
  color: #0095f6 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.form-control,
.form-select,
.input-group-text {
  background-color: #121215 !important;
  border: 1px solid #333338 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #0095f6 !important;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.25) !important;
  background-color: #121215 !important;
  color: #ffffff !important;
}

.input-group-text {
  background-color: #202024 !important;
  color: #a1a1aa !important;
  border-color: #333338 !important;
}

.form-text,
.form-text-muted,
.form-text.text-muted,
small.form-text {
  color: #a1a1aa !important;
  font-size: 11.5px !important;
}

.divider {
  border-top: 1px solid #27272a !important;
  margin: 20px 0 !important;
}

.form-check-label {
  color: #e4e4e7 !important;
  font-size: 13px !important;
}

/* Tables inside settings */
.sg-offcanvas-mainbar .table {
  color: #f4f4f5 !important;
  border-color: #27272a !important;
}

.sg-offcanvas-mainbar .table th {
  background-color: #121215 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

.sg-offcanvas-mainbar .table td {
  border-color: #27272a !important;
  color: #f4f4f5 !important;
}

/* ==========================================================================
   MODAL & OVERLAY CLICK-BLOCKING PREVENTION FIX
   ========================================================================== */
#publisher-modal {
  display: none !important;
  pointer-events: none !important;
}
#publisher-modal.flex {
  display: flex !important;
  pointer-events: auto !important;
}

#zuck-modal {
  display: none !important;
  pointer-events: none !important;
}
#zuck-modal.show,
#zuck-modal.active,
#zuck-modal[style*="display: flex"],
#zuck-modal[style*="display: block"] {
  display: flex !important;
  pointer-events: auto !important;
}

.story-viewport-overlay {
  display: none !important;
  pointer-events: none !important;
}
.story-viewport-overlay.active,
.story-viewport-overlay.show {
  display: flex !important;
  pointer-events: auto !important;
}

.hidden,
.x-hidden,
[hidden] {
  display: none !important;
}


/* ==========================================================================
   DEMUREGRAM / INSTAGRAM 2026 DARK SETTINGS 2-COLUMN EXPERIENCE
   ========================================================================== */

/* Main Container & Page Alignment */
.sg-offcanvas,
body.page-settings .container,
body.page-settings .container-fluid {
  max-width: 1200px !important;
  margin: 20px auto 60px auto !important;
}

@media (min-width: 768px) {
  body.page-settings .sg-offcanvas,
  body.page-settings .container,
  body.page-settings .container-fluid {
    padding-left: 90px !important;
    padding-right: 24px !important;
  }

  /* Force side-by-side 2-column layout (Sidebar Left + Content Top-Right) */
  .sg-offcanvas .row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin: 0 !important;
  }

  .sg-offcanvas-sidebar {
    flex: 0 0 260px !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 280px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: sticky !important;
    top: 24px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sg-offcanvas-mainbar {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 767px) {
  .sg-offcanvas .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
  }

  .sg-offcanvas-sidebar,
  .sg-offcanvas-mainbar {
    width: 100% !important;
    min-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }
}

/* Settings Cards & Panels */
.sg-offcanvas-sidebar .card,
.sg-offcanvas-mainbar .card {
  background: #18181b !important;
  border: 1px solid #27272a !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #f4f4f5 !important;
  margin-bottom: 0 !important;
}

.sg-offcanvas-mainbar .card-header,
.sg-offcanvas-sidebar .card-header {
  background: #121215 !important;
  border-bottom: 1px solid #27272a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 16px 20px !important;
  display: flex;
  align-items: center;
}

.sg-offcanvas-mainbar .card-body {
  padding: 24px !important;
  background: #18181b !important;
  color: #f4f4f5 !important;
}

.sg-offcanvas-mainbar .card-footer {
  background: #121215 !important;
  border-top: 1px solid #27272a !important;
  padding: 16px 24px !important;
}

/* Left Sidebar Navigation (side-nav) */
.side-nav {
  list-style: none;
  padding: 8px !important;
  margin: 0 !important;
}

.side-nav > li {
  margin-bottom: 4px;
}

.side-nav > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  color: #a1a1aa !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.side-nav > li > a:hover {
  background: #27272a !important;
  color: #ffffff !important;
}

.side-nav > li.active > a {
  background: #0095f6 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 149, 246, 0.3);
}

.side-nav > li.active > a .main-icon,
.side-nav > li.active > a svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.side-nav .collapse {
  padding-left: 28px;
  margin-top: 4px;
}

.side-nav .collapse ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav .collapse ul li a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: #71717a;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.side-nav .collapse ul li a:hover {
  color: #ffffff;
  background: #27272a;
}

.side-nav .collapse ul li.active a {
  color: #0095f6;
  font-weight: 700;
  background: rgba(0, 149, 246, 0.1);
}

/* Form Controls, Inputs, Labels & Groups */
.form-label,
label.form-label,
.sg-offcanvas-mainbar label {
  color: #e4e4e7 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  margin-bottom: 6px;
}

.heading-small {
  color: #0095f6 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.form-control,
.form-select,
.input-group-text {
  background-color: #121215 !important;
  border: 1px solid #333338 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #0095f6 !important;
  box-shadow: 0 0 0 2px rgba(0, 149, 246, 0.25) !important;
  background-color: #121215 !important;
  color: #ffffff !important;
}

.input-group-text {
  background-color: #202024 !important;
  color: #a1a1aa !important;
  border-color: #333338 !important;
}

.form-text,
.form-text-muted,
.form-text.text-muted,
small.form-text {
  color: #a1a1aa !important;
  font-size: 11.5px !important;
}

.divider {
  border-top: 1px solid #27272a !important;
  margin: 20px 0 !important;
}

.form-check-label {
  color: #e4e4e7 !important;
  font-size: 13px !important;
}

/* Tables inside settings */
.sg-offcanvas-mainbar .table {
  color: #f4f4f5 !important;
  border-color: #27272a !important;
}

.sg-offcanvas-mainbar .table th {
  background-color: #121215 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

.sg-offcanvas-mainbar .table td {
  border-color: #27272a !important;
  color: #f4f4f5 !important;
}

/* ==========================================================================
   MODAL & OVERLAY CLICK-BLOCKING PREVENTION FIX
   ========================================================================== */
#publisher-modal {
  display: none !important;
  pointer-events: none !important;
}
#publisher-modal.flex {
  display: flex !important;
  pointer-events: auto !important;
}

#zuck-modal {
  display: none !important;
  pointer-events: none !important;
}
#zuck-modal.show,
#zuck-modal.active,
#zuck-modal[style*="display: flex"],
#zuck-modal[style*="display: block"] {
  display: flex !important;
  pointer-events: auto !important;
}

.story-viewport-overlay {
  display: none !important;
  pointer-events: none !important;
}
.story-viewport-overlay.active,
.story-viewport-overlay.show {
  display: flex !important;
  pointer-events: auto !important;
}

.hidden,
.x-hidden,
[hidden] {
  display: none !important;
}