.ig-post {
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
  color: var(--ig-text);
  font-size: 14px;
}

.ig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.ig-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ig-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--surface-low);
}

.ig-bar {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
}

.ig-bar-l {
  display: flex;
  gap: 14px;
}

.ig-likes {
  padding: 0 14px;
  font-weight: 700;
  font-size: 14px;
}

.ig-caption {
  padding: 4px 14px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.ig-cap-u {
  font-weight: 600;
}

.ig-tags {
  color: var(--ig-link);
}

.ig-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-low);
}

.ig-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-brand-logo {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ig-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ig-prod-tag {
  position: absolute;
  bottom: 70px;
  left: 16px;
  right: 80px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.ig-prod-tag strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.ig-prod-tag span {
  opacity: 0.8;
  font-size: 11px;
}

.ig-prod-tag .conv-chip-row {
  margin-top: 8px;
}

.ig-prod-tag .conv-chip {
  font-size: 9px;
  padding: 4px 7px;
}

.ig-cta-zone {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--coral), #f3b39f);
  color: #172133;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(239, 134, 113, 0.4);
}

.ig-guide-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ig-guide-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.ig-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-low);
}

.ig-carousel .ig-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-carousel .ig-slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s;
}

.ig-carousel:hover .ig-carousel-nav {
  opacity: 1;
}

.ig-carousel-nav.prev {
  left: 8px;
}

.ig-carousel-nav.next {
  right: 8px;
}

.ig-carousel-nav .material-symbols-outlined {
  font-size: 18px;
  color: #222;
}

.ig-carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  z-index: 2;
}

.ig-dots {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 8px 0;
}

.ig-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ig-border);
  transition: background 0.25s;
}

.ig-dot.active {
  background: #0095f6;
}

.ig-reel {
  width: 240px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background: #000;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
}

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

.ig-reel-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.65) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
  font-size: 12px;
}

.ig-reel-u {
  font-weight: 700;
  font-size: 14px;
}

.ig-reel-sb {
  position: absolute;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  color: #fff;
}

.ig-reel-sb .material-symbols-outlined {
  font-size: 24px;
}

.ig-reel-sb span:not(.material-symbols-outlined) {
  font-size: 10px;
  font-weight: 600;
}

.ig-reel-copy {
  font-size: 12px;
  line-height: 1.45;
}

.ig-reel-ov .conv-chip-row {
  margin-bottom: 10px;
}

.ig-reel-ov .conv-stat-rail {
  margin-top: 10px;
}

.ig-story {
  width: 140px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.ig-story::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  z-index: -1;
}

.ig-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-story-u {
  position: absolute;
  top: 12px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 11px;
}

.ig-story-u .av {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
}

.ig-profile {
  max-width: 420px;
  background: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ig-text);
  font-size: 14px;
}

.ig-profile-hdr {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.ig-profile-pic {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--ig-bg), var(--ig-bg)), linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.ig-profile-pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.ig-profile-stats {
  display: flex;
  gap: 20px;
  flex: 1;
}

.ig-stat {
  text-align: center;
}

.ig-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.ig-stat span {
  font-size: 12px;
  color: var(--ig-text);
}

.ig-profile-bio {
  padding: 0 24px 16px;
  font-size: 13px;
  line-height: 1.4;
}

.ig-profile-bio strong {
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

.ig-profile-bio span {
  color: var(--ig-link);
  font-weight: 600;
}

.ig-profile-tabs {
  display: flex;
  border-top: 1px solid var(--ig-border);
}

.ig-profile-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  color: var(--ig-text);
  opacity: 0.4;
  border-top: 2px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
}

.ig-profile-tab.active {
  opacity: 1;
  border-top-color: var(--ig-text);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ig-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-low);
}

.ig-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s, filter 0.35s;
}

.ig-grid-item:hover img {
  transform: scale(1.05);
}

.ig-grid-item .ig-grid-ov {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.25s;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.ig-grid-item:hover .ig-grid-ov {
  opacity: 1;
}

.ig-grid-ov-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ig-grid-item.reel::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M10 20H5V4h15v16h-5l-2.5-2.5L10 20zm-3-2h2.17l2.83 2.83L14.83 18H18V6H7v12z'/%3E%3Cpath d='M10.5 8.5l6 3.5-6 3.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ig-expand {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: igFadeIn 0.3s ease;
}

.ig-expand.active {
  display: flex;
}

@keyframes igFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ig-expand-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  background: var(--ig-bg);
  border-radius: 8px;
  overflow: hidden;
  color: var(--ig-text);
  font-size: 14px;
  animation: igSlideUp 0.35s ease;
}

