@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@import url('https://fonts.cdnfonts.com/css/billabong');

* {
  cursor: url(https://cur.cursors-4u.net/nature/nat-10/nat997.cur), auto !important;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url(/media/backgrounds/pinkcheck.png);
  background-size: 40px;
  overflow-x: hidden;
}

/* -----------------------------------------------------------
   SELECTION & SCROLLBARS
----------------------------------------------------------- */

::selection {
  background-color: #feeef6;
  color: #616161;
}

::-moz-selection {
  background-color: #feeef6;
  color: #616161;
}

::-webkit-scrollbar {
    width: 10px;             
    height: 10px;        
}

::-webkit-scrollbar-track {
    background: transparent;   
    margin: 5px;             
}

::-webkit-scrollbar-thumb {
    background-color: #ffcce6; 
    border-radius: 50px;     
    border: 2px solid transparent;
    background-clip: content-box; 
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ffb3d9; 
}


.ipad-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ipad-bezel {
  width: 850px;
  height: 580px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%); 
  border-radius: 35px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 30px 60px rgba(0,0,0,0.12), 
    inset 0 0 15px rgba(0,0,0,0.05),
    inset 0 2px 3px rgba(255,255,255,1); 
  border: 1px solid #d1d1d1; 
  padding-right: 40px;
  padding-left: 15px;
  overflow: hidden; 
}

.ipad-screen {
  width: 90%;
  height: 88%;
  border-radius: 12px;
  overflow-y: auto;
  position: relative;
  border: 2px solid #1a1a1a; 
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  z-index: 1;
  background: url('/media/backgrounds/bedding.jpg') no-repeat center center !important;
  background-size: cover !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

.ipad-home-button {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.05),
    0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.1s ease;
  outline: none;
}

.ipad-home-button:active {
  transform: translateY(-50%) scale(0.96);
  background: #f0f0f0;
  box-shadow: 
    inset 0 4px 6px rgba(0,0,0,0.1),
    0 0px 1px rgba(0,0,0,0.05);
}

.ipad-home-button::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid #bebebe;
  border-radius: 4px;
  opacity: 0.7;
}

.ipad-screen::-webkit-scrollbar {
  width: 6px;
}
.ipad-screen::-webkit-scrollbar-thumb {
  background: #edaecb;
  border-radius: 10px;
}

.ipad-content {
  padding: 30px;
  font-family: 'nunito', sans-serif;
  color: #676767;
}

.ipad-camera {
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 50%;
  position: absolute;
  left: 25px; 
  z-index: 2;
  opacity: 0.8;
}

.ipad-status-bar {
  height: 25px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.1); 
  backdrop-filter: blur(5px);
  z-index: 10;
}

.status-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.battery-icon {
  width: 18px;
  height: 9px;
  border: 1px solid white;
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1px;
}

.battery-level {
  width: 100%;
  height: 100%;
  background: white;
}

.ipad-scroll-area {
  flex: 1;
  overflow-y: auto;
  width: 100%;
}

.ipad-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.ipad-scroll-area::-webkit-scrollbar-thumb {
  background: #edaecb;
  border-radius: 10px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.app-icon {
  width: 65px;
  height: 65px;
  background-color: #fff;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.2),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-icon::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%, 
    rgba(255, 255, 255, 0.7) 0%, 
    rgba(255, 255, 255, 0.2) 40%,
    transparent 60%
  );
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: 2;
}

.app-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0) 50%, 
    rgba(0, 0, 0, 0.05) 100%
  );
  border-radius: 15px;
  pointer-events: none;
}

.app-icon:active {
  transform: scale(0.92);
  filter: brightness(0.8);
}

.app-label {
  color: white; 
  font-family: nunito;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.spotify-app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform-origin: 20% 30%; 
  transform: scale(0.1); 
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), 
              opacity 0.2s ease-out;
  display: flex;
  overflow: hidden;
  color: #1a1a1a;
  font-family: 'nunito', sans-serif;
}

.spotify-app-screen.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.spotify-sidebar {
  width: 150px; 
  background: #f9f9f9; 
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid #eeeeee;
}

