/* =========================================================
   VTubers.ID — Design System (production-grade, flat dark)
   No gradients, no neon. One restrained red accent.
   ========================================================= */

:root {
    /* Surfaces */
    --bg:            #0f1014;
    --bg-sidebar:    #15161c;
    --surface:       #1b1c23;
    --surface-2:     #23252e;
    --surface-3:     #2b2d38;
    --border:        #2a2c36;
    --border-soft:   #21232b;

    /* Text */
    --text:          #e9eaee;
    --text-muted:    #9b9da9;
    --text-dim:      #686b78;

    /* Accent (refined red, used sparingly) */
    --accent:        #e23b54;
    --accent-hover:  #cf2f47;
    --accent-soft:   rgba(226, 59, 84, 0.12);

    /* Status */
    --green:         #34b87a;
    --green-soft:    rgba(52, 184, 122, 0.14);
    --amber:         #d79a3a;
    --amber-soft:    rgba(215, 154, 58, 0.14);
    --blue:          #4a90d9;
    --blue-soft:     rgba(74, 144, 217, 0.14);
    --red-soft:      rgba(226, 59, 84, 0.14);

    /* Geometry */
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     16px;
    --radius-pill:   999px;
    --shadow:        0 6px 24px rgba(0,0,0,0.28);
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.22);
    --sidebar-w:     264px;
    --topbar-h:      64px;
    --topbar-bg:     rgba(15,16,20,0.82);
    --placehold:     1b1c23;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- LIGHT THEME ---------- */
html[data-theme="light"] {
    --bg:            #f5f6f8;
    --bg-sidebar:    #ffffff;
    --surface:       #ffffff;
    --surface-2:     #f1f2f5;
    --surface-3:     #e6e8ed;
    --border:        #e2e4ea;
    --border-soft:   #ebedf1;
    --text:          #1a1c22;
    --text-muted:    #5c606d;
    --text-dim:      #9296a3;
    --accent-soft:   rgba(226, 59, 84, 0.10);
    --shadow:        0 6px 24px rgba(20,22,28,0.10);
    --shadow-sm:     0 2px 8px rgba(20,22,28,0.07);
    --topbar-bg:     rgba(245,246,248,0.85);
    --placehold:     eef0f3;
}
html { transition: background-color .2s ease; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3d49; }
/* Kotak scroll compact (deskripsi & ToS di halaman produk) — scrollbar tipis */
.scroll-box { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.scroll-box::-webkit-scrollbar { width: 6px; }
.scroll-box::-webkit-scrollbar-thumb { background: var(--surface-3); border: none; border-radius: 6px; }

/* =================== LAYOUT =================== */
/* Sidebar = DRAWER slide-out KANAN di semua ukuran (dibuka lewat tombol ☰). Off-canvas secara default. */
#sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: 300px; max-width: 86vw;
    background: var(--bg-sidebar);
    border-left: 1px solid var(--border-soft);
    display: flex; flex-direction: column;
    z-index: 250; transition: transform .28s cubic-bezier(.4,0,.2,1);
    transform: translateX(100%); box-shadow: var(--shadow);
}
#sidebar.active { transform: translateX(0); }
.sidebar-head { padding: 20px 20px 4px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex-shrink: 0; }
.brand span { color: var(--accent); }

.profile-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 14px 16px 6px; padding: 9px 14px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600;
    transition: background .15s, border-color .15s;
}
.profile-btn:hover { background: var(--surface-3); }
.profile-btn .pb-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.profile-btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.profile-btn .pb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 16px; }
.nav-group-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); padding: 16px 12px 7px; }
.menu { list-style: none; }
.menu li a, .menu li button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-muted); font-size: 14px; font-weight: 500;
    border: none; background: none; text-align: left; transition: background .14s, color .14s;
}
.menu li a:hover, .menu li button:hover { background: var(--surface-2); color: var(--text); }
.menu li a i, .menu li button i { width: 18px; text-align: center; font-size: 15px; }
.menu li a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.menu li a.active i { color: var(--accent); }
.menu .nav-add { margin-left: auto; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--surface-3); color: var(--text-muted); font-size: 12px; }
.menu .nav-add:hover { background: var(--accent); color: #fff; }

/* ===== Sidebar enhance: struktur lebih jelas, tetap hierarki lama ===== */
/* Scrollbar tipis */
.nav-scroll { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nav-scroll::-webkit-scrollbar { width: 6px; }
.nav-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* Label grup: STICKY saat digulir (struktur selalu terlihat) + pemisah antar grup + bisa dilipat */
.nav-group-label { position: sticky; top: 0; z-index: 2; background: var(--bg-sidebar); display: flex; align-items: center; cursor: pointer; user-select: none; border-radius: 0 0 6px 6px; }
.nav-scroll > .nav-group-label:not(:first-child) { border-top: 1px solid var(--border-soft); margin-top: 8px; }
.nav-group-label::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; margin-left: auto; padding-right: 4px; opacity: .45; transition: transform .18s; }
.nav-group-label:hover { color: var(--text-muted); }
.nav-group-label.collapsed::after { transform: rotate(-90deg); }
.menu.collapsed { display: none; }
/* Item aktif: bar aksen kiri + latar aksen lembut (lokasi saat ini lebih tegas) */
.menu li a.active { background: var(--accent-soft); position: relative; }
.menu li a.active::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--accent); }
/* Micro-interaction hover: geser halus + ikon menyala */
.menu li a, .menu li button { transition: background .14s, color .14s, padding-left .14s; }
.menu li a:hover, .menu li button:hover { padding-left: 15px; }
.menu li a:hover i, .menu li button:hover i { color: var(--accent); }
/* Animasi masuk lembut saat sidebar dibuka */
#sidebar.active .nav-scroll { animation: sbNavIn .3s ease both; }
@keyframes sbNavIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #sidebar.active .nav-scroll { animation: none; } }

.sidebar-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-dim); }

#main-content { margin-left: 0; min-height: 100vh; display: flex; flex-direction: column; }

.top-bar {
    position: sticky; top: 0; z-index: 100; height: var(--topbar-h);
    display: flex; align-items: center; gap: 14px; padding: 0 28px;
    background: var(--topbar-bg); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}
.top-bar h3 { font-size: 16px; font-weight: 600; }
/* Tombol ☰ pembuka drawer — tampil di SEMUA ukuran */
#menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
#menu-toggle:hover { background: var(--surface-2); }
#menu-toggle .mt-label { font-size: 13.5px; }

