@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- COLOR PALETTE & VARIABLES --- */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Instagram Authentic Dark Mode */
  --ig-bg: #0b0d0f;
  --ig-elevated: #121417;
  --ig-surface: #1e2024;
  --ig-border: #26292e;
  --ig-border-subtle: #1c1e22;
  --ig-text: #f5f5f5;
  --ig-text-secondary: #a8a8a8;
  --ig-text-muted: #737373;
  --ig-btn-bg: #25282c;
  --ig-btn-hover: #32363c;
  --ig-blue: #0095f6;
  --ig-blue-hover: #1877f2;
  --ig-link: #7fa7ff;
  --ig-like: #ff3040;
  --ig-story-ring: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --desktop-sidebar-width: 72px;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background-color: var(--ig-bg);
  color: var(--ig-text);
  font-family: var(--font-family);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ============================================================ */
/* 1. DESKTOP SLIM SIDEBAR (ICON-ONLY SEPERTI SCREENSHOT)       */
/* ============================================================ */
.desktop-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--desktop-sidebar-width);
  height: 100vh;
  background-color: var(--ig-bg);
  padding: 24px 0 22px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--ig-text);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.sidebar-logo:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: scale(1.04);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--ig-text);
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-link.notif-dot::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff3040;
  border: 1.5px solid var(--ig-bg);
}

.sidebar-avatar-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--ig-text);
  overflow: hidden;
}

.sidebar-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================ */
/* 2. MOBILE TOP & BOTTOM BARS (HIDDEN ON DESKTOP)              */
/* ============================================================ */
.mobile-top-bar,
.mobile-bottom-nav {
  display: none;
}

/* ============================================================ */
/* 3. MAIN CONTENT LAYOUT                                       */
/* ============================================================ */
.main-content-layout {
  margin-left: var(--desktop-sidebar-width);
  min-height: 100vh;
  background-color: var(--ig-bg);
  padding: 28px 24px 40px 24px;
}

.profile-container {
  max-width: 960px;
  margin: 0 auto;
}

/* Compact Top Block (Header + 2 Full-Width Buttons + Highlights) */
.profile-top-wrapper {
  max-width: 650px;
  margin: 0 auto 24px auto;
}

/* --- PROFILE HEADER SECTION --- */
.profile-header-section {
  display: grid;
  grid-template-columns: 165px 1fr;
  column-gap: 28px;
  row-gap: 22px;
  margin-bottom: 30px;
}

.header-avatar-col {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-story-ring {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background: var(--ig-story-ring);
  padding: 3px;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-story-ring:hover {
  transform: scale(1.02);
}

.profile-story-ring:active {
  transform: scale(0.96);
}

.avatar-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--ig-bg);
  padding: 4px;
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #27272a;
}

/* Right Info Column */
.header-info-col {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.header-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-username {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ig-text);
  letter-spacing: -0.3px;
}

.btn-desktop-dots {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ig-text);
  transition: background-color 0.15s ease;
}

.btn-desktop-dots:hover {
  background-color: var(--ig-btn-bg);
}

/* Display Name right under username */
.bio-display-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ig-text);
}

/* Stats Row */
.account-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  font-size: 0.9rem;
  margin: 4px 0;
}

.stat-item {
  color: var(--ig-text);
}

.stat-count {
  font-weight: 700;
}

/* Bio Area */
.account-bio-area {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.bio-subtitle {
  color: var(--ig-text-secondary);
  font-size: 0.84rem;
}

.bio-text {
  color: var(--ig-text);
  font-size: 0.88rem;
}

.btn-translate {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ig-text);
  text-align: left;
  margin: 1px 0 3px 0;
  display: inline-block;
  width: fit-content;
  opacity: 0.88;
}

.btn-translate:hover {
  text-decoration: underline;
}

.bio-link-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ig-link);
  font-weight: 600;
  font-size: 0.86rem;
  margin: 2px 0;
}

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

.link-anchor:hover {
  text-decoration: underline;
}

.social-proof-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ig-text-secondary);
  margin-top: 6px;
}

.overlap-avatars {
  display: flex;
  align-items: center;
}

.avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ig-bg);
  margin-right: -7px;
}

