/* ======================================================================
   1. VARIABLES & RESET
   ====================================================================== */
:root {
  --ig-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --ig-story-ring: linear-gradient(135deg, #833ab4, #fd1d1d 50%, #fcb045);
  --ig-blue: #0095f6;
  --ig-blue-hover: #1877f2;
  --ig-dark: #121212;
  --ig-card-bg: rgba(26, 26, 26, 0.72);
  --ig-glass-border: rgba(255, 255, 255, 0.16);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --app-height: 100vh;
  --story-duration: 7500ms; /* Durasi per slide (7.5 detik) */
}

@supports (height: 100svh) {
  :root { --app-height: 100svh; }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #050505;
  font-family: var(--font-ui);
  color: var(--text-main);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Blur Background (Desktop mode) */
.ambient-bg {
  position: fixed;
  inset: -50px;
  z-index: 0;
  background: radial-gradient(circle at center, #23122b, #050505);
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.3) saturate(1.4);
  transform: scale(1.1);
  transition: background-image 1s ease;
}

/* Mobile Frame 9:16 Centered */
.story-app {
  position: relative;
  z-index: 10;
  height: var(--app-height);
  width: 100vw;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 25px 60px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .story-app {
    height: min(920px, var(--app-height));
    margin: auto;
    border-radius: 28px;
    position: absolute;
    inset: 0;
  }
}

/* ======================================================================
   2. COVER OVERLAY (INSTAGRAM PROFILE STYLE)
   ====================================================================== */
.profile-cover {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: linear-gradient(180deg, #161616 0%, #0c0c0e 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(1.2rem, env(safe-area-inset-top)) 1.4rem max(1.5rem, env(safe-area-inset-bottom));
  overflow-y: auto;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.profile-cover.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.profile-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-username {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.badge-verified {
  color: var(--ig-blue);
  font-size: 1rem;
}

.profile-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0 1rem;
}

/* Ring Avatar dengan Animasi Story */
.avatar-story-wrapper {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-story-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 3.5px;
  background: var(--ig-story-ring);
  animation: pulseRing 3s ease-in-out infinite;
  box-shadow: 0 4px 18px rgba(220, 39, 67, 0.4);
  transition: transform 0.25s ease;
}

.avatar-story-ring:active {
  transform: scale(0.95);
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 39, 67, 0.5); }
  50% { box-shadow: 0 0 0 9px rgba(220, 39, 67, 0); }
}

.avatar-story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #161616;
}

.story-live-badge {
  position: absolute;
  bottom: -6px;
  background: var(--ig-gradient);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  border: 2px solid #161616;
  text-transform: uppercase;
}

.stats-col {
  text-align: center;
  flex: 1;
}

.stats-num {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.stats-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.profile-bio {
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.profile-bio strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 2px;
}

.profile-bio .category {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.profile-guest-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: center;
  margin: 1.2rem 0;
}

.guest-kicker {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.guest-name-highlight {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.btn-watch-story {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ig-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(220, 39, 67, 0.35);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-watch-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 39, 67, 0.45);
  color: #fff;
}

.btn-watch-story:active {
  transform: scale(0.98);
}

/* ======================================================================
   3. TOP STORY PROGRESS BAR & HEADER
   ====================================================================== */
.story-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: max(0.6rem, env(safe-area-inset-top)) 0.75rem 0.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
  pointer-events: none;
}

/* Progress Bar Segments */
.story-progress-bar {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 0.6rem;
}

.story-seg {
  flex: 1;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.story-seg-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
}

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

/* Header Profile Info */
.story-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.story-creator-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-creator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 1.8px;
  background: var(--ig-story-ring);
}

.story-creator-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #000;
}