.sidebar-item {
  font-size: 12px;
  color: #000000;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
  font-weight: 400;
}

.sidebar-item.active-library {
  opacity: 1;
  font-weight: bold;
  font-size: 13px; 
}

.sidebar-item:hover {
  opacity: 0.7;
}

.spotify-main {
  flex: 1;
  background: linear-gradient(180deg, #ffe0ed 0%, #fff5f9 100%);
  padding: 30px;
  overflow-y: auto;
  color: #1a1a1a;
}

.spotify-playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.playlist-big-card {
  background: #ffffff; 
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto; 
  min-height: 190px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.playlist-big-card:hover {
  background: #fdfdfd;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.playlist-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.playlist-name {
  color: #1a1a1a; 
  font-size: 14px;
  font-weight: 700;
  display: block; 
  word-wrap: break-word; 
  line-height: 1.2; 
  margin-top: 4px;
}

.spotify-main::-webkit-scrollbar,
.spotify-sidebar::-webkit-scrollbar,
.spotify-app-screen::-webkit-scrollbar {
  display: none;
}

.spotify-main,
.spotify-sidebar,
.spotify-app-screen {
  -ms-overflow-style: none;  
  scrollbar-width: none; 
}

#tiktok-screen {
  background: white;
  color: black;
  justify-content: center;
  overflow-y: auto; 
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: 'nunito', sans-serif;
}

#tiktok-screen::-webkit-scrollbar {
  display: none;
}

.tiktok-container {
  width: 100%;
  min-height: 100%; 
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
}

.tiktok-profile-header {
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.tiktok-top-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 15px;
}

.profile-main-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-pic {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid #f1f1f1;
}

.profile-stats {
  display: flex;
  gap: 30px;
  margin: 10px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat strong { 
  font-weight: 800; 
  font-size: 17px; 
}

.stat span { 
  color: #888; 
  font-size: 13px; 
}

.profile-bio { 
  font-size: 14px; 
  text-align: center;
  margin-bottom: 15px; 
  font-weight: 500;
}

.profile-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.edit-btn, .share-btn {
  flex: 1;
  background: #f1f1f1;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700; 
  cursor: pointer;
}

#spotify-screen { transform-origin: 15% 20%; }
#tiktok-screen { transform-origin: 50% 20%; }
#gallery-screen { transform-origin: 32% 20%; } 

.app-overlay.open, .spotify-app-screen.open {
  display: flex;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.reposts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 1px;
  background: #eee;
  width: 100%;
}

.reposts-grid::-webkit-scrollbar {
  display: none; 
}

.repost-user {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  font-family: 'nunito', sans-serif;
  z-index: 10;
  pointer-events: none; 
}

.tiktok-video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.app-overlay, .spotify-app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: 100;
  display: none; 
  opacity: 0;
  pointer-events: none;
  transform: scale(0.1); 
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease-out;
  overflow-y: auto; 
}

.embed-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.6); 
  transform-origin: center center;
}

.tiktok-embed {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

.repost-user {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 10;
  color: white;
  pointer-events: none; 
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.repost-item {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background-color: #000; 
  overflow: hidden;
}

.tiktok-video-clean {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  position: absolute;
  top: 0;
  left: 0;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none; 
  transition: opacity 0.3s ease;
}

.play-button-icon {
  width: 30px; 
  height: 30px; 
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 100%; 
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 14px; 
  border: 1.5px solid white;
}

.repost-item.playing .play-overlay {
  opacity: 0;
}

.repost-item.playing .play-overlay {
  opacity: 0;
}

.repost-user a:hover {
  text-decoration: underline !important;
}

.modal-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none; 
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(10px);
}

.modal-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.modal-back-btn {
  background: #f1f1f1;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s;
}

.modal-back-btn:hover {
  background: #e5e5e5;
}

.modal-content video {
  width: 100%;       
  height: auto;     
  max-height: 70vh; 
  object-fit: contain; 
  border-radius: 12px;
  background: black;
}

.modal-content {
  background: white;
  padding: 15px;
  border-radius: 20px;
  display: inline-block; 
  width: min-content;   
  margin: auto;
}

#modal-video {
  width: auto;
  height: auto;
  max-width: 450px;
  max-height: 60vh;
  display: block;
  border-radius: 12px;
}

