/* ============================================================
   Portfolio CMS — Design System
   Tema gelap "midnight studio" dengan aksen konfigurabel.
   ============================================================ */

:root {
    --accent: #6d8bff;
    --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    --accent-line: color-mix(in srgb, var(--accent) 42%, transparent);
    --accent-2: #22d3ee;

    --bg: #060a14;
    --bg-2: #080d1a;
    --surface: #0d1526;
    --surface-2: #111b30;
    --surface-3: #16223a;
    --text: #eef2ff;
    --muted: #93a1bd;
    --muted-2: #6b7a99;
    --line: rgba(148, 163, 184, 0.14);
    --line-strong: rgba(148, 163, 184, 0.26);

    --success: #34d399;
    --danger: #fb7185;
    --warning: #fbbf24;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --shadow: 0 18px 40px -18px rgba(2, 6, 23, 0.9);
    --shadow-lg: 0 32px 70px -28px rgba(2, 6, 23, 0.95);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --container: 1160px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 520px at 82% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(760px 460px at 6% 4%, rgba(34, 211, 238, 0.12), transparent 68%),
        radial-gradient(900px 700px at 50% 108%, rgba(109, 139, 255, 0.10), transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, #070c17 55%, #060a14 100%);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.16; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; flex: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -60px; left: 16px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #0b1120;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------------- Tombol ---------------- */
.btn {
    --btn-bg: transparent;
    --btn-fg: var(--text);
    --btn-border: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon, .btn .icon-sm { width: 18px; height: 18px; }

.btn-primary {
    --btn-bg: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
    --btn-fg: #08101f;
    --btn-border: transparent;
    box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn-primary:hover { box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--accent) 75%, transparent); }

.btn-ghost { --btn-bg: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, 0.07); --btn-border: var(--accent-line); }

.btn-soft {
    --btn-bg: var(--accent-soft);
    --btn-fg: color-mix(in srgb, var(--accent) 70%, #fff);
    --btn-border: transparent;
}

.btn-danger { --btn-bg: rgba(251, 113, 133, 0.12); --btn-fg: #fda4af; --btn-border: rgba(251, 113, 133, 0.3); }
.btn-danger:hover { --btn-bg: rgba(251, 113, 133, 0.2); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: color-mix(in srgb, var(--accent) 55%, #fff);
    transition: gap .2s;
}
.link-arrow:hover { gap: 11px; }

/* ---------------- Header publik ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.brand-mark {
    width: 40px; height: 40px;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--accent-2)));
    color: #08101f;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
    overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark.has-logo { background: rgba(10, 17, 32, .55); border: 1px solid var(--line-strong); padding: 3px; }
.brand-mark.has-logo img { object-fit: contain; border-radius: 9px; aspect-ratio: 1 / 1; }

/* Kartu unggah gambar identitas (logo/favicon/banner) */
.brand-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.brand-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 15, 28, .55); }
.brand-card h3 { margin: 0; font-size: 14px; }
.brand-card .brand-preview { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 12px; border: 1px dashed var(--line-strong); background: rgba(4, 8, 18, .55); overflow: hidden; }
.brand-card .brand-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-card .brand-preview.is-banner img { width: 100%; height: 100%; object-fit: cover; }
.brand-card .brand-preview.is-square { width: 96px; height: 96px; margin-inline: auto; }
.brand-card .brand-preview.is-square img { object-fit: contain; }
.brand-card .brand-preview span { font-size: 12px; color: var(--muted-2); }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-size: 15px; }
.brand-name span { font-size: 11.5px; color: var(--muted-2); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color .18s, background .18s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    color: var(--muted);
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav .mobile-actions { display: flex; gap: 10px; margin-top: 16px; }
.mobile-nav .mobile-actions .btn { flex: 1; }

/* ---------------- Flash / toast ---------------- */
.toast-stack {
    position: fixed;
    top: calc(var(--header-h) + 14px);
    right: 18px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
}
.toast {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface-2) 92%, transparent);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    font-size: 14px;
    animation: toast-in .35s cubic-bezier(.16, 1, .3, 1);
}
.toast .icon { width: 18px; height: 18px; margin-top: 2px; }
.toast-success { border-color: rgba(52, 211, 153, 0.35); }
.toast-success .icon { color: var(--success); }
.toast-error { border-color: rgba(251, 113, 133, 0.4); }
.toast-error .icon { color: var(--danger); }
.toast-info { border-color: var(--accent-line); }
.toast-info .icon { color: var(--accent); }
.toast-close {
    margin-left: auto;
    background: none; border: 0;
    color: var(--muted-2);
    cursor: pointer;
    padding: 2px;
    line-height: 0;
}
.toast-close:hover { color: var(--text); }
.toast.is-hiding { animation: toast-out .25s forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 74px 0 64px; }
.hero.has-banner { overflow: hidden; }
.hero.has-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-banner);
    background-position: center right;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: .75;
    z-index: 0;
}
.hero.has-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(4, 8, 18, .62) 0%, rgba(4, 8, 18, .22) 46%, rgba(4, 8, 18, .8) 100%),
        linear-gradient(180deg, rgba(4, 8, 18, .03) 0%, rgba(4, 8, 18, .88) 96%);
    z-index: 0;
}
.hero.has-banner > .container { position: relative; z-index: 1; }