/* ===== NAV ATAS: brand + JELAJAH dropdown ===== */
.tb-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; flex-shrink: 0; color: var(--text); }
.tb-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.tb-brand span { color: var(--accent); }
/* Tombol Discord di topbar (menggantikan dropdown Jelajah). margin-left:auto mendorong cluster ke kanan. */
.tb-discord { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; flex-shrink: 0; margin-left: auto; background: #5865f2; color: #fff; border: 1px solid #5865f2; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; white-space: nowrap; transition: filter .15s; }
.tb-discord:hover { filter: brightness(1.08); color: #fff; }
.tb-discord i { color: #fff; }
@media (max-width: 700px) { .tb-discord { padding: 0 12px; } .tb-discord-txt { display: none; } }
.jelajah-menu a i { width: 18px; text-align: center; color: var(--accent); font-size: 15px; }
.jelajah-menu a .jm-live { margin-left: auto; }
/* Tombol tutup drawer */
.sidebar-close { position: absolute; top: 18px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 2; }
.sidebar-close:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 680px) { .tb-brand span { display: none; } .jelajah-btn .jb-label { display: none; } .jelajah-btn { padding: 0 13px; } }
@media (max-width: 520px) { .jelajah-wrap { display: none; } #menu-toggle .mt-label { display: none; } #menu-toggle { padding: 0; width: 38px; } .top-bar { gap: 8px; } .topbar-actions { gap: 6px; } }

/* Search bar ala referensi: pill lebar & menonjol, tinggi 38px = .jelajah-btn, highlight saat fokus */
.topbar-search { flex: 0 1 560px; height: 38px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0 18px; color: var(--text-dim); transition: border-color .15s, background .15s, box-shadow .15s; }
.topbar-search:focus-within { border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(226,59,84,.12); }
.topbar-search i { font-size: 14px; flex-shrink: 0; }
/* Reset GLOBAL (semua .topbar-search di mana pun: header, artists, vtubers, commissions) — menang atas
   `input[type=text]` global via !important, agar input menyatu jadi satu dgn pill (bukan kotak di dalam kotak) */
.topbar-search input { flex: 1; width: auto; min-width: 0; background: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; outline: none; color: var(--text); font-size: 14px; padding: 0 !important; margin: 0; height: auto; line-height: 1.2; -webkit-appearance: none; appearance: none; transition: none; }
.topbar-search input:focus { background: none !important; border: none !important; }
.topbar-search input::placeholder { color: var(--text-dim); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 15px; position: relative; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; border: 2px solid var(--surface); }
.avatar-btn img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; }
/* Samaratakan tinggi & posisi SEMUA kontrol di top-bar → 38px, vertikal center konsisten */
.top-bar > * { align-self: center; }
.tb-brand { height: 38px; }
.topbar-actions .btn { height: 38px; padding: 0 16px; }
.jelajah-btn, #menu-toggle, .icon-btn, .topbar-search, .avatar-btn img { box-sizing: border-box; }
.avatar-wrap { position: relative; display: flex; align-items: center; }
.avatar-btn { display: block; width: 38px; height: 38px; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; line-height: 0; box-sizing: border-box; }
.avatar-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 232px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 300; display: none; overflow: hidden; padding: 6px; }
.avatar-menu.open { display: block; }
.avatar-menu a.avatar-menu-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; border-radius: 8px 8px 0 0; color: var(--text); }
.avatar-menu a.avatar-menu-head:hover { background: var(--surface-2); }
.avatar-menu-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-menu-head .am-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.avatar-menu-head .am-user { font-size: 12px; color: var(--text-muted); }
.avatar-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: 13.5px; text-decoration: none; }
.avatar-menu a i { width: 18px; text-align: center; color: var(--text-muted); }
.avatar-menu a:hover { background: var(--surface-2); }
.avatar-menu a.am-logout { color: var(--danger, #e5484d); margin-top: 4px; border-top: 1px solid var(--border); }
.avatar-menu a.am-logout i { color: var(--danger, #e5484d); }
/* ===== Topbar & menu avatar enhance ===== */
/* Badge angka (notif/pesan) — menggantikan titik polos; id & perilaku display JS tetap */
.icon-btn .dot.count-pill { width: auto; min-width: 17px; height: 17px; padding: 0 4px; top: 3px; right: 1px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: #fff; line-height: 1; }
/* Ikon cari khusus layar sempit (kolom cari desktop disembunyikan <=992px) */
/* Mobile: sembunyikan toggle tema di topbar (pindah ke drawer .sb-theme) agar topbar tak padat */
@media (max-width: 600px) { .top-bar .theme-toggle { display: none; } }
.sb-theme { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 14px; margin-bottom: 10px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-muted); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sb-theme:hover { background: var(--surface); border-color: var(--border); color: var(--text); }
.sb-theme i { font-size: 14px; }
@media (min-width: 601px) { .sb-theme { display: none; } }
/* Avatar: cincin aksen saat hover / menu terbuka */
.avatar-btn img { transition: box-shadow .15s; }
.avatar-btn:hover img, .avatar-wrap:has(.avatar-menu.open) .avatar-btn img { box-shadow: 0 0 0 2px var(--accent); }
/* Menu avatar: animasi masuk + chevron head + ikon menyala saat hover */
.avatar-menu.open { animation: amIn .16s ease; }
@keyframes amIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .avatar-menu.open { animation: none; } }
.avatar-menu-head .am-go { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.avatar-menu-head .am-user { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-menu a:hover i { color: var(--accent); }

.am-socials { display: flex; gap: 8px; justify-content: center; padding: 10px 6px 4px; margin-top: 4px; border-top: 1px solid var(--border); }
.am-socials a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--surface-2); color: var(--text-muted); font-size: 15px; transition: .15s; }
.am-socials a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
/* Di footer drawer: rata-kiri (selaras tombol Keluar & menu), tanpa garis ganda */
.sidebar-foot .am-socials { justify-content: flex-start; border-top: none; padding: 12px 0 0; margin-top: 12px; gap: 9px; }
/* Tombol Keluar (logout) — pill rapi, hover merah (indikasi keluar) */
.sidebar-logout { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 14px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--text-muted); font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.sidebar-logout:hover { background: rgba(226,59,84,.12); border-color: rgba(226,59,84,.45); color: var(--accent); }
.sidebar-logout i { font-size: 14px; }
/* Tombol Login (guest) — bentuk sama dgn Keluar, versi primary (aksen) */
.sidebar-login { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 14px; border-radius: var(--radius-pill); background: var(--accent); border: 1px solid var(--accent); color: #fff; font-size: 13.5px; font-weight: 700; transition: filter .15s; }
.sidebar-login:hover { filter: brightness(1.08); }
.sidebar-login i { font-size: 14px; }
@media (max-width: 560px) { .avatar-menu { position: fixed; top: 58px; right: 10px; } }

/* Konten SELALU full-width (mengisi area di samping sidebar) — tanpa ruang kosong di layar lebar/scale 100-125%.
   Padding samping 28px sbg gutter. Halaman lebar (grid/galeri/chat/jadwal/profil) tetap full-width via :has() di bawah. */
.content { padding: 30px 28px 60px; flex: 1; width: 100%; max-width: none; }
.is-profile .content,
.is-wide .content,
.content:has(.grid-container),
.content:has(.gal-masonry),
.content:has(.kr-grid),
.content:has(.ms-grid),
.content:has(.news-grid),
.content:has(.sched-grid),
.content:has(.chat) { max-width: none; }

/* =================== TYPOGRAPHY =================== */
h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 17px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }
.page-head { margin-bottom: 26px; }
.page-head .sub { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =================== BUTTONS =================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-subtle { background: var(--surface-2); color: var(--text); }
.btn-subtle:hover { background: var(--surface-3); }
.btn-danger { background: var(--red-soft); color: var(--accent); }
.btn-danger:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-pill { border-radius: var(--radius-pill); }

/* =================== CARDS / GRID =================== */
.grid-container { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; }
.card:hover { border-color: var(--border); }
.card-link { cursor: pointer; }
.card-link:hover { transform: translateY(-3px); }
.card-thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--surface-2); }
/* Facade video YouTube (Discovery): thumbnail + tombol play kecil, iframe dimuat saat diklik */
.yt-facade { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--surface-2); overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade .yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; padding-left: 3px; transition: background .15s, transform .15s; backdrop-filter: blur(2px); }
.yt-facade:hover .yt-play { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
/* Iklan native */
.ad-tag { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .3px; padding: 2px 8px; border-radius: 6px; z-index: 3; pointer-events: none; }
.ad-banner { display: block; position: relative; max-width: 760px; margin: 0 auto 20px; text-decoration: none; }
.ad-banner img { width: 100%; max-height: 150px; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; }
.card-title { font-size: 15px; font-weight: 600; margin: 2px 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-artist { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.card-artist img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.card-price { color: var(--text); font-weight: 700; font-size: 14px; margin-top: 8px; }

.tag, .card-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red   { background: var(--red-soft); color: var(--accent); }
.badge-blue  { background: var(--blue-soft); color: var(--blue); }
.badge-gray  { background: var(--surface-2); color: var(--text-muted); }
.dot-status { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* =================== STAT CARDS =================== */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 28px; }
.stat { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { color: var(--text-muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 28px; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }
.stat .ic { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); font-size: 15px; }
/* Mobile: 2 kolom kompak — 6 kartu stat menumpuk 1 kolom terlalu tinggi utk angka kecil. */
@media (max-width: 600px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { padding: 13px 14px; }
    .stat .value { font-size: 21px; }
    .stat .label { font-size: 12px; }
    .stat .ic { width: 28px; height: 28px; font-size: 13px; }
}

/* =================== TABS =================== */
.tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; margin-bottom: 24px; background: var(--surface); padding: 8px; border-radius: var(--radius); border: 1px solid var(--border-soft); }
.tabs::-webkit-scrollbar { display: none; }
/* Mobile: isyarat "masih ada tab di kanan" — gradasi lembut menempel tepi kanan saat bisa digulir. */
@media (max-width: 700px) {
    .tabs::after { content: ""; position: sticky; right: 0; flex: 0 0 26px; margin-left: -26px; align-self: stretch;
                   background: linear-gradient(to right, transparent, var(--surface)); pointer-events: none; }
}
.tabs a { flex-shrink: 0; padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); border-radius: var(--radius-sm); white-space: nowrap; display: flex; align-items: center; gap: 8px; transition: background .14s, color .14s; }
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a.active { background: var(--accent); color: #fff; }
.tabs a .count { background: var(--surface-2); color: var(--text-muted); padding: 1px 8px; border-radius: var(--radius-pill); font-size: 12px; }
.tabs a.active .count { background: rgba(255,255,255,.22); color: #fff; }
/* Varian tab rata-lebar penuh (segmented, simetris) — desktop mengisi baris merata; mobile natural + scroll */
.tabs.tabs-fill a { flex: 1 1 0; min-width: 0; justify-content: center; text-align: center; }

/* Segmented control (pemilih mode) */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 4px; gap: 4px; }
.seg button { padding: 8px 16px; border: none; background: none; color: var(--text-muted); font-weight: 600; font-size: 13.5px; border-radius: 7px; display: flex; align-items: center; gap: 8px; transition: background .14s, color .14s; }
.seg button:hover { color: var(--text); }
.seg button.active { background: var(--accent); color: #fff; }

/* Pemisah seksi dalam builder/form panjang */
.builder-section { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 8px; }
.builder-section:first-child { margin-top: 0; }

.segmented { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.segmented a { padding: 6px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.segmented a.active { background: var(--surface-3); color: var(--text); }

/* =================== TABLE =================== */
.table-wrap { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-muted); padding: 13px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 14px 18px; border-bottom: 1px solid var(--border-soft); font-size: 14px; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }

/* Riwayat Saldo (/wallet): proporsi kolom terkontrol di desktop, kartu bertumpuk di mobile */
.wal-hist { table-layout: fixed; }
.wal-hist th, .wal-hist td { vertical-align: top; }
.wal-hist th:nth-child(1), .wal-hist td:nth-child(1) { width: 14%; }   /* Waktu  */
.wal-hist th:nth-child(2), .wal-hist td:nth-child(2) { width: 33%; }   /* Jenis  */
.wal-hist th:nth-child(3), .wal-hist td:nth-child(3) { width: 12%; }   /* Status */
.wal-hist th:nth-child(4), .wal-hist td:nth-child(4) { width: 16%; }   /* Jumlah */
.wal-hist th:nth-child(5), .wal-hist td:nth-child(5) { width: 25%; }   /* Pesan  */
.wal-time { white-space: nowrap; }
.wal-time .wal-jam { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.wal-kind { font-weight: 600; }
.wal-inv { font-size: 10.5px; font-family: ui-monospace, monospace; margin-top: 4px; overflow-wrap: anywhere; }
.wal-inv span, .wal-inv { user-select: all; }
.wal-amt { text-align: right; white-space: nowrap; font-weight: 700; font-size: 14.5px; }
.wal-msg span { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .wal-hist { table-layout: auto; }
    .wal-hist thead { display: none; }
    .wal-hist, .wal-hist tbody, .wal-hist tr, .wal-hist td { display: block; width: auto; }
    .wal-hist tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
    .wal-hist tr:last-child { border-bottom: none; }
    .wal-hist td { border: none !important; padding: 3px 0 !important; text-align: left !important; font-size: 13.5px; white-space: normal; }
    .wal-hist td::before { content: attr(data-label) ": "; color: var(--text-muted); font-weight: 700; font-size: 12px; }
    .wal-hist .wal-time, .wal-hist .wal-amt { white-space: nowrap; }   /* tanggal & nominal jangan terpecah baris */
    .wal-hist .wal-time .wal-jam { display: inline; margin-left: 6px; }
    .wal-hist .wal-amt { font-size: 15px; }
    .wal-hist td::before { display: inline-block; min-width: 62px; }    /* label rata → nilai sejajar */
}

/* =================== FORMS =================== */
.form-box { max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 34px; }
/* Layout halaman konsisten & RAPI (ref: GitHub/Vercel settings): semua blok top-level (form-box & kartu
   standalone) selebar sama & RATA-KIRI → sejajar dgn judul (.page-head). Content tetap full-page.
   Hanya anak LANGSUNG .content → layout khusus (grid kartu, dll) TAK terpengaruh.
   Login/auth aman krk form-box-nya dibungkus wrapper (bukan anak langsung .content). */
/* Form, alert & kartu top-level → FULL-WIDTH konsisten di SEMUA halaman (kecuali auth/profil yg punya layout sendiri).
   Form di dalam grid (mis. dompet .wal-grid) juga full-width → mengisi kolomnya. */
body:not(.is-profile):not(.is-auth) .content .form-box,
body:not(.is-profile):not(.is-auth) .content .alert,
body:not(.is-profile):not(.is-auth) .content > .card { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.input-group { margin-bottom: 18px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.input-group .hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
    width: 100%; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 14px; outline: none;
    transition: border-color .15s, background .15s; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 90px; }
input[type=file] { padding: 9px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9da9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* Input tanggal/waktu — gaya modern (rounded, fill lembut, focus glow, ala iOS) */
input[type=date], input[type=datetime-local], input[type=time] {
    width: 100%; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 14px; color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: .2px;
    outline: none; color-scheme: dark; cursor: pointer; -webkit-appearance: none; appearance: none;
    transition: border-color .18s, box-shadow .18s, background .18s; font-family: inherit;
}
input[type=date]:hover, input[type=datetime-local]:hover, input[type=time]:hover { border-color: var(--text-dim); }
input[type=date]:focus, input[type=datetime-local]:focus, input[type=time]:focus {
    border-color: var(--accent); background: var(--bg); box-shadow: 0 0 0 4px var(--accent-soft);
}
/* Tema terang: picker ikut color-scheme terang (default dark dari aturan di atas) */
html[data-theme="light"] input[type=date],
html[data-theme="light"] input[type=datetime-local],
html[data-theme="light"] input[type=time] { color-scheme: light; }
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
    opacity: 1; cursor: pointer; border-radius: 7px; padding: 4px; transition: .15s;
}
input[type=date]::-webkit-calendar-picker-indicator:hover,
input[type=datetime-local]::-webkit-calendar-picker-indicator:hover,
input[type=time]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: rgba(255,255,255,.1); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 18px; }
.alert-error { background: var(--red-soft); color: var(--accent); }
.alert-ok { background: var(--green-soft); color: var(--green); }
.alert-info { background: var(--blue-soft); color: var(--blue); }

.dropzone { border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--text-muted); background: var(--surface-2); transition: border-color .15s; cursor: pointer; }
.dropzone:hover { border-color: var(--accent); }
.dropzone i { font-size: 26px; color: var(--text-dim); margin-bottom: 8px; display: block; }

/* =================== AVATAR =================== */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-2); }

/* =================== PROFILE PANEL =================== */
.profile-banner { aspect-ratio: 4.5 / 1; border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-soft); overflow: hidden; position: relative; }

/* ===== Halaman Profil: topbar transparan saat di atas → banner full; search disembunyikan ===== */
.is-profile .top-bar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .25s ease, border-color .25s ease; }
.is-profile .top-bar .topbar-search { display: none; }
.is-profile .top-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4), transparent); transition: opacity .25s ease; }
.is-profile.scrolled .top-bar { background: var(--topbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft); }
.is-profile.scrolled .top-bar::before { opacity: 0; }
/* Banner ditarik ke atas (di belakang topbar) & full-bleed → tampil penuh */
.is-profile .content { padding-top: 0; }
.is-profile .profile-banner { margin: calc(-1 * var(--topbar-h)) -28px 0; border-radius: 0; box-shadow: none; }
@media (max-width: 992px) { .is-profile .profile-banner { margin: calc(-1 * var(--topbar-h)) -18px 0; } }
.banner-media { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; display: block; }
/* Editor banner ala X (geser + zoom) */
.bn-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; }
.bn-modal.open { display: flex; }
.bn-box { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px; width: min(94vw, 620px); }
.bn-frame { aspect-ratio: 4.5 / 1; width: 100%; border-radius: 12px; overflow: hidden; position: relative; background: #0c0d11; cursor: grab; touch-action: none; }
.bn-frame.grabbing { cursor: grabbing; }
.bn-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); pointer-events: none; border-radius: 12px; }
/* Editor foto profil (kotak + indikator lingkaran) */
.av-frame { width: min(80vw, 320px); aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 10px; overflow: hidden; position: relative; background: #0c0d11; cursor: grab; touch-action: none; }
.av-frame.grabbing { cursor: grabbing; }
.av-frame::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); pointer-events: none; }
.profile-header { display: flex; align-items: flex-end; gap: 22px; margin: 0 0 22px 28px; padding-right: 24px; position: relative; z-index: 2; }
.profile-av-wrap { position: relative; width: 124px; height: 124px; margin-top: -62px; flex-shrink: 0; }
.profile-avatar { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); background: var(--surface-2); display: block; }
.challenger-orn { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); pointer-events: none; z-index: 3; overflow: visible; opacity: 0; transition: opacity .3s ease; transform: translate(30px, 38px); }
.challenger-orn.playing { opacity: 1; }
.profile-meta { padding-top: 14px; flex: 1; min-width: 0; }
.profile-meta h1 { font-size: 26px; }
.profile-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.follow-stats { display: flex; gap: 18px; margin-top: 12px; font-size: 13.5px; }
.follow-stats a { color: var(--text-muted); }
.follow-stats a:hover { color: var(--text); }
.follow-stats b { color: var(--text); font-weight: 700; }
.ubadge-img { vertical-align: middle; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); transition: transform .15s; }
/* Tooltip lencana kustom (menggantikan tooltip native yang flat) */
.badge-tip { position: relative; display: inline-flex; vertical-align: middle; }
.badge-tip:hover .ubadge-img { transform: translateY(2px) scale(1.12); }
.badge-tip::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%) translateY(-5px) scale(.96);
    background: linear-gradient(180deg, var(--surface), var(--surface-2)); color: var(--text);
    border: 1px solid var(--border); border-radius: 9px; padding: 5px 11px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
    white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transform-origin: top center;
    transition: opacity .16s ease, transform .16s ease; z-index: 60; }