@keyframes igSlideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .ig-expand-inner {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
}

.ig-expand-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--surface-low);
}

.ig-expand-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ig-expand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ig-border);
}

.ig-expand-head .ig-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  flex: 1;
}

.ig-expand-caption {
  padding: 16px;
  flex: 1;
  line-height: 1.55;
  font-size: 14px;
  overflow-y: auto;
}

.ig-expand-caption .ig-cap-u {
  font-weight: 600;
}

.ig-expand-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.ig-expand-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.ig-expand-bar {
  padding: 10px 16px;
  border-top: 1px solid var(--ig-border);
  display: flex;
  justify-content: space-between;
}

.ig-expand-bar .ig-bar-l {
  display: flex;
  gap: 14px;
}

.ig-expand-product {
  padding: 14px 16px;
  border-top: 1px solid var(--ig-border);
  background: rgba(0, 132, 113, 0.04);
}

.ig-expand-product a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ig-text);
  padding: 10px;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.ig-expand-product a:hover {
  border-color: var(--coral);
}

.ig-expand-product img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ig-expand-product .ig-prod-name {
  font-weight: 700;
  font-size: 13px;
}

.ig-expand-product .ig-prod-price {
  font-size: 12px;
  color: var(--teal);
  font-weight: 700;
}

.ig-text-post {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
}

.ig-text-post.grad-sunset {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #f09433 100%);
}

.ig-text-post.grad-ocean {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.ig-text-post.grad-mint {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ig-text-post.grad-midnight {
  background: linear-gradient(135deg, #0c0c1d 0%, #1a1a4e 50%, #495487 100%);
}

.ig-text-post.grad-warm {
  background: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
}

.ig-text-post.grad-editorial {
  background: linear-gradient(135deg, var(--navy) 0%, #6370a8 50%, var(--coral) 100%);
}

.ig-text-post .brand-watermark {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.85;
  font-family: var(--font-body);
}

.ig-text-post .brand-watermark .av {
  width: 22px;
  height: 22px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.ig-text-post h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 8px;
  max-width: 280px;
}

.ig-text-post p {
  font-size: 0.75rem;
  font-family: var(--font-body);
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  max-width: 260px;
  line-height: 1.45;
}

.ig-text-post .ig-text-cta {
  margin-top: 14px;
  padding: 6px 20px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.ig-text-post .ig-text-cta:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ig-filter-post {
  position: relative;
  max-width: 420px;
  overflow: hidden;
  border-radius: 8px;
}

.ig-filter-post img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.ig-filter-post.filter-clarendon img {
  filter: contrast(1.2) saturate(1.35) brightness(1.05);
}

.ig-filter-post.filter-gingham img {
  filter: brightness(1.05) hue-rotate(-10deg) sepia(0.08);
}

.ig-filter-post.filter-gingham::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 230, 250, 0.12), transparent);
  pointer-events: none;
}

.ig-filter-post.filter-juno img {
  filter: contrast(1.15) saturate(1.8) brightness(0.98);
}

.ig-filter-post.filter-lark img {
  filter: contrast(0.9) brightness(1.18) saturate(0.85);
}

.ig-filter-post.filter-valencia img {
  filter: contrast(1.08) brightness(1.08) sepia(0.08);
}

.ig-filter-post.filter-valencia::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 175, 56, 0.08);
  pointer-events: none;
}

.ig-filter-post.filter-xpro2 img {
  filter: contrast(1.25) saturate(1.3) sepia(0.15);
}

.ig-filter-post.filter-xpro2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.ig-filter-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.ig-text-ov-post {
  position: relative;
  max-width: 420px;
  overflow: hidden;
  border-radius: 8px;
}

.ig-text-ov-post img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: brightness(0.55) contrast(1.1);
}

.ig-text-ov-post .ig-text-ov-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: #fff;
}

.ig-text-ov-post .ig-text-ov-content h4 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  margin-bottom: 6px;
}

.ig-text-ov-post .ig-text-ov-content p {
  font-size: 0.75rem;
  opacity: 0.9;
  max-width: 250px;
  line-height: 1.4;
}

.ig-text-ov-post .ig-text-ov-content .ig-text-cta {
  margin-top: 10px;
  padding: 5px 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.08);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.variant-grid .mkbox {
  width: 100%;
}

.variant-grid .ig-text-post {
  aspect-ratio: 1;
  border-radius: 8px;
}