.story-creator-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.time-stamp {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.music-tag-marquee {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.story-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-top-action {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  transition: transform 0.15s, opacity 0.15s;
}

.btn-top-action:active {
  transform: scale(0.85);
  opacity: 0.8;
}

/* ======================================================================
   4. STORY SLIDES ENGINE & TOUCH TAP NAVIGATION
   ====================================================================== */
.story-slides-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.story-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.25, 1), visibility 0.4s;
  z-index: 1;
}

.story-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* Media Background */
.slide-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88);
  transform: scale(1.02);
  transition: transform 9s ease-out;
}

.story-slide.active .slide-media img {
  transform: scale(1.1);
}

/* Gradient Vignette Overlays */
.slide-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.55) 0%, 
    rgba(0,0,0,0.15) 25%, 
    rgba(0,0,0,0.25) 60%, 
    rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.slide-gradient.heavy {
  background: linear-gradient(180deg, 
    rgba(0,0,0,0.7) 0%, 
    rgba(0,0,0,0.4) 30%, 
    rgba(0,0,0,0.65) 70%, 
    rgba(0,0,0,0.92) 100%);
}

/* Content Area */
.slide-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(65px + env(safe-area-inset-top)) 1.25rem calc(72px + env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slide-content::-webkit-scrollbar {
  display: none;
}

/* Tap Navigation Zones */
.tap-nav-zone {
  position: absolute;
  top: 60px;
  bottom: 70px;
  z-index: 15;
}

.tap-nav-left {
  left: 0;
  width: 30%;
}

.tap-nav-right {
  right: 0;
  width: 70%;
}

/* Ensure interactive elements in slide receive clicks */
.interactive-element {
  position: relative;
  z-index: 25;
  pointer-events: auto;
}

/* ======================================================================
   5. AUTHENTIC INSTAGRAM STICKERS
   ====================================================================== */

/* General Sticker Styling */
.ig-sticker {
  background: var(--ig-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ig-glass-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

/* Stiker Mention (@tag) */
.ig-tag-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
  border-radius: 50rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.2s;
}

.ig-tag-sticker:hover {
  color: #000000;
  transform: scale(1.04);
}

.ig-tag-sticker i {
  color: #e1306c;
  font-size: 0.95rem;
}

/* Stiker Lokasi Geotag */
.ig-location-sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.ig-location-sticker i {
  color: #ed4956;
  font-size: 1rem;
}

.ig-location-sticker:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-2px);
}

/* Stiker Link Mengambang (Swipe Up / Tap Link) */
.ig-link-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #0095f6;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  border-radius: 50rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.ig-link-sticker:hover {
  color: #0077c5;
  background: #ffffff;
  transform: scale(1.05);
}

.ig-link-sticker i {
  font-size: 1.05rem;
}

/* Stiker Countdown Instagram */
.ig-countdown-box {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.countdown-title-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.countdown-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.countdown-reminder-btn {
  margin-top: 0.85rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 50rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.countdown-reminder-btn.active {
  background: rgba(0, 149, 246, 0.2);
  border-color: var(--ig-blue);
  color: #fff;
}

/* Stiker Polling / Question (RSVP) */
.ig-poll-box {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 1.1rem;
  text-align: center;
}

.poll-question {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
}

.poll-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.poll-btn-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.24);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.25, 1);
  z-index: 1;
}

.poll-btn-text {
  position: relative;
  z-index: 2;
}

.poll-btn-pct {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  font-weight: 800;
  display: none;
}

.poll-btn.voted .poll-btn-pct {
  display: block;
}

.poll-btn.selected {
  border-color: #2dd4bf;
  background: rgba(45, 212, 191, 0.15);
}

/* Stiker Amplop / Gift */
.ig-gift-box {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.1rem;
}

