/* ===== Catatan (dark iOS Notes) ===== */
.note-doc { background: #fff; margin: 6px 16px 0; border-radius: 12px; padding: 16px 18px 40px; min-height: 200px; }
.note-doc.dark { background: #000; color: #f5f5f5; margin: 0; border-radius: 0; min-height: 100%; padding: 12px 18px 40px; }
.note-date { font-size: 12px; color: var(--gray); text-align: center; margin-bottom: 14px; }
.note-doc.dark .note-date { color: #8e8e93; }
.note-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.note-body { font-size: 17px; line-height: 1.55; white-space: pre-wrap; }
.note-title-input {
  width: 100%; border: 0; background: transparent; color: #f5f5f5;
  font-size: 24px; font-weight: 700; margin-bottom: 12px; outline: none;
}
.note-body-input {
  width: 100%; min-height: 55vh; border: 0; background: transparent; color: #f5f5f5;
  font-size: 17px; line-height: 1.55; resize: none; outline: none; font-family: inherit;
}

.app-page.notes-page {
  background: #000 !important;
  color: #f5f5f5;
  padding-top: 12px !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}
.notes-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 56px 16px 90px;
  -webkit-overflow-scrolling: touch;
}
.notes-storage {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: #8e8e93; padding: 8px 0 18px;
}
.notes-sec:first-of-type {
  margin-top: 6px;
}
.notes-sec:first-of-type .notes-sec-title {
  margin-top: 4px;
}
.notes-storage-ico { font-size: 13px; opacity: .7; }
.notes-sec { margin-bottom: 22px; }
.notes-sec-title {
  font-size: 20px; font-weight: 700; color: #f5f5f5;
  margin: 0 0 10px 4px; display: flex; align-items: center; gap: 6px;
}
.notes-sec-chev { font-size: 12px; color: #8e8e93; }
.notes-card {
  background: #1c1c1e;
  border-radius: 14px;
  overflow: hidden;
}
.notes-row {
  display: block; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; background: transparent; color: #f5f5f5;
  position: relative;
}
.notes-row.has-sep::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: .5px; background: rgba(84,84,88,.55);
}
.notes-row:active { background: rgba(255,255,255,.06); }
.notes-row-title {
  font-size: 16px; font-weight: 600; color: #f5f5f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notes-row-sub {
  margin-top: 3px; font-size: 13px; color: #8e8e93;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notes-row-sub span { margin-right: 6px; }
.notes-empty { text-align: center; color: #8e8e93; padding: 40px 12px; font-size: 14px; }

.notes-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 28px;
  background: linear-gradient(transparent, #000 30%);
}
.notes-search-pill {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #1c1c1e; border-radius: 22px; padding: 10px 14px;
}
.notes-search-ico { font-size: 14px; opacity: .7; }
.notes-search-input {
  flex: 1; border: 0; background: transparent; color: #f5f5f5;
  font-size: 15px; outline: none;
}
.notes-search-input::placeholder { color: #8e8e93; }
.notes-compose {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #1c1c1e; color: #f5f5f5; font-size: 20px;
  display: grid; place-items: center; flex: none;
}
.notes-compose:active { opacity: .7; }

.app-page.notes-detail-page {
  background: #000 !important;
  padding-bottom: 20px !important;
}

/* ===== Galeri ===== */
.month-title { font-size: 17px; font-weight: 700; padding: 18px 16px 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.photo-cell { aspect-ratio: 1; transition: opacity .15s; }
.photo-cell:active { opacity: .7; }

/* ===== Apple Music ===== */
.pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 16px; }
.pl-cover { width: 100%; aspect-ratio: 1; border-radius: 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pl-title { font-size: 15px; font-weight: 600; }
.pl-head { text-align: center; padding: 8px 20px 18px; }
.pl-cover.big { width: 200px; margin: 0 auto 14px; }
.pl-title.big { font-size: 22px; }
.song-art { width: 44px; height: 44px; border-radius: 6px; flex: none; }
.num { width: 18px; color: var(--gray); font-size: 14px; text-align: center; }

/* ===== Pengaturan ===== */
.toggle { width: 51px; height: 31px; border-radius: 16px; background: #e9e9ea; position: relative; flex: none; margin-left: auto; }
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: left .2s;
}
.toggle.on { background: var(--green); }
.toggle.on::after { left: 22px; }
.avatar-md { width: 60px; height: 60px; border-radius: 50%; flex: none; }

/* ===== Safari ===== */
.search-box {
  margin: 6px 16px 0; background: #e3e3e8; border-radius: 10px; padding: 9px 12px;
  display: flex; gap: 8px; align-items: center; color: var(--gray);
}
.search-box input { border: 0; background: transparent; width: 100%; outline: none; font-size: 17px; color: #000; }
.web-doc { background: #fff; margin: 14px 16px 0; border-radius: 12px; padding: 18px; }
.web-url { font-size: 13px; color: var(--gray); margin-bottom: 8px; }
.web-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.web-blurb { font-size: 16px; line-height: 1.6; color: #333; }
.web-note { margin: 16px; font-size: 13px; color: var(--gray); text-align: center; }

/* ===== Kamera ===== */
.cam-wrap { padding: 12px 0 10px; color: #fff; }
.cam-topline { display:flex; align-items:center; justify-content:center; gap:7px; height:24px; margin-bottom:8px; color:#fff; font-size:11px; font-weight:700; letter-spacing:1.2px; }
.cam-live-dot { width:6px; height:6px; border-radius:50%; background:#ff453a; box-shadow:0 0 7px #ff453a; }
.cam-hdr { position:absolute; right:24px; color:#ffd60a; font-size:10px; }
.vf { position:relative; width:min(300px,88%); aspect-ratio:3 / 4; margin:0 auto; border-radius:16px; overflow:hidden; background:#151517; transition:aspect-ratio .25s ease, border-radius .25s ease; touch-action:pan-y; }
.vf video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:filter .25s ease, transform .25s ease; }
.vf-ph { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:#888; font-size:13px; padding:16px; }
.vf-ph code { font-size:11px; color:#aaa; }
.vf.flash::after { content:""; position:absolute; inset:0; background:#fff; animation:flash .35s ease-out forwards; pointer-events:none; }
@keyframes flash { from { opacity:.9; } to { opacity:0; } }
.cam-modes-shell { overflow:hidden; margin:15px 0 0; padding:0 8px; }
.cam-modes { display:flex; align-items:center; justify-content:flex-start; gap:21px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; padding:8px calc(50% - 60px); scroll-snap-type:x mandatory; white-space:nowrap; }
.cam-modes::-webkit-scrollbar { display:none; }
.cam-mode { border:0; background:transparent; color:#aaa; font-family:inherit; font-size:11px; font-weight:700; line-height:1.2; letter-spacing:.45px; padding:7px 0; flex:none; scroll-snap-align:center; cursor:pointer; }
.cam-mode.on { color:#ffd60a; transform:scale(1.06); }
.cam-mode-caption { min-height:16px; text-align:center; color:#aaa; font-size:10px; margin:0 12px 13px; }
.cam-bar { display:flex; justify-content:space-between; align-items:center; padding:0 36px; }
.thumb { width:42px; height:42px; border-radius:8px; border:2px solid #fff; background-size:cover!important; background-position:center!important; }
.shutter { width:70px; height:70px; border-radius:50%; border:4px solid #fff; background:#fff; box-shadow:inset 0 0 0 4px #000; transition:transform .1s; }
.shutter:active { transform:scale(.92); }
.cam-switch { width:42px; height:42px; border:0; border-radius:50%; background:#29292b; color:#fff; font-size:25px; }
.cam-bottom-note { text-align:center; color:#777; font-size:10px; margin-top:10px; }
.vf[data-mode="portrait"] video { filter:saturate(1.08) contrast(1.02); transform:scale(1.035); }
.vf[data-mode="panorama"] { aspect-ratio:16 / 9; width:min(340px,94%); border-radius:10px; }
.vf[data-mode="panorama"] .cam-panorama-guide { position:absolute; inset:20% 0; border-top:1px solid #ffffff88; border-bottom:1px solid #ffffff88; z-index:2; pointer-events:none; }
.cam-panorama-guide { display:none; }
.vf[data-mode="slowmo"] video { filter:saturate(1.08); }
.vf[data-mode="timelapse"] video { filter:saturate(1.2) contrast(1.05); }
.vf[data-mode="cinematic"] { aspect-ratio:2.2 / 1; width:min(340px,94%); border-radius:10px; }
.cam-cinema-bar { display:none; position:absolute; left:0; right:0; height:8%; background:#000; z-index:3; pointer-events:none; }
.vf[data-mode="cinematic"] .cam-cinema-bar { display:block; }
.cam-cinema-top { top:0; } .cam-cinema-bottom { bottom:0; }

.cam-rec-badge {
  position: absolute; top: 12px; left: 12px; z-index: 6;
  background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; letter-spacing: .5px;
}
.shutter.is-video {
  background: #ff3b30;
  border-color: #ff3b30;
}
.shutter.recording {
  background: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255,59,48,.35);
  animation: camPulse 1s ease infinite;
}
@keyframes camPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.92); }
}
.vf[data-mode="photo"] video { filter: none; transform: none; }
.vf.cam-portrait-fx video { filter: saturate(1.05) contrast(1.03); }
.thumb video { pointer-events: none; }


/* ===== Instagram (tampilan dark) ===== */
/* base ig-page overridden by flex shell below */

.ig-top { display: flex; align-items: center; justify-content: space-between; padding: 54px 14px 6px; gap: 8px; }
.ig-top-ico { width: 32px; display: flex; justify-content: center; color: #f5f5f5; }
.ig-user-title { display: flex; align-items: center; gap: 4px; font-size: 20px; font-weight: 700; flex: 1; justify-content: center; }
.ig-user-title .ig-red-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; margin-left: 2px; }
.ig-verified { width: 14px; height: 14px; border-radius: 50%; background: #0095f6; display: grid; place-items: center; flex: none; }

.ig-head { display: flex; align-items: center; gap: 18px; padding: 10px 16px 4px; }
.ig-avwrap { position: relative; flex: none; }
.ig-av { width: 86px; height: 86px; border-radius: 50%; border: .5px solid #333; background-size: cover; background-position: center; }
.ig-note {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  min-width: 90px; max-width: 130px; padding: 6px 10px;
  background: #2c2c2e; color: #f5f5f5; font-size: 11px; line-height: 1.25; text-align: center;
  border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.45); white-space: nowrap;
}
.ig-note::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #2c2c2e;
}
.ig-plus {
  position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; border-radius: 50%;
  background: #0095f6; display: grid; place-items: center; border: 2.5px solid #000; color: #fff;
}
.ig-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; padding-top: 6px; }
.ig-stats b { display: block; font-size: 17px; font-weight: 700; color: #f5f5f5; }
.ig-stats span { font-size: 12px; color: #a8a8a8; margin-top: 1px; }

.ig-name { padding: 6px 16px 0; font-size: 14px; font-weight: 600; }
.ig-name span { color: #8e8e93; font-weight: 400; margin-left: 6px; }
.ig-bio-line { padding: 1px 16px 0; font-size: 14px; line-height: 1.35; white-space: pre-line; color: #f5f5f5; }
.ig-link { display: flex; align-items: center; gap: 6px; padding: 6px 16px 0; font-size: 14px; font-weight: 600; color: #e0f1ff; }
.ig-music {
  display: inline-flex; align-items: center; gap: 6px; margin: 10px 16px 0; padding: 6px 12px;
  border: 1px solid #3a3a3c; border-radius: 16px; font-size: 13px; background: transparent;
}
.ig-music span { color: #8e8e93; }

.ig-dash { display: none; } /* hide dashboard to match cleaner screenshot */

.ig-btns { display: flex; gap: 8px; margin: 12px 14px 0; }
.ig-btn {
  flex: 1; height: 34px; border-radius: 10px; background: #262626;
  font-size: 14px; font-weight: 600; display: grid; place-items: center; color: #f5f5f5; border: 0;
}
.ig-btn.sq { flex: none; width: 40px; }
.ig-btn:active { opacity: .65; }

.ig-hl { display: flex; gap: 16px; padding: 16px 14px 8px; overflow-x: auto; scrollbar-width: none; }
.ig-hl::-webkit-scrollbar { display: none; }
.ig-hl-item { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: #f5f5f5; }
.ig-hl-ring {
  width: 68px; height: 68px; border-radius: 50%; padding: 2.5px; background: #3a3a3c;
  display: grid; place-items: center;
}
.ig-hl-ring.new { background: none; border: 1.5px solid #3a3a3c; color: #f5f5f5; }
.ig-hl-img { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #000; background-size: cover; background-position: center; }

/* Story viewer 9:16 */
.story-wrap { position: absolute; inset: 0; background: #000; display: grid; place-items: center; }
.story-box { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 100%; overflow: hidden; background: #111; }
.story-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.story-bar { position: absolute; top: 10px; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); z-index: 2; }
.story-bar i { display: block; height: 100%; width: 100%; background: #fff; border-radius: 2px; }
.story-head { position: absolute; top: 22px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.story-head .story-av { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #fff; flex: none; background-size: cover; background-position: center; }
.story-close { position: absolute; top: 22px; right: 12px; z-index: 3; color: #fff; font-size: 26px; line-height: 1; padding: 4px; }
.story-grad { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), transparent 25%, transparent 75%, rgba(0,0,0,.4)); }

.ig-private-note { text-align: center; font-size: 12px; color: #8e8e93; padding: 12px 16px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-cell { aspect-ratio: 3 / 4; }
.ig-cell:active { opacity: .7; }
.ig-empty { padding: 50px 20px; text-align: center; color: #8e8e93; font-size: 15px; }

.ig-tabs { display: flex; border-top: .5px solid #262626; margin-top: 12px; }
.ig-tab { flex: 1; height: 50px; display: grid; place-items: center; color: #8e8e93; position: relative; }
.ig-tab.on { color: #f5f5f5; }
.ig-tab.on::after { content: ""; position: absolute; bottom: 0; left: 18%; right: 18%; height: 1.5px; background: #f5f5f5; }

/* Instagram shell: bottom nav selalu nempel bawah */
.ig-page {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: #000 !important;
  color: #f5f5f5;
}
.ig-page .ig-profile-view,
.ig-page .ig-feed-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  background: #000;
}
.ig-bottom {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 52px;
  padding: 0 4px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #000;
  border-top: .5px solid #1c1c1e;
  width: 100%;
  box-sizing: border-box;
}
.ig-nav-btn { display: grid; place-items: center; width: 56px; height: 44px; position: relative; }
.ig-me-av { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #f5f5f5; background-size: cover; background-position: center; }

/* ===== KAKAOTALK (dark, match user screenshots) ===== */
.line-list { background: #000; min-height: 100%; }
.line-list .chat-av { border-radius: 50%; }
.chat-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px; border-bottom: none; background: transparent; color: #fff;
}
.chat-row:active { background: #1a1a1a; }
.chat-av { width: 52px; height: 52px; border-radius: 50%; flex: none; background-size: cover; background-position: center; }
.chat-name { font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-last { font-size: 13px; color: #8e8e93; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.chat-time { font-size: 12px; color: #8e8e93; }
.badge {
  background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px;
}
.gcount { font-size: 12px; color: #8e8e93; font-weight: 400; }

/* Chat room dark */
.app-page.chat-page { padding: 0 !important; overflow: hidden; background: #000; }
.msgs {
  position: absolute; top: 0; bottom: 78px; left: 0; right: 0;
  overflow-y: auto; padding: 12px 14px 20px;
  background: #000;
}
.day-sep {
  text-align: center; font-size: 12px; color: #fff; background: rgba(60,60,67,.55);
  border-radius: 12px; padding: 5px 12px; width: fit-content; margin: 16px auto 12px;
}
.msg-row { display: flex; align-items: flex-end; gap: 6px; margin: 4px 0; }
.msg-row.me { justify-content: flex-end; }
.mini-av { width: 34px; height: 34px; border-radius: 50%; flex: none; align-self: flex-start; margin-top: 4px; background-size: cover; background-position: center; }
.mini-av.ghost { visibility: hidden; }
.col { display: flex; flex-direction: column; min-width: 0; max-width: 78%; }
.sender { font-size: 12px; color: #8e8e93; margin: 0 0 3px 4px; }
.pair { display: flex; align-items: flex-end; gap: 6px; }
.bubble {
  padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4;
  white-space: pre-wrap; word-break: break-word; max-width: 250px;
}
/* Kakao yellow bubble for self */
.msg-row.me .bubble, .me .bubble {
  background: #FEE500; color: #191919;
  border-radius: 16px 16px 4px 16px;
}
/* Other messages dark bubble */
.msg-row:not(.me) .bubble {
  background: #2c2c2e; color: #fff;
  border-radius: 16px 16px 16px 4px;
}
.meta { font-size: 11px; color: #8e8e93; text-align: right; white-space: nowrap; line-height: 1.2; }
.meta .read { color: #FEE500; font-weight: 700; font-size: 10px; }

/* Dark input bar matching screenshot */
.inputbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px 28px; background: #000; border-top: none;
}
.inputbar .kakao-input-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #1c1c1e; border-radius: 22px; padding: 6px 10px 6px 6px;
}
.inputbar .kakao-plus {
  width: 28px; height: 28px; border-radius: 50%; background: #3a3a3c;
  display: grid; place-items: center; color: #fff; font-size: 18px; flex: none;
}
.inputbar input {
  flex: 1; border: 0; background: transparent; outline: none;
  color: #fff; font-size: 15px; padding: 4px 0;
}
.inputbar input::placeholder { color: #8e8e93; }
.inputbar .kakao-emoji, .inputbar .kakao-mic {
  width: 28px; height: 28px; display: grid; place-items: center; color: #8e8e93; flex: none;
}
.send { color: #FEE500; font-weight: 700; padding: 6px 4px; font-size: 15px; }
.send:active { opacity: .5; }
.line-photo-send {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: #3a3a3c; color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
}
.line-photo-send:active { opacity: .55; }

/* ===== Foto di chat ===== */
.photo-stack {
  display: grid; gap: 3px; width: 220px; border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.photo-stack.n2 { grid-template-columns: 1fr 1fr; width: 226px; }
.chat-photo {
  position: relative; display: block; width: 100%;
  padding-top: 133.333%;              /* rasio 3:4 */
  background-color: #ddd;             /* warna cadangan jika file belum ada */
  background-size: cover; background-position: center; background-repeat: no-repeat;
  cursor: pointer;
}
.chat-photo:active { opacity: .8; }

/* ===== Foto dengan keterangan ===== */
.photo-wrap { display: flex; flex-direction: column; gap: 4px; width: 226px; }
.photo-wrap .bubble { max-width: 226px; }

/* ===== Kartu panggilan di chat ===== */
.call-card {
  display: flex; align-items: center; gap: 10px; width: 210px;
  padding: 10px 12px; border-radius: 18px; background: #fff; color: #000; text-align: left;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
}
.me .call-card { background: #FEE500; }
.call-card:active { opacity: .75; }
.call-ico { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; }
.call-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.call-txt b { font-size: 15px; }
.call-txt span { font-size: 13px; color: #666; }

/* ===== Detail panggilan ===== */
.call-detail {
  position: absolute; top: 98px; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--bg); padding: 12px 16px; display: flex; flex-direction: column;
}
.cd-top { display: flex; }
.cd-close { color: var(--blue); font-size: 17px; padding: 6px 0; }
.cd-card { margin-top: 18px; background: #fff; border-radius: 16px; padding: 26px 18px; text-align: center; }
.cd-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; }
.cd-title { font-size: 22px; font-weight: 700; }
.cd-sub { font-size: 14px; color: var(--gray); margin-top: 4px; }
.cd-rows { margin-top: 18px; text-align: left; }
.cd-rows > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: .5px solid var(--sep); font-size: 16px;
}
.cd-rows span { color: var(--gray); flex: none; }
.cd-rows b { font-weight: 500; text-align: right; }

/* ===== Galeri ===== */
/* Halaman galeri tidak menggulir sendiri. Hanya .gal-body yang digulir,
   sehingga tab Foto/Video selalu tetap di tempatnya. */
.gallery-page {
  display: flex; flex-direction: column;
  overflow: hidden; padding-bottom: 0;
}
.gallery-page .large-title { flex: none; padding-bottom: 6px; }

.seg-wrap { flex: none; display: flex; justify-content: center; padding: 0 0 10px; }
.seg {
  display: flex; width: 190px; padding: 2px; border-radius: 8px; background: #e3e3e8;
}
.seg button {
  flex: 1; height: 28px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: #000;
}
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

.gal-body {
  flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 40px;
  scrollbar-width: none;
}
.gal-body::-webkit-scrollbar { display: none; }

.photo-cell { position: relative; overflow: hidden; }
.photo-cell video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; background: #1c1c1e;
}
.play-badge {
  position: absolute; left: 6px; bottom: 6px; z-index: 1;
  color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}

/* Viewer */
.gv { position: absolute; inset: 0; background: #fff; color: #000; }
.gv-round {
  position: absolute; top: 54px; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  display: grid; place-items: center; font-size: 18px; z-index: 3;
}
.gv-back { left: 14px; }
.gv-more { right: 14px; letter-spacing: 1px; }
.gv-pill {
  position: absolute; top: 54px; left: 50%; transform: translateX(-50%); z-index: 3;
  height: 44px; padding: 0 26px; border-radius: 22px; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 14px; white-space: nowrap;
}
.gv-pill b { font-weight: 600; }
.gv-pill span { font-size: 12px; color: #555; }

.gv-stage {
  position: absolute; top: 110px; bottom: 150px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gv-stage img,
.gv-stage video {
  display: block; max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}

.gv-strip {
  position: absolute; left: 0; right: 0; bottom: 96px; height: 48px;
  display: flex; gap: 4px; align-items: center; overflow-x: auto; padding: 0 12px;
  scrollbar-width: none; z-index: 3;
}
.gv-strip::-webkit-scrollbar { display: none; }
.gv-strip button {
  position: relative; overflow: hidden;
  flex: none; width: 36px; height: 44px; border-radius: 6px; opacity: .6;
  border: 0; background-size: cover; background-position: center; background-color: #1c1c1e;
}
.gv-strip button video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.gv-strip button.on { opacity: 1; outline: 2px solid #fff; outline-offset: -2px; }

.gv-bar {
  position: absolute; left: 14px; right: 14px; bottom: 30px; height: 44px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
}
.gv-tool {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12); display: grid; place-items: center; font-size: 16px;
}
.gv-tools {
  display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 22px;
  border-radius: 22px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.gv-tools button { font-size: 18px; color: #000; }
/* ===== X (Twitter) App — match screenshot ===== */
.x-page {
  background: #000 !important;
  color: #e7e9ea;
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.x-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 54px 16px 10px;
  background: #000;
  flex: none;
}
.x-profile-mini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.x-profile-mini::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #1d9bf0;
  border: 2px solid #000;
}
.x-logo {
  font-size: 26px;
  font-weight: 800;
  color: #e7e9ea;
  line-height: 1;
}
.x-top-spacer { width: 34px; }

.x-tabs {
  display: flex;
  border-bottom: 1px solid #2f3336;
  background: #000;
  flex: none;
}
.x-tabs button {
  flex: 1;
  text-align: center;
  padding: 14px 0 12px;
  font-size: 15px;
  color: #71767b;
  position: relative;
  background: transparent;
  border: 0;
  font-weight: 500;
}
.x-tabs button.active {
  color: #e7e9ea;
  font-weight: 700;
}
.x-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: #1d9bf0;
  border-radius: 4px;
}
.x-tab-chev { font-size: 10px; margin-left: 2px; opacity: .8; }

.x-live-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #2f3336;
  flex: none;
  overflow: hidden;
}
.x-live-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a0a2e;
  border: 1.5px solid #7c3aed;
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
}
.x-live-av {
  width: 28px; height: 28px; border-radius: 50%;
  background-size: cover; background-position: center; flex: none;
}
.x-live-text {
  flex: 1; min-width: 0;
  font-size: 13px; color: #e7e9ea;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.x-live-text b { font-weight: 700; }
.x-live-eq { color: #a78bfa; font-size: 12px; letter-spacing: -1px; flex: none; }
.x-live-side {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #7c3aed;
  background-size: cover; background-position: center; flex: none;
}

.x-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.x-post {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #2f3336;
}
.x-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.x-body { flex: 1; min-width: 0; }
.x-meta {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.x-name {
  font-weight: 700;
  color: #e7e9ea;
  white-space: nowrap;
}
.x-handle, .x-time, .x-dot {
  color: #71767b;
  white-space: nowrap;
}
.x-post-x {
  margin-left: auto;
  color: #71767b;
  font-size: 13px;
  flex: none;
}
.x-text {
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0 12px;
  white-space: pre-wrap;
  color: #e7e9ea;
}
.x-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #71767b;
  font-size: 13px;
  max-width: 100%;
  gap: 2px;
}
.x-fab {
  position: absolute;
  right: 18px;
  bottom: 78px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: #1d9bf0;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 25;
  box-shadow: 0 4px 14px rgba(29, 155, 240, .45);
}
.x-fab:active { transform: scale(.94); }
.x-bottom {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 52px;
  padding: 0 4px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #2f3336;
  background: #000;
  z-index: 20;
}
.x-nav-btn {
  position: relative;
  width: 52px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #e7e9ea;
  display: grid;
  place-items: center;
}
.x-nav-btn.active { color: #fff; }
.x-nav-btn:active { opacity: .55; }
.x-nav-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #1d9bf0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1.5px solid #000;
}

/* KakaoTalk bottom tab bar (dark) */
.line-tab-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #000;
  color: #fff;
}
.line-tab-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8px;
  background: #000;
}
.line-tabbar {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  padding: 8px 10px 18px;
  background: #000;
  border-top: .5px solid #1c1c1e;
}
.line-tab {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px;
  color: #8e8e93;
  font-size: 10px;
}
.line-tab.active { color: #fff; }
.line-tab-ico {
  position: relative;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-size: 0; line-height: 1;
}
.line-tab-ico svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; }
.line-tab-label { font-size: 10px; display: none; } /* icon-only like screenshots */

.line-section-title {
  padding: 8px 16px 12px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.line-home-card {
  margin: 6px 16px;
  padding: 14px;
  border-radius: 12px;
  background: #1c1c1e;
}
.line-home-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.line-home-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #8e8e93;
}
.line-call-row {
  width: calc(100% - 32px);
  margin: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #1c1c1e;
  text-align: left;
  color: #fff;
}
.line-call-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: none;
}
.line-call-action { font-size: 20px; }

/* Kakao custom header */
.kakao-top {
  padding: 54px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000;
}
.kakao-top h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.kakao-top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #fff;
}
.kakao-top-actions button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: #fff; background: transparent; border: 0;
}
.kakao-top-actions svg { width: 22px; height: 22px; }
.kakao-home-btn {
  font-size: 18px !important;
  line-height: 1;
  opacity: .95;
}
.kakao-home-btn:active { opacity: .55; }

/* Friends profile row */
.kakao-me-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 18px;
}
.kakao-me-av {
  width: 56px; height: 56px; border-radius: 50%;
  background-size: cover; background-position: center; flex: none;
}
.kakao-me-name { font-size: 17px; font-weight: 600; color: #fff; }
.kakao-profile-btn {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 16px;
  border: 1px solid #3a3a3c;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* Section headers in friends */
.kakao-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
  color: #8e8e93;
  font-size: 13px;
}
.kakao-sec span { color: #8e8e93; }

/* Filter pills for Obrolan */
.kakao-filters {
  display: flex;
  gap: 8px;
  padding: 4px 16px 14px;
  align-items: center;
}
.kakao-pill {
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: #2c2c2e;
  color: #fff;
}
.kakao-pill.active {
  background: #fff;
  color: #000;
}
.kakao-pill .pill-badge {
  display: inline-block;
  margin-left: 4px;
  background: #ff3b30;
  color: #fff;
  font-size: 11px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  text-align: center;
  line-height: 16px;
  padding: 0 4px;
}
.kakao-sys-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: #FEE500; color: #191919;
}

/* Chat room custom header (matches screenshot 3) */
.kakao-chat-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 50px 12px 10px;
  display: flex; align-items: center; gap: 10px;
  background: #000;
}
.kakao-chat-header .back-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1c1c1e; display: grid; place-items: center;
  color: #fff; border: 0; flex: none;
}
.kakao-chat-header .chat-title {
  flex: 1; font-size: 17px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kakao-chat-actions {
  display: flex; gap: 4px; background: #1c1c1e;
  border-radius: 20px; padding: 4px 6px;
}
.kakao-chat-actions button {
  width: 32px; height: 32px; border: 0; background: transparent;
  color: #fff; display: grid; place-items: center;
}

.app-page.line-tab-page {
  padding-bottom: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding-top: 0 !important;
}
.line-tab-page .line-tab-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.line-tab-page .line-tabbar {
  flex: 0 0 auto;
  position: relative;
  z-index: 30;
  height: 70px;
  padding: 6px 8px 16px;
  background: #000 !important;
  border-top: .5px solid #1c1c1e;
  box-shadow: none;
}
.line-tab-page .line-tab {
  position: relative;
  color: #8e8e93;
  background: transparent;
  border-radius: 0;
  gap: 0;
  padding: 4px 2px 0;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
}
.line-tab-page .line-tab.active {
  color: #fff;
  background: transparent;
}
.line-tab-page .line-tab-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0;
  line-height: 1;
  color: currentColor;
}
.line-tab-page .line-tab-ico svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.line-tab-page .line-tab-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: #ff3b30;
  border: 2px solid #000;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
}
.line-tab-page .line-tab-label {
  display: none;
}
.line-tab-page .line-more-row {
  width: calc(100% - 32px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: inherit;
  border: 0;
  cursor: pointer;
  text-align: left;
}

/* X verified badge */
.x-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0 2px 0 3px;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}
.x-av, .x-profile-mini, .x-compose-av {
  background-repeat: no-repeat;
}





/* Call icon buttons in Wilona chat */
/* JANGAN set position:relative di .chat-page — itu menimpa .app-page (absolute)
   sehingga tinggi halaman jadi 0 dan pesan tidak terlihat. */
/* Tombol call di area header (bukan status bar). Header content dari top:54px. */
.chat-page .line-call-btns {
  position: absolute;
  right: 10px;
  top: 62px;
  z-index: 40;
  display: flex;
  gap: 6px;
  pointer-events: auto;
}
.chat-page .line-call-btns .line-vcall-btn,
.chat-page .line-call-btns .line-acall-btn {
  position: static;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}
.chat-page .line-call-btns .line-vcall-btn {
  background: #2f7dff;
}
.chat-page .line-call-btns .line-acall-btn {
  background: #06c755;
}
.chat-page .line-call-btns img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

/* ===== YouTube / aespa Official ===== */
.yt-brand { display:flex; align-items:center; gap:10px; padding:10px 16px 14px; font-size:22px; letter-spacing:-.5px; }
.yt-logo { display:grid; place-items:center; width:34px; height:24px; border-radius:7px; color:#fff; background:#ff0033; font-size:14px; }
.yt-subtitle { color:var(--gray); font-size:12px; font-weight:400; letter-spacing:0; margin-top:2px; }
.yt-channel { display:flex; align-items:center; gap:10px; margin:0 14px 20px; padding:12px; border-radius:14px; background:#f2f2f7; }
.yt-channel-avatar { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:#1b1b1f; color:#fff; font-size:23px; font-weight:700; }
.yt-channel-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:4px; font-size:13px; }
.yt-channel-copy span,.yt-card-info span,.yt-card-info small { color:var(--gray); font-size:11px; }
.yt-channel a,.yt-open { color:#087df0; text-decoration:none; font-size:12px; font-weight:600; }
.yt-section-title { padding:0 16px 12px; font-size:18px; font-weight:750; }
.yt-section-title span { display:block; color:var(--gray); font-size:11px; font-weight:400; margin-top:4px; }
.yt-list { padding:0 12px 24px; display:flex; flex-direction:column; gap:8px; }
.yt-card { border:0; background:transparent; width:100%; display:flex; align-items:center; gap:11px; padding:7px 2px; text-align:left; color:inherit; font:inherit; border-radius:10px; }
.yt-card:active { background:#eeeef2; }
.yt-thumb { position:relative; flex:none; width:116px; aspect-ratio:16/9; border-radius:9px; background:linear-gradient(135deg,#302039,#b5235a 55%,#f0a7bc); background-size:cover; background-position:center; display:grid; place-items:center; overflow:hidden; }
.yt-play { display:grid; place-items:center; border-radius:10px; width:34px; height:25px; background:#ff0033; color:white; font-size:13px; }
.yt-index { position:absolute; bottom:4px; left:5px; color:white; font-size:10px; text-shadow:0 1px 3px #000; }
.yt-card-info { display:flex; flex:1; min-width:0; flex-direction:column; gap:5px; }
.yt-card-info b { font-size:13px; line-height:1.25; }
.yt-card-info span,.yt-card-info small { line-height:1.2; }
.yt-more { color:var(--gray); align-self:flex-start; padding:0 3px; }
.yt-watch { padding:8px 14px 24px; }
.yt-player { width:100%; aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:#000; }
.yt-player iframe { width:100%; height:100%; border:0; }
.yt-watch h2 { font-size:20px; margin:16px 0 6px; }
.yt-watch p { color:var(--gray); font-size:13px; line-height:1.5; }
.yt-open { display:inline-block; background:#f1f1f5; padding:11px 14px; border-radius:22px; margin:8px 0; }
.yt-search-art { aspect-ratio:16/9; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; background:linear-gradient(135deg,#20102d,#ff0033); color:white; font-size:34px; }
.yt-search-art span { font-size:15px; font-weight:700; }
.yt-disclaimer { font-size:11px !important; }


/* ===== Instagram feed (match modern dark screenshots) ===== */
.ig-profile-view[hidden], .ig-feed-view[hidden] { display: none !important; }
.ig-feed-view { color: #f5f5f5; background: #000; }
.ig-feed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 54px 14px 10px;
  position: sticky; top: 0; z-index: 5; background: #000;
}
.ig-feed-wordmark {
  font-family: 'Instagram Sans', cursive, system-ui, sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: -0.8px;
  display: flex; align-items: center; gap: 4px;
}
.ig-feed-wordmark .chev { font-size: 12px; opacity: .85; }
.ig-feed-actions { display: flex; gap: 16px; align-items: center; }
.ig-feed-actions button { display: grid; place-items: center; width: 28px; height: 32px; position: relative; }
.ig-feed-actions .notif-dot {
  position: absolute; top: 2px; right: 0; width: 8px; height: 8px;
  background: #ff3b30; border-radius: 50%; border: 1.5px solid #000;
}
.ig-stories {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 8px 12px 14px; scrollbar-width: none;
}
.ig-stories::-webkit-scrollbar { display: none; }
.ig-story {
  flex: none; width: 74px; display: flex; flex-direction: column;
  align-items: center; gap: 5px; font-size: 11px; color: #f5f5f5;
}
.ig-story-ring {
  width: 66px; height: 66px; padding: 2.5px; border-radius: 50%;
  background: linear-gradient(45deg, #feda75, #d62976, #962fbf, #4f5bd5);
  position: relative;
}
.ig-story-ring.live {
  background: linear-gradient(45deg, #ff3040, #d62976);
}
.ig-story-ring.live::after {
  content: 'LIVE'; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  background: #ff3040; color: #fff; font-size: 8px; font-weight: 800;
  padding: 1px 5px; border-radius: 3px; letter-spacing: .3px;
}
.ig-story-ring img, .ig-story-ring .story-placeholder {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border: 2.5px solid #000; border-radius: 50%; background: #1c1c1e;
}
.ig-story .story-add {
  position: absolute; right: 0; bottom: 0; width: 20px; height: 20px;
  background: #0095f6; border: 2px solid #000; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
.ig-feed-post { border-bottom: none; padding-bottom: 10px; margin-bottom: 6px; }
.ig-post-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px 6px; min-height: 44px;
}
.ig-post-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #333; }
.ig-post-user { font-size: 13px; font-weight: 700; color: #f5f5f5; background: none; border: 0; padding: 0; }
.ig-post-music {
  display: flex; align-items: center; gap: 4px; font-size: 11px; color: #f5f5f5;
  margin-left: 0; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ig-post-music .note { font-size: 12px; }
.ig-post-more { margin-left: auto; font-size: 18px; letter-spacing: 1px; color: #f5f5f5; background: none; border: 0; }
.ig-post-photo {
  display: block; width: 100%; background: #111; position: relative; overflow: hidden;
}
.ig-post-photo img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.ig-post-photo .carousel-count {
  position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 12px;
}
.ig-post-tools {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px;
}
.ig-post-tools button, .ig-post-tools .ig-tool {
  min-width: 28px; height: 28px; display: grid; place-items: center;
  font-size: 24px; line-height: 1; background: none; border: 0; color: #f5f5f5;
}
.ig-like.liked { color: #ff3040; }
.ig-post-tools .counts {
  display: flex; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; color: #f5f5f5;
}
.ig-post-tools .ig-save { margin-left: auto; }
.ig-post-likes { padding: 2px 12px 2px; font-size: 13px; font-weight: 600; }
.ig-post-caption { padding: 2px 12px; font-size: 13px; line-height: 1.4; }
.ig-post-caption b { margin-right: 4px; }
.ig-comments-link { display: block; padding: 2px 12px 0; color: #8e8e93; font-size: 13px; background: none; border: 0; text-align: left; }
.ig-post-time { padding: 4px 12px 0; color: #8e8e93; font-size: 11px; }
.ig-bottom .ig-nav-btn { border: 0; background: transparent; color: #f5f5f5; cursor: pointer; }
.ig-bottom .ig-nav-btn.active { color: #fff; }
.ig-bottom .ig-nav-btn:active { opacity: .55; }
.ig-bottom .nav-badge {
  position: absolute; top: 2px; right: 8px; min-width: 16px; height: 16px;
  background: #ff3b30; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 8px; display: grid; place-items: center; border: 1.5px solid #000;
}

/* Comment panel under feed posts */
.ig-comment-panel {
  display: none;
  padding: 8px 12px 14px;
  border-top: .5px solid #1c1c1e;
  background: #0a0a0a;
}
.ig-comment-panel.open { display: block; }
.ig-comments-box {
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.ig-comments-box::-webkit-scrollbar { display: none; }
.ig-cmt-row {
  font-size: 13px;
  line-height: 1.4;
  color: #f5f5f5;
  padding: 4px 0;
}
.ig-cmt-row b { margin-right: 4px; font-weight: 700; }
.ig-cmt-time {
  display: block;
  font-size: 11px;
  color: #8e8e93;
  margin-top: 1px;
}
.ig-cmt-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ig-cmt-av {
  width: 28px; height: 28px; border-radius: 50%;
  background-size: cover; background-position: center; flex: none;
  border: .5px solid #333;
}
.ig-cmt-input {
  flex: 1;
  border: .5px solid #3a3a3c;
  background: #1c1c1e;
  color: #f5f5f5;
  border-radius: 18px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}
.ig-cmt-input::placeholder { color: #8e8e93; }
.ig-cmt-send {
  border: 0;
  background: transparent;
  color: #0095f6;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 4px;
}
.ig-cmt-send:active { opacity: .55; }

/* Interaksi X/Twitter: tombol dan composer */
.x-action {
  border: 0; padding: 4px 2px; background: transparent; color: #71767b;
  font-size: 12px; display: inline-flex; gap: 4px; align-items: center; cursor: pointer;
}
.x-action svg { flex: none; }
.x-action:active { opacity: .65; }
.x-action.is-liked { color: #f91880; }
.x-action.is-reposted { color: #00ba7c; }
.x-small-btn {
  border: 0; border-radius: 18px; padding: 7px 14px;
  background: #1d9bf0; color: #fff; font-weight: 700; cursor: pointer;
}
.x-replybox { display: flex; gap: 8px; margin-top: 10px; }
.x-replybox[hidden] { display: none; }
.x-reply-input {
  flex: 1; min-width: 0; background: #111; color: #e7e9ea;
  border: 1px solid #2f3336; border-radius: 18px; padding: 8px 12px; outline: 0;
}
.x-reply-input::placeholder { color: #71767b; }
.x-comments { margin-top: 10px; font-size: 14px; color: #e7e9ea; }
.x-comments div { margin-top: 4px; }
.x-comments b { margin-right: 4px; }
.x-comments { margin-top:8px; padding:8px 10px; background:#101214; border-radius:10px; font-size:13px; line-height:1.5; }
.x-comments div + div { margin-top:5px; }
.x-notice { padding:10px 16px; background:#10202b; color:#d7eaf6; border-bottom:1px solid #2f3336; font-size:13px; }

/* X Direct Messages */
.x-dm { display:flex; flex-direction:column; height:100%; background:#000; color:#e7e9ea; }
.x-dm-top { display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid #2f3336; }
.x-dm-back { border:0; background:none; color:#e7e9ea; font-size:28px; line-height:1; padding:0 6px; }
.x-dm-user { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.x-dm-av { width:36px; height:36px; border-radius:50%; background:#333 center/cover; }
.x-dm-name { font-size:15px; font-weight:700; }
.x-dm-handle { font-size:12px; color:#71767b; }
.x-verified-mini { color:#1d9bf0; font-size:12px; }
.x-dm-thread { flex:1; overflow-y:auto; padding:14px 12px 10px; display:flex; flex-direction:column; gap:10px; }
.x-dm-row { max-width:82%; display:flex; flex-direction:column; }
.x-dm-row.me { align-self:flex-end; align-items:flex-end; }
.x-dm-row.them { align-self:flex-start; align-items:flex-start; }
.x-dm-bubble { padding:10px 14px; border-radius:18px; font-size:14px; line-height:1.4; }
.x-dm-row.me .x-dm-bubble { background:#1d9bf0; color:#fff; border-bottom-right-radius:6px; }
.x-dm-row.them .x-dm-bubble { background:#212327; color:#e7e9ea; border-bottom-left-radius:6px; }
.x-dm-time { font-size:10px; color:#71767b; margin-top:3px; padding:0 4px; }
.x-dm-compose { display:flex; gap:8px; padding:10px 12px 8px; border-top:1px solid #2f3336; margin-bottom:56px; }
.x-dm-compose input { flex:1; border:1px solid #2f3336; background:#16181c; color:#e7e9ea; border-radius:20px; padding:10px 14px; font-size:14px; outline:none; }
.x-dm-compose button { border:0; background:#1d9bf0; color:#fff; font-weight:700; border-radius:18px; padding:0 14px; }


/* Pastikan nav Instagram bisa diketuk (di atas home-bar) */
.ig-page .ig-bottom {
  position: relative !important;
  z-index: 50 !important;
  pointer-events: auto !important;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}
.ig-page .ig-bottom .ig-nav-btn {
  pointer-events: auto !important;
  z-index: 51;
}
.ig-feed-view, .ig-feed-view * {
  pointer-events: auto;
}
.ig-feed-view[hidden], .ig-profile-view[hidden] {
  display: none !important;
}


/* ===== YouTube cooler ===== */
.app-page.youtube-page { background: #0f0f0f !important; color: #fff; }
.yt-brand { background: #0f0f0f; border-bottom: 1px solid #222; }
.yt-logo { background: #ff0000; box-shadow: 0 0 12px rgba(255,0,0,.4); }
.yt-channel { background: #1a1a1a; border: 1px solid #2a2a2a; }
.yt-channel-avatar { background: linear-gradient(135deg, #ff0000, #c00); }
.yt-section-title { color: #fff; }
.yt-card { background: #1a1a1a; border-radius: 12px; margin-bottom: 8px; padding: 8px; border: 1px solid #222; }
.yt-card:active { background: #252525; }
.yt-thumb { width: 140px; border-radius: 8px; position: relative; }
.yt-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.6)); }
.yt-duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.85); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 5px; border-radius: 4px; z-index: 2; }
.yt-play { background: rgba(255,0,0,.9); width: 36px; height: 26px; font-size: 12px; }
.yt-card-info b { color: #fff; font-size: 14px; }
.yt-card-info span { color: #aaa; }
.yt-card-info small { color: #888; }
.yt-views { color: #aaa; font-size: 11px; margin-top: 2px; }
.yt-watch { background: #0f0f0f; color: #fff; }
.yt-search-art { border-radius: 12px; min-height: 180px; display: flex; align-items: flex-end; padding: 16px; background-size: cover; }
.yt-open { background: #ff0000; color: #fff !important; padding: 10px 16px; border-radius: 20px; display: inline-block; margin-top: 12px; }
