/* Premium fictional Insta app */
.phone-social-app.ig-page.insta-app-shell {
  --insta-bg: #f7f7f9;
  --insta-card: rgba(255, 255, 255, 0.94);
  --insta-card-solid: #ffffff;
  --insta-text: #111114;
  --insta-muted: rgba(17, 17, 20, 0.58);
  --insta-soft: rgba(17, 17, 20, 0.06);
  --insta-border: rgba(17, 17, 20, 0.1);
  --insta-accent: #ff2d6d;
  --insta-accent-2: #f09433;
  --insta-shadow: 0 18px 46px rgba(18, 18, 25, 0.12);
  --insta-shadow-soft: 0 10px 28px rgba(18, 18, 25, 0.08);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 45, 109, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, var(--insta-bg) 58%, #ffffff 100%);
  color: var(--insta-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.insta-app-shell * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.insta-top {
  position: relative;
  z-index: 8;
  padding: calc(var(--phone-status-h, 54px) + 6px) 16px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.insta-header {
  height: 42px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 8px;
}

.insta-wordmark {
  justify-self: center;
  border: 0;
  background: transparent;
  color: var(--insta-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
}

.insta-header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.insta-header-icon,
.insta-nav-item,
.insta-action,
.insta-chip-button,
.insta-inline-button,
.insta-modal-button,
.insta-story-tap,
.insta-tab-icon,
.insta-create-mode,
.insta-close-button,
button.insta-media-frame,
button.insta-avatar-ring {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.insta-header-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--insta-text);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.insta-header-icon.is-active,
.insta-header-icon:hover {
  color: var(--insta-accent);
  background: rgba(255, 45, 109, 0.08);
}

.insta-header-icon:active,
.insta-nav-item:active,
.insta-action:active,
.insta-story-card:active,
.insta-tile:active,
.insta-chip-button:active {
  transform: scale(0.96);
}

.insta-icon,
.insta-nav-glyph,
.insta-action-glyph,
.insta-tab-glyph,
.insta-meta-glyph {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.insta-icon--home::before,
.insta-nav-glyph--feed::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px 3px 5px 5px;
}

.insta-icon--home::after,
.insta-nav-glyph--feed::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.insta-icon--search::before,
.insta-nav-glyph--explore::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.insta-icon--search::after,
.insta-nav-glyph--explore::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.insta-icon--profile::before,
.insta-nav-glyph--profile::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.insta-icon--profile::after,
.insta-nav-glyph--profile::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 16px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
}

.insta-nav-glyph--create::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 7px;
}

.insta-nav-glyph--create::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 21px;
  line-height: 1;
  font-weight: 650;
}

.insta-main {
  position: absolute;
  inset: calc(var(--phone-status-h, 54px) + 56px) 0 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 12px calc(104px + var(--phone-home-indicator-h, 39px));
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.insta-main::-webkit-scrollbar {
  display: none;
}

.insta-app-shell.insta-screen--story .insta-main {
  inset: 0;
  padding: 0;
  overflow: hidden;
}

.insta-section {
  min-height: 100%;
  animation: instaScreenIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.insta-stories-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 6px -12px 10px;
  padding: 6px 14px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.insta-stories-row::-webkit-scrollbar {
  display: none;
}

.insta-feed-section .phone-social-stories-wrap.ig-stories-wrap {
  margin: 6px -12px 10px;
}

.insta-feed-section .phone-social-story.ig-story {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.insta-feed-section .insta-profile-selector-button {
  width: 100%;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.insta-feed-section .insta-story-open-button {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.insta-feed-section .insta-story-open-button.is-seen {
  top: 52px;
  left: calc(50% + 23px);
  width: 20px;
  height: 20px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--insta-accent), #c90083);
  box-shadow: 0 4px 10px rgba(201, 0, 131, 0.26);
}

.insta-feed-section .insta-story-open-button.is-new {
  top: 55px;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c90083, #d22463, #e10038);
  box-shadow: none;
  font-size: 9px;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 0.02em;
}

.insta-story-open-glyph {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
}

.insta-story-card {
  position: relative;
  flex: 0 0 68px;
  width: 68px;
  border: 0;
  background: transparent;
  color: var(--insta-text);
  text-align: center;
  cursor: pointer;
}

.insta-story-ring,
.insta-avatar-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--insta-accent-2), var(--insta-accent), #bc1888, var(--insta-accent-2));
  box-shadow: 0 7px 18px rgba(255, 45, 109, 0.12);
}

.insta-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(135deg, #f8d2d8, #b9b7c7 52%, #1b1b21);
  border: 2px solid #fff;
}

.insta-avatar img,
.insta-highlight img,
.insta-media-frame img,
.insta-tile img,
.insta-story-image img,
.insta-create-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.insta-avatar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.94);
}

.insta-story-name {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insta-story-new {
  position: absolute;
  top: 50px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 7px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--insta-accent), #cf0f69);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.insta-story-plus {
  position: absolute;
  right: 3px;
  bottom: 18px;
  z-index: 3;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--insta-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}

.insta-post-card {
  overflow: hidden;
  margin: 0 0 18px;
  border-radius: 26px;
  background: var(--insta-card-solid);
  box-shadow: var(--insta-shadow-soft), inset 0 0 0 1px var(--insta-border);
}

.insta-post-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 13px;
}