.modal-text {
  padding: 15px 5px 5px;
  font-family: 'nunito', sans-serif;
}

.modal-text h3 { margin: 0; font-size: 16px; color: #ff8ab4; }
.modal-text p { margin: 5px 0 0; font-size: 13px; color: #666; }

.repost-item {
  position: relative;
  overflow: hidden;
}

.expand-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  /* these are the fix */
  z-index: 999 !important; 
  pointer-events: auto !important;
}

/* -----------------------------------------------------------
   6. gallery / collage screen styles
----------------------------------------------------------- */

#collage-screen {
  display: none;
  flex-direction: column;
  z-index: 10;
  font-family: 'Nunito', sans-serif;
  background-color: white;
  border-radius: 12px; 
  overflow: hidden; 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gallery-container {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px; 
  overflow: hidden;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  gap: 12px;
  padding: 10px 20px; 
  font-family: 'Nunito', sans-serif;
}

.album-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.album-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  margin-bottom: 6px;
  border-radius: 12px !important; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.album-title {
  font-size: 11px; 
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-count {
  font-size: 10px;
  color: #8e8e93;
}

.gallery-header {
  padding: 20px 20px 5px 20px !important;
}

.gallery-nav-top {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 0.5px solid #d1d1d6;
}

.back-to-albums {
  color: #edaecb;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.photo-item {
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.photo-item:active {
  opacity: 0.7;
}

.gallery-scroll-area::-webkit-scrollbar {
  display: none;
  }
  
.gallery-scroll-area {
  flex: 1; 
  overflow-y: auto;
  padding-bottom: 60px;
  -ms-overflow-style: none; 
  scrollbar-width: none;
}

.gallery-tab-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 55px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 0.5px solid #d1d1d6;
  font-family: 'Nunito', sans-serif;
  padding-bottom: 5px; 
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* -----------------------------------------------------------
   dock - positioning & visibility
----------------------------------------------------------- */

.ipad-dock-container {
  position: absolute;
  bottom: 60px; 
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20; 
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ipad-dock-container.app-is-open {
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden; 
  pointer-events: none; 
}

.ipad-dock {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 18px; 
  border-radius: 22px;
  display: flex;
  gap: 15px; 
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 90%;
}

.dock-item {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-item:hover {
  transform: scale(1) translateY(-10px); 
  z-index: 10; 
}

.dock-item:active {
  transform: scale(0.9);
}

.dock-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* -----------------------------------------------------------
   app screens - unified styling
----------------------------------------------------------- */

.app-overlay, 
.spotify-app-screen,
#collage-screen,
#tiktok-screen,
#spotify-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  z-index: 100; 
  background: white; 
  display: none; 
  opacity: 0;
  pointer-events: none;
  transform: scale(0.1); 
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease-out;
}

.open {
  display: flex !important; 
  opacity: 1 !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
  z-index: 200;
}

/* -----------------------------------------------------------
   grid & layout adjustments
----------------------------------------------------------- */

.albums-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
  font-family: 'Nunito', sans-serif;
  padding-bottom: 120px; 
}

.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: #000;
}

#youtube-screen::-webkit-scrollbar,
.yt-categories::-webkit-scrollbar {
  display: none;
}

#youtube-screen,
.yt-categories {
  -ms-overflow-style: none; 
  scrollbar-width: none;  
}

.yt-card {
  display: flex;
  flex-direction: column;
  min-width: 0; 
}

#youtube-screen {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.tiktok-tabs {
  display: flex;
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
  overflow: visible; 
}

.tab {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  color: #a1a1a1; 
  transition: color 0.2s ease;
  z-index: 2;
  min-height: 44px; 
}

.tab.active {
  color: #000000;
}

.active-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: #000000;
  width: 0; 
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
  z-index: 3;
  will-change: transform, width; 
}

#real-time {
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: bold;
  font-family: nunito;
}

.ipad-home-grid {
  display: flex;
  justify-content: flex-start; 
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
}

.app-link {
  text-decoration: none; 
  color: inherit;       
  display: block;      
}