.badge-tip::before { content: ""; position: absolute; left: 50%; top: calc(100% + 4px); transform: translateX(-50%);
    border: 6px solid transparent; border-bottom-color: var(--border); opacity: 0; transition: opacity .16s ease; z-index: 60; }
.badge-tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.badge-tip:hover::before { opacity: 1; }
.profile-handle { color: var(--text-muted); font-size: 14px; }
.profile-socials { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
/* Jadwal Stream (gabungan manual + YouTube) */
.sched-h { margin: 0 0 12px; }
.sched-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; margin-bottom: 24px; }
.sched-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 12px; }
.sched-day { font-weight: 700; color: var(--accent); font-size: 13px; margin-bottom: 6px; }
.sched-item { display: block; font-size: 12.5px; margin-bottom: 5px; line-height: 1.4; color: var(--text); text-decoration: none; }
.sched-item:last-child { margin-bottom: 0; }
.sched-item .fa-youtube { color: #f00; font-size: 11px; }
a.sched-item.sched-yt { border-left: 2px solid #f00; padding-left: 7px; border-radius: 0 4px 4px 0; transition: background .14s; }
a.sched-item.sched-yt:hover { background: var(--surface-2); }
/* Kartu jadwal ber-jadwal bisa diklik → halaman VTuber (data-vt) */
.sched-card[data-vt] { cursor: pointer; transition: border-color .14s, background .14s; }
.sched-card[data-vt]:hover { border-color: var(--accent); background: var(--surface-2); }
/* Sorot HARI INI + redupkan hari kosong (hierarki visual jadwal profil) */
.sched-card.sched-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 18px -8px var(--accent); }
.sched-card.sched-off { opacity: .55; }
.sched-card.sched-today.sched-off { opacity: .85; }               /* hari ini tetap menonjol walau libur */
.sched-now { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .3px; vertical-align: 1px; }
.sched-live { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 20px; background: #e5233a; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .5px; vertical-align: 1px; }
.sched-live .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: schedPulse 1.2s ease-in-out infinite; }
@keyframes schedPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.sched-date { font-size: 11px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.sched-date .fa-calendar-day { font-size: 9px; margin-right: 1px; opacity: .7; }
/* Kartu channel YouTube di profil */
.yt-chan { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 18px; color: var(--text); text-decoration: none; }
.yt-chan img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.yt-info { flex: 1; min-width: 0; }
.yt-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-stats { display: flex; gap: 20px; margin-top: 5px; flex-wrap: wrap; font-size: 14px; }
.yt-stats .muted { font-size: 12px; }
.social-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--text); transition: background .15s; }
.social-chip:hover { background: var(--surface-2); }
.profile-bio { color: var(--text-muted); max-width: 640px; margin-top: 14px; white-space: pre-wrap; }

/* =================== HERO =================== */
.hero { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 40px 44px; margin-bottom: 34px; position: relative; overflow: hidden; }
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero p { color: var(--text-muted); font-size: 15px; max-width: 540px; }
.hero .hero-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero.has-bg { background-size: cover; background-position: center; border: none; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(10,11,15,0.62); z-index: 0; }
.hero.has-bg h1 { color: #fff; }
.hero.has-bg p { color: rgba(255,255,255,0.88); }
.hero-glyph { position: absolute; right: -10px; bottom: -40px; font-size: 210px; color: var(--surface-2); z-index: 0; }
.hero > * { position: relative; z-index: 1; }
/* Rotator hero + crossfade halus antar-slide */
.hero > .hero-bgfade { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; pointer-events: none; }
.hero.has-bg::before { z-index: 1; }
.hero > h1, .hero > p, .hero > .hero-glyph { z-index: 2; }
.hero > .hero-adlink { position: absolute; inset: 0; z-index: 3; display: none; }
.hero > .hero-actions { z-index: 4; }
#heroAdTag { position: absolute; top: 12px; right: 12px; z-index: 5; }

/* Section head DISATUKAN dengan .lp-head (landing) → konsisten di semua halaman */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 40px 0 16px; }
.section-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.section-head a:not(.btn) { color: var(--text-muted); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.section-head a:not(.btn):hover { color: var(--accent); }

/* =================== EMPTY STATE =================== */
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-muted); }
.empty i { font-size: 38px; color: var(--text-dim); margin-bottom: 14px; display: block; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* =================== MODAL =================== */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); justify-content: center; align-items: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box, .modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 760px; max-height: 90vh; overflow: hidden; box-shadow: var(--shadow); animation: pop .2s ease; }
.modal-box { max-width: 420px; text-align: center; padding: 36px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.modal-body { display: grid; grid-template-columns: 1.3fr 1fr; max-height: calc(90vh - 64px); overflow: auto; }
.modal-media { background: #000; aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center; }
.modal-media img, .modal-media iframe { width: 100%; height: 100%; object-fit: contain; border: none; }
.modal-info { padding: 24px; }
.modal-info h2 { font-size: 18px; margin-bottom: 4px; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff; border: none; font-size: 16px; }
.prev-btn { left: 10px; } .next-btn { right: 10px; }

/* =================== UTIL =================== */
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .ml-auto { margin-left: auto; }
.hide { display: none; }

/* =================== RESPONSIVE =================== */
@media (max-width: 992px) {
    #sidebar { transform: translateX(100%); box-shadow: var(--shadow); }
    #sidebar.active { transform: translateX(0); }
    #main-content { margin-left: 0; }
    #menu-toggle { display: inline-flex; }
    .topbar-search { display: none; }
    .modal-body { grid-template-columns: 1fr; }
    .content { padding: 22px 18px 50px; }
    .top-bar { padding: 0 18px; }
    .sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 150; display: none; }
    .sidebar-overlay.active { display: block; }
}
@media (max-width: 560px) {
    .hero { padding: 28px 24px; }
    .hero h1 { font-size: 26px; }
    .form-box { padding: 24px; }
    .grid-container { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    /* Header profil kompak & proporsional */
    .profile-header { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 18px 16px; padding-right: 16px; }
    .profile-av-wrap { width: 88px; height: 88px; margin-top: -44px; }
    .profile-avatar { width: 88px; height: 88px; border-width: 3px; }
    .challenger-orn { transform: translate(20px, 26px); }
    .profile-meta { padding-top: 4px; }
    .profile-meta h1 { font-size: 20px; }
    .profile-handle { font-size: 12.5px; }
    .follow-stats { gap: 14px; margin-top: 8px; font-size: 13px; }
    .profile-actions { width: 100%; }
    .profile-actions .btn { flex: 1; justify-content: center; }
    /* Hemat tempat: rapatkan margin & kartu jadwal */
    .premium-zone { margin-left: 16px !important; margin-right: 16px !important; }
    .sched-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .sched-card { padding: 8px 9px; }
    .sched-day { font-size: 12px; margin-bottom: 4px; }
    .sched-item { font-size: 11.5px; }
    /* Kartu YouTube minimalis & pipih di mobile */
    .yt-chan { padding: 7px 10px; gap: 9px; margin-bottom: 12px; }
    .yt-chan img { width: 30px; height: 30px; }
    .yt-title { font-size: 12px; }
    .yt-stats { gap: 4px 12px; margin-top: 1px; font-size: 11px; line-height: 1.3; }
    .yt-stats .muted { font-size: 10px; }
    .yt-ext { display: none; }
}
/* Mobile: grid kartu (.card-link dll) selalu 2 kolom — override grid-template inline */
@media (max-width: 640px) {
    .grid-container { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    /* Tabs: satu baris, bisa digeser (swipe) — tidak membungkus & boros tempat */
    .tabs { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px; gap: 4px; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs a { flex-shrink: 0; padding: 8px 12px; font-size: 13px; }
    .tabs.tabs-fill a { flex: 0 0 auto; }   /* mobile: tab ukuran natural, bar bisa di-scroll (tak dipaksa sama lebar) */
    /* Beranda: segmented "Peringkat Hari Ini" muat penuh selebar layar (tak memicu scroll horizontal) */
    .segmented.lb-tabs { display: flex; width: 100%; }
    .segmented.lb-tabs a { flex: 1; text-align: center; padding: 7px 4px; font-size: 12px; }
    /* Section head: judul + keterangan/link tak berdesakan */
    .section-head { flex-wrap: wrap; gap: 2px 10px; margin: 26px 0 14px; }
    .section-head h2 { font-size: 17px; }
    .section-head > .muted { flex-basis: 100%; order: 3; }
    /* Kartu milestone jadi satu kolom penuh (hindari min-width memaksa lebar) */
    .ms-grid { grid-template-columns: 1fr; gap: 12px; }
    /* Statistik ringkas */
    .stat { padding: 14px 16px; }
    .stat .value { font-size: 24px; }
    /* Cegah scroll horizontal liar → tak ada konten terpotong di tepi kanan.
       'clip' (bukan 'hidden') agar sticky .top-bar tetap berfungsi. */
    #main-content { overflow-x: clip; }
    /* Baris peringkat: seciut mungkin. Nama boleh terpotong (ellipsis), tapi angka stat WAJIB utuh. */
    .rank-list { gap: 5px; }
    .rank-row { padding: 6px 9px; gap: 7px; }
    .rank-row .rk { width: 14px; font-size: 11.5px; }
    .rank-row img { width: 26px; height: 26px; }
    .rank-row .rn { font-size: 12px; min-width: 24px; }   /* boleh menyusut & terpotong */
    .rank-row .rv { font-size: 12px; white-space: nowrap; flex-shrink: 0; }   /* angka stat tak pernah menyusut */
    .rank-row .rv small { margin-left: 2px; font-size: 9.5px; }
}

/* =================== TOP LOADING BAR =================== */
#loadbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 99999; transition: width .2s ease, opacity .3s ease; box-shadow: 0 0 8px var(--accent); opacity: 0; }
#loadbar.active { opacity: 1; }

/* =================== SPINNER =================== */
.spinner { width: 26px; height: 26px; border: 3px solid var(--surface-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.lg { width: 44px; height: 44px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-block { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 70px 20px; color: var(--text-muted); }

/* =================== SKELETON =================== */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--radius-sm); }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent); animation: shimmer 1.3s infinite; }
html[data-theme="light"] .skel::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent); }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skel-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.skel-thumb { width: 100%; aspect-ratio: 16/10; }
.skel-line { height: 12px; border-radius: 6px; margin: 10px 16px; }
.skel-line.sm { width: 40%; } .skel-line.md { width: 70%; }

/* =================== THEME SWATCHES =================== */
.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { width: 40px; height: 40px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; position: relative; transition: transform .12s; }
.swatch:hover { transform: scale(1.08); }
.swatch.selected { border-color: var(--text); }
.swatch.selected::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }

.theme-toggle { display: inline-flex; }

/* =================== MESSAGES / CHAT =================== */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - var(--topbar-h) - 60px); min-height: 480px;
    background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; }