.insta-post-header .insta-avatar-ring {
  width: 42px;
  height: 42px;
  padding: 2px;
}

.insta-post-user {
  min-width: 0;
}

.insta-post-name,
.insta-profile-name,
.insta-detail-title {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--insta-text);
  font-size: 14px;
  font-weight: 820;
  line-height: 18px;
}

.insta-post-username,
.insta-profile-handle,
.insta-muted {
  color: var(--insta-muted);
  font-size: 12px;
  line-height: 16px;
}

.insta-verified {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #169cf7;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.insta-more {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--insta-text);
  font-size: 20px;
  letter-spacing: 1px;
}

.insta-media-frame {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.78), transparent 28%),
    linear-gradient(135deg, #f1d3c7, #191a22 70%);
  color: inherit;
  text-align: left;
}

button.insta-avatar-ring {
  padding: 0;
  background: transparent;
  color: inherit;
}

button.insta-media-frame:disabled {
  cursor: default;
}

.insta-media-frame img {
  position: relative;
  z-index: 1;
}

.insta-media-frame.is-hidden img,
.insta-media-frame.is-hidden .ig-post-image {
  opacity: 0.22;
  filter: blur(10px) grayscale(0.35);
}

.insta-post-swiper-frame {
  padding: 0;
  border: 0;
  cursor: default;
}

.insta-post-swiper-frame .ig-post-swiper,
.insta-post-swiper-frame .swiper-wrapper,
.insta-post-swiper-frame .swiper-slide {
  height: 100%;
}

.insta-media-slide {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.insta-hidden-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 16, 0.52);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.insta-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  padding: 20px;
  background:
    radial-gradient(circle at 28% 34%, rgba(255, 229, 217, 0.9) 0 11%, transparent 12%),
    radial-gradient(circle at 66% 26%, rgba(29, 30, 38, 0.92) 0 13%, transparent 14%),
    linear-gradient(135deg, #efe2da, #bbb6c7 45%, #111116);
  color: #fff;
  text-transform: uppercase;
  font-size: 28px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.insta-carousel-count {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.insta-app-shell .ig-post-dots .swiper-pagination-bullet {
  background: rgba(17, 17, 20, 0.2);
  opacity: 1;
}

.insta-app-shell .ig-post-dots .swiper-pagination-bullet-active {
  background: var(--insta-accent);
}

.insta-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 22px;
  background: #fff;
}

.insta-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.18);
}

.insta-dots i.is-active {
  background: var(--insta-accent);
}

.insta-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 13px 2px;
}