.app-link:hover .app-item, 
.app-item:hover {
  transform: scale(1.05); 
  transition: transform 0.2s ease;
}

.notes-app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  color: #000;
  font-family: nunito;
}

.notes-header {
  height: 55px;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  font-family: nunito;
}

.notes-left-actions {
  display: flex;
  align-items: center;
  color: #df85ab;
  font-weight: 500;
}

.note-icon-back {
  width: 18px;
  height: 18px;
  margin-right: 2px;
}

.notes-right-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.note-icon {
  width: 22px;
  height: 22px;
  transition: opacity 0.2s ease;
  color: #df85ab;
}

.note-icon:hover {
  opacity: 0.6;
}

.back-text {
  font-size: 17px;
  letter-spacing: -0.4px;
  color: #df85ab;
}

.notes-left-actions {
  font-size: 17px;
  display: flex;
  align-items: center;
}

.notes-right-actions {
  display: flex;
  gap: 20px;
  font-size: 20px;
}

.notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 30px 60px;
  -webkit-overflow-scrolling: touch;
}

.notes-body::-webkit-scrollbar {
  display: none;
}

.notes-body {
  -ms-overflow-style: none;  
  scrollbar-width: none; 
}

.notes-timestamp {
  text-align: center;
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 25px;
}

.notes-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #343434;
}

.notes-editor p {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-family: nunito;
}

.insta-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fafafa;
  font-family: 'Nunito', sans-serif;
  overflow: hidden;
}

.insta-scroll-wrapper {
  flex: 1;
  overflow-y: auto; 
  scrollbar-width: none;
}
.insta-scroll-wrapper::-webkit-scrollbar { display: none; }

/* header */
.insta-header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
  flex-shrink: 0;
}

.insta-logo-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-header-logo {
  width: 20px;
  height: 20px;
}

.insta-logo-text {
  font-family: 'Billabong', cursive;
  font-size: 20px;
  color: #000;
  margin-top: 3px;
}

.insta-header-icons {
  display: flex;
  gap: 12px;
}

.insta-header-icons img {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* layout */
.insta-main-layout {
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 25px;
  min-height: 100%;
}

.insta-feed-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin-left: 15px;
}

/* stories */

.insta-stories-container {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dbdbdb; 
  border-radius: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  align-items: center; 
}

.insta-stories-container::-webkit-scrollbar { display: none; }

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.story-ring {
  width: 62px;
  height: 62px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50% !important;
  padding: 5px; 
  border: 1px solid #ffd8e9; 
  box-sizing: border-box;
  flex-shrink: 0;
}

.story-pic {
  width: 100%;
  height: 100%;
  border-radius: 50% !important;
  background-size: cover;
  background-position: center;
  display: block;
  box-sizing: border-box;
}

.story-label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  color: #262626;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* feed & posts */
.insta-feed {
  flex: 1;
  overflow-y: auto;
  padding-top: 20px; /* space between stories and posts */
  scrollbar-width: none;
}

.insta-feed::-webkit-scrollbar { display: none; }

.insta-post {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.post-header {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pfp {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-size: cover;
}

.username {
  font-weight: 700;
  font-size: 13px;
}

.post-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px 6px 12px;
}

.post-left-actions {
  display: flex;
  gap: 12px;
}

.post-actions img {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.post-caption-area {
  padding: 0 12px 12px 12px;
  font-size: 13px;
  text-align: left;
}

.post-time {
  display: block;
  font-size: 10px;
  color: #8e8e8e;
  margin-top: 5px;
  text-transform: uppercase;
}

/* sidebar */
.insta-sidebar {
  width: 300px;
  display: flex;
  flex-direction: column;
  margin-right: 15px;
}

.profile-card {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  padding: 18px;
  text-align: left;
  align-self: flex-start; 
  position: sticky;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-pfp {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  border: 1.5px solid #f7c5da;
}

.sidebar-username {
  font-weight: 700;
  font-size: 13px;
}

.sidebar-name {
  color: #8e8e8e;
  font-size: 12px;
}

.profile-card-bio {
  font-size: 12px;
  line-height: 1.4;
  color: #262626;
}