/* =========================================================
   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; }

/* =================== LAYOUT =================== */
#sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-soft);
    display: flex; flex-direction: column;
    z-index: 200; transition: transform .25s ease;
}
.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-foot { padding: 14px 20px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--text-dim); }

#main-content { margin-left: var(--sidebar-w); 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; }
#menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 20px; }

.topbar-search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 16px; color: var(--text-dim); }
.topbar-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 13.5px; }
.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: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); display: block; }
.avatar-wrap { position: relative; }
.avatar-btn { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.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); }
.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); }
@media (max-width: 560px) { .avatar-menu { position: fixed; top: 58px; right: 10px; } }

.content { padding: 30px 28px 60px; flex: 1; }

/* =================== 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: 1px solid var(--border-soft); 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); }
/* 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; }

/* =================== TABS =================== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; background: var(--surface); padding: 8px; border-radius: var(--radius); border: 1px solid var(--border-soft); }
.tabs a { 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; }

/* 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); }

/* =================== 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; }
.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 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 { display: flex; align-items: center; justify-content: space-between; margin: 38px 0 18px; }
.section-head h2 { font-size: 20px; }
.section-head a { color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.section-head a: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; }
}

/* =================== 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.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; padding: 14px 16px; border-top: 1px solid var(--border-soft); }
.chat-input input { flex: 1; }
.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; }
@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(--surface-3); color: var(--text); }

/* =================== 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); }
.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(--border-soft); background: var(--surface-2); color: var(--text); cursor: pointer; flex-shrink: 0; font-size: 12.5px; font-weight: 600; transition: .15s; white-space: nowrap; }
.kr-fav:hover { border-color: var(--accent); }
.kr-fav.faved { background: var(--accent); color: #fff; border-color: var(--accent); }
.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 .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: var(--radius); overflow: hidden; }
.mk-card:hover { border-color: var(--border); }
.mk-media { display: block; position: relative; overflow: hidden; background: transparent; }
.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 13px 13px; }
.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 9px 10px; }
    .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: 1000px; 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; }
.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; }
.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; }
.donate-grid { display: grid; grid-template-columns: minmax(0,1fr) 460px; gap: 24px; align-items: start; }

/* panel kosong (belum generate) — gaya gelap senada tema */
.qr-panel { min-height: 540px; display: flex; flex-direction: column; overflow: hidden; }
.qr-empty { flex: 1; 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; }

/* kartu pembayaran (saat QR sudah muncul) — putih bersih spt widget pembayaran */
.qr-panel.has-qr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 0; min-height: 0; }
.qr-panel.has-qr .qr-head { padding: 15px 18px; border-bottom: 1px solid #ececf0; font-weight: 700; font-size: 14.5px; color: #15161c; display: flex; align-items: center; gap: 9px; }
.qr-panel.has-qr .qr-head b { color: var(--accent); }
.qr-frame { width: 100%; border: none; background: #fff; height: 660px; display: block; }
.qr-status { padding: 13px 16px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid #ececf0; color: #5c606d; background: #fafafb; }
.qr-status.ok { color: #1b8f5a; background: #eafaf1; font-weight: 600; }
.qr-status.err { color: #c92b43; background: #fdecef; font-weight: 600; }
.qr-altlink { display: block; text-align: center; padding: 0 0 12px; font-size: 12px; color: #8b8f9c; background: #fafafb; }
.qr-altlink:hover { color: var(--accent); }
@media (max-width: 820px) { .donate-grid { grid-template-columns: 1fr; } .qr-frame { height: 600px; } }

/* =================== 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; } }

/* =================== 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; }