.insta-actions-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.insta-action {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  color: var(--insta-text);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.insta-action.is-liked {
  color: var(--insta-accent);
}

.insta-action:hover {
  background: rgba(17, 17, 20, 0.05);
}

.insta-action-glyph--heart::before {
  content: "♥";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.insta-action:not(.is-liked) .insta-action-glyph--heart::before {
  content: "♡";
  font-size: 31px;
}

.insta-action-glyph--comment::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 17px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.insta-action-glyph--comment::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skew(-22deg) rotate(-15deg);
}

.insta-action-glyph--share::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 20px;
  height: 15px;
  clip-path: polygon(0 0, 100% 50%, 0 100%, 22% 55%, 56% 50%, 22% 45%);
  background: currentColor;
}

.insta-action-glyph--save::before {
  content: "";
  position: absolute;
  inset: 3px 5px 2px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.insta-action-glyph--save::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 1px;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.insta-post-body {
  padding: 3px 15px 17px;
  color: var(--insta-text);
}

.insta-liked-by {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 18px;
}

.insta-like-stack {
  display: flex;
  align-items: center;
  width: 42px;
}

.insta-like-stack img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  margin-right: -9px;
  background: #ddd;
}

.insta-liked-by-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.insta-liked-by-avatar-button {
  justify-content: flex-start;
}

.insta-liked-by-name-button {
  display: inline;
}

.insta-liked-by-button:hover,
.insta-liked-by-button:focus-visible {
  color: var(--insta-accent);
}

.insta-liked-by-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--insta-accent) 60%, transparent);
  outline-offset: 3px;
  border-radius: 999px;
}

.insta-caption {
  font-size: 14px;
  line-height: 20px;
}

.insta-caption strong,
.insta-liked-by strong {
  font-weight: 840;
}

.insta-date {
  margin-top: 10px;
  color: var(--insta-muted);
  font-size: 12px;
}

.insta-search-card {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0 0 10px;
  padding: 0 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 20, 0.08);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  color: var(--insta-muted);
  font-size: 13px;
}

.insta-search-card input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--insta-text);
  font: inherit;
  font-size: 14px;
}

.insta-search-card input::placeholder {
  color: var(--insta-muted);
}

.insta-grid,
.insta-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.insta-explore-grid {
  padding-bottom: 12px;
}

.insta-tile {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  border: 0;
  border-radius: 0;
  background: #f3f1ee;
  color: var(--insta-text);
  text-align: left;
  cursor: pointer;
}

.insta-profile-grid .insta-tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.insta-profile-grid--reels .insta-tile {
  aspect-ratio: 9 / 16;
  min-height: 0;
}

.insta-reel-tile {
  background: #07070a;
}

.insta-reel-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 34%, rgba(0, 0, 0, 0.38)),
    radial-gradient(circle at 50% 38%, transparent 46%, rgba(0, 0, 0, 0.22));
}

.insta-reel-tile img {
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

.insta-reel-tile:hover img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.04);
}

.insta-reel-glyph {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.insta-reel-glyph::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #fff;
}

.insta-explore-grid .insta-tile--tall {
  grid-row: span 2;
  min-height: 250px;
}

.insta-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.insta-tile--carousel::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 5px -5px 0 -2px rgba(255, 255, 255, 0.92);
  z-index: 3;
}

.insta-tile-overlay,
.insta-tile-text {
  position: relative;
  z-index: 1;
}

.insta-tile-overlay {
  min-height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.54));
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}