.chat-list { border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 16px 18px; border-bottom: 1px solid var(--border-soft); font-weight: 600; }
.chat-list-scroll { overflow-y: auto; flex: 1; }
.conv { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.conv:hover { background: var(--surface-2); }
.conv.active { background: var(--surface-2); }
.conv img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv .c-main { flex: 1; min-width: 0; }
.conv .c-name { font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.conv .c-name .c-time { font-weight: 400; font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
.conv .c-prev { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .c-unread { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-ctx { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 10px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.chat-ctx img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.bubble { max-width: 72%; padding: 8px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.bubble .b-time { font-size: 10px; opacity: .6; margin-top: 3px; text-align: right; }
.bubble.b-pending { opacity: .72; }                                   /* pesan optimistik: sedang dikirim */
.bubble.b-pending .b-time .fa-circle-notch { font-size: 9px; }        /* loading kecil di jam, bukan ikon kirim */
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
/* Tautan dalam pesan */
.bubble a.msg-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.bubble.theirs a.msg-link { color: var(--accent); }
/* Kartu pratinjau tautan (OG meta) */
.link-prev { display: block; margin-top: 8px; max-width: 320px; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text); text-decoration: none; transition: border-color .15s; }
.link-prev:hover { border-color: var(--accent); }
.link-prev .lp-img { width: 100%; height: 150px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.link-prev .lp-body { padding: 9px 11px 11px; }
.link-prev .lp-host { font-size: 11px; color: var(--text-dim); text-transform: lowercase; margin-bottom: 3px; }
.link-prev .lp-title { font-weight: 600; font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-prev .lp-desc { font-size: 12px; color: var(--text-muted); line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bubble.mine .link-prev { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
.bubble.mine .link-prev .lp-host { color: rgba(255,255,255,.7); }
.bubble.mine .link-prev .lp-desc { color: rgba(255,255,255,.85); }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; position: relative; }
.chat-input input { flex: 1; }
/* Textarea komposer auto-grow (lebih luwes dari input 1 baris) */
#chatText { flex: 1; min-width: 0; resize: none; min-height: 42px; height: 42px; max-height: 132px; padding: 10px 14px; line-height: 1.45; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-family: inherit; font-size: 14px; transition: border-color .15s, background .15s; }
#chatText:focus { outline: none; border-color: var(--accent); background: var(--bg); }
/* Tombol lampirkan gambar */
.ci-attach { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; font-size: 16px; transition: background .15s, color .15s, border-color .15s; }
.ci-attach:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.ci-send { flex: 0 0 auto; align-self: flex-end; }
.ci-send.sending i { animation: ciSpin .7s linear infinite; }
@keyframes ciSpin { to { transform: rotate(360deg); } }
/* Pratinjau gambar sebelum kirim (chip, di atas baris input) */
.ci-preview { flex-basis: 100%; order: -1; display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; }
.ci-preview[hidden] { display: none; }   /* atribut hidden harus menang atas display:flex */
.ci-pv-thumb { position: relative; width: 60px; height: 60px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); flex: 0 0 auto; }
.ci-pv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-pv-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid var(--surface); font-size: 12px; line-height: 1; cursor: pointer; }
.ci-pv-name { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Overlay drag & drop */
.ci-drop { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 2px dashed var(--accent); border-radius: 12px; }
.ci-drop.on { display: flex; }
.ci-drop i { font-size: 24px; margin-bottom: 6px; }
/* Gambar di dalam bubble */
.bubble .b-img { display: block; margin: 2px 0; border-radius: 12px; overflow: hidden; max-width: 240px; }
.bubble .b-img img { display: block; width: 100%; max-height: 300px; object-fit: cover; cursor: zoom-in; background: var(--surface-3); }
.bubble.has-img { padding: 5px; }
.bubble.has-img .b-time { padding: 0 6px 2px; }
/* Animasi masuk bubble (tidak kaku) */
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble.b-in { animation: bubbleIn .22s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .bubble.b-in { animation: none; } }
/* Lightbox */
.chat-lightbox { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.85); backdrop-filter: blur(3px); padding: 24px; cursor: zoom-out; }
.chat-lightbox.on { display: flex; }
.chat-lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.chat-lightbox .cl-x { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; border: 0; font-size: 22px; cursor: pointer; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-dim); gap: 12px; }
.chat-day { align-self: center; font-size: 11.5px; color: var(--text-dim); background: var(--surface-2); padding: 3px 12px; border-radius: var(--radius-pill); margin: 6px 0; }

@media (max-width: 820px) {
    .chat { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .chat.has-thread .chat-list { display: none; }
    .chat:not(.has-thread) .chat-main { display: none; }
    .chat-main { height: calc(100vh - var(--topbar-h) - 60px); }
}

/* =================== LIVE BADGE / YT INFO =================== */
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); letter-spacing: .03em; }
.live-badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.3s infinite; }
/* Badge LIVE menempel di bawah avatar profil */
.profile-live { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 4; box-shadow: 0 3px 10px rgba(0,0,0,.45); text-decoration: none; transition: transform .14s ease, box-shadow .14s ease; }
.profile-live:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 5px 14px rgba(0,0,0,.55); color: #fff; }
/* Titik merah live di pojok kanan-bawah avatar kartu creator (kr-av) */
.kr-av-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.kr-av-wrap .live-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #e5484d; border: 2px solid var(--surface); animation: pulse 1.3s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.nav-live-dot { margin-left: auto; }

.live-thumb-wrap { position: relative; }
.live-thumb-wrap .live-tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.live-thumb-wrap .live-viewers { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }

.yt-stats { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0; }
.yt-stat { }
.yt-stat .n { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.yt-stat .l { font-size: 12.5px; color: var(--text-muted); }

/* =================== CATEGORY PILLS =================== */
.cat-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { white-space: nowrap; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); transition: color .15s, background .15s; }
.cat-pill:hover { color: var(--text); }
.cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Kategori marketplace: pill grup → dropdown subkategori (ala commissions.gg) ===== */
.mkcat-pills { align-items: center; }
.mkcat-grp { position: relative; flex: 0 0 auto; }
.mkcat-trg { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-family: inherit; }
.mkcat-trg .mkcat-cv { font-size: 9px; opacity: .55; transition: transform .18s; }
.mkcat-trg.pop-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.mkcat-trg.pop-on .mkcat-cv { transform: rotate(180deg); opacity: .9; }
/* Popover subkategori: fixed (JS memosisikan di bawah pill) → tak terpotong scroll bar pill */
.mkcat-pop { position: fixed; z-index: 340; min-width: 200px; max-width: 280px; padding: 6px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .14s ease; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.mkcat-pop.open { opacity: 1; transform: none; }
.mkcat-pop::-webkit-scrollbar { width: 6px; } .mkcat-pop::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.mkcat-pi { display: block; padding: 8px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.mkcat-pi:hover { background: var(--surface-2); color: var(--text); }
.mkcat-pi.active { background: var(--accent); color: #fff; }
.mkcat-pall { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 9px; margin-bottom: 3px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); border-radius: 8px 8px 0 0; }
.mkcat-pall i { color: var(--accent); font-size: 12px; }
.mkcat-pall.active { color: #fff; } .mkcat-pall.active i { color: #fff; }
/* Chip filter aktif */
.mkcat-active { display: flex; align-items: center; gap: 9px; margin-bottom: 24px; }
.mkcat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 13px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
.mkcat-chip a { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.14); color: inherit; font-size: 14px; line-height: 1; }
.mkcat-chip a:hover { background: var(--accent); color: #fff; }

/* =================== SERVICE CARDS (landscape) =================== */
.svc-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.svc-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; }
.svc-card:hover { border-color: var(--border); transform: translateY(-3px); }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body { padding: 12px 14px 14px; }
.svc-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 7px; }
.svc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.svc-artist { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12.5px; min-width: 0; }
.svc-artist img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.svc-artist span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-price { font-weight: 700; font-size: 13px; white-space: nowrap; }

/* =================== CREATOR CARDS (banner showcase) =================== */
.kr-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kr-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; }
.kr-card:hover { border-color: var(--border); transform: translateY(-3px); }
/* Carousel geser horizontal (hemat ruang) — beranda: Komisi Terbaru & Kreator Unggulan */
.grid-container.hscroll, .kr-grid.hscroll { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding: 10px 0 14px; -webkit-overflow-scrolling: touch; }
.grid-container.hscroll::-webkit-scrollbar, .kr-grid.hscroll::-webkit-scrollbar { height: 8px; }
.grid-container.hscroll::-webkit-scrollbar-thumb, .kr-grid.hscroll::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
.grid-container.hscroll > * { flex: 0 0 230px; scroll-snap-align: start; }
.kr-grid.hscroll > * { flex: 0 0 300px; scroll-snap-align: start; }
/* Kartu carousel sudah overflow:hidden → containment aman (persempit area repaint tiap frame scroll) */
.grid-container.hscroll > *, .kr-grid.hscroll > * { contain: layout paint; }
.hscroll { cursor: grab; }
.hscroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.hscroll.dragging a { pointer-events: none; }
@media (max-width: 640px) {
    .grid-container.hscroll > * { flex-basis: 62vw; max-width: 230px; }
    .kr-grid.hscroll > * { flex-basis: 84vw; max-width: 320px; }
}
.kr-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.kr-user { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; color: var(--text); }
.kr-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.kr-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-fav { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; flex-shrink: 0; font-size: 12.5px; font-weight: 600; transition: .15s; white-space: nowrap; }
.kr-fav:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.kr-fav.faved { background: var(--border-soft); color: var(--text); border-color: var(--border-soft); }
.kr-fav.faved:hover { background: var(--surface-3); border-color: var(--surface-3); }
.kr-banner { display: block; position: relative; aspect-ratio: 16/9; background: var(--surface-2); background-size: cover; background-position: center; overflow: hidden; }
.kr-banner-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kr-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kr-banner .mk-status { position: absolute; top: 10px; left: 10px; z-index: 2; }
.kr-noban { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 30px; opacity: .5; }
.kr-body { display: block; padding: 12px 14px 14px; color: var(--text); }
.kr-title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kr-sub { color: var(--text-muted); font-size: 12.5px; }
/* Mobile: kartu kreator 2 kolom (grid biasa) — kompakkan elemen; tombol follow jadi ikon saja agar muat */
@media (max-width: 640px) {
    .kr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .kr-head { padding: 8px 9px; gap: 6px; }
    .kr-av { width: 26px; height: 26px; }
    .kr-name { font-size: 12px; }
    .kr-fav { padding: 0; width: 28px; height: 28px; justify-content: center; gap: 0; }
    .kr-fav span { display: none; }
    .kr-body { padding: 9px 10px 11px; }
    .kr-title { font-size: 12px; }
    .kr-sub { font-size: 11px; }
}

/* =================== MARKETPLACE (masonry, hover) =================== */
.mk-grid { column-width: 230px; column-gap: 18px; }
/* mode masonry JS: kartu diposisikan absolut oleh JS (urut kiri→kanan, kolom terpendek dulu) */
.mk-grid.masonry-js { position: relative; column-width: auto; }
.mk-grid.masonry-js > .mk-card { position: absolute; margin: 0; top: 0; left: 0; }
.mk-card { break-inside: avoid; margin: 0 0 18px; background: transparent; border: none; border-radius: 0; overflow: visible; }
/* Gambar dibingkai ala /gallery (.gal-item): rounded, border tipis, bg gelap; info tetap di bawah */
.mk-media { display: block; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-soft); background: #0c0d11; transition: border-color .18s; }
.mk-card:hover .mk-media { border-color: var(--border); }
.mk-img { width: 100%; height: auto; display: block; background: transparent; transition: transform .45s ease; }
.mk-card:hover .mk-img { transform: scale(1.05); }
/* overlay galeri saat hover — menutupi sampul tanpa mengubah tinggi kartu (anti-reflow masonry) */
.mk-cycle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease, transform .45s ease; z-index: 1; }
.mk-cycle.show { opacity: 1; }
.mk-card:hover .mk-cycle.show { transform: scale(1.05); }
.mk-status { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .03em; z-index: 2; }
.mk-status.open { background: rgba(52,184,122,.92); color: #fff; }
.mk-status.closed { background: rgba(229,72,77,.92); color: #fff; }
.mk-status.vtuber { background: rgba(232,185,35,.95); color: #3a2e00; }
.mk-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.66); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; }
.mk-fav { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s, background .15s; z-index: 3; backdrop-filter: blur(2px); }
.mk-card:hover .mk-fav { opacity: 1; transform: translateY(0); }
.mk-fav.faved { opacity: 1; transform: translateY(0); background: var(--accent); }
.mk-fav:hover { background: var(--accent); }
.mk-dots { position: absolute; bottom: 10px; left: 10px; display: flex; gap: 4px; z-index: 2; opacity: 0; transition: opacity .18s; }
.mk-card:hover .mk-dots { opacity: 1; }
.mk-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); }
.mk-dots span.on { background: #fff; }
.mk-info { padding: 11px 3px 2px; }   /* caption di bawah gambar (rata tepi bingkai, ala galeri) */
.mk-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.mk-artist { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12.5px; }
.mk-artist img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.mk-price { color: var(--text); font-weight: 700; font-size: 13px; margin-top: 7px; }
@media (hover: none) { .mk-fav { opacity: 1; transform: none; } }
/* Mobile: kartu masonry 2 kolom (gaya VGen) — kecilkan teks/padding/badge agar rapi di kartu sempit */
@media (max-width: 640px) {
    .mk-info { padding: 8px 2px 2px; }
    .mk-title { font-size: 12.5px; margin-bottom: 5px; }
    .mk-artist { font-size: 11px; gap: 5px; }
    .mk-artist img { width: 16px; height: 16px; }
    .mk-price { font-size: 12px; margin-top: 5px; }
    .mk-status { font-size: 10px; padding: 2px 7px; top: 7px; left: 7px; gap: 4px; }
    .mk-count { font-size: 10px; padding: 2px 6px; top: 7px; right: 7px; }
    .mk-fav { width: 30px; height: 30px; font-size: 13px; bottom: 7px; right: 7px; }
}

/* =================== SIDEBAR SUBMENU (dropdown) =================== */
.has-sub .sub-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; border: none; background: none; text-align: left; cursor: pointer; transition: background .14s, color .14s; }
.has-sub .sub-toggle:hover { background: var(--surface-2); color: var(--text); }
.has-sub .sub-toggle i:first-child { width: 18px; text-align: center; font-size: 15px; }
.has-sub .caret { margin-left: auto; font-size: 11px; transition: transform .2s; }
.has-sub.open .caret { transform: rotate(180deg); }
.submenu { list-style: none; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.has-sub.open .submenu { max-height: 240px; }
.submenu li a { display: block; padding: 8px 12px 8px 42px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13.5px; }
.submenu li a:hover { background: var(--surface-2); color: var(--text); }
.submenu li a.active { color: var(--text); }

/* =================== USER BADGES =================== */
.ubadge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: var(--bc); background: var(--surface-2); border: 1px solid var(--bc); vertical-align: middle; }
.ubadge i { font-size: 11px; }

/* =================== ADMIN PANEL =================== */
.admin-wrap { max-width: 1200px; margin: 0 auto; }
.admin-tools td .btn { margin-right: 4px; }
.legal-prose { color: var(--text-muted); line-height: 1.7; font-size: 14.5px; max-width: 760px; }
.legal-prose h1, .legal-prose h2 { color: var(--text); }
.legal-prose p { margin: 0 0 12px; }
.legal-h { color: var(--text); font-size: 17px; font-weight: 700; margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-soft); }
.legal-h:first-child { margin-top: 0; }
.legal-ul { margin: 0 0 14px; padding: 0; list-style: none; }
.legal-ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.legal-ul li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* =================== LEADERBOARD =================== */
.rank-list { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.rank-row:hover { border-color: var(--border); transform: translateX(3px); }
.rank-row .rk { width: 26px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text-dim); flex-shrink: 0; }
.rank-row.top .rk { color: var(--accent); }
.rank-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rank-row .rn { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rv { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.rank-row .rv small { color: var(--text-dim); font-weight: 500; font-size: 11px; margin-left: 3px; }
.lb-tabs { margin-bottom: 16px; }

/* =================== MILESTONE =================== */
.ms-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ms-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s; }
.ms-card:hover { border-color: var(--border); }
.ms-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ms-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.ms-head .ms-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-head .ms-sub { font-size: 12px; color: var(--text-muted); }
.ms-bar { height: 8px; background: var(--surface-3); border-radius: var(--radius-pill); overflow: hidden; }
.ms-bar > span { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-pill); }
.ms-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; }
.ms-meta .cur { color: var(--text-muted); }
.ms-meta .goal { color: var(--text); font-weight: 600; }
.ms-pct { font-size: 11px; color: var(--accent); font-weight: 700; }