.avatar-mini:last-child {
  margin-right: 0;
}

.social-proof-text strong {
  color: var(--ig-text);
  font-weight: 600;
}

/* --- 2 FULL-WIDTH ACTION BUTTONS (50% : 50% SEPERTI SCREENSHOT) --- */
.account-action-buttons {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.btn-action-ig {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  background-color: var(--ig-btn-bg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ig-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-action-ig:hover {
  background-color: var(--ig-btn-hover);
}

.btn-action-ig:active {
  transform: scale(0.98);
}

/* --- STORY HIGHLIGHTS (SOROTAN) --- */
.highlights-section {
  margin-bottom: 10px;
}

.highlights-scroll-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
}

.highlights-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.highlight-circle-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  width: 78px;
}

.highlight-ring-outer {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--ig-border);
  padding: 3px;
  background-color: var(--ig-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.highlight-circle-card:hover .highlight-ring-outer {
  transform: scale(1.04);
}

.highlight-circle-card:active .highlight-ring-outer {
  transform: scale(0.95);
}

.highlight-inner-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #16181c;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.highlight-inner-disc img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.highlight-inner-disc .disc-emoji {
  font-size: 1.65rem;
}

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

/* --- FEED NAVIGATION TABS (ICON-ONLY DENGAN GARIS BAWAH PUTIH) --- */
.feed-tabs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--ig-border);
}

.feed-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  color: var(--ig-text-muted);
  transition: color 0.15s ease;
}

.feed-tab-btn:hover {
  color: var(--ig-text-secondary);
}

.feed-tab-btn.active {
  color: var(--ig-text);
}

.feed-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* --- FEED GRID (4 COLUMNS ON DESKTOP, 4:5 VERTICAL) --- */
.feed-grid-area {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 60px;
}

.feed-card-box {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #121417;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}

.feed-card-box:hover .feed-hover-curtain {
  opacity: 1;
}

/* Multi-post corner icon */
.card-multipost-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.9));
}

.card-multipost-icon svg {
  fill: #ffffff;
}

/* Hover Curtain on Desktop */
.feed-hover-curtain {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 6;
}

.hover-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hover-stat-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Card Visual Artworks */
.card-art-panel {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 14px;
  position: relative;
  overflow: hidden;
}

/* 1. Game Art */
.card-art-panel.game-bg {
  background: radial-gradient(circle at 50% 45%, #0d1e38 0%, #040810 100%);
}

.game-hero-ship {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-hero-ship img {
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.85));
  animation: shipHover 3s ease-in-out infinite;
}