.bank-card-item {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95), rgba(15, 15, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.bank-card-item::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.bank-brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.bank-brand.bca { color: #0060af; text-shadow: 0 0 12px rgba(0, 96, 175, 0.4); }
.bank-brand.mandiri { color: #f59e0b; text-shadow: 0 0 12px rgba(245, 158, 11, 0.4); }

.bank-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0.2rem 0;
}

.bank-holder {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-copy-acc {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.btn-copy-acc:active {
  transform: scale(0.92);
  background: #e2e2e2;
}

/* Multi Photo Collage ala IG Story */
.story-collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 0.5rem;
}

.collage-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s;
}

.collage-item:nth-child(1) { transform: rotate(-2deg); }
.collage-item:nth-child(2) { transform: rotate(2deg); margin-top: 10px; }
.collage-item:nth-child(3) { transform: rotate(1.5deg); }
.collage-item:nth-child(4) { transform: rotate(-2.5deg); margin-top: -10px; }

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

/* ======================================================================
   6. BOTTOM INTERACTION BAR (QUICK REPLY & FLOATING MUSIC)
   ====================================================================== */
.story-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.9rem max(0.8rem, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 70%, transparent 100%);
  pointer-events: auto;
}

.reply-input-box {
  flex: 1;
  height: 42px;
  border-radius: 50rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.reply-input-box:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.quick-reactions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-react-emoji {
  background: transparent;
  border: none;
  font-size: 1.45rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.15s;
}

.btn-react-emoji:hover {
  transform: scale(1.25);
}

.btn-react-emoji:active {
  transform: scale(0.9);
}

/* Floating Vinyl Disk Pemutar Musik */
.floating-vinyl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  padding: 3px;
  background: repeating-radial-gradient(circle, #1a1a1a 0 2px, #333333 2px 4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-vinyl-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.floating-vinyl-btn.spinning img {
  animation: spinVinyl 3.5s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-mute-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #000;
}

.floating-vinyl-btn.spinning .vinyl-mute-badge {
  display: none;
}

/* Emoji Burst Animation */
.floating-heart {
  position: absolute;
  z-index: 99;
  pointer-events: none;
  font-size: 2rem;
  animation: floatUp 1.4s ease-out forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  50% {
    transform: translate(calc(var(--random-x, 0) * 1px), -120px) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--random-x, 0) * 1.5px), -240px) scale(0.9);
  }
}

/* Toast Notification */
.ig-toast {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 120;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 50rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  pointer-events: none;
}

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

/* Pause Indicator (saat Hold Touch) */
.pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 28;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.pause-indicator.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Typography Utilities */
.font-serif-luxury {
  font-family: var(--font-heading);
  font-style: italic;
}

.arabic-text {
  font-family: 'Amiri', serif;
  direction: rtl;
  font-size: 1.35rem;
  line-height: 1.8;
  color: #fbfbfb;
}

/* ======================================================================
   UTILITAS (dipindahkan dari atribut style inline)
   ====================================================================== */
.badge-verified.badge-verified-sm { font-size: 0.75rem; }
.music-tag-marquee.music-tag-clickable { cursor: pointer; }
.badge.badge-glass-intro {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid var(--ig-glass-border);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.badge.badge-glass-15 { background: rgba(255,255,255,0.15); }
.badge.badge-glass-18 { background: rgba(255,255,255,0.18); }
.ig-sticker.sticker-dark-55 { background: rgba(0,0,0,0.55); }
.ig-sticker.sticker-dark-65 { background: rgba(0,0,0,0.65); }
.ls-wide-10 { letter-spacing: 0.1em; }
.lh-15 { line-height: 1.5; }
.lh-16 { line-height: 1.6; }
.couple-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #fff;
}
.couple-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.couple-parents { font-size: 0.75rem; }
.ig-tag-sticker.ig-tag-sm { font-size: 0.72rem; }
.event-date-sm { font-size: 0.7rem; }
.btn.btn-gift-address { font-size: 0.75rem; }
.comments-scroll-area.comments-feed {
  max-height: 120px;
  overflow-y: auto;
  font-size: 0.78rem;
}
.avatar-story-ring.closing-avatar-ring { width: 76px; height: 76px; }