/* =================== STEPS (jadi creator) =================== */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); margin: 24px 0; }
.step { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px; }
.step .step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 13.5px; }

/* =================== NOTIFICATIONS (bell dropdown) =================== */
.notif-wrap { position: relative; }
.notif-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 350px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 300; display: none; overflow: hidden; }
.notif-panel.open { display: block; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); font-weight: 600; font-size: 14px; }
.notif-head a { font-size: 12px; color: var(--accent); font-weight: 500; }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 15px; border-bottom: 1px solid var(--border-soft); }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: var(--accent-soft); }
.notif-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notif-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.notif-body { min-width: 0; }
.notif-text { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.notif-time { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }
.notif-empty { padding: 40px 16px; text-align: center; color: var(--text-dim); font-size: 13px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
@media (max-width: 560px) { .notif-panel { position: fixed; top: 58px; right: 10px; left: 10px; width: auto; } }

/* =================== PROGRESS BAR (AI job) =================== */
.progress-bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin: 13px 0 10px; position: relative; }
.progress-fill { position: absolute; top: 0; left: -40%; height: 100%; width: 40%; border-radius: 6px; background: var(--accent); animation: prog-slide 1.3s ease-in-out infinite; }
@keyframes prog-slide { 0% { left: -40%; } 100% { left: 100%; } }
.progress-bar.done .progress-fill { animation: none; width: 100%; left: 0; background: var(--green); }
.progress-bar.err .progress-fill { animation: none; width: 100%; left: 0; background: var(--accent); opacity: .55; }

/* =================== SPONSOR & IKLAN =================== */
.sponsor-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); }
.sponsor-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); color: var(--text); transition: border-color .18s, transform .18s; }
a.sponsor-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.sponsor-logo { width: 100%; height: 80px; display: flex; align-items: center; justify-content: center; }
.sponsor-logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.sponsor-initial { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: var(--text-muted); }
.sponsor-name { font-weight: 600; font-size: 14.5px; }
.sponsor-blurb { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
/* iklan native di artikel berita */
.news-ad { position: relative; display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 26px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); color: var(--text); transition: border-color .18s; }
a.news-ad:hover { border-color: var(--accent); }
.news-ad-label { position: absolute; top: 8px; right: 10px; font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border-soft); border-radius: 4px; padding: 1px 5px; }
.news-ad-img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--surface-2); }
.news-ad-name { font-weight: 600; font-size: 14.5px; }
.news-ad-blurb { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.news-ad-go { color: var(--text-dim); margin-left: auto; }

/* =================== SITE MAKER (builder) =================== */
textarea.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; white-space: pre; max-width: 100%; }
.CodeMirror { height: auto; min-height: 180px; border: 1px solid var(--border-soft); border-radius: 10px; font-size: 13px; }
.CodeMirror-scroll { min-height: 180px; }
.qbar { height: 9px; background: var(--surface-2); border-radius: 6px; overflow: hidden; margin: 7px 0 18px; }
.qfill { height: 100%; background: var(--green, #1f9d57); border-radius: 6px; transition: width .3s; }
.asset-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.asset-item { border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.asset-thumb { aspect-ratio: 1; background: var(--surface) center/cover no-repeat; }
.asset-meta { padding: 7px 8px; display: flex; flex-direction: column; gap: 6px; }

/* =================== DONASI =================== */
.donate-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.donate-amt { padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.donate-amt:hover { border-color: var(--accent); }
.donate-amt.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-donate a { color: var(--accent) !important; }
.nav-donate a:hover { background: var(--accent-soft) !important; }
/* Halaman donasi: form satu kolom (pembayaran QRIS dibuka di tab DOKU, tanpa panel). */
.donate-wrap { max-width: none; }

/* state kosong — dipakai papan peringkat donatur */
.qr-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text-dim); text-align: center; padding: 48px 28px; }
.qr-empty i { font-size: 46px; opacity: .35; }
.qr-empty p { font-size: 13.5px; line-height: 1.6; }

/* =================== LIVE PAGE (video + youtube chat) =================== */
.live-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; margin-bottom: 22px; align-items: stretch; }
.live-video { overflow: hidden; display: flex; flex-direction: column; }
.live-vhead { padding: 13px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-soft); }
.live-vtitle { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.live-chat { display: flex; flex-direction: column; overflow: hidden; min-height: 440px; }
.live-chead { padding: 13px 16px; font-weight: 600; border-bottom: 1px solid var(--border-soft); }
.live-chat-frame { flex: 1; width: 100%; border: none; background: #fff; min-height: 340px; }
.live-chat-note { padding: 9px 14px; font-size: 11.5px; color: var(--text-dim); border-top: 1px solid var(--border-soft); }
@media (max-width: 900px) { .live-layout { grid-template-columns: 1fr; } .live-chat { min-height: 480px; } }

/* ===== Halaman VTuber — tata letak ala YouTube /watch ===== */
.vt-watch { display: grid; grid-template-columns: minmax(0,1fr) 348px; gap: 20px; align-items: start; }   /* selalu 2 kolom: player ukuran sama live/non-live */
.vt-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.vt-main > .card { margin-bottom: 0; }                          /* jarak diatur gap, buang margin ganda */
.vt-rail { min-width: 0; position: sticky; top: 74px; }
.vt-rail .live-chat { height: calc(100vh - 104px); max-height: 760px; min-height: 440px; margin: 0; }

/* Bar identitas pipih panjang (baris channel di bawah player) */
.vt-idbar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.vt-id-avwrap { position: relative; flex: 0 0 auto; display: block; line-height: 0; }
.vt-id-av { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); display: block; }
.vt-id-live { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); }
.vt-id-meta { min-width: 0; flex: 1 1 180px; }
.vt-id-meta h1 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.vt-id-sub { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 6px; color: var(--text-muted); font-size: 13px; }
.vt-id-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-left: auto; }
.vt-sub-btn { background: #ff0000; color: #fff; border: 1px solid #ff0000; }
.vt-sub-btn:hover { background: #d90000; border-color: #d90000; color: #fff; }
.vt-sub-btn i { color: #fff; }

/* Rail non-live: iklan + sponsor + rekomendasi */
.vt-rail-stack { display: flex; flex-direction: column; gap: 16px; }
.vt-rail-card { padding: 14px 16px; }
.vt-rail-h { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
/* Sponsor */
.vt-spon { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 10px; color: var(--text); }
.vt-spon:hover { background: var(--surface-2); }
.vt-spon img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: 0 0 auto; background: var(--surface-3); }
.vt-spon-n { font-weight: 600; font-size: 13.5px; }
.vt-spon-d { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Rekomendasi VTuber */
.vt-rec { display: flex; align-items: center; gap: 11px; padding: 7px 8px; border-radius: 10px; color: var(--text); }
.vt-rec:hover { background: var(--surface-2); }
.vt-rec-av { position: relative; flex: 0 0 auto; line-height: 0; }
.vt-rec-av img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.vt-rec-live { position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.vt-rec-b { min-width: 0; display: flex; flex-direction: column; }
.vt-rec-n { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-rec-m { font-size: 11.5px; color: var(--text-muted); }
.vt-rec-more { display: block; text-align: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-soft); font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.vt-rec-more:hover { color: var(--accent); }

@media (max-width: 1000px) {
    .vt-watch { grid-template-columns: 1fr; }
    .vt-rail { position: static; }
    .vt-rail .live-chat { height: 480px; max-height: none; }
    /* Mobile + LIVE: Live Chat tepat DI BAWAH player (bukan di dasar). Ratakan kolom → atur urutan. */
    .vt-watch.is-live { display: flex; flex-direction: column; gap: 20px; }
    .vt-watch.is-live .vt-main, .vt-watch.is-live .vt-rail { display: contents; }
    /* min-width:0 → item boleh menyusut ke lebar layar (cegah overflow dari .live-frame aspect-ratio) */
    .vt-watch.is-live .live-video, .vt-watch.is-live .vt-rail .live-chat, .vt-watch.is-live .vt-main > * { min-width: 0; max-width: 100%; }
    .vt-watch.is-live .live-video { order: 1; }
    .vt-watch.is-live .vt-rail .live-chat { order: 2; }
    .vt-watch.is-live .vt-main > *:not(.live-video) { order: 3; }
}
@media (max-width: 560px) {
    .vt-idbar { gap: 12px; padding: 14px 16px; }
    .vt-id-meta h1 { font-size: 17px; }
    .vt-id-actions { margin-left: 0; flex-basis: 100%; }
    .vt-id-actions .btn { flex: 1; justify-content: center; }
}

/* =================== NEWS / TRENDING =================== */
.news-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-date { color: var(--text-dim); font-size: 12px; }

.news-hero { display: flex; align-items: flex-end; min-height: 320px; border-radius: var(--radius-lg); background-size: cover; background-position: center; border: 1px solid var(--border-soft); padding: 28px; margin-bottom: 34px; position: relative; overflow: hidden; transition: transform .2s; }
.news-hero:hover { transform: translateY(-2px); }
.news-hero-body { position: relative; z-index: 1; max-width: 720px; }
.news-hero-body h2 { font-size: 28px; color: #fff; margin: 10px 0 8px; line-height: 1.2; }
.news-hero-body p { color: rgba(255,255,255,0.85); font-size: 14.5px; }

.news-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; }
.news-card:hover { border-color: var(--border); transform: translateY(-3px); }
.news-thumb { position: relative; aspect-ratio: 16/9; background: var(--surface-2) center/cover no-repeat; }
.news-cat { position: absolute; top: 10px; left: 10px; }
.news-ai { position: absolute; top: 10px; right: 10px; }
.news-body { padding: 14px 16px 16px; }
.news-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-excerpt { color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { color: var(--text-dim); font-size: 12px; }

/* artikel tunggal */
.article { max-width: 760px; }
.article-title { font-size: 30px; line-height: 1.2; margin-bottom: 14px; }
.article-lead { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.art-img { margin: 18px 0; }
.art-img img { width: 100%; border-radius: var(--radius); display: block; }
.art-img figcaption { color: var(--text-dim); font-size: 12.5px; text-align: center; margin-top: 7px; }
.art-cover img { aspect-ratio: 16/9; object-fit: cover; }
.article-body { font-size: 15.5px; line-height: 1.75; color: var(--text); }
.article-body p { margin: 0 0 16px; }
.article-body h2 { font-size: 21px; margin: 26px 0 12px; }
.article-body h3 { font-size: 17px; margin: 22px 0 10px; }
.article-body ul { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 7px; }
.article-body a { color: var(--accent); }
.article-body strong { color: var(--text); }

/* =================== 404 =================== */
.err-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; min-height: 60vh; }
.err-code { font-size: 120px; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--surface-3); }
.err-page h1 { margin: 8px 0 10px; }
.err-page p { color: var(--text-muted); max-width: 420px; margin-bottom: 24px; }

/* =================== UI KIT: toast, modal dialog, file input =================== */
#vtToasts { position: fixed; top: 18px; right: 18px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.vt-toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 11px; padding: 12px 14px; font-size: 13.5px; color: var(--text); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start; animation: vtToastIn .25s ease; }
.vt-toast.ok { border-left-color: #1f9d57; } .vt-toast.ok i { color: #1f9d57; }
.vt-toast.error { border-left-color: var(--accent); } .vt-toast.error i { color: var(--accent); }
.vt-toast.info i { color: var(--accent); }
@keyframes vtToastIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes vtToastOut { to { opacity: 0; transform: translateX(22px); } }

.vt-modal-bg { position: fixed; inset: 0; background: rgba(6,7,10,.62); backdrop-filter: blur(3px); z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 20px; animation: vtFade .15s ease; }
@keyframes vtFade { from { opacity: 0; } to { opacity: 1; } }
.vt-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 430px; width: 100%; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: vtPop .18s ease; }
@keyframes vtPop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.vt-modal-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vt-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; font-size: 16px; }
.vt-ic.danger { background: rgba(230,57,80,.14); color: var(--accent); }
.vt-modal h4 { font-size: 16px; }
.vt-modal p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin-bottom: 18px; white-space: pre-line; }
.vt-modal input { width: 100%; margin-bottom: 18px; }
.vt-modal-act { display: flex; gap: 10px; justify-content: flex-end; }

input[type=file] { font-size: 13px; color: var(--text-muted); max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 12px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; font-family: inherit; }
input[type=file]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* tombol nonaktif di modal type-to-confirm */
.vt-modal .btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.vt-modal input { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* =================== AUTOCOMPLETE TAG VTUBER =================== */
.vt-ac { position: relative; }
.vt-ac-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.4); overflow: hidden; max-height: 280px; overflow-y: auto; }
.vt-ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 11px; cursor: pointer; transition: background .12s; }
.vt-ac-item:hover { background: var(--surface-2); }
.vt-ac-item img, .vt-ac-item .vt-ac-ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vt-ac-item .vt-ac-ph { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-dim); font-size: 13px; }
.vt-ac-item .vt-ac-nm { font-weight: 600; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-ac-item .vt-ac-sub { margin-left: auto; font-size: 11px; color: var(--text-dim); flex-shrink: 0; }

/* ===== Folder / Board Karya (ala Pinterest) ===== */
.folder-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.folder-card { display: block; width: 100%; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .18s; }
.folder-card:hover { border-color: var(--border); transform: translateY(-3px); }
.folder-card-new { border-style: dashed; }
.folder-cover { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16/11; background: var(--surface-2); overflow: hidden; }
.folder-cover span { background: var(--surface-2) center/cover no-repeat; }
.folder-cover.cov-1 span:nth-child(1) { grid-column: 1/3; grid-row: 1/3; }
.folder-cover.cov-2 span:nth-child(1) { grid-row: 1/3; }
.folder-cover.cov-2 span:nth-child(2) { grid-row: 1/3; }
.folder-cover.cov-3 span:nth-child(1) { grid-row: 1/3; }
.folder-cover-empty { grid-column: 1/3; grid-row: 1/3; display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 30px; background: var(--surface-2); }
.folder-meta { padding: 10px 12px 12px; }
.folder-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-sub { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

/* Tombol overlay pada kartu (simpan ke folder / keluarkan) */
.work-wrap, .folder-item { position: relative; }
/* Hover pada wrap → thumbnail-nya yang "nyundul" (lift), bukan seluruh kartu */
.work-wrap .card-thumb { transition: transform .18s ease; }
.work-wrap:hover .card-thumb { transform: translateY(-3px); }
.save-folder, .folder-remove { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(0,0,0,.62); color: #fff; cursor: pointer; opacity: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: opacity .15s, background .15s; z-index: 2; }
.work-wrap:hover .save-folder, .folder-item:hover .folder-remove { opacity: 1; }
.save-folder:hover { background: var(--accent); }
.folder-remove:hover { background: var(--danger); }
@media (hover: none) { .save-folder, .folder-remove { opacity: 1; } }

/* Modal simpan-ke-folder */
.fmodal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.fmodal-overlay.show { display: flex; }
.fmodal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100%; max-width: 380px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; }
/* Form di dalam modal (mis. Donasi) bisa scroll — cegah field/tombol terpotong saat kepanjangan. */
.fmodal > form { overflow-y: auto; flex: 1 1 auto; min-height: 0; }
/* Modal Donasi: lebih lebar, header tetap · isi scroll · tombol bayar sebagai footer tetap (selalu terlihat). */
#donateModal .fmodal { max-width: 460px; }
#donateModal form { display: flex; flex-direction: column; overflow: hidden; padding: 0; flex: 1 1 auto; min-height: 0; }
.dm-body { overflow-y: auto; padding: 18px 20px; flex: 1 1 auto; min-height: 0; }
.dm-foot { padding: 12px 20px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.dm-lbl { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.dm-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dm-amounts .damt { min-width: 0; }
.fmodal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-soft); }
.fmodal-list { overflow-y: auto; padding: 6px; flex: 1; min-height: 60px; }
.fitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.fitem:hover { background: var(--surface-2); }
.fitem-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fitem input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
.fmodal-new { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border-soft); }
.fmodal-new input { flex: 1; }

/* ===== Favorit — masonry mirip galeri ===== */
.fav-masonry { column-count: 4; column-gap: 14px; }
@media (max-width: 1100px) { .fav-masonry { column-count: 3; } }
@media (max-width: 700px) { .fav-masonry { column-count: 2; } }
.fav-pin { break-inside: avoid; margin: 0 0 14px; display: block; border-radius: 12px; overflow: hidden; position: relative; background: #0c0d11; border: 1px solid var(--border-soft); transition: border-color .18s; }
.fav-pin:hover { border-color: var(--border); }
.fav-pin img { width: 100%; display: block; }
.fav-pin .fav-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.fav-pin:hover .fav-cap { opacity: 1; }
.fav-cap .t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-cap .p { font-size: 12px; font-weight: 700; margin-top: 2px; }

/* ===================================================================
   LANDING PAGE (Fase 1b) — hero imersif + section modern (dark)
   =================================================================== */
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.3s infinite; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; border-radius: 24px; margin: 4px 0 12px; padding: 54px 50px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: center;
    background: radial-gradient(120% 150% at 100% 0%, rgba(226,59,84,.30), transparent 58%), linear-gradient(135deg, #1b1013 0%, #14151b 55%, #0f1017 100%);
    border: 1px solid var(--border-soft); }
.lp-hero::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(80% 100% at 28% 0%, #000 28%, transparent 72%); mask-image: radial-gradient(80% 100% at 28% 0%, #000 28%, transparent 72%); pointer-events:none; }
.lp-hero::after { content:""; position:absolute; right:-130px; top:-130px; width:440px; height:440px; background: radial-gradient(circle, rgba(226,59,84,.32), transparent 66%); filter: blur(18px); pointer-events:none; }
/* Gradient light HANYA saat hero tak berbanner — supaya tak menimpa background-size:cover pada .has-bg (bug banner ter-tile di mode terang) */
html[data-theme="light"] .lp-hero:not(.has-bg) { background: radial-gradient(120% 150% at 100% 0%, rgba(226,59,84,.16), transparent 58%), linear-gradient(135deg, #fff 0%, #fbf4f5 60%, #fff 100%); }
/* Hero dengan banner admin / iklan (background gambar + scrim; teks tetap terbaca, CTA tetap bisa diklik) */
.lp-hero.has-bg { background-size: cover; background-position: center; }
.lp-hero.has-bg::before { background-image: none; background: linear-gradient(90deg, rgba(9,10,14,.94) 0%, rgba(9,10,14,.72) 44%, rgba(9,10,14,.28) 100%); -webkit-mask: none; mask: none; z-index: 2; }
.lp-hero.has-bg::after { display: none; }
.lp-hero .hero-bgfade { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.lp-hero .hero-adlink { position: absolute; inset: 0; z-index: 1; display: none; }
.lp-hero .ad-tag { z-index: 5; }
.lp-hero.has-bg .lp-hero-copy { z-index: 3; }
.lp-hero.has-bg .lp-hero-copy h1 { color: #fff; }
.lp-hero.has-bg .lp-hero-copy p { color: rgba(255,255,255,.9); }
.lp-hero.has-bg .lp-stat b { color: #fff; }
.lp-hero.has-bg .lp-stat.is-live b { color: var(--accent); }
.lp-hero.has-bg .lp-stat span { color: rgba(255,255,255,.72); }
.lp-hero-copy { position: relative; z-index: 2; max-width: 640px; }
.lp-eyebrow { display:inline-flex; align-items:center; gap:8px; font-size:11.5px; font-weight:700; letter-spacing:.07em; color: var(--accent); background: rgba(226,59,84,.12); border:1px solid rgba(226,59,84,.28); padding:6px 13px; border-radius:999px; margin-bottom:18px; }
.lp-hero h1 { font-size: clamp(30px, 4vw, 48px); line-height:1.08; letter-spacing:-.02em; font-weight:700; margin-bottom:16px; }
.lp-hero h1 span { color: var(--accent); }
.lp-hero p { color: var(--text-muted); font-size: 16px; line-height:1.6; max-width: 540px; margin-bottom: 26px; }
.lp-cta { display:flex; gap:12px; flex-wrap:wrap; }
.lp-btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 999px; }
.lp-stats { display:flex; gap:28px; margin-top:30px; flex-wrap:wrap; }
.lp-stat { display:flex; flex-direction:column; }
.lp-stat b { font-size:24px; font-weight:700; letter-spacing:-.01em; display:flex; align-items:center; gap:7px; }
.lp-stat span { font-size:12.5px; color: var(--text-dim); }
.lp-stat.is-live b { color: var(--accent); }
/* Hero art: konstelasi avatar VTuber */
.lp-hero-art { position: relative; z-index: 3; min-height: 320px; }
.lp-hero.has-bg .lp-orb { border-color: rgba(255,255,255,.28); box-shadow: 0 14px 42px rgba(0,0,0,.6); }
.lp-orb { position:absolute; border-radius:50%; border:3px solid rgba(255,255,255,.14); box-shadow: 0 12px 34px rgba(0,0,0,.45); background:#0c0d11; transition: transform .25s; animation: lpFloat 6s ease-in-out infinite; }
.lp-orb img { width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; }
.lp-orb:hover { transform: scale(1.06) translateY(-3px); z-index:5; }
.lp-orb-0 { width:132px; height:132px; top:14%; left:34%; animation-delay:0s; }
.lp-orb-1 { width:98px;  height:98px;  top:1%;  left:6%;  animation-delay:.6s; }
.lp-orb-2 { width:86px;  height:86px;  top:55%; left:0;   animation-delay:1.2s; }
.lp-orb-3 { width:112px; height:112px; top:52%; left:60%; animation-delay:1.8s; }
.lp-orb-4 { width:78px;  height:78px;  top:24%; left:78%; animation-delay:2.4s; }
.lp-orb-5 { width:72px;  height:72px;  top:82%; left:28%; animation-delay:3s; }
@keyframes lpFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }
.lp-orb-live { position:absolute; inset:-3px; border-radius:50%; border:2px solid var(--accent); box-shadow:0 0 0 3px rgba(226,59,84,.25); pointer-events:none; }
.lp-orb-live .pulse { position:absolute; top:-3px; right:-3px; background: var(--accent); }

/* Section head */
.lp-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin: 40px 0 16px; }
.lp-head h2 { font-size: 21px; font-weight:700; letter-spacing:-.01em; display:flex; align-items:center; gap:11px; }
/* Ikon judul seksi → chip aksen lembut: identitas & ritme visual antar seksi */
.lp-head h2 > i { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); border-radius: 10px; font-size: 15px; }
.lp-count { font-size:12px; font-weight:700; background: var(--surface-2); color: var(--text-muted); padding:2px 9px; border-radius:999px; }
.lp-more { color: var(--text-muted); font-size:13.5px; font-weight:600; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.lp-more:hover { background: var(--accent-soft); color: var(--accent); }
.lp-more:hover i { transform: translateX(2px); }
.lp-more i { transition: transform .15s; }
/* Scroll-reveal seksi beranda (kelas ditambah via JS — progresif) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
.lp-more:hover { color: var(--accent); }
.lp-livedot { width:10px; height:10px; border-radius:50%; background: var(--accent); box-shadow:0 0 0 4px rgba(226,59,84,.22); animation: lpBlink 1.4s infinite; }
@keyframes lpBlink { 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* Rail generik (live/carousel) */
.lp-rail { display:flex; gap:14px; overflow-x:auto; padding:12px 0 16px; }
/* Carousel auto-loop: sembunyikan scrollbar (tanpa rail) & matikan snap agar geser mulus */
.grid-container.hscroll, .kr-grid.hscroll, .lp-rail { scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: none; }
.grid-container.hscroll::-webkit-scrollbar, .kr-grid.hscroll::-webkit-scrollbar, .lp-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Drag klik-tahan-geser */
.grid-container.hscroll, .kr-grid.hscroll, .lp-rail { cursor: grab; }
.grid-container.hscroll.grabbing, .kr-grid.hscroll.grabbing, .lp-rail.grabbing { cursor: grabbing; }
.grid-container.hscroll.grabbing a, .kr-grid.hscroll.grabbing a, .lp-rail.grabbing a { pointer-events: none; }
/* Banner penanda WEBSITE DEMO (hanya tampil saat IS_DEMO) */
.demo-banner { background: linear-gradient(90deg, #e5484d, #c92b43); color: #fff; text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .2px; padding: 7px 16px; line-height: 1.4; }
.demo-banner b { font-weight: 800; }
.demo-banner i { margin-right: 6px; }
/* Infinite scroll (Marketplace, Galeri) */
.inf-sentinel { width: 100%; height: 1px; }
.inf-spin { display: flex; justify-content: center; align-items: center; padding: 24px 0 8px; }
/* Pager berhalaman (Direktori VTuber, profil, dll) */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 28px 0 8px; }
.pager .pg { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-soft); border-radius: 9px; background: var(--surface); color: var(--text-muted);
    font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.pager .pg:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.pager .pg.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager .pg-gap { color: var(--text-dim); padding: 0 4px; }
/* Carousel beranda dengan tombol panah (prev/next) */
.lp-caro { position: relative; }
.caro-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 42px; height: 42px; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); opacity: .9; transition: background .15s, color .15s, opacity .15s; }
.caro-btn:hover { background: var(--accent); color: #fff; opacity: 1; border-color: var(--accent); }
.caro-btn.prev { left: 4px; }
.caro-btn.next { right: 4px; }
@media (max-width: 820px) { .caro-btn { display: none; } }   /* mobile: cukup geser/swipe */

/* Carousel "Produk Digital" — kartu LANDSCAPE 16:9 ala Star Creators (commissions.gg) */
.pc-caro { position: relative; }
.pc-rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pc-rail::-webkit-scrollbar { display: none; height: 0; }
.pc-card { flex: 0 0 340px; max-width: 80vw; scroll-snap-align: start; }
.pc-media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-soft); background: #0c0d11; }
.pc-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pc-card:hover .pc-media > img { transform: scale(1.05); }
.pc-media .mk-status { position: absolute; top: 10px; left: 10px; z-index: 2; }
.pc-media .mk-fav { position: absolute; top: 8px; right: 8px; z-index: 3; }
.pc-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; pointer-events: none; }
.pc-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 28px 12px 11px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.pc-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); flex: 0 0 auto; }
.pc-meta { min-width: 0; flex: 1; }
.pc-title { color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-by { color: rgba(255,255,255,.82); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-price { flex: 0 0 auto; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
@media (max-width: 700px) { .pc-card { flex-basis: 300px; } }
/* Discovery VTuber: kolom tetap 4/3/2 (konsisten dgn galeri/marketplace) + 12 item → baris selalu penuh, tanpa ruang kosong */
.grid-container.disco-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-container.disco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .grid-container.disco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kartu Sedang Live */
.live-card { flex:0 0 172px; scroll-snap-align:start; background: var(--surface); border:1px solid var(--border-soft); border-radius:16px; padding:14px; text-align:center; transition: border-color .15s, transform .15s; }
.live-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.live-card-av { position:relative; width:96px; height:96px; margin:0 auto 12px; }
.live-card-av img { width:100%; height:100%; border-radius:50%; object-fit:cover; border:2px solid var(--accent); }
.live-card-av .live-badge { position:absolute; bottom:-6px; left:50%; transform:translateX(-50%); font-size:10px; padding:2px 8px; }
.live-card-name { font-weight:600; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.live-card-meta { display:flex; gap:12px; justify-content:center; margin-top:6px; font-size:11.5px; color: var(--text-dim); }

/* Jadwal stream */
.lp-sched { display:grid; grid-template-columns: minmax(0,1fr); gap:8px; }

/* Slider jadwal beranda: slide YouTube ↔ jadwal mingguan (/schedule), rotasi via JS */
.lp-sched-slider { display:grid; position:relative; align-content:start; }
.lp-sched-slide { grid-area:1/1; opacity:0; transform:translateX(18px); transition:opacity .5s ease, transform .5s ease; pointer-events:none; }
.lp-sched-slide.active { opacity:1; transform:none; pointer-events:auto; }
.lp-sched-src { display:inline-flex; align-items:center; gap:7px; font-size:11.5px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--text-dim); margin:0 0 10px 2px; }
.lp-sched-src i { color:var(--accent); font-size:12px; }
.lp-sched-dots { position:absolute; top:2px; right:2px; display:flex; gap:6px; z-index:2; }
.lp-sched-dots .dot { width:9px; height:9px; padding:0; border:none; border-radius:50%; background:var(--border); cursor:pointer; transition:background .2s, transform .2s; }
.lp-sched-dots .dot:hover { background:var(--text-muted); transform:scale(1.2); }
.lp-sched-dots .dot.on { background:var(--accent); transform:scale(1.2); }

/* ===== Beranda: seksi 50:50 (konten kiri + kartu promo/tool kanan) ===== */
.lp-split { display:grid; grid-template-columns: 1fr 1fr; gap:22px; align-items:stretch; margin-bottom:8px; }
.lp-split > * { min-width:0; }
/* Varian Peringkat: baris-1 = bar tab (kiri saja), baris-2 = list + kartu → kartu sejajar #lb-subs */
.lp-split-rank { grid-template-rows:auto 1fr; row-gap:0; }
.lp-split-rank > .lb-tabs { grid-column:1; grid-row:1; justify-self:start; }
.lp-rank-body { grid-column:1; grid-row:2; }
.lp-split-rank > .lp-side-col { grid-column:2; grid-row:2; }
.lp-side-col { min-width:0; display:flex; flex-direction:column; }
.lp-side-stack { gap:16px; }
.lp-side-col > .lp-side-card { flex:1 1 auto; }   /* kartu info mengisi tinggi kolom agar rata dgn kiri */
.lp-side-card { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:22px 22px 24px; }
/* Slot dinamis kanan: kartu Iklan (banner) / Sponsor */
.lp-side-promo { position:relative; display:block; border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--surface); transition:border-color .15s, transform .15s; }
.lp-side-promo:hover { border-color:var(--accent); transform:translateY(-2px); }
.lp-side-ad img { display:block; width:100%; height:auto; }
.lp-side-tag { position:absolute; top:10px; left:10px; z-index:2; font-size:10.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#fff; background:rgba(12,13,17,.72); padding:3px 9px; border-radius:999px; -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
.lp-side-tag.alt { background:var(--accent); }
.lp-side-sponsor { display:flex; align-items:center; gap:14px; padding:18px 16px; text-decoration:none; color:var(--text); }
.lp-side-sponsor .lss-img { flex-shrink:0; width:66px; height:66px; border-radius:14px; object-fit:cover; background:var(--surface-2); }
.lss-body { min-width:0; flex:1; }
.lss-name { font-weight:800; font-size:15px; letter-spacing:-.2px; }
.lss-blurb { font-size:12.5px; color:var(--text-muted); line-height:1.45; margin-top:3px; }
.lss-go { color:var(--text-dim); font-size:12px; flex-shrink:0; }
/* Carousel Sponsor & Iklan (kolom Peringkat): HORIZONTAL, 2–3 slide terlihat, infinite loop */
.lp-promo-carousel { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:14px 14px 16px; }
.lp-promo-head { display:flex; align-items:center; gap:7px; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--text-dim); margin:0 2px 12px; }
.lp-promo-head i { color:var(--accent); font-size:12px; }
.lp-promo-head .lp-promo-cta { margin-left:auto; color:var(--accent); font-weight:400; text-transform:none; letter-spacing:0; }
.lp-promo-head .lp-promo-cta:hover { text-decoration:underline; }
.lp-promo-viewport { position:relative; overflow:hidden; }
.lp-promo-carousel.scroll .lp-promo-viewport {
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image:linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.lp-promo-track { display:flex; flex-direction:row; gap:14px; width:max-content; }
.lp-promo-carousel.scroll .lp-promo-track { animation:lpPromoScroll var(--promo-dur,24s) linear infinite; will-change:transform; }
.lp-promo-carousel.scroll .lp-promo-viewport:hover .lp-promo-track { animation-play-state:paused; }
@keyframes lpPromoScroll { from { transform:translateX(0); } to { transform:translateX(calc(-1 * var(--promo-shift,0px))); } }
@media (prefers-reduced-motion:reduce) { .lp-promo-carousel.scroll .lp-promo-track { animation:none; } .lp-promo-carousel.scroll .lp-promo-viewport { -webkit-mask-image:none; mask-image:none; } }
/* Slide: tile vertikal, lebar seragam 210px */
.lp-promo-slide { position:relative; display:block; flex:0 0 210px; width:210px; height:150px; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface-2); text-decoration:none; color:var(--text); transition:border-color .15s, transform .15s; }
.lp-promo-slide:hover { border-color:var(--accent); transform:translateY(-2px); }
.lp-promo-slide.lp-side-ad { padding:0; }
.lp-promo-slide.lp-side-ad img { display:block; width:100%; height:100%; object-fit:cover; }
/* Sponsor: full-image + teks overlay di dalam tile (hemat ruang) */
.lp-promo-slide.lp-side-sponsor { display:block; padding:0; }
.lp-promo-slide.lp-side-sponsor .lss-img { position:absolute; inset:0; width:100%; height:100%; border-radius:0; object-fit:cover; background:var(--surface); }
.lp-promo-slide.lp-side-sponsor .lss-body { position:absolute; left:0; right:0; bottom:0; z-index:2; padding:22px 13px 12px; background:linear-gradient(180deg, transparent, rgba(6,8,15,.6) 45%, rgba(6,8,15,.92)); }
.lp-promo-slide .lss-name { font-weight:800; font-size:14px; letter-spacing:-.2px; line-height:1.25; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.55); display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.lp-promo-slide .lss-blurb { font-size:11.5px; color:rgba(255,255,255,.85); line-height:1.4; margin-top:2px; text-shadow:0 1px 2px rgba(0,0,0,.5); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lp-promo-slide .lss-go { position:absolute; top:10px; right:11px; z-index:2; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.6); }
.lp-side-eyebrow { display:inline-flex; align-items:center; gap:7px; align-self:flex-start; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; color:var(--accent); background:var(--accent-soft); padding:5px 11px; border-radius:999px; margin-bottom:12px; }
.lp-side-title { font-size:19px; font-weight:800; letter-spacing:-.2px; margin:0 0 8px; }
.lp-side-desc { font-size:13px; line-height:1.6; color:var(--text-muted); margin:0 0 16px; }
.lp-side-cta { margin-top:auto; align-self:flex-start; }
/* mockup editor jadwal */
.sched-mock { background:var(--surface-2); border:1px solid var(--border-soft); border-radius:var(--radius-sm); padding:12px 14px; margin-bottom:18px; }
.sm-head { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:700; color:var(--text-muted); margin-bottom:6px; }
.sm-head i { color:var(--accent); }
.sm-row { display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px dashed var(--border-soft); }
.sm-when { font-size:12px; font-weight:700; color:var(--text); white-space:nowrap; }
.sm-bar { height:8px; border-radius:4px; background:linear-gradient(90deg, var(--accent), transparent); flex:1; opacity:.5; }
.sm-bar.w2 { max-width:68%; } .sm-bar.w3 { max-width:44%; }
/* daftar tools */
.lp-toollist { list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:13px; }
.lp-toollist li { display:flex; align-items:flex-start; gap:12px; }
.lp-toollist .tl-ic { flex-shrink:0; width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:var(--accent-soft); color:var(--accent); font-size:15px; }
.lp-toollist b { display:block; font-size:13.5px; font-weight:700; }
.lp-toollist li span { font-size:12px; color:var(--text-muted); line-height:1.45; }
@media (max-width: 860px) {
    .lp-split { grid-template-columns: 1fr; gap:14px; }
    /* Peringkat mobile: menumpuk normal (tab → list → kartu) */
    .lp-split-rank { grid-template-rows:auto; row-gap:14px; }
    .lp-split-rank > .lb-tabs, .lp-rank-body, .lp-split-rank > .lp-side-col { grid-column:1; grid-row:auto; }
    .lp-side-sponsor .lss-img { width:58px; height:58px; }
    /* Carousel promo mobile: geser-swipe manual horizontal (tanpa animasi) */
    .lp-promo-carousel.scroll .lp-promo-viewport { overflow-x:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:x mandatory; -webkit-mask-image:none; mask-image:none; }
    .lp-promo-carousel.scroll .lp-promo-track { animation:none; }
    .lp-promo-slide { scroll-snap-align:start; }
    .lp-promo-carousel .lp-dup { display:none; }   /* sembunyikan salinan-loop di mobile */
}
.sched-row { display:flex; align-items:center; gap:14px; padding:12px 16px; background: var(--surface); border:1px solid var(--border-soft); border-radius:14px; transition: border-color .15s; }
.sched-row:hover { border-color: var(--border); }
.sched-when { flex:0 0 58px; text-align:center; display:flex; flex-direction:column; }
.sched-when .sched-day { font-size:11px; color: var(--text-dim); font-weight:600; }
.sched-when .sched-hour { font-size:16px; font-weight:700; letter-spacing:-.01em; }
.sched-av { width:40px; height:40px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.sched-body { flex:1; min-width:0; }
.sched-title { font-size:14px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sched-creator { font-size:12px; color: var(--text-muted); }
.sched-badge { flex-shrink:0; font-size:11px; font-weight:700; padding:4px 10px; border-radius:999px; display:inline-flex; align-items:center; gap:5px; }
.sched-badge.live { background: rgba(226,59,84,.16); color: var(--accent); }
.sched-badge.live .pulse { background: var(--accent); }
.sched-badge.soon { background: rgba(232,185,35,.16); color:#e0a80f; }
.sched-badge.sched { background: var(--surface-2); color: var(--text-muted); }
@media (max-width: 560px) {
    .sched-row { gap:10px; padding:11px 13px; }
    .sched-when { flex:0 0 44px; }
    .sched-when .sched-hour { font-size:15px; }
    .sched-av { width:36px; height:36px; }
    .sched-badge { padding:3px 8px; font-size:10.5px; }
}

/* Band CTA penutup */
.lp-band { margin: 52px 0 10px; border-radius:24px; padding: 48px 32px; text-align:center; position:relative; overflow:hidden;
    background: radial-gradient(100% 140% at 50% 0%, rgba(226,59,84,.22), transparent 60%), var(--surface); border:1px solid var(--border-soft); }
.lp-band-inner { position:relative; z-index:2; max-width:560px; margin:0 auto; }
.lp-band h2 { font-size:26px; font-weight:700; margin-bottom:10px; }
.lp-band p { color: var(--text-muted); margin-bottom:22px; }
.lp-band .lp-cta { justify-content:center; }

/* Responsif landing */
@media (max-width: 900px) {
    .lp-hero { grid-template-columns: 1fr; padding: 40px 28px; }
    .lp-hero-art { display:none; }
}
@media (max-width: 560px) {
    .lp-hero { padding: 30px 20px; border-radius:18px; }
    .lp-hero h1 { font-size: 27px; }
    .lp-hero p { font-size:14.5px; }
    .lp-stats { gap:18px; margin-top:22px; }
    .lp-stat b { font-size:20px; }
    .lp-head { margin: 30px 0 14px; }
    .lp-head h2 { font-size:18px; }
    .lp-btn-lg { padding:11px 18px; font-size:14px; }
    .lp-band { padding: 34px 20px; }
    .lp-band h2 { font-size:22px; }
}

/* ===================================================================
   AUTH SPLIT-SCREEN (Fase C) — form gelap kiri + panel art kanan
   =================================================================== */
.is-auth .top-bar { display: none; }
.is-auth #main-content { margin: 0; }
.is-auth .content { padding: 0; max-width: none; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-left { display: flex; align-items: center; justify-content: center; padding: 44px 34px; background: var(--bg); }
.auth-form { width: 100%; max-width: 400px; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin-bottom: 24px; color: var(--text); }
.auth-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.auth-brand span { color: var(--accent); }
.auth-form > h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-form .form-box { padding: 0; background: none; border: none; }   /* jika masih ada wrapper form-box */
.auth-art { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--accent) 0%, #6a1526 55%, #14151b 100%); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.auth-art::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(120% 90% at 80% 10%, rgba(226,59,84,.35), transparent 60%),
    linear-gradient(0deg, rgba(9,10,14,.9), rgba(9,10,14,.1)); }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); }
.auth-art-inner { position: relative; z-index: 2; padding: 52px; color: #fff; }
.auth-art-inner h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; }
.auth-art-inner p { color: rgba(255,255,255,.85); max-width: 440px; font-size: 15px; line-height: 1.6; }
@media (max-width: 900px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-left { min-height: 100vh; padding: 40px 24px; }
}

/* ===================================================================
   PROFIL 2-KOLOM (ala VGen) — sidebar profil sticky + konten kanan
   =================================================================== */
.pf-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 26px; align-items: start; }
.pf-side { position: sticky; top: 80px; align-self: start; margin-top: -70px; background: transparent; border: none; padding: 0 2px; z-index: 3; }
/* Header profil di sidebar → tersusun vertikal */
.pf-side .profile-header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; padding: 0; }
.pf-side .profile-av-wrap { margin: 0 0 4px; width: 140px; height: 140px; }
.pf-side .profile-avatar { width: 140px; height: 140px; border-width: 4px; }
/* Ornamen lencana: badge di pojok kanan-bawah avatar (translate di-scale ke avatar 140px) */
.pf-side .challenger-orn { transform: translate(46px, 43px); }
.pf-side .profile-meta { padding: 0; width: 100%; }
.pf-side .profile-meta h1 { font-size: 27px; }
.pf-side .profile-handle { font-size: 12.5px; }
.pf-side .follow-stats { gap: 16px; margin-top: 8px; font-size: 13px; }
.pf-side .profile-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
/* Tombol aksi bersebelahan: 2 per baris (Ikuti + Pesan), tombol lain ikut mengisi konsisten */
.pf-side .profile-actions .btn, .pf-side .profile-actions > span { flex: 1 1 calc(50% - 4px); min-width: 0; justify-content: center; white-space: nowrap; }
.pf-side .profile-socials { margin: 14px 0 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-side .profile-socials .social-chip { flex: 1 1 calc(50% - 4px); min-width: 0; justify-content: center; }
.pf-side .profile-bio { margin: 14px 0 0 0 !important; font-size: 13.5px; max-width: none; }
/* Kolom kanan */
.pf-main { min-width: 0; }
.pf-main .premium-zone { margin: 0 0 22px 0 !important; max-width: none !important; }
.pf-main .premium-zone .sched-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
/* Responsif → 1 kolom */
@media (max-width: 900px) {
    .pf-layout { grid-template-columns: 1fr; gap: 16px; }
    .pf-side { position: static; margin-top: -54px; }
    .pf-side .profile-actions { flex-direction: row; flex-wrap: wrap; }
    .pf-side .profile-actions .btn, .pf-side .profile-actions > span { width: auto; }
    .pf-side .profile-socials { flex-direction: row; flex-wrap: wrap; }
}

/* ===================================================================
   TRANSISI PROFIL (meniru VGen — timing/easing persis, warna ikut tema)
   =================================================================== */
@media (prefers-reduced-motion: no-preference) {
    /* Masuk halaman: elemen naik + fade (stagger) */
    @keyframes pfRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
    .is-profile .profile-banner { animation: pfRise .55s cubic-bezier(.2,0,0,1) both; }
    .pf-side { animation: pfRise .55s cubic-bezier(.2,0,0,1) both .08s; }
    .pf-main > * { animation: pfRise .55s cubic-bezier(.2,0,0,1) both; }
    .pf-main > *:nth-child(1) { animation-delay: .16s; }
    .pf-main > *:nth-child(2) { animation-delay: .24s; }
    .pf-main > *:nth-child(3) { animation-delay: .32s; }
    /* Ganti tab: konten fade-naik (di-retrigger via JS) */
    @keyframes pfFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    .pf-anim { animation: pfFade .32s cubic-bezier(.2,0,0,1) both; }
}
/* Avatar sticky mengecil saat scroll (VGen: width/height .25s ease) */
.pf-side .profile-av-wrap, .pf-side .profile-avatar { transition: width .25s ease, height .25s ease; }
.pf-side.pf-shrink .profile-av-wrap, .pf-side.pf-shrink .profile-avatar { width: 92px; height: 92px; }
/* Sembunyikan tombol JELAJAH di halaman profil; search tetap ke tengah */
.is-profile .jelajah-wrap { display: none; }
.is-profile .topbar-search { margin-left: auto; }
/* Tombol aksi: transisi halus 0.4s (VGen) */
.pf-side .profile-actions .btn, .pf-side .profile-actions > span { transition: background-color .4s ease, border-color .3s ease, color .3s ease, transform .12s ease; }
.pf-side .profile-actions .btn:active { transform: scale(.98); }
/* Tab: judul aktif membesar mulus + hover halus (VGen) */
.pf-main .tabs a[data-tab] { transition: color .25s ease, background-color .25s ease, border-color .25s ease, font-size .18s cubic-bezier(.2,0,0,1); }
.pf-main .tabs a[data-tab].active { font-size: 15.5px; }
/* Kartu karya/fanart & sosial: hover lebih halus */
.pf-main .card, .pf-main .fav-pin, .pf-main .gal-item, .pf-side .social-chip, .pf-main .folder-card { transition: border-color .3s ease, transform .3s cubic-bezier(.2,0,0,1), box-shadow .3s ease; }

/* ===== PROFIL MOBILE: banner lebih tinggi (tak gepeng) + avatar/ornamen mengecil proporsional ===== */
@media (max-width: 640px) {
    .is-profile .profile-banner { aspect-ratio: 2.2 / 1; max-height: 200px; }
    .pf-side .profile-av-wrap,
    .pf-side .profile-avatar,
    .pf-side.pf-shrink .profile-av-wrap,
    .pf-side.pf-shrink .profile-avatar { width: 104px; height: 104px; }
    .pf-side .challenger-orn { transform: translate(34px, 32px); }
    .pf-side .profile-meta h1 { font-size: 24px; }
}

/* Deskripsi/ToS komisi dgn format ringan (md_desc): **judul tebal besar**, *miring*, "- " poin */
.md-rich strong { font-size: 1.15em; font-weight: 700; color: var(--text); }
.md-rich em { font-style: italic; }
.md-rich .md-ul { margin: 8px 0; padding: 0; list-style: none; }
.md-rich .md-ul li { position: relative; padding-left: 18px; margin-bottom: 5px; }
.md-rich .md-ul li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.md-rich a { color: var(--accent); }

/* ===================================================================
   NEWS: layout baca 2-kolom — artikel di tengah + sidebar kanan (berita lain + iklan)
   =================================================================== */
.news-layout { display: grid; grid-template-columns: minmax(0, 720px) 320px; gap: 34px; justify-content: center; align-items: start; }
.news-main { min-width: 0; }
.news-main .article { max-width: none; }
.news-aside { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }
.news-side-box { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px; }
.news-side-h { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.news-side-item { display: flex; gap: 11px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.news-side-item:first-of-type { border-top: none; padding-top: 0; }
.news-side-thumb { width: 74px; height: 55px; border-radius: 9px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--surface-2); }
.news-side-info { min-width: 0; }
.news-side-title { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.news-side-item:hover .news-side-title { color: var(--accent); }
.news-side-meta { font-size: 11px; color: var(--text-dim); margin-top: 5px; }
.news-side-all { display: block; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.news-side-all:hover { color: var(--accent); }
@media (max-width: 900px) {
    .news-layout { grid-template-columns: 1fr; gap: 24px; }
    .news-aside { position: static; }
}

/* ===================================================================
   TOOLTIP GLOBAL (atribut title=) — dirender JS sbg #gtip, gaya = badge-tip.
   Menggantikan tooltip native yang flat; ikut tema terang/gelap.
   =================================================================== */
#gtip {
    position: fixed; z-index: 9999; pointer-events: none; max-width: 280px;
    background: linear-gradient(180deg, var(--surface), var(--surface-2)); color: var(--text);
    border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.45;
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(-4px) scale(.96); transform-origin: top center;
    transition: opacity .15s ease, transform .15s ease;
}
#gtip.gtip-above { transform-origin: bottom center; }
#gtip.show { opacity: 1; transform: translateY(0) scale(1); }
#gtip::after { content: ""; position: absolute; left: var(--gtip-ax, 50%); transform: translateX(-50%); border: 6px solid transparent; }
#gtip:not(.gtip-above)::after { top: -12px; border-bottom-color: var(--border); }
#gtip.gtip-above::after       { bottom: -12px; border-top-color: var(--border); }
@media (prefers-reduced-motion: reduce) { #gtip { transition: opacity .12s ease; transform: none; } #gtip.show { transform: none; } }

/* Tombol Donasi di topbar (kanan Jelajah) — pill sekunder, ikon hati aksen */
.tb-donasi { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; flex-shrink: 0;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-pill);
    font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.tb-donasi:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.tb-donasi i { color: var(--accent); }
@media (max-width: 700px) { .tb-donasi { padding: 0 12px; } .tb-donasi-txt { display: none; } }

/* Riwayat Donasi admin: dua seksi (Platform | VTuber) bersebelahan */
.donasi-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; align-items: start; }
.donasi-cols .table-wrap { margin-bottom: 0; }
@media (max-width: 900px) { .donasi-cols { grid-template-columns: 1fr; gap: 26px; } }