@media (max-width: 600px) {
  .variant-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.filter-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.filter-strip .ig-filter-post {
  width: 120px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.filter-strip .ig-filter-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.filter-strip .ig-filter-post img {
  aspect-ratio: 1;
}

/* ═══ Formats Row Layout ═══ */
.ig-formats-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ig-formats-row > .mkbox {
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 420px;
}

@media (max-width: 860px) {
  .ig-formats-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ig-formats-row > .mkbox {
    max-width: 100%;
  }
}

/* ═══ Profile Grid Blocks ═══ */
.ig-profile-grids-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .ig-profile-grids-row {
    grid-template-columns: 1fr;
  }
}

.ig-profile-grid-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ig-profile-grid-block .ig-profile {
  max-width: 100%;
}

.ig-profile-grid-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-left: 2px;
}

/* ═══ Post Type Badges (on grid items) ═══ */
.ig-grid-type-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.ig-grid-item:hover .ig-grid-type-badge {
  opacity: 0;
}

.ig-grid-type-badge .material-symbols-outlined {
  font-size: 14px;
  color: #fff;
}

/* Post type highlight borders */
.ig-grid-item.post-square {
  border: 0 solid transparent;
  position: relative;
}

.ig-grid-item.post-square::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0095f6;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-grid-item.post-square:hover::before {
  opacity: 1;
}

.ig-grid-item.post-portrait::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #a855f7;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-grid-item.post-portrait:hover::before {
  opacity: 1;
}

.ig-grid-item.post-carousel::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f59e0b;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-grid-item.post-carousel:hover::before {
  opacity: 1;
}

/* ═══ Reel Thumbnail Badge ═══ */
.ig-reel-thumb-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 2px 7px 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  transition: opacity 0.25s;
}

.ig-grid-item:hover .ig-reel-thumb-badge {
  opacity: 0;
}

.ig-reel-thumb-badge .material-symbols-outlined {
  font-size: 14px;
}

.ig-reel-views {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Reels grid — taller aspect ratio */
.ig-grid-reels .ig-grid-item {
  aspect-ratio: 9 / 16;
}

/* Reel type highlight borders */
.ig-grid-item.reel-short::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ef4444;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-grid-item.reel-short:hover::before {
  opacity: 1;
}

.ig-grid-item.reel-portrait::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #8b5cf6;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-grid-item.reel-portrait:hover::before {
  opacity: 1;
}

.ig-grid-item.reel-video::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #06b6d4;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.ig-grid-item.reel-video:hover::before {
  opacity: 1;
}

/* ═══ Grid Legend ═══ */
.ig-grid-legend {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.625rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ig-grid-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.ig-grid-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══ Guidelines Grid (replaces cgrid for Visual Guidelines) ═══ */
.ig-guidelines-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 700px) {
  .ig-guidelines-grid {
    grid-template-columns: 1fr;
  }
}

.ig-guidelines-grid .sc {
  margin-bottom: 0;
}

/* ═══ Enhanced Profile Header ═══ */
.ig-profile-hdr-enhanced {
  padding: 20px 20px 12px;
}