@media (max-width: 900px) {
    .hero.has-banner::before { background-position: 68% 50%; opacity: .55; }
    .hero.has-banner::after {
        background:
            linear-gradient(180deg, rgba(4, 8, 18, .72) 0%, rgba(4, 8, 18, .95) 92%);
    }
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 62%, #fff);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .01em;
}
.eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05); } }

.hero h1 {
    margin: 22px 0 0;
    font-size: clamp(2.5rem, 5.4vw, 4.1rem);
    letter-spacing: -0.04em;
    line-height: 1.03;
}
.hero h1 .grad {
    display: block;
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 65%, color-mix(in srgb, var(--accent) 70%, #fff) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-lead {
    margin-top: 20px;
    max-width: 54ch;
    font-size: 17px;
    color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.social-row { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.social-row .label { font-size: 12.5px; color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
.social-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    transition: color .18s, border-color .18s, transform .18s, background .18s;
}
.social-btn:hover {
    color: var(--text);
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.orb {
    position: relative;
    width: min(360px, 78vw);
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 10px;
    background: conic-gradient(from 140deg, var(--accent), var(--accent-2), color-mix(in srgb, var(--accent) 65%, #fff), var(--accent));
    box-shadow:
        0 40px 90px -30px color-mix(in srgb, var(--accent) 55%, transparent),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    animation: floaty 9s ease-in-out infinite;
}
.orb-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 25%, #1a2742, #0a1120 70%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: clamp(3.4rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.92);
}
.orb-inner img { width: 100%; height: 100%; object-fit: cover; }
@keyframes floaty { 50% { transform: translateY(-14px); } }

.hero-visual::before {
    content: "";
    position: absolute;
    width: 78%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent), transparent 66%);
    filter: blur(40px);
    z-index: -1;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: color-mix(in srgb, var(--surface-2) 88%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    font-size: 13px;
    animation: floaty 7s ease-in-out infinite;
}
.float-card .fc-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 70%, #fff);
}
.float-card strong { display: block; font-size: 15px; line-height: 1.2; }
.float-card span { color: var(--muted-2); font-size: 11.5px; }
.float-card.card-a { top: 8%; left: -2%; animation-delay: -2s; }
.float-card.card-b { bottom: 12%; right: -3%; animation-delay: -4s; }
.float-card.card-c { bottom: -2%; left: 8%; animation-delay: -1s; }

/* ---------------- Stats ---------------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
}
.stat {
    padding: 24px 26px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
}
.stat strong {
    display: block;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #fff, color-mix(in srgb, var(--accent) 70%, #fff));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat span { font-size: 12.5px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }

/* ---------------- Section dasar ---------------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 44px; flex-wrap: wrap; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 62%, #fff);
}
.section-label::before {
    content: "";
    width: 26px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}
.section-title { margin-top: 14px; font-size: clamp(1.85rem, 3.3vw, 2.7rem); }
.section-desc { margin-top: 12px; max-width: 58ch; color: var(--muted); font-size: 15.5px; }

/* ---------------- Project cards ---------------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-grid.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    overflow: hidden;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), border-color .28s, box-shadow .28s;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line);
    box-shadow: var(--shadow-lg);
}
.project-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 40%, #0b1120), #0a1120);
}
.project-grid.featured-grid .project-cover { aspect-ratio: 16 / 9; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(4, 8, 16, 0.72));
    opacity: .9;
}
.cover-fallback {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.18), transparent 55%),
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #0b1120), #0a1120);
}
.project-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #eaf2ff;
    background: rgba(6, 12, 24, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}
.project-featured-flag {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(6, 12, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--warning);
    backdrop-filter: blur(8px);
}
.project-featured-flag .icon { width: 16px; height: 16px; }

.project-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 18.5px; letter-spacing: -0.02em; }
.project-body h3 a:hover { color: color-mix(in srgb, var(--accent) 65%, #fff); }
.project-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; font-size: 12.5px; color: var(--muted-2); }
.project-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); opacity: .6; }
.project-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: auto;
    color: color-mix(in srgb, var(--accent) 60%, #fff);
    font-weight: 600; font-size: 13px;
}
.project-link .icon { width: 15px; height: 15px; transition: transform .2s; }
.project-card:hover .project-link .icon { transform: translate(2px, -2px); }

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: start; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; line-height: 1.8; }
.about-text p:last-child { margin-bottom: 0; }

.info-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    padding: 26px;
    box-shadow: var(--shadow);
}
.info-card h3 { font-size: 15px; letter-spacing: .01em; }
.info-list { display: grid; gap: 16px; margin-top: 20px; }
.info-item { display: flex; gap: 13px; align-items: flex-start; }
.info-item .ii-icon {
    width: 36px; height: 36px; flex: none;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 70%, #fff);
}
.info-item .ii-icon .icon { width: 17px; height: 17px; }
.info-item small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.info-item span { font-size: 14px; color: var(--text); word-break: break-word; }

.skills-wrap { margin-top: 54px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.skill-group {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    padding: 22px;
}
.skill-group h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.skill-item + .skill-item { margin-top: 14px; }
.skill-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 7px; }
.skill-top span:last-child { color: var(--muted-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.skill-bar { height: 6px; border-radius: 999px; background: rgba(148, 163, 184, 0.14); overflow: hidden; }
.skill-bar i {
    display: block; height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    width: var(--level, 0%);
    animation: bar-grow 1.2s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes bar-grow { from { width: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 12.5px;
    color: var(--muted);
}
.chip:hover { color: var(--text); border-color: var(--accent-line); }

/* ---------------- Dokumentasi / galeri ---------------- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.doc-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    padding: 0;
    display: block;
}
.doc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.doc-item::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(4, 8, 16, 0.8));
    opacity: 0;
    transition: opacity .25s;
}
.doc-item:hover img { transform: scale(1.06); }
.doc-item:hover::after { opacity: 1; }
.doc-item figcaption {
    position: absolute;
    left: 14px; right: 14px; bottom: 12px;
    z-index: 1;
    font-size: 12.5px;
    color: #dbe4f8;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s, transform .25s;
    text-align: left;
}
.doc-item:hover figcaption { opacity: 1; transform: none; }

/* ---------------- Lightbox ---------------- */
.lightbox {
    position: fixed; inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(3, 7, 15, 0.92);
    backdrop-filter: blur(10px);
}
.lightbox.is-open { display: grid; animation: fade-in .2s; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox-caption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 13.5px; }
.lightbox-close {
    position: absolute; top: 18px; right: 18px;
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(17, 27, 48, 0.9);
    color: var(--text);
    cursor: pointer;
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------------- Project detail ---------------- */
.page-hero { padding: 56px 0 32px; }
.back-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; color: var(--muted); font-weight: 500;
    margin-bottom: 24px;
    transition: gap .2s, color .2s;
}
.back-link:hover { color: var(--text); gap: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.035em; max-width: 22ch; }
.page-hero .lead { margin-top: 16px; font-size: 16.5px; color: var(--muted); max-width: 66ch; }
.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 34px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
}
.detail-meta div { background: color-mix(in srgb, var(--surface) 92%, transparent); padding: 16px 20px; }
.detail-meta small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.detail-meta span { font-size: 14px; font-weight: 500; }

.detail-cover {
    position: relative;
    margin-top: 34px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 8.5;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 35%, #0b1120), #0a1120);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .cover-fallback { position: absolute; inset: 0; }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; margin-top: 52px; align-items: start; }
.prose { color: #c3cde2; font-size: 15.5px; line-height: 1.85; }
.prose p { margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

.detail-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    padding: 22px;
}
.side-card h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: color-mix(in srgb, var(--accent) 65%, #fff);
    font-size: 12px;
    font-weight: 500;
}
.side-actions { display: grid; gap: 10px; }
.side-actions .btn { width: 100%; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.contact-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    padding: 32px;
    background:
        radial-gradient(500px 300px at 100% 0%, var(--accent-soft), transparent 70%),
        linear-gradient(165deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.contact-panel h3 { font-size: 1.45rem; }
.contact-panel > p { color: var(--muted); font-size: 14.5px; }
.contact-list { display: grid; gap: 14px; margin-top: auto; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.contact-list .icon { width: 17px; height: 17px; color: color-mix(in srgb, var(--accent) 65%, #fff); }
.contact-list a:hover { color: var(--text); }

.form-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: #c8d2e6; }
.field .hint { font-size: 12px; color: var(--muted-2); }
.field .error-text { font-size: 12.5px; color: #fda4af; }

.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    background: rgba(6, 11, 22, 0.6);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--accent-line);
    background: rgba(8, 14, 28, 0.85);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.input.has-error, .textarea.has-error { border-color: rgba(251, 113, 133, 0.55); }

.input-group { position: relative; }
.input-group .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); pointer-events: none; }
.input-group .input { padding-left: 40px; }
.input-group .toggle-password {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; display: grid; place-items: center;
    border: 0; background: none; color: var(--muted-2); cursor: pointer; border-radius: 8px;
}
.input-group .toggle-password:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--muted);
    cursor: pointer;
}
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ---------------- Footer ---------------- */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 44px 0 36px;
    margin-top: 40px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted-2); font-size: 13px; }
.footer-links { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------------- Auth ---------------- */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
    position: relative;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(720px 520px at 15% 10%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 65%),
        radial-gradient(600px 420px at 85% 90%, rgba(34, 211, 238, 0.16), transparent 70%),
        linear-gradient(160deg, #0a1223, #070c17 70%);
    overflow: hidden;
}
.auth-aside::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 30% 20%, #000, transparent 70%);
    pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-quote { max-width: 460px; }
.auth-quote .quote-mark { font-size: 64px; line-height: .8; color: color-mix(in srgb, var(--accent) 55%, #fff); font-family: Georgia, serif; }
.auth-quote blockquote { margin: 12px 0 0; font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.42; letter-spacing: -0.02em; font-weight: 600; }
.auth-quote p { margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-features { display: grid; gap: 12px; margin-top: 32px; }
.auth-features li { display: flex; gap: 11px; align-items: center; font-size: 13.5px; color: var(--muted); }
.auth-features .icon { width: 17px; height: 17px; color: var(--success); }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { font-size: 1.9rem; letter-spacing: -0.03em; }
.auth-card .sub { margin-top: 9px; color: var(--muted); font-size: 14.5px; }
.auth-form { display: grid; gap: 16px; margin-top: 28px; }
.auth-foot { margin-top: 24px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-foot a { color: color-mix(in srgb, var(--accent) 62%, #fff); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-hint {
    margin-top: 22px;
    padding: 12px 14px;
    border-radius: 11px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    font-size: 12px;
    color: var(--muted-2);
    line-height: 1.6;
}

/* ---------------- User area ---------------- */
.user-hero {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    padding: 34px;
    background:
        radial-gradient(600px 340px at 100% 0%, var(--accent-soft), transparent 68%),
        linear-gradient(160deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.user-hero .avatar {
    width: 74px; height: 74px;
    border-radius: 20px;
    display: grid; place-items: center;
    overflow: hidden;
    font-size: 24px; font-weight: 800;
    color: #08101f;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
}
.user-hero .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-hero h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.user-hero p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.user-hero .actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Admin shell ---------------- */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 264px;
    flex: none;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 18px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, #0a1120, #070c17);
    overflow-y: auto;
}
.admin-sidebar .brand { padding: 6px 8px 18px; border-bottom: 1px solid var(--line); }
.side-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); padding: 0 12px; margin-bottom: 8px; }
.side-nav { display: grid; gap: 3px; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13.8px;
    font-weight: 500;
    transition: background .16s, color .16s;
}
.side-nav a .icon { width: 18px; height: 18px; opacity: .85; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.side-nav a.is-active {
    background: linear-gradient(100deg, var(--accent-soft), transparent);
    color: var(--text);
    box-shadow: inset 2px 0 0 var(--accent);
}
.side-nav a.is-active .icon { color: color-mix(in srgb, var(--accent) 75%, #fff); opacity: 1; }
.side-nav .badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #08101f;
    font-size: 11px;
    font-weight: 700;
}
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }

.admin-main { flex: 1; min-width: 0; margin-left: 264px; display: flex; flex-direction: column; }
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
}
.admin-topbar .page-title { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.admin-topbar .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border-radius: 999px; border: 1px solid var(--line); }
.admin-user .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--accent), var(--accent-2));
    color: #08101f; font-size: 12px; font-weight: 800;
}
.admin-user div { line-height: 1.2; padding-right: 8px; }
.admin-user strong { display: block; font-size: 12.5px; }
.admin-user span { font-size: 11px; color: var(--muted-2); text-transform: capitalize; }
.sidebar-toggle { display: none; }

.admin-content { padding: 30px 28px 64px; max-width: 1240px; width: 100%; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-head h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.admin-head p { color: var(--muted); font-size: 13.8px; margin-top: 6px; }
.admin-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(165deg, color-mix(in srgb, var(--surface-2) 90%, transparent), color-mix(in srgb, var(--surface) 96%, transparent));
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.stat-card .sc-icon {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 72%, #fff);
}
.stat-card .sc-icon.is-cyan { background: rgba(34, 211, 238, 0.13); color: #67e8f9; }
.stat-card .sc-icon.is-amber { background: rgba(251, 191, 36, 0.13); color: #fcd34d; }
.stat-card .sc-icon.is-rose { background: rgba(251, 113, 133, 0.13); color: #fda4af; }
.stat-card strong { display: block; font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1.15; }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card .trend { font-size: 11.5px; color: var(--success); }

.card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    overflow: hidden;
}
.card-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; }
.card-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }

/* Tabel */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
}
table.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: rgba(255, 255, 255, 0.022); }
table.table .row-title { display: flex; align-items: center; gap: 12px; min-width: 220px; }
table.table .thumb {
    width: 52px; height: 38px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 35%, #0b1120), #0a1120);
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .8);
    flex: none;
    overflow: hidden;
}
table.table .thumb img { width: 100%; height: 100%; object-fit: cover; }
table.table .row-title strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
table.table .row-title small { color: var(--muted-2); font-size: 11.5px; }
table.table td.actions { text-align: right; white-space: nowrap; }
table.table td.actions form { display: inline-block; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}
.badge-success { background: rgba(52, 211, 153, .12); color: #6ee7b7; border-color: rgba(52, 211, 153, .25); }
.badge-muted { background: rgba(148, 163, 184, .1); color: #a8b6cf; border-color: var(--line-strong); }
.badge-accent { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, #fff); border-color: var(--accent-line); }
.badge-amber { background: rgba(251, 191, 36, .12); color: #fcd34d; border-color: rgba(251, 191, 36, .25); }
.badge-rose { background: rgba(251, 113, 133, .12); color: #fda4af; border-color: rgba(251, 113, 133, .28); }

/* Form admin */
.form-section { display: grid; gap: 18px; }
.form-section .section-heading {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.form-row .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 8px; }
.form-actions .spacer { flex: 1; }

.upload-box {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 12px;
}
.upload-preview {
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 32%, #0b1120), #0a1120);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}
.upload-preview.avatar { aspect-ratio: 1; width: 132px; border-radius: 22px; }
.upload-preview.cover { aspect-ratio: 16 / 9; width: 100%; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview .icon { width: 26px; height: 26px; margin: 0 auto 6px; opacity: .6; }

.cover-editor { display: grid; gap: 12px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery-card {
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}
.gallery-card .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); }
.gallery-card .img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-card .meta { padding: 10px; display: grid; gap: 8px; }
.gallery-card .meta input { padding: 6px 9px; font-size: 12px; border-radius: 7px; }
.gallery-card .meta form { display: flex; gap: 6px; }
.gallery-card .meta .btn { padding: 6px 9px; }
.icon-btn {
    width: 32px; height: 32px;
    display: inline-grid; place-items: center;
    border-radius: 8px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    cursor: pointer;
    transition: color .16s, border-color .16s, background .16s;
}
.icon-btn:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.icon-btn.is-danger:hover { color: #fda4af; border-color: rgba(251, 113, 133, .4); background: rgba(251, 113, 133, .12); }
.icon-btn .icon { width: 15px; height: 15px; }

.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 34px; height: 34px;
    display: inline-grid; place-items: center;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}
.pagination a:hover { border-color: var(--accent-line); color: var(--text); }
.pagination .is-current { background: var(--accent); border-color: transparent; color: #08101f; font-weight: 700; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

.empty-state { padding: 46px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty-state .icon { width: 34px; height: 34px; color: var(--muted-2); }
.empty-state h3 { font-size: 15px; }
.empty-state p { color: var(--muted); font-size: 13.5px; max-width: 42ch; }

/* Pesan masuk */
.msg-list { display: grid; gap: 12px; }
.msg-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    overflow: hidden;
}
.msg-card.is-unread { border-color: var(--accent-line); background: linear-gradient(120deg, var(--accent-soft), color-mix(in srgb, var(--surface) 90%, transparent) 45%); }
.msg-head { display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; text-align: left; width: 100%; background: none; border: 0; color: inherit; }
.msg-avatar {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 70%, #fff);
    font-weight: 700;
    font-size: 13px;
    flex: none;
}
.msg-head strong { display: block; font-size: 13.8px; }
.msg-head small { display: block; color: var(--muted-2); font-size: 12px; }
.msg-head .msg-time { margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.msg-body { display: none; padding: 0 18px 18px; }
.msg-card.is-open .msg-body { display: block; }
.msg-body p { color: var(--muted); font-size: 13.8px; line-height: 1.75; white-space: pre-line; }
.msg-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* Modal kecil untuk konfirmasi */
.modal {
    position: fixed; inset: 0; z-index: 220;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(3, 7, 15, .82);
    backdrop-filter: blur(8px);
}
.modal.is-open { display: grid; }
.modal-card {
    width: 100%; max-width: 420px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    padding: 26px;
    box-shadow: var(--shadow-lg);
}
.modal-card h3 { font-size: 1.1rem; }
.modal-card p { margin-top: 8px; color: var(--muted); font-size: 13.8px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

/* Util */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.text-center { text-align: center; }
.hidden { display: none !important; }

/* Reveal on scroll */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------- Responsif ---------------- */
@media (max-width: 1080px) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-body { grid-template-columns: 1fr; }
    .detail-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .skills-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-main-side { grid-template-columns: minmax(0, 1fr); }
    .hero-grid { gap: 32px; }
    .float-card.card-a { left: 0; }
    .float-card.card-b { right: 0; }
}

@media (max-width: 900px) {
    .site-nav { display: none; }
    .header-actions .desktop-only { display: none; }
    .nav-toggle { display: grid; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .hero-visual { order: -1; min-height: 340px; }
    .orb { width: min(270px, 62vw); }
    .float-card { font-size: 12px; padding: 10px 13px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
    .detail-meta { grid-template-columns: repeat(2, 1fr); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }

    .admin-sidebar {
        transform: translateX(-104%);
        transition: transform .28s cubic-bezier(.16, 1, .3, 1);
        width: 280px;
        box-shadow: var(--shadow-lg);
    }
    .admin-sidebar.is-open { transform: none; }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: inline-grid; }
    .admin-content { padding: 22px 18px 56px; }
    .admin-topbar { padding: 12px 16px; }
    .admin-user div { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { padding-inline: 18px; }
    .section { padding: 64px 0; }
    .project-grid, .project-grid.featured-grid { grid-template-columns: 1fr; }
    .skills-wrap { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row, .form-row.three { grid-template-columns: 1fr; }
    .detail-meta { grid-template-columns: 1fr 1fr; }
    .detail-side { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1; }
    .section-head { margin-bottom: 28px; }
    .stat { padding: 18px; }
    .stat span { font-size: 11px; }
    .float-card.card-c { display: none; }
    .user-hero { padding: 22px; }
    .user-hero .actions { margin-left: 0; width: 100%; }
    .auth-main { padding: 28px 18px; }
    .form-card, .contact-panel { padding: 22px; }
    .toast-stack { top: 12px; right: 12px; left: 12px; max-width: none; }
    .page-hero h1 { max-width: none; }
    .detail-cover { aspect-ratio: 16 / 11; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------- Sampul di bagian tentang ---------------- */
.about-side { display: grid; gap: 18px; }
.about-cover {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 30%, #0b1120), #0a1120);
}
.about-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Perangkat sentuh: keterangan dokumentasi selalu tampil */
@media (hover: none) {
    .doc-item figcaption { opacity: 1; transform: none; }
    .doc-item::after { opacity: .85; }
    .project-card:hover { transform: none; }
}
.upload-preview .icon { display: block; }

/* ---------- Rilis & unduhan ---------- */
.release-form {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: var(--surface-3);
}

.release-admin-list { display: grid; gap: 12px; }

.release-admin-item {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
}

.release-admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.release-list { display: grid; gap: 14px; }

.release-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-2);
}

.release-main { display: grid; gap: 8px; flex: 1 1 320px; min-width: 0; }

.release-version { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release-version strong { font-size: 1.05rem; letter-spacing: -.01em; }

.release-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); }
.release-meta span { display: inline-flex; align-items: center; gap: 5px; }
.release-meta .icon { width: 14px; height: 14px; }

.release-notes { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.release-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.release-edit summary { cursor: pointer; font-size: 12.5px; color: var(--muted-2); }
.release-edit[open] summary { margin-bottom: 12px; }
.release-edit form { display: grid; gap: 12px; padding-top: 12px; }

@media (max-width: 640px) {
    .release-item { padding: 16px; }
    .release-item .release-actions { width: 100%; }
    .release-item .release-actions .btn { width: 100%; justify-content: center; }
}

/* ---------------- Efek klik: ripple, tekan, getar ---------------- */
/* Umpan balik saat elemen interaktif ditekan */
button, .btn, a, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }

.ripple-ink {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: currentColor;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple-out .62s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes ripple-out {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: .3; }
    55%  { opacity: .14; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Cincin kecil di posisi kursor — terasa di klik mana pun */
.click-spark {
    position: fixed;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--accent) 75%, transparent);
    pointer-events: none;
    z-index: 9999;
    animation: spark-out .5s ease-out forwards;
}

@keyframes spark-out {
    from { transform: scale(.35); opacity: .85; }
    to   { transform: scale(2.4); opacity: 0; }
}

/* Tombol terasa "turun" saat ditekan */
.btn:active,
button:not(:disabled):active,
a.btn:active,
.nav-link:active,
.chip:active { transform: translateY(1px) scale(.985); }

/* Elemen yang tidak bisa diklik */
button[disabled],
input[disabled],
select[disabled],
textarea[disabled],
a.is-disabled,
.is-unclickable {
    cursor: not-allowed;
    pointer-events: none;
}

/* Getaran singkat saat aksi ditolak */
.shake { animation: shake-x .45s cubic-bezier(.36, .07, .19, .97) both; }

@keyframes shake-x {
    0%, 100% { transform: translateX(0); }
    12% { transform: translateX(-7px) rotate(-.5deg); }
    28% { transform: translateX(6px) rotate(.5deg); }
    44% { transform: translateX(-5px); }
    58% { transform: translateX(4px); }
    72% { transform: translateX(-3px); }
    86% { transform: translateX(2px); }
}

/* ============================================================
   Penyempurnaan responsif — HP kecil, tablet, laptop, layar lebar
   ============================================================ */

/* Konten panjang tidak boleh memaksa halaman melebar (scroll horizontal) */
img, video, canvas, iframe, svg { max-width: 100%; }
.project-card, .card, .release-item, .release-main, .form-card,
.auth-card, .admin-content, .detail-body, .about-text { min-width: 0; }
h1, h2, h3, p, li, th, td, .release-notes, .detail-body, .toast { overflow-wrap: break-word; }
.release-notes, .detail-body, .about-text, .lead, .project-card p { overflow-wrap: anywhere; }

/* Anchor (#rilis, #kontak, ...) tidak tertutup header sticky */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* Tabel admin: gulir horizontal yang nyaman di layar sentuh */
.table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

/* Tinggi viewport dinamis untuk browser HP (address bar naik-turun) */
.mobile-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.lightbox { height: 100dvh; }

/* Laptop & layar lebar: ruang napas ekstra, baris teks tetap terbaca */
@media (min-width: 1440px) {
    :root { --container: 1240px; }
    .section { padding: 108px 0; }
    .hero { padding: 88px 0 74px; }
}

@media (min-width: 1800px) {
    :root { --container: 1320px; }
    .hero-grid { gap: 76px; }
}

/* Tablet lebar: panel samping detail tetap dua kolom */
@media (min-width: 901px) and (max-width: 1024px) {
    .detail-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Ponsel (≤640px) */
@media (max-width: 640px) {
    .input, .select, .textarea { font-size: 16px; } /* cegah auto-zoom iOS */
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
    .hero { padding: 28px 0 44px; }
    .section { padding: 56px 0; }

    /* Target sentuh minimal 44px */
    .icon-btn, .nav-toggle, .pagination a, .pagination span { min-width: 44px; min-height: 44px; }
    .pagination a, .pagination span { display: inline-grid; place-items: center; }

    .btn { padding: 12px 18px; }
    table.table { font-size: 13px; }
    table.table th, table.table td { padding: 11px 12px; }
    .site-header { backdrop-filter: blur(10px); }
    .orb, .float-card { animation: none; } /* hemat baterai di HP */
}

/* Ponsel kecil (≤420px) */
@media (max-width: 420px) {
    :root { --header-h: 64px; }
    .container { padding-inline: 14px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-visual { min-height: 250px; }
    .float-card { display: none; }
    .stats-strip { grid-template-columns: 1fr; }
    .release-actions .btn,
    .release-actions form,
    .release-actions button { width: 100%; }
    .header-actions .btn { padding: 10px 14px; font-size: 13.5px; }
    .brand span { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* HP landscape: hero dipadatkan agar konten tetap terlihat */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { padding-top: 24px; padding-bottom: 32px; }
    .hero-visual { min-height: 210px; }
    .orb { width: min(200px, 42vh); }
    .float-card { display: none; }
}

/* Perangkat sentuh: hover yang "nyangkut" dimatikan */
@media (hover: none) {
    .btn:hover, .project-card:hover, .doc-item:hover, .release-item:hover { transform: none; }
    table.table tbody tr:hover { background: transparent; }
}

/* Cetak halaman */
@media print {
    .site-header, .site-footer, .mobile-nav, .toast-stack, .no-print,
    .admin-sidebar, .admin-topbar, .hero-actions, .release-actions { display: none !important; }
    body { background: #fff; color: #111; }
    .card, .project-card, .release-item, .stat, .form-card { background: #fff; border-color: #ccc; box-shadow: none; }
    .admin-main { margin: 0; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}

/* ============================================================
   Tema terang + tombol ganti tema
   ============================================================ */
[data-theme="light"] {
    --bg: #f5f7fd;
    --bg-2: #eef2fa;
    --surface: #ffffff;
    --surface-2: #f6f8fe;
    --surface-3: #e9eefa;
    --text: #0f172a;
    --muted: #4a5670;
    --muted-2: #6b7789;
    --line: rgba(15, 23, 42, 0.10);
    --line-strong: rgba(15, 23, 42, 0.20);
    --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --shadow: 0 18px 40px -24px rgba(15, 23, 42, 0.28);
    --shadow-lg: 0 32px 70px -32px rgba(15, 23, 42, 0.32);
}

[data-theme="light"] body::before {
    background:
        radial-gradient(900px 520px at 82% -8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
        radial-gradient(760px 460px at 6% 4%, rgba(34, 211, 238, 0.14), transparent 68%),
        linear-gradient(180deg, #f8faff 0%, #eef3fb 55%, #e9eff9 100%);
}

[data-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

[data-theme="light"] ::selection { color: #0f172a; }

[data-theme="light"] .site-header { background: color-mix(in srgb, #ffffff 76%, transparent); }
[data-theme="light"] .site-header.is-scrolled { background: color-mix(in srgb, #ffffff 92%, transparent); }
[data-theme="light"] .site-nav a:hover,
[data-theme="light"] .site-nav a.is-active { background: rgba(15, 23, 42, 0.06); }

[data-theme="light"] .btn-ghost { --btn-bg: rgba(15, 23, 42, 0.035); }
[data-theme="light"] .btn-ghost:hover { --btn-bg: rgba(15, 23, 42, 0.075); }
[data-theme="light"] .btn-primary { --btn-fg: #ffffff; }

[data-theme="light"] .input,
[data-theme="light"] .select,
[data-theme="light"] .textarea { background: #ffffff; }

[data-theme="light"] .admin-sidebar { background: linear-gradient(180deg, #ffffff, #f3f6fc); }
[data-theme="light"] .admin-topbar { background: color-mix(in srgb, #ffffff 88%, transparent); }
[data-theme="light"] .side-nav a:hover { background: rgba(15, 23, 42, 0.05); }

[data-theme="light"] table.table thead th { background: #eef2fa; }
[data-theme="light"] table.table tbody tr:hover { background: rgba(15, 23, 42, 0.035); }

[data-theme="light"] .auth-aside {
    background:
        radial-gradient(720px 520px at 15% 10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 65%),
        linear-gradient(160deg, #eef3fc, #f7f9ff 70%);
}

[data-theme="light"] .lightbox { background: rgba(248, 250, 255, 0.94); }
[data-theme="light"] .toast { background: color-mix(in srgb, #ffffff 94%, transparent); }
[data-theme="light"] .orb { opacity: 0.6; }
[data-theme="light"] .float-card { background: #ffffff; }

/* Tombol ganti tema: hanya satu ikon yang tampil */
.theme-toggle { position: relative; }
.theme-toggle .theme-icon { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun,
[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
:root:not([data-theme]) .theme-toggle .theme-icon-moon { display: block; }
.theme-toggle .theme-icon .icon { width: 18px; height: 18px; }

/* Formulir pencarian project */
.project-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: -8px 0 28px;
}
.project-search .input-group { flex: 1 1 260px; min-width: 0; }
.project-search .input { height: 44px; }
.project-search .btn { height: 44px; }
.project-search .btn-ghost { border-style: dashed; }

@media (max-width: 420px) {
    .project-search { margin-bottom: 22px; }
    .project-search .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   Bahasa (ID/EN), studi kasus, dan statistik kunjungan
   ========================================================================== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang-switch a {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--muted);
    line-height: 1.4;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a.is-active {
    background: var(--accent);
    color: #08101f;
}

.mobile-nav .lang-switch {
    margin-top: 14px;
    width: max-content;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.case-card {
    padding: 22px 22px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius, 16px);
    background: var(--surface, rgba(255, 255, 255, 0.02));
}

.case-card h3 {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.case-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.case-metric {
    padding: 16px 18px;
    border: 1px dashed var(--line-strong, var(--line));
    border-radius: 12px;
    display: grid;
    gap: 4px;
}

.case-metric strong {
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
}

.case-metric span {
    font-size: 12.5px;
    color: var(--muted);
}

.visit-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 170px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.visit-col {
    flex: 1 1 0;
    min-width: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.visit-bar {
    width: 100%;
    max-width: 34px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
    display: block;
}

.visit-value {
    font-size: 10.5px;
    color: var(--muted-2, var(--muted));
}

.visit-date {
    font-size: 10px;
    color: var(--muted-2, var(--muted));
    white-space: nowrap;
}

[data-theme="light"] .lang-switch a.is-active { color: #06122a; }

@media (max-width: 900px) {
    .header-actions > .lang-switch { display: none; }
}

/* ==========================================================================
   Blog / artikel
   ========================================================================== */

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--muted);
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card .project-body p {
    min-height: 2.6em;
}

.chip.is-active {
    background: var(--accent);
    color: #08101f;
    border-color: transparent;
}

[data-theme="light"] .chip.is-active { color: #06122a; }

.chips a.chip:hover { border-color: var(--accent); color: var(--text); }

/* Komentar artikel */
.comment-list { display: grid; gap: 14px; margin-bottom: 10px; }

.comment-item {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-head strong { display: block; font-size: 13.5px; }
.comment-head small { font-size: 11.5px; }

.comment-item p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--muted);
    overflow-wrap: anywhere;
}