.insta-tile-title {
  white-space: pre-line;
  font-size: 17px;
  font-weight: 930;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insta-tile-body {
  margin-top: 8px;
  font-size: 9px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insta-tile--text,
.insta-tile--text-dark {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.insta-tile--text {
  background: linear-gradient(180deg, #fff, #f2f1ee);
}

.insta-tile--text-dark {
  background: #101014;
  color: #fff;
}

.insta-tile--text .insta-tile-title,
.insta-tile--text-dark .insta-tile-title {
  font-size: 20px;
}

.insta-tile.is-locked::after {
  content: "Premium";
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
}

.insta-profile-card {
  margin: 0 -2px 10px;
  padding: 8px 2px 0;
}

.insta-profile-top {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
}

.insta-profile-top .insta-avatar-ring {
  width: 110px;
  height: 110px;
  padding: 4px;
  box-shadow: 0 14px 34px rgba(255, 45, 109, 0.18);
}

.insta-profile-name {
  font-size: 22px;
  line-height: 26px;
}

.insta-badge-pink {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--insta-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.insta-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.insta-profile-stat strong {
  display: block;
  font-size: 15px;
  line-height: 18px;
  font-weight: 880;
}

.insta-profile-stat span {
  display: block;
  color: var(--insta-muted);
  font-size: 11px;
  line-height: 14px;
}

.insta-profile-bio {
  margin: 12px 2px 12px;
  color: var(--insta-text);
  font-size: 13px;
  line-height: 18px;
  white-space: pre-line;
}

.insta-profile-bio a {
  color: var(--insta-accent);
  text-decoration: none;
  font-weight: 780;
}

.insta-profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 9px;
  margin-bottom: 15px;
}

.insta-chip-button {
  min-height: 38px;
  border-radius: 14px;
  background: #fff;
  color: var(--insta-text);
  box-shadow: inset 0 0 0 1px var(--insta-border);
  font-size: 13px;
  font-weight: 820;
}

.insta-chip-button.is-dark {
  background: #111114;
  color: #fff;
  box-shadow: none;
}

.insta-highlights {
  display: flex;
  gap: 14px;
  margin: 0 -12px 14px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.insta-highlight {
  flex: 0 0 58px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--insta-text);
  font-size: 11px;
}

.insta-highlight-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px rgba(17, 17, 20, 0.1);
}

.insta-profile-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 48px;
  margin: 0 -12px 3px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-top: 1px solid rgba(17, 17, 20, 0.07);
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}

.insta-tab-icon {
  display: grid;
  place-items: center;
  background: transparent;
  color: rgba(17, 17, 20, 0.55);
}

.insta-tab-icon.is-active {
  color: var(--insta-text);
  box-shadow: inset 0 -2px 0 var(--insta-text);
}

.insta-tab-glyph::before,
.insta-tab-glyph::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.insta-tab-glyph--grid::before {
  background:
    linear-gradient(currentColor 0 0) 50% 0 / 2px 100% no-repeat,
    linear-gradient(currentColor 0 0) 0 50% / 100% 2px no-repeat;
}

.insta-tab-glyph--clips::after { border-radius: 50%; transform: scale(0.72); }
.insta-tab-glyph--save::before { border-radius: 3px 3px 0 0; border-bottom: 0; }
.insta-tab-glyph--tag::before { border-radius: 50% 50% 8px 8px; }

.insta-detail-bar,
.insta-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 12px;
}

.insta-inline-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.06);
  color: var(--insta-text);
  font-size: 12px;
  font-weight: 760;
}

.insta-detail-post {
  margin-bottom: 16px;
}

.insta-comments-card,
.insta-create-card {
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--insta-shadow-soft), inset 0 0 0 1px var(--insta-border);
}

.insta-empty-state,
.insta-disabled-note {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--insta-border);
  color: var(--insta-muted);
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

.insta-disabled-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--insta-text);
  font-size: 14px;
}

.insta-comments-title,
.insta-create-title {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 900;
}

.insta-comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(17, 17, 20, 0.07);
}

.insta-comment:first-of-type {
  border-top: 0;
}

.insta-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1d9d5, #1d1d25);
}

.insta-comment p {
  margin: 2px 0 0;
  color: var(--insta-muted);
  font-size: 13px;
  line-height: 18px;
}

.insta-create-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.06);
}

.insta-create-mode {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--insta-muted);
  font-size: 12px;
  font-weight: 800;
}

.insta-create-mode.is-active {
  background: #fff;
  color: var(--insta-text);
  box-shadow: 0 6px 18px rgba(17, 17, 20, 0.08);
}

.insta-create-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 260px;
  margin-bottom: 14px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 45, 109, 0.18), transparent 32%),
    #111114;
  color: #fff;
}

.insta-create-preview img {
  position: absolute;
  inset: 0;
  opacity: 0.54;
}

.insta-create-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
}

.insta-create-plus-large {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 42px;
  font-weight: 200;
}