.ig-profile-pic-lg {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3px solid transparent;
  background-image: linear-gradient(var(--ig-bg), var(--ig-bg)),
    linear-gradient(
      135deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%
    );
  background-origin: border-box;
  background-clip: padding-box, border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
  box-shadow: 0 0 0 2px var(--ig-bg), 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ig-profile-pic-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* ═══ Profile Action Buttons ═══ */
.ig-profile-actions {
  display: flex;
  gap: 6px;
  padding: 0 20px 14px;
}

.ig-profile-btn {
  flex: 1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  background: var(--surface-ctr);
  color: var(--ig-text);
  transition: all 0.2s;
}

.ig-profile-btn:hover {
  filter: brightness(0.92);
}

.ig-profile-btn-primary {
  background: #0095f6;
  color: #fff;
}

.ig-profile-btn-primary:hover {
  background: #0081d6;
  filter: none;
}

.ig-profile-btn-icon {
  flex: 0 0 32px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══ Story Highlights ═══ */
.ig-highlights {
  display: flex;
  gap: 14px;
  padding: 8px 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ig-highlights::-webkit-scrollbar {
  display: none;
}

.ig-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ig-highlight span {
  font-size: 10px;
  font-weight: 500;
  max-width: 58px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  color: var(--ig-text);
}

.ig-highlight-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.ig-highlight-ring:hover {
  transform: scale(1.08);
}

.ig-highlight-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ig-bg);
}

.ig-highlight-ring-add {
  background: none;
  border: 2px dashed var(--ig-border);
  padding: 0;
}

.ig-highlight-ring-add:hover {
  border-color: var(--text-dim);
}

/* ═══ Thumbnail Gradient Overlay (Posts) ═══ */
.ig-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(0, 0, 0, 0.08) 55%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ig-grid-item:hover .ig-thumb-gradient {
  opacity: 0;
}

/* ═══ Thumbnail Info (Product Name + CTA — Posts) ═══ */
.ig-thumb-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ig-grid-item:hover .ig-thumb-info {
  opacity: 0;
}

.ig-thumb-title {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-thumb-cta {
  font-size: 7.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ═══ Thumbnail Gradient Overlay (Reels — taller) ═══ */
.ig-thumb-gradient-reel {
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.06) 60%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* ═══ Thumbnail Info (Reels — bottom-aligned) ═══ */
.ig-thumb-info-reel {
  padding: 8px 8px;
  gap: 2px;
}

.ig-thumb-cta-reel {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ═══ Enhanced Story Preview ═══ */
.ig-story-enhanced {
  width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  position: relative;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.ig-story-enhanced::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: linear-gradient(
    135deg,
    #f09433,
    #e6683c,
    #dc2743,
    #cc2366,
    #bc1888
  );
  z-index: -1;
}

.ig-story-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-story-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    transparent 18%,
    transparent 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Progress Bars */
.ig-story-progress {
  position: absolute;
  top: 6px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 3px;
  z-index: 3;
}

.ig-story-progress-bar {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  overflow: hidden;
}

.ig-story-progress-bar.filled {
  background: rgba(255, 255, 255, 0.9);
}

.ig-story-progress-bar.active {
  position: relative;
}

.ig-story-progress-fill {
  width: 60%;
  height: 100%;
  background: #fff;
  border-radius: 2px;
  animation: storyProgressAnim 5s linear infinite;
}

@keyframes storyProgressAnim {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Story Header */
.ig-story-header {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  color: #fff;
}

.ig-story-username {
  font-size: 12px;
  font-weight: 700;
}

.ig-story-time {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 400;
}

.ig-story-close {
  opacity: 0.8;
  cursor: pointer;
}

/* Link Sticker */
.ig-story-link-sticker {
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #262626;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s;
}

.ig-story-link-sticker:hover {
  transform: translateX(-50%) scale(1.05);
}

/* Product Tag Sticker */
.ig-story-product-tag {
  position: absolute;
  top: 55%;
  left: 14px;
  z-index: 3;
}

.ig-story-product-tag-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.ig-story-product-tag-inner:hover {
  transform: scale(1.04);
}

/* Poll Sticker */
.ig-story-poll {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  width: 76%;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 12px;
  z-index: 3;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.ig-story-poll-q {
  font-size: 12px;
  font-weight: 800;
  color: #262626;
  margin-bottom: 8px;
  line-height: 1.3;
}

.ig-story-poll-options {
  display: flex;
  gap: 6px;
}

.ig-story-poll-opt {
  flex: 1;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  line-height: 1.2;
}

.ig-story-poll-opt:hover {
  transform: scale(1.04);
}

.ig-story-poll-opt-a {
  background: linear-gradient(135deg, #0095f6, #00c3ff);
  color: #fff;
}

.ig-story-poll-opt-b {
  background: linear-gradient(135deg, #f09433, #e6683c);
  color: #fff;
}

/* Reaction Bar */
.ig-story-reaction-bar {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.ig-story-msg-input {
  flex: 1;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

.ig-story-reactions {
  display: flex;
  gap: 3px;
}

.ig-story-reactions span {
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s;
}

.ig-story-reactions span:hover {
  transform: scale(1.3);
}

/* ═══ 3-Column Formats Row ═══ */
.ig-formats-row-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.ig-formats-row-3col > .mkbox {
  max-width: 100%;
  min-width: 0;
}

.ig-formats-row-3col .ig-post {
  max-width: 100%;
}

@media (max-width: 1100px) {
  .ig-formats-row-3col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .ig-formats-row-3col {
    grid-template-columns: 1fr;
  }
}

/* ═══ Quote Card Extras ═══ */
.ig-quote-card {
  padding: 40px 28px;
}

.ig-quote-mark {
  font-family: "Georgia", serif;
  font-size: 4rem;
  line-height: 0.6;
  opacity: 0.25;
  margin-bottom: 8px;
}

.ig-quote-divider {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: 12px auto 0;
  border-radius: 1px;
}
