/* ================================================================
   inkspace.css — InkSpace External Stylesheet
   Pena Sehat CDN: https://cdn.pena-sehat.com/css/inkspace.css
   Version: v40.1 | PS-INKv40 (FIX: XML entities decoded — selektor > dan [style*="..."] pulih)
   ================================================================ */

/* ----------------------------------------------------------------
   SECTION 1: Login Modal CSS (Premium Login Overlay)
   ---------------------------------------------------------------- */
/* PS Login Modal Base */
.ps-modal-overlay{position:fixed;inset:0;z-index:2500000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
.ps-modal-overlay.ps-modal-open{opacity:1;visibility:visible}
.ps-modal-box{position:relative;background:#fff;border-radius:20px;width:min(420px,92vw);padding:32px 28px 28px;box-shadow:0 24px 60px rgba(0,0,0,.25);transform:translateY(20px) scale(.97);transition:transform .28s cubic-bezier(.34,1.56,.64,1);overflow:hidden}
.ps-modal-overlay.ps-modal-open .ps-modal-box{transform:translateY(0) scale(1)}
.ps-modal-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border:none;background:rgba(0,0,0,.06);border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:17px;color:#555;transition:background .2s}
.ps-modal-close:hover{background:rgba(0,0,0,.12)}
.ps-modal-logo{text-align:center;margin-bottom:16px}
.ps-modal-logo img{height:36px;object-fit:contain}
.ps-modal-title{font-size:19px;font-weight:700;color:#111;text-align:center;margin-bottom:4px;font-family:inherit}
.ps-modal-subtitle{font-size:13px;color:#666;text-align:center;margin-bottom:20px;line-height:1.5}
/* Account Hint Card */
.ps-modal-hint{display:none;align-items:center;gap:12px;background:#f8f9fa;border:1.5px solid #e0e0e0;border-radius:14px;padding:12px 14px;margin-bottom:14px;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.ps-modal-hint:hover{border-color:#4285f4;box-shadow:0 0 0 3px rgba(66,133,244,.12)}
.ps-modal-avatar{width:44px;height:44px;border-radius:50%;background:#e0e0e0 center/cover;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;color:#fff;background-color:#4285f4}
.ps-modal-user-info{flex:1;min-width:0}
.ps-modal-name{font-size:14px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-modal-email{font-size:12px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ps-modal-hint-label{font-size:11px;font-weight:700;color:#4285f4;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;text-align:center}
/* Google Sign-in Button */
.ps-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:48px;background:#fff;border:1.5px solid #dadce0;border-radius:12px;font-size:14px;font-weight:600;color:#3c4043;cursor:pointer;transition:background .2s,box-shadow .2s;font-family:inherit}
.ps-google-btn:hover{background:#f8f9fa;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.ps-google-btn svg{width:20px;height:20px;flex-shrink:0}
.ps-modal-divider{display:flex;align-items:center;gap:10px;margin:14px 0}
.ps-modal-divider::before,.ps-modal-divider::after{content:'';flex:1;height:1px;background:#e0e0e0}
.ps-modal-divider span{font-size:12px;color:#999}
.ps-modal-terms{font-size:11px;color:#999;text-align:center;margin-top:14px;line-height:1.5}
.ps-modal-terms a{color:#4285f4;text-decoration:none}
/* Logout Confirm Modal */
.ps-logout-icon{text-align:center;font-size:40px;margin-bottom:12px}
.ps-logout-btns{display:flex;gap:10px;margin-top:20px}
.ps-btn-cancel{flex:1;height:44px;border:1.5px solid #dadce0;border-radius:10px;background:#fff;font-size:14px;font-weight:600;color:#555;cursor:pointer;transition:background .2s;font-family:inherit}
.ps-btn-cancel:hover{background:#f5f5f5}
.ps-btn-logout{flex:1;height:44px;border:none;border-radius:10px;background:#ea4335;font-size:14px;font-weight:700;color:#fff;cursor:pointer;transition:opacity .2s;font-family:inherit}
.ps-btn-logout:hover{opacity:.88}
/* Mobile: bottom-sheet style */
@media (max-width:600px) {
  .ps-modal-overlay{align-items:flex-end}
  .ps-modal-box{width:100%;border-radius:24px 24px 0 0;padding:28px 22px 36px;transform:translateY(100%)}
  .ps-modal-overlay.ps-modal-open .ps-modal-box{transform:translateY(0)}
}
/* Dark mode support */
html.is-dark .ps-modal-box{background:#1e1e2e;color:#f0f0f0}
html.is-dark .ps-modal-title{color:#f0f0f0}
html.is-dark .ps-modal-subtitle{color:#aaa}
html.is-dark .ps-modal-hint{background:#2a2a3a;border-color:#3a3a4a}
html.is-dark .ps-modal-name{color:#f0f0f0}
html.is-dark .ps-google-btn{background:#2a2a3a;border-color:#3a3a4a;color:#f0f0f0}
html.is-dark .ps-google-btn:hover{background:#333345}
html.is-dark .ps-btn-cancel{background:#2a2a3a;border-color:#3a3a4a;color:#ccc}
html.is-dark .ps-modal-divider::before,html.is-dark .ps-modal-divider::after{background:#3a3a4a}
html.is-dark .ps-modal-close{background:rgba(255,255,255,.08);color:#ccc}

/* ----------------------------------------------------------------
   SECTION 2: InkSpace Main CSS (Chat Window, ISM, Overlays, dll.)
   ---------------------------------------------------------------- */
.window-chat-responsive {
  display:none; opacity:0; position:fixed; z-index:999999; background:#fff;
  flex-direction:column; overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.15);
  transition:opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease, top 0.3s ease, bottom 0.3s ease, left 0.3s ease, border-radius 0.3s ease;
  transform:translateY(20px);
}

/* DESKTOP / TABLET — [v16] Centered landscape modal */
@media screen and (min-width:768px) {
  .window-chat-responsive {
    /* Pusatkan di layar, landscape-friendly */
    top:50%; left:50%; right:auto; bottom:auto;
    transform:translate(-50%,-50%) translateY(20px);
    width:min(860px,90vw); height:min(680px,90vh);
    border-radius:20px; border:1px solid rgba(0,0,0,0.1);
  }
  /* Mode Medium — window lebih kecil, tetap di tengah */
  .window-chat-responsive.is-medium {
    width:min(600px,84vw); height:min(560px,84vh);
    top:50%; left:50%; right:auto; bottom:auto;
    border-radius:18px;
  }
  /* Mode Fullscreen — isi penuh layar, hilangkan transform centering */
  .window-chat-responsive.is-fullscreen {
    top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
    width:100vw !important; height:100dvh !important;
    transform:none !important;
    border-radius:0 !important; border:none !important;
  }
  /* Tombol toggle mode di pojok kanan atas saat desktop/tablet */
  #chatDesktopToggle {
    display:flex !important;
  }
  /* Backdrop overlay saat InkSpace terbuka di desktop/tablet */
  #chatDesktopBackdrop {
    display:none;
  }
}

/* MOBILE — [v16] keyboard-safe layout */
@media screen and (max-width:767px) {
  .window-chat-responsive {
    bottom:0 !important; left:0 !important; right:0 !important; width:100% !important;
    height:100dvh !important; border-radius:0 !important;
    transform:translateY(0) !important; /* [v15] gap fix — reset transform agar modal tidak ada celah di atas */
    /* transform dikelola penuh oleh JS + visualViewport API */
  }
  #chatDesktopToggle { display:none !important; }
  /* stickerPanel: bottom dikelola JS saat keyboard muncul, ini adalah fallback */
  #stickerPanel { left:10px !important; }
  /* Input area harus selalu terlihat penuh di atas keyboard */
  #areaBawah {
    padding-bottom:max(10px, env(safe-area-inset-bottom, 10px)) !important;
    flex-shrink:0 !important;
  }
}

/* iOS safe area global untuk areaBawah */
@supports (padding: env(safe-area-inset-bottom)) {
  #areaBawah {
    padding-bottom:max(10px, env(safe-area-inset-bottom, 10px));
  }
}

/* iOS webkit fill fix — [v15] gap fix */
@supports (-webkit-touch-callout: none) {
  .window-chat-responsive {
    /* fallback jika dvh tidak didukung */
    min-height:-webkit-fill-available;
  }
  @media screen and (max-width:767px) {
    .window-chat-responsive {
      /* JS akan override via setProperty('height',...,'important') */
      height:100dvh !important;
      height:-webkit-fill-available !important;
    }
  }
}

.chat-view { width:100%; }
/* [v31] Smooth view transitions */
@keyframes ismViewSlideIn{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
@keyframes ismViewFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.chat-view.ism-view-enter{animation:ismViewSlideIn .22s cubic-bezier(.25,.46,.45,.94) both}
.chat-view.ism-view-enter-fade{animation:ismViewFadeIn .2s ease both}

.nav-icon {
  cursor:pointer; opacity:0.85; transition:all 0.2s ease; display:inline-block;
}
.nav-icon:hover { opacity:1; transform:scale(1.15); }

.badge-style {
  font-size:7px; font-weight:800; padding:2px 6px; border-radius:4px;
  text-transform:uppercase; display:inline-block; margin-top:-3px;
  letter-spacing:0.4px; line-height:1.4;
}

/* [v22] Badge Collection Grid — responsive semua device */
#settingsBadgeGrid,
#v9BadgeGrid {
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(70px, 1fr)) !important;
  gap:6px !important;
}
#settingsBadgeGrid > div,
#v9BadgeGrid > div {
  min-width:0;
  overflow:hidden;
}
#settingsBadgeGrid .badge-style,
#v9BadgeGrid .badge-style {
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:inline-block;
  font-size:7px !important;
  padding:3px 5px !important;
  border-radius:20px !important;
  letter-spacing:0;
  vertical-align:middle;
  box-sizing:border-box;
}
@media (max-width:360px) {
  #settingsBadgeGrid,
  #v9BadgeGrid {
    grid-template-columns:repeat(3, 1fr) !important;
  }
}
@media (min-width:361px) and (max-width:500px) {
  #settingsBadgeGrid,
  #v9BadgeGrid {
    grid-template-columns:repeat(4, 1fr) !important;
  }
}
@media (min-width:501px) {
  #settingsBadgeGrid,
  #v9BadgeGrid {
    grid-template-columns:repeat(5, 1fr) !important;
  }
}

.shop-item {
  background:white; border:1px solid #f1f5f9; padding:10px;
  border-radius:14px; cursor:pointer; text-align:center; transition:all 0.2s ease;
}
.shop-item:hover {
  transform:translateY(-3px); border-color:#1a73e8;
  box-shadow:0 5px 15px rgba(26,115,232,0.15);
}

.chat-list-item {
  display:flex; align-items:center; gap:10px; background:#fff;
  padding:10px 12px; border-radius:12px; cursor:pointer;
  border:1px solid #f1f5f9; transition:all 0.2s ease;
}
.chat-list-item:hover { border-color:#1a73e8; background:#f0f7ff; }

.sticker-item:hover { transform:scale(1.15); }

@keyframes pulseSmooth {
  0%,100% { opacity:0.85; transform:scale(1); }
  50% { opacity:1; transform:scale(1.04); }
}
@keyframes shineEffect {
  0% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}
@keyframes msgBouncy {
  from { opacity:0; transform:translateY(6px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes badgePulse {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.25); }
}
.msg-in { animation:msgBouncy 0.35s ease-out; }

#kontenPesan::-webkit-scrollbar,
#kontenPesanPrivate::-webkit-scrollbar { width:4px; }
#kontenPesan::-webkit-scrollbar-track,
#kontenPesanPrivate::-webkit-scrollbar-track { background:transparent; }
#kontenPesan::-webkit-scrollbar-thumb,
#kontenPesanPrivate::-webkit-scrollbar-thumb { background:#e2e8f0; border-radius:4px; }

#inputTeks:focus {
  border-color:#1a73e8; background:#fff;
  box-shadow:0 0 0 3px rgba(26,115,232,0.1);
}
#btnKirimPesan:hover { transform:scale(1.08); box-shadow:0 4px 12px rgba(26,115,232,0.4); }
#btnOpenSticker:hover { background:#e2e8f0; }
#btnJapriStart:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(26,115,232,0.3); }

.run-text {
  display: inline-block;
  white-space: nowrap;
  animation: jalan 25s linear infinite;
}

@keyframes jalan {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ===== SKIN SAMPUL ===== */
.is-skin-premium {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab) !important;
  background-size: 400% 400% !important;
  animation: isGradientAnim 15s ease infinite !important;
}
/* [BARU] Super Admin Skin 1: Legend - Gold/Rainbow */
.is-skin-legend {
  background: linear-gradient(-45deg,#ffd700,#ff8c00,#8a2be2,#ff0080,#ffd700) !important;
  background-size: 400% 400% !important;
  animation: isGradientAnim 5s ease infinite !important;
  border-bottom: 2.5px solid rgba(255,215,0,0.7) !important;
}
/* [BARU] Super Admin Skin 2: Phantom - Dark Galaxy */
.is-skin-phantom {
  background: linear-gradient(-45deg,#0f0c29,#302b63,#6366f1,#24243e,#0f0c29) !important;
  background-size: 400% 400% !important;
  animation: isGradientAnim 8s ease infinite !important;
  border-bottom: 2.5px solid rgba(99,102,241,0.7) !important;
}
/* Legacy admin skin - kept for fallback */
.is-skin-admin-1 {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #0f172a) !important;
  background-size: 400% 400% !important;
  animation: isGradientAnim 10s ease infinite !important;
  border-bottom: 2px solid #ffd700 !important;
}
@keyframes isGradientAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* [v18] Ultra exclusive skin marquee text animation */
@keyframes ultraMarquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@keyframes ultraMarqueeProfile {
  0% { transform: translateX(80%); }
  100% { transform: translateX(-100%); }
}

/* UI Kotak Kecil */
.is-grid-panel {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  margin: 10px 0 !important;
}
.is-panel-box {
  background: linear-gradient(145deg,#ffffff,#f8fafc) !important;
  border: 1.5px solid #e8edf5 !important;
  border-radius: 14px !important;
  padding: 10px 4px 8px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.34,1.56,0.64,1) !important;
  position: relative !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.is-panel-box:hover {
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(26,115,232,0.13) !important;
  border-color: #93c5fd !important;
  background: linear-gradient(145deg,#eff6ff,#f0f7ff) !important;
}
.is-panel-box i {
  font-size: 20px !important;
  display: block !important;
  margin-bottom: 5px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08)) !important;
}
.is-panel-box span {
  font-size: 8px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
}
.is-dot-red {
  position: absolute !important;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: #ff4757 !important;
  border-radius: 50% !important;
  border: 1.5px solid #fff !important;
  box-shadow: 0 0 0 2px rgba(255,71,87,0.25) !important;
}

.panel-title {
  font-size: 9px;
  font-weight: 900;
  color: #94a3b8;
  margin: 15px 0 8px 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #e2e8f0, transparent);
}

/* ===== [BARU] PROFILE CUSTOM SECTION STYLES ===== */

/* Tab Navigation Buttons */
.is-prof-tab {
  flex: 0 0 auto !important;
  background: transparent !important;
  border: none !important;
  padding: 7px 11px !important;
  border-radius: 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  letter-spacing: 0.3px !important;
}
.is-prof-tab.is-ptab-active {
  background: white !important;
  color: #1a73e8 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09) !important;
}

/* Skin Option Box */
.is-skin-opt {
  border-radius: 10px !important;
  height: 48px !important;
  cursor: pointer !important;
  border: 2.5px solid transparent !important;
  transition: all 0.25s ease !important;
  position: relative !important;
  overflow: hidden !important;
  background-size: 300% 300% !important;
}
.is-skin-opt:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
.is-skin-opt.is-skin-selected {
  border-color: white !important;
  box-shadow: 0 0 0 3px #1a73e8, 0 4px 12px rgba(26,115,232,0.3) !important;
  transform: scale(1.06) !important;
}
.is-skin-opt-name {
  position: absolute !important;
  bottom: 3px !important;
  left: 0; right: 0 !important;
  text-align: center !important;
  font-size: 7px !important;
  font-weight: 900 !important;
  color: rgba(255,255,255,0.95) !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
  letter-spacing: 0.2px !important;
}
.is-skin-opt-check {
  position: absolute !important;
  top: 3px; right: 3px !important;
  font-size: 10px !important;
  display: none !important;
}
.is-skin-selected .is-skin-opt-check { display: block !important; }

/* Avatar Option Box */
.is-avatar-opt {
  border-radius: 12px !important;
  padding: 5px !important;
  cursor: pointer !important;
  border: 2px solid #f1f5f9 !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  background: white !important;
}
.is-avatar-opt:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 3px 10px rgba(26,115,232,0.15) !important;
  transform: translateY(-2px) !important;
}
.is-avatar-opt.is-av-selected {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 2px rgba(26,115,232,0.25), 0 3px 10px rgba(26,115,232,0.2) !important;
}
.is-avatar-opt img { width: 100% !important; border-radius: 8px !important; }
.is-avatar-opt span { font-size: 7px !important; font-weight: 700 !important; color: #64748b !important; }

/* [BARU] Premium Avatar Frame di Chat & Profil */
.is-prem-frame-wrap {
  position: relative !important;
  display: inline-flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Premium Avatar Frame di Chat & Profil (DINAMIS ikut skin) */
.is-prem-frame-wrap {
  position: relative !important;
  display: inline-flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

.is-prem-frame-wrap::before {
  content: '' !important;
  position: absolute !important;
  inset: -2px !important;
  border-radius: 50% !important;

  /* >>> Dinamis: background & anim di-set dari inline style (CSS Variable) */
  background: var(--is-frame-bg, linear-gradient(135deg,#ee7752,#e73c7e,#23a6d5,#23d5ab,#ee7752)) !important;
  background-size: 300% 300% !important;
  animation: var(--is-frame-anim, isGradientAnim 4s ease infinite) !important;

  z-index: 0 !important;
}

.is-prem-frame-wrap img {
  position: relative !important;
  z-index: 1 !important;
  border: 2px solid white !important;
}

/* Admin/Super Admin: tetap classy, tapi tidak override warna lagi (warna tetap ikut skin) */
.is-admin-frame-wrap::before {
  animation: var(--is-frame-anim, isGradientAnim 3s ease infinite) !important;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.22));
}

/* [BARU] System Notif Card style */
.is-sys-notif-card {
  background: linear-gradient(135deg,rgba(26,115,232,0.07),rgba(13,71,161,0.04)) !important;
  border: 1.5px solid rgba(26,115,232,0.25) !important;
}
.is-sys-notif-card:hover {
  background: linear-gradient(135deg,rgba(26,115,232,0.12),rgba(13,71,161,0.07)) !important;
  border-color: #1a73e8 !important;
}

    /* ===== [TAMBAHAN] AVATAR EKSKLUSIF ADMIN STYLES ===== */

/* Container avatar admin eksklusif */
.is-avatar-admin {
  border-color: rgba(255, 165, 0, 0.4) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.10),
    rgba(255, 140, 0, 0.06)
  ) !important;
}
.is-avatar-admin:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3) !important;
  transform: translateY(-3px) !important;
}
.is-avatar-admin.is-av-selected {
  border-color: #d97706 !important;
  box-shadow:
    0 0 0 2.5px rgba(217, 119, 6, 0.35),
    0 4px 14px rgba(217, 119, 6, 0.25) !important;
}

/* Nama avatar admin (warna emas) */
.is-av-admin-name {
  font-size: 7px !important;
  font-weight: 800 !important;
  color: #b45309 !important;
}

/* Checkmark terpilih */
.is-av-check-mark {
  font-size: 9px !important;
  color: #1a73e8 !important;
  font-weight: 900 !important;
}

/* Tombol avatar di premiumGrid — efek locked untuk user biasa */
#box-avatar[style*="not-allowed"] {
  opacity: 0.45 !important;
}


/* == 1. Keyframes: Denyut Skala Teks (Tanpa Glow) == */
@keyframes is-oyy-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes is-ups-glow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* == 5. Teks Oyy!!! (Warna Merah Asli + Border Teks Halus) == */
.is-oyy-text {
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #FF003F !important;
  display: block !important;
  animation: is-oyy-glow 1s ease-in-out infinite !important;
  letter-spacing: 1.5px !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.2);
}

/* == 6. Teks Ups!!! (Warna Hijau Asli + Border Teks Halus) == */
.is-ups-text {
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #0080ff !important;
  display: block !important;
  animation: is-ups-glow 1s ease-in-out infinite !important;
  letter-spacing: 1.5px !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.2);
}

/* ===== POST REACTIONS BAR — Modern 4-Button (v2) ===== */
.post-reactions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
  padding: 14px 0 10px;
  min-height: 80px; /* Anti-CLS: reservasi ruang bar reaksi agar iklan setelahnya tidak bergeser */
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.psr-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .6px;
  width: 100%;
  margin-bottom: 2px;
}
.psr-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  padding: 7px 15px 7px 11px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  transition: background .18s, border-color .18s, color .18s, transform .15s;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 38px;
}
.psr-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: scale(1.05);
}
.psr-btn:active { transform: scale(.96); }
.psr-icon { font-size: 15px; line-height: 1; flex-shrink: 0; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.psr-btn.psr-active .psr-icon { transform: scale(1.18); }
.psr-btn.psr-active .psr-count { background: currentColor; color: #fff; }
@keyframes psr-icon-pop { 0%{transform:scale(1)} 40%{transform:scale(1.5)} 70%{transform:scale(.88)} 100%{transform:scale(1.18)} }
.psr-text { font-size: 12px; font-weight: 700; }
.psr-count { font-size: 11.5px; font-weight: 800; min-width: 14px; background: rgba(0,0,0,.07); border-radius: 100px; padding: 0 5px; }
/* Active states per reaction type */
.psr-btn.psr-beneficial.psr-active  { background:#eff6ff; border-color:#3b82f6; color:#1d4ed8; }
.psr-btn.psr-inspire.psr-active     { background:#fff1f2; border-color:#f43f5e; color:#e11d48; }
.psr-btn.psr-insight.psr-active     { background:#fefce8; border-color:#eab308; color:#854d0e; }
.psr-btn.psr-bookmark.psr-active    { background:#f0fdf4; border-color:#22c55e; color:#15803d; }
/* Bounce animation on activate */
@keyframes psr-bounce { 0%{transform:scale(1)} 35%{transform:scale(1.22)} 65%{transform:scale(.94)} 100%{transform:scale(1)} }
.psr-btn.psr-bounce { animation: psr-bounce .32s ease forwards; }
.psr-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Dark mode support */
.is-dark .post-reactions-bar { border-color: rgba(255,255,255,.08); }
.is-dark .psr-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #cbd5e1; }
.is-dark .psr-btn:hover { background: rgba(255,255,255,.1); }
.is-dark .psr-label { color: #64748b; }
/* Mobile responsive */
@media(max-width:480px) {
  .psr-btn { font-size: 12px; padding: 6px 12px 6px 9px; min-height: 36px; }
  .psr-icon { font-size: 15px; }
}

/* ===== HISTORY & BOOKMARK LIST ITEMS (profile tabs) ===== */
.psr-hist-item, .psr-bm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
  word-break: break-word;
  line-height: 1.4;
}
.psr-hist-item:hover, .psr-bm-item:hover { background: #f8fafc; }
.psr-hist-item-icon { font-size: 14px; flex-shrink: 0; }
.psr-hist-item-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.psr-hist-item-remove:hover { color: #f43f5e; }

/* [AUDIT-FIX-13] Hilangkan "kotak biru" bekas tap di seluruh pohon ISM --
   #ganeaInkSpace sudah punya -webkit-tap-highlight-color:transparent, tapi
   semua overlay ISM (.slide-menu dan elemen ber-id "ism...") berada DI LUAR
   subtree #ganeaInkSpace sehingga rule itu tidak pernah berlaku di sana. */
.slide-menu, .slide-menu *,
[id^='ism'], [id^='ism'] * {
  -webkit-tap-highlight-color: transparent !important;
}

/* ============================================================
   [AUDIT-FIX-13] DARK MODE -- Kartu preview Profil (DIPERSEMPIT)
   ============================================================
   Revisi dari AUDIT-FIX-2: permintaan asli HANYA warna font nama+bio yang
   tidak berubah di dark mode (nyaris tak terbaca). Versi sebelumnya ikut
   mengubah tab navigasi, input, status, grid avatar/skin, riwayat/bookmark
   -- di luar yang diminta. Blok ini dipersempit hanya ke kartu preview itu
   sendiri: #profileCustomSection SENGAJA TIDAK disentuh di sini karena
   sudah otomatis gelap lewat var(--header-bg) yang di-set langsung oleh
   ismOpenMyProfileOverlay()/ismCloseMyProfile() (JS) -- override sebelumnya
   di sini memakai shade #1f1f1f yang BEDA dari #000000 hasil var(--header-bg),
   itulah penyebab tampilan "dibungkus kotak abu-abu" yang dikeluhkan. */
html.is-dark #_ismProfStickyHead { background: #000 !important; }
html.is-dark #profilePreviewCard { background: #000 !important; border-color: #2a2a2a !important; box-shadow: none !important; }
html.is-dark #previewName { color: var(--title-color) !important; }
html.is-dark #previewBio  { color: #aab2bd !important; }

/* [AUDIT-FIX-3] Badge gembok pada item avatar/skin yang terkunci (belum Premium / belum dibeli) */
.is-avatar-opt.is-av-locked { opacity: 0.55 !important; position: relative !important; }
.is-avatar-opt.is-av-locked img { filter: grayscale(60%) !important; }
.is-av-lock-badge {
  position: absolute !important; top: 3px !important; right: 3px !important;
  font-size: 10px !important; line-height: 1 !important;
  background: rgba(15,23,42,0.82) !important; color: #fff !important;
  border-radius: 50% !important; width: 17px !important; height: 17px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  z-index: 2 !important;
}
.is-skin-opt.is-skin-locked { opacity: 0.55 !important; }
.is-skin-lock-badge {
  position: absolute !important; top: 3px !important; right: 3px !important;
  font-size: 10px !important; line-height: 1 !important;
  background: rgba(15,23,42,0.6) !important; color: #fff !important;
  border-radius: 50% !important; width: 17px !important; height: 17px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  z-index: 2 !important;
}