.insta-caption-input {
  min-height: 92px;
  width: 100%;
  resize: none;
  padding: 13px;
  border: 0;
  border-radius: 18px;
  outline: none;
  background: rgba(17, 17, 20, 0.05);
  color: var(--insta-text);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.insta-caption-input:disabled {
  opacity: 0.64;
}

.insta-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.insta-create-actions .insta-chip-button {
  padding: 0 16px;
}

.insta-reel-section {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #050506;
  color: #fff;
}

.insta-reel-view {
  min-height: 100%;
  display: grid;
  align-items: stretch;
}

.insta-reel-media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  height: 100%;
  background: #050506;
}

.insta-reel-video,
.insta-reel-fallback,
.insta-reel-fallback img {
  width: 100%;
  height: 100%;
}

.insta-reel-video,
.insta-reel-fallback img {
  display: block;
  object-fit: cover;
  background: #000;
}

.insta-reel-fallback {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: #000;
}

.insta-reel-shade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 22%, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 54%);
}

.insta-reel-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: rgba(8, 8, 12, 0.32);
  backdrop-filter: blur(12px) saturate(1.12);
  -webkit-backdrop-filter: blur(12px) saturate(1.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 21px;
}

.insta-reel-copy {
  position: absolute;
  z-index: 3;
  left: 15px;
  right: 82px;
  bottom: calc(86px + var(--phone-home-indicator-h, 39px));
  display: grid;
  gap: 7px;
  min-width: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.78);
}

.insta-reel-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.insta-reel-avatar.insta-avatar {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.34),
    0 0 0 2px rgba(255, 45, 109, 0.72);
}

.insta-reel-user-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.insta-reel-user-text strong,
.insta-reel-user-text span,
.insta-reel-user-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insta-reel-user-text strong {
  flex: 0 1 auto;
  max-width: 92px;
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 880;
}

.insta-reel-user-text span {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 15px;
}

.insta-reel-user-text small {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 14px;
}

.insta-reel-caption {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.insta-reel-actions {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: calc(86px + var(--phone-home-indicator-h, 39px));
  display: grid;
  gap: 10px;
  justify-items: center;
}

.insta-reel-actions .insta-action {
  width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 50%;
  background: rgba(8, 8, 12, 0.28);
  color: #fff;
  backdrop-filter: blur(12px) saturate(1.14);
  -webkit-backdrop-filter: blur(12px) saturate(1.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.insta-reel-actions .insta-action:hover,
.insta-reel-actions .insta-action:focus-visible {
  background: rgba(255, 45, 109, 0.28);
  color: #fff;
}

.insta-reel-actions .insta-action-glyph {
  filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.7));
}

.insta-reel-actions .insta-action > span:not(.insta-action-glyph) {
  max-width: 50px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insta-story-viewer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #050506;
  color: #fff;
  touch-action: manipulation;
}

.insta-story-image {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.insta-story-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 36%, rgba(0, 0, 0, 0.62));
}

.insta-story-ui {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(var(--phone-status-h, 54px) + 8px) 14px calc(var(--phone-home-indicator-h, 39px) + 14px);
}

.insta-story-progress {
  display: grid;
  grid-template-columns: repeat(var(--insta-story-count, 1), minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
}

.insta-story-progress span {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
}

.insta-story-progress span::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.94);
  transform: scaleX(0);
  transform-origin: left center;
}

.insta-story-progress span.is-complete::before {
  transform: scaleX(1);
}

.insta-story-progress span.is-active::before {
  animation: instaStoryProgressFill var(--insta-story-duration, 5000ms) linear forwards;
  animation-play-state: var(--insta-story-play-state, running);
}

@keyframes instaStoryProgressFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.insta-story-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.insta-story-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.insta-story-user .insta-avatar-ring {
  width: 42px;
  height: 42px;
  padding: 2px;
}

.insta-close-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
}

.insta-story-copy {
  margin-top: auto;
  max-width: 82%;
  padding-bottom: 24px;
}

.insta-story-copy h2 {
  margin: 0 0 7px;
  font-size: 35px;
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insta-story-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 20px;
}