@keyframes shipHover {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.game-pill-badge {
  font-size: 0.58rem;
  font-weight: 800;
  background: #facc15;
  color: #000000;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  margin-top: 7px;
  white-space: nowrap;
}

/* 2. Profile Art */
.card-art-panel.profile-bg {
  background: radial-gradient(circle at 75% 25%, #1e293b 0%, #090d16 100%);
}

.profile-monogram-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #18181b;
  border: 2px solid var(--ig-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 149, 246, 0.4);
}

/* 3. Herba */
.card-art-panel.herba-bg {
  background: radial-gradient(circle at 25% 75%, #064e3b 0%, #01140e 100%);
}

/* 4. Enviro */
.card-art-panel.enviro-bg {
  background: radial-gradient(circle at 75% 75%, #0369a1 0%, #031522 100%);
}

/* 5. SIAKAD */
.card-art-panel.siakad-bg {
  background: radial-gradient(circle at 25% 25%, #7c2d12 0%, #1f0802 100%);
}

/* 6. Hearts */
.card-art-panel.hearts-bg {
  background: radial-gradient(circle at 50% 50%, #831843 0%, #20020d 100%);
}

.panel-big-icon {
  font-size: 2.3rem;
  line-height: 1;
}

.panel-footer-meta {
  z-index: 2;
}

.panel-footer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.panel-footer-sub {
  font-size: 0.68rem;
  color: var(--ig-text-secondary);
  margin-top: 2px;
}

/* Desktop Footer */
.desktop-footer {
  border-top: 1px solid var(--ig-border);
  padding: 28px 0 36px 0;
  text-align: center;
  font-size: 0.76rem;
  color: var(--ig-text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: var(--ig-text-muted);
  transition: color 0.15s ease;
}

.footer-nav-links a:hover {
  color: var(--ig-text);
}

.footer-meta {
  color: var(--ig-text-muted);
  font-size: 0.7rem;
}

/* ============================================================ */
/* 4. MODALS (POST DETAIL & STORY VIEWER)                       */
/* ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-close-outside {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 510;
}

.post-dialog-container {
  width: 100%;
  max-width: 950px;
  height: 85vh;
  max-height: 700px;
  background-color: var(--ig-bg);
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

.modal-mobile-header {
  display: none;
}

.dialog-media-col {
  flex: 1.25;
  background-color: #000000;
  border-right: 1px solid var(--ig-border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.carousel-slide-block {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, var(--ig-surface) 0%, #000000 100%);
  color: #ffffff;
}

.carousel-slide-block.has-photo {
  padding: 0;
  background: #000000;
  position: relative;
}

.dialog-slide-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-photo-caption {
  position: absolute;
  bottom: 34px;
  left: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  color: #f5f5f5;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
}

.carousel-dots-row {
  max-width: 80%;
  flex-wrap: wrap;
  justify-content: center;
}

.dialog-slide-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--ig-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.dialog-slide-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.dialog-slide-sub {
  font-size: 0.86rem;
  color: var(--ig-text-secondary);
  margin-bottom: 14px;
}

.dialog-slide-list {
  text-align: left;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ig-text);
  max-width: 380px;
}

.dialog-slide-list li {
  display: flex;
  gap: 8px;
  line-height: 1.4;
}

.dialog-slide-list li::before {
  content: '▸';
  color: var(--ig-blue);
  font-weight: bold;
}

.carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.carousel-arrow-btn.prev {
  left: 12px;
}

.carousel-arrow-btn.next {
  right: 12px;
}

.carousel-dots-row {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.carousel-dot-point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.carousel-dot-point.active {
  background: #ffffff;
  transform: scale(1.3);
}

.dialog-info-col {
  flex: 1;
  background-color: var(--ig-bg);
  display: flex;
  flex-direction: column;
}

.dialog-account-bar {
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ig-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-account-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-avatar-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.dialog-user-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.dialog-scroll-caption {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.dialog-action-dock {
  border-top: 1px solid var(--ig-border);
  padding: 12px 16px;
  background-color: var(--ig-elevated);
}

.action-dock-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dock-left-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dock-icon-btn {
  color: var(--ig-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-icon-btn.liked {
  color: var(--ig-like);
}

.dock-icon-btn.liked svg {
  fill: var(--ig-like);
  animation: popLike 0.25s ease;
}

@keyframes popLike {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.dock-icon-btn.saved svg {
  fill: var(--ig-text);
}

.dock-likes-count {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.dock-full-btn {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  background-color: var(--ig-blue);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dock-full-btn:hover {
  background-color: var(--ig-blue-hover);
}

/* --- FULLSCREEN STORY VIEWER --- */
.story-viewer-backdrop {
  position: fixed;
  inset: 0;
  background-color: #121212;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.story-viewer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.story-phone-shell {
  width: 100%;
  max-width: 420px;
  height: 94vh;
  max-height: 780px;
  background-color: #000000;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.story-progress-wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 30;
}

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

.story-seg-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 0.05s linear;
}

.story-seg-fill.done {
  width: 100% !important;
}

.story-header-bar {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.story-user-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ig-blue);
}

.story-username-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.story-time-stamp {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
}

.story-close-button {
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 80px;
  z-index: 20;
  cursor: pointer;
}

.story-tap-left {
  left: 0;
  width: 35%;
}

.story-tap-right {
  right: 0;
  width: 65%;
}

.story-content-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  z-index: 10;
}

.story-action-btn {
  background: #ffffff;
  color: #000000;
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 20px;
  cursor: pointer;
  z-index: 35;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--ig-btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.toast-popup.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================ */
/* 5. MOBILE RESPONSIVE (MAX-WIDTH 768PX)                       */
/* ============================================================ */
@media (min-width: 769px) {
  .post-dialog-container {
    max-width: 920px;
    height: min(85vh, 660px);
  }

  .dialog-media-col {
    flex: none;
    height: 100%;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 768px) {

  .desktop-sidebar,
  .desktop-footer {
    display: none;
  }

  .main-content-layout {
    margin-left: 0;
    padding: 0 0 60px 0;
  }

  .profile-container,
  .profile-top-wrapper {
    max-width: 100%;
    margin-bottom: 0;
  }

  /* Top App Bar Seluler */
  .mobile-top-bar {
    display: flex;
    height: 48px;
    background-color: var(--ig-bg);
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .icon-btn-app {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ig-text);
  }

  .top-username {
    font-size: 1.15rem;
    font-weight: 700;
    flex-grow: 1;
    margin-left: 14px;
  }

  .top-right-actions {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Bottom Nav Bar Seluler */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--ig-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-around;
    z-index: 40;
  }

  .bottom-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ig-text);
  }

  .bottom-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--ig-text);
    padding: 1px;
    overflow: hidden;
  }

  .bottom-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Header Profil Format IG HP */
  .profile-header-section {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    row-gap: 0;
    padding: 14px 16px 8px 16px;
    margin-bottom: 8px;
  }

  .header-avatar-col {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
  }

  .profile-story-ring {
    width: 82px;
    height: 82px;
    padding: 2px;
  }

  .avatar-ring-inner {
    padding: 2px;
  }

  .header-info-col {
    display: contents;
  }

  .header-top-row {
    display: none;
  }

  .account-stats-row {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    font-size: 0.8rem;
  }

  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .stat-count {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .bio-display-name {
    grid-column: 1 / -1;
    grid-row: 2;
    font-weight: 700;
    font-size: 0.88rem;
    margin-top: 10px;
  }

  .account-bio-area {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 2px;
    gap: 3px;
    font-size: 0.86rem;
  }

  /* 2 Tombol Sejajar 50% : 50% di HP */
  .account-action-buttons {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
  }

  .btn-action-ig {
    height: 34px;
    border-radius: 8px;
    font-size: 0.84rem;
  }

  /* Sorotan Compact */
  .highlights-section {
    margin-bottom: 8px;
    padding: 0 16px;
  }

  .highlights-scroll-wrapper {
    gap: 16px;
    padding: 4px 0 8px 0;
  }

  .highlight-circle-card {
    width: 64px;
    gap: 6px;
  }

  .highlight-ring-outer {
    width: 62px;
    height: 62px;
    padding: 2px;
  }

  .highlight-inner-disc img {
    width: 32px;
    height: 32px;
  }

  .highlight-label-text {
    font-size: 0.72rem;
    max-width: 62px;
  }

  /* Tab Bar Mobile */
  .feed-tabs-row {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Grid 3 Kolom 4:5 di HP */
  .feed-grid-area {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    margin-top: 2px;
    margin-bottom: 20px;
  }

  .feed-hover-curtain {
    display: none;
  }

  .card-art-panel {
    padding: 12px 10px;
  }

  .panel-big-icon {
    font-size: 1.85rem;
  }

  .panel-footer-title {
    font-size: 0.75rem;
  }

  .panel-footer-sub {
    font-size: 0.58rem;
  }

  .game-hero-ship img {
    width: 44px;
    height: 44px;
  }

  .game-pill-badge {
    font-size: 0.52rem;
    padding: 2px 5px;
  }

  .profile-monogram-badge {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  /* Modal Tampilan Postingan Mobile */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-close-outside {
    display: none;
  }

  .post-dialog-container {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    flex-direction: column;
    overflow-y: auto;
  }

  .modal-mobile-header {
    display: flex;
    height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background-color: var(--ig-bg);
    z-index: 20;
    flex-shrink: 0;
  }

  .modal-mobile-back {
    color: var(--ig-text);
    padding: 4px;
  }

  .modal-mobile-title {
    font-size: 0.98rem;
    font-weight: 700;
  }

  .dialog-media-col {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .dialog-info-col {
    flex: none;
  }

  .toast-popup {
    bottom: 64px;
  }

  .story-phone-shell {
    max-height: 100vh;
    border-radius: 0;
  }
}