.insta-story-controls {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.insta-story-tap {
  background: transparent;
}

.insta-story-reply {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.insta-story-reply span {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.insta-story-reply button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--insta-accent);
  font-size: 20px;
}

.insta-nav-dock {
  --insta-dock-hover-bg: rgba(255, 45, 109, 0.1);
  --insta-dock-hover-color: var(--insta-accent);
  position: absolute;
  z-index: 10;
  left: 18px;
  right: 18px;
  bottom: calc(var(--phone-home-indicator-h, 39px) + 4px);
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
  box-shadow:
    0 18px 42px rgba(18, 18, 25, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.insta-screen--explore .insta-nav-dock {
  --insta-dock-hover-bg: rgba(255, 45, 109, 0.18);
  --insta-dock-hover-color: #ff7aa7;
  background: rgba(10, 10, 12, 0.74);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.insta-screen--reel .insta-nav-dock {
  --insta-dock-hover-bg: rgba(255, 45, 109, 0.2);
  --insta-dock-hover-color: #ff7aa7;
  background: rgba(10, 10, 12, 0.72);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.insta-nav-item {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  height: 52px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: rgba(17, 17, 20, 0.62);
  cursor: default;
  font: inherit;
  font-size: 10px;
  line-height: 11px;
  font-weight: 760;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.insta-screen--explore .insta-nav-item,
.insta-screen--reel .insta-nav-item {
  color: rgba(255, 255, 255, 0.82);
}

.insta-nav-item:active {
  transform: scale(0.96);
}

.insta-nav-item:hover,
.insta-nav-item:focus-visible {
  background: var(--insta-dock-hover-bg);
  color: var(--insta-dock-hover-color);
}

.insta-system-nav-item.component-disabled {
  opacity: 0.58;
}

.insta-system-nav-icon {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
  stroke: none;
}

.insta-system-nav-item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insta-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 12, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.insta-modal {
  width: 100%;
  max-width: 330px;
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  color: var(--insta-text);
  text-align: center;
}

.insta-modal-star {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff2d6d, #f09433);
  color: #fff;
  font-size: 30px;
}

.insta-modal h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 920;
}

.insta-modal p {
  margin: 0 0 18px;
  color: var(--insta-muted);
  font-size: 14px;
  line-height: 20px;
}

.insta-modal-actions {
  display: grid;
  gap: 9px;
}

.insta-modal-button {
  min-height: 44px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.07);
  color: var(--insta-text);
  font-size: 14px;
  font-weight: 840;
}

.insta-modal-button.is-primary {
  background: #111114;
  color: #fff;
}

.insta-screen--explore {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.04), transparent 28%),
    #050506;
}

.insta-screen--explore .insta-top,
.insta-screen--explore .insta-main {
  background: transparent;
}

.insta-screen--explore .insta-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
}

.insta-screen--explore .insta-main {
  padding-left: 8px;
  padding-right: 8px;
}

.insta-screen--reel {
  background: #050506;
}

.insta-screen--reel .insta-top,
.insta-screen--reel .insta-main {
  background: #050506;
}

.insta-screen--reel .insta-main {
  overflow: hidden;
  padding: 0;
}

.insta-screen--reel .insta-top {
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.96), rgba(5, 5, 6, 0.76));
}

.insta-screen--reel .insta-wordmark,
.insta-screen--reel .insta-header-icon {
  color: #fff;
}

.insta-screen--reel .insta-header-icon {
  background: rgba(255, 255, 255, 0.1);
}

.insta-screen--reel .insta-header-icon.is-active,
.insta-screen--reel .insta-header-icon:hover {
  color: #ff7aa7;
  background: rgba(255, 45, 109, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  .insta-section,
  .insta-header-icon,
  .insta-nav-item,
  .insta-action,
  .insta-story-card,
  .insta-tile {
    animation: none !important;
    transition: none !important;
  }
}

.insta-media-frame {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}

.insta-avatar img {
  position: relative;
  z-index: 1;
}

.insta-avatar span {
  z-index: 0;
}

.insta-avatar.is-fallback-visible img,
.insta-media-frame.is-fallback-visible img,
.insta-highlight.is-fallback-visible img,
.insta-highlight-img.is-fallback-visible img,
.insta-tile.is-fallback-visible img {
  display: none !important;
}
