/* ===== Showcase Klien (melengkapi app.css) ===== */
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-weight: 600; font-size: 11px; }
.chip-violet { background: #f3e8ff; color: #6d28d9; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; }

/* Hero galeri & login */
.gallery-hero, .login-hero { position: relative; overflow: hidden; background: #0f172a; background-image: radial-gradient(circle at 85% 20%, rgba(255, 107, 0, .55), transparent 40%), radial-gradient(circle at 10% 110%, rgba(219, 39, 119, .45), transparent 45%), linear-gradient(135deg, #0f172a, #1e3a8a 60%, #4c1d95); }
.gallery-hero::before, .login-hero::before, .client-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; }
.hero-stat { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); border-radius: 1rem; padding: .8rem 1.3rem; text-align: center; min-width: 96px; }

/* ===== Galeri klien ===== */
.gl-hero { position: relative; overflow: hidden; border-radius: 1.75rem; padding: 2.5rem 2rem; background: #0b1220;
    background-image: radial-gradient(circle at 92% 8%, rgba(249, 115, 22, .38), transparent 38%), radial-gradient(circle at 0% 100%, rgba(99, 102, 241, .35), transparent 45%), linear-gradient(135deg, #0b1220, #172554 70%, #1e1b4b);
    box-shadow: 0 30px 60px -36px rgba(15, 23, 42, .8); }
.gl-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
@media (min-width: 640px) { .gl-hero { padding: 3rem 2.75rem; } }
.gl-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fdba74; }
.gl-eyebrow span { width: 28px; height: 2px; border-radius: 2px; background: #f97316; }
.gl-search { position: relative; max-width: 560px; }
.gl-search > i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.gl-search input { width: 100%; padding: 1rem 3.2rem 1rem 3rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .96); color: #0f172a; font-size: .95rem; outline: none; box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6); transition: box-shadow .15s; }
.gl-search input:focus { box-shadow: 0 0 0 4px rgba(249, 115, 22, .35), 0 12px 30px -14px rgba(0, 0, 0, .6); }
.gl-search kbd { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); font: 600 .7rem/1 inherit; color: #64748b; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: .35rem; padding: .25rem .45rem; background: #f8fafc; }
.gl-stat { position: relative; overflow: hidden; border-radius: 1.1rem; padding: 1rem 1.1rem; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); backdrop-filter: blur(6px); }
.gl-stat > i { color: #fdba74; font-size: .9rem; }
.gl-stat-n { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.gl-stat-l { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }

.gl-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem; border-radius: 1rem; background: rgba(255, 255, 255, .85); border: 1px solid #e2e8f0; box-shadow: 0 8px 24px -18px rgba(15, 23, 42, .35); backdrop-filter: blur(8px); position: sticky; top: 76px; z-index: 30; }
.gl-chips { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.gl-chips::-webkit-scrollbar { display: none; }
.gl-chips button { flex-shrink: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: .7rem; font-size: .8rem; font-weight: 600; color: #475569; transition: background .12s, color .12s; }
.gl-chips button span { font-size: .68rem; font-weight: 700; color: #94a3b8; background: #f1f5f9; border-radius: 999px; padding: .05rem .45rem; }
.gl-chips button:hover { background: #f1f5f9; color: #0f172a; }
.gl-chips button.on { background: #0f172a; color: #fff; }
.gl-chips button.on span { background: rgba(255, 255, 255, .18); color: #fff; }
.gl-select { border: 1px solid #e2e8f0; border-radius: .7rem; padding: .45rem .7rem; font-size: .8rem; font-weight: 600; color: #334155; background: #fff; outline: none; }
.gl-select:focus { border-color: #f97316; }
.gl-view { display: inline-flex; padding: .2rem; border-radius: .75rem; background: #f1f5f9; }
.gl-view button { width: 34px; height: 30px; border-radius: .55rem; color: #64748b; font-size: .85rem; }
.gl-view button.on { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }

/* Kartu klien */
.gl-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cc { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 1.25rem; border: 1px solid #e8eaf0; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 28px -22px rgba(15, 23, 42, .45); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
    animation: cc-in .45s ease backwards; animation-delay: var(--d, 0ms); }
@keyframes cc-in { from { transform: translateY(10px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }
.cc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 35%, #e8eaf0); box-shadow: 0 26px 44px -26px color-mix(in srgb, var(--c1) 65%, transparent); }
.cc:focus-visible { outline: 3px solid var(--c1); outline-offset: 3px; }
.cc-banner { position: relative; height: 84px; background: linear-gradient(120deg, var(--c1), var(--c2)); }
.cc-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); }
.cc-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, .12)); }
.cc-lock { position: absolute; top: .7rem; right: .7rem; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; font-size: .65rem; font-weight: 700; letter-spacing: .03em; color: #fff; padding: .25rem .55rem; border-radius: 999px; background: rgba(15, 23, 42, .28); backdrop-filter: blur(4px); }
.cc-lock.is-open { background: rgba(16, 185, 129, .9); }
.cc-lock.is-none { background: rgba(255, 255, 255, .9); color: #b45309; }
.cc-logo { position: relative; z-index: 1; margin: -38px 0 0 1.15rem; width: fit-content; padding: 4px; border-radius: 1.15rem; background: #fff; box-shadow: 0 10px 22px -12px rgba(15, 23, 42, .45); transition: transform .2s; }
.cc:hover .cc-logo { transform: scale(1.04); }
.cc-body { padding: .8rem 1.15rem 1rem; flex: 1; }
.cc-code { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.cc-name { margin-top: .2rem; font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-sub { margin-top: .25rem; font-size: .8rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.cc-meta span { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 600; color: #475569; background: #f8fafc; border: 1px solid #eef0f4; border-radius: .5rem; padding: .2rem .5rem; }
.cc-meta i { color: var(--c1); font-size: .65rem; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1.15rem; border-top: 1px solid #f1f5f9; background: #fcfcfd; }
.cc-avatars { display: inline-flex; }
.cc-avatars > span { box-shadow: 0 0 0 2px #fff; }
.cc-avatars > span + span { margin-left: -8px; }
.cc-go { flex-shrink: 0; font-size: .75rem; font-weight: 700; color: var(--c1); display: inline-flex; align-items: center; gap: .35rem; }
.cc-go i { transition: transform .2s; }
.cc:hover .cc-go i { transform: translateX(4px); }

/* Tampilan daftar */
.gl-grid.is-list { grid-template-columns: 1fr; gap: .6rem; }
.is-list .cc { flex-direction: row; align-items: center; border-radius: 1rem; animation: none; }
.is-list .cc:hover { transform: translateX(3px); }
.is-list .cc-banner { width: 6px; height: auto; align-self: stretch; flex-shrink: 0; }
.is-list .cc-banner::before, .is-list .cc-banner::after { display: none; }
.is-list .cc-lock { display: none; }
.is-list .cc-logo { margin: .6rem 0 .6rem 1rem; box-shadow: none; padding: 0; }
.is-list .cc-logo > span { width: 48px !important; height: 48px !important; font-size: .9rem; }
.is-list .cc-body { padding: .6rem 1rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 1rem; align-items: center; }
.is-list .cc-code { grid-column: 1; }
.is-list .cc-name { grid-column: 1; -webkit-line-clamp: 1; font-size: .95rem; }
.is-list .cc-sub { grid-column: 1; }
.is-list .cc-meta { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.is-list .cc-foot { border-top: 0; background: transparent; padding: .6rem 1rem; width: 260px; flex-shrink: 0; }
@media (max-width: 767px) {
    .is-list .cc-body { grid-template-columns: 1fr; }
    .is-list .cc-meta, .is-list .cc-foot { display: none; }
    .gl-toolbar { top: 108px; }
    .gl-chips { flex-basis: 100%; order: 2; }
    .gl-toolbar > div:last-child { margin-left: auto; }
    .gl-search kbd { display: none; }
    .gl-search input { padding-right: 1rem; }
    .gl-hero { padding: 1.75rem 1.25rem; }
}

/* Hero halaman klien */
.client-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: 0 24px 40px -24px var(--c1); }
.client-hero::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 999px; background: rgba(255, 255, 255, .14); pointer-events: none; }
.hero-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-size: .75rem; font-weight: 600; color: #fff; }

/* Kunci sandi klien */
.unlock-top { background: linear-gradient(135deg, var(--c1), var(--c2)); position: relative; }

/* Ring skor */
.ring-gauge { --p: 0; --c: #10b981; width: 150px; height: 150px; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #e2e8f0 0); }
.ring-gauge > div { width: 120px; height: 120px; border-radius: 999px; background: #fff; display: grid; place-content: center; text-align: center; }
.ring-gauge.ring-sm { width: 84px; height: 84px; flex-shrink: 0; }
.ring-gauge.ring-sm > div { width: 66px; height: 66px; }

/* Sel peta kepatuhan */
.kp-cell { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; border-radius: .7rem; font-size: .9rem; transition: transform .12s, box-shadow .12s; box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .25); }
a.kp-cell:hover { transform: scale(1.08); box-shadow: 0 6px 14px -4px rgba(15, 23, 42, .4); }
.kp-form td { vertical-align: top; padding: .55rem .5rem; }

/* Tile ringkasan */
.tile { position: relative; display: flex; flex-direction: column; gap: .5rem; background: #fff; border-radius: 1.25rem; padding: 1.25rem; border: 1px solid #ede9fe; border-top: 5px solid var(--t); box-shadow: 0 10px 24px -16px rgba(76, 29, 149, .4); transition: transform .15s, box-shadow .15s; min-height: 190px; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -16px rgba(76, 29, 149, .45); }
.tile-head { font-weight: 800; color: var(--t); display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.tile-more { margin-top: auto; padding-top: .5rem; font-size: .75rem; font-weight: 700; color: var(--t); }
.tile-sky { --t: #2563eb; } .tile-amber { --t: #d97706; } .tile-orange { --t: #ea580c; } .tile-violet { --t: #7c3aed; } .tile-pink { --t: #db2777; } .tile-teal { --t: #0d9488; }
.highlight-box { background: linear-gradient(135deg, #faf5ff, #fff7ed); border: 1px solid #e9d5ff; box-shadow: 0 8px 20px -16px rgba(124, 58, 237, .6); }

/* Tax planning */
.strategy-card { display: block; background: #fff; border-radius: 1.25rem; overflow: hidden; border: 1px solid #ede9fe; box-shadow: 0 10px 24px -16px rgba(76, 29, 149, .45); transition: transform .18s, box-shadow .18s; }
.strategy-card:hover { transform: translateY(-4px); box-shadow: 0 22px 36px -18px rgba(219, 39, 119, .5); }
.strategy-cover { --h: 260; position: relative; height: 130px; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h), 75%, 55%), hsl(calc(var(--h) + 45), 70%, 45%)); }
.strategy-cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 14px 14px; }
.strategy-icon { position: absolute; right: 14px; bottom: -10px; font-size: 5.5rem; color: rgba(255, 255, 255, .85); transform: rotate(-10deg); transition: transform .25s; }
.strategy-card:hover .strategy-icon { transform: rotate(0) scale(1.05); }
.strategy-hero { --h: 260; position: relative; overflow: hidden; background: linear-gradient(120deg, hsl(var(--h), 70%, 50%), hsl(calc(var(--h) + 50), 70%, 42%)); }
.strategy-hero-icon { position: absolute; right: 24px; bottom: -24px; font-size: 11rem; color: rgba(255, 255, 255, .15); }
.prose-text { color: #334155; line-height: 1.7; font-size: .95rem; }
.timeline { position: relative; padding-left: 1.4rem; }
.timeline::before { content: ''; position: absolute; left: .35rem; top: .3rem; bottom: .3rem; width: 2px; background: linear-gradient(#a78bfa, #f9a8d4); }
.timeline li { position: relative; padding-bottom: 1.1rem; }
.timeline li::before { content: ''; position: absolute; left: -1.28rem; top: .25rem; width: 12px; height: 12px; border-radius: 999px; background: #fff; border: 3px solid #8b5cf6; }

/* Artefak */
.photo-tile { background: #fff; border-radius: 1rem; overflow: hidden; border: 1px solid #ede9fe; box-shadow: 0 8px 18px -14px rgba(76, 29, 149, .5); }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-tile > a { display: block; overflow: hidden; }
.photo-tile figcaption { padding: .5rem .65rem; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: .75rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.lightbox p { color: #fff; margin-top: .75rem; font-weight: 600; text-align: center; }
.lightbox button { position: absolute; color: #fff; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.8rem 1rem; border: 2px dashed #c4b5fd; border-radius: 1rem; background: #faf5ff; cursor: pointer; position: relative; }
.dropzone:hover, .dropzone.over { border-color: #ec4899; background: #fdf2f8; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Pilihan berbentuk tombol */
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { --c: #7c3aed; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .8rem; border-radius: .7rem; border: 1px solid #e2e8f0; background: #fff; font-size: .85rem; font-weight: 700; color: #475569; transition: all .12s; }
.choice span:hover { border-color: var(--c); color: var(--c); }
.choice input:checked + span { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 6px 14px -8px var(--c); }
.choice input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 42px; height: 42px; border-radius: .8rem; box-shadow: 0 2px 6px rgba(15, 23, 42, .2); transition: transform .12s; }
.swatch input:checked + span { outline: 3px solid #0f172a; outline-offset: 3px; transform: scale(1.06); }

@media print {
    .app-header, .vtabs, footer, .btn, form button { display: none !important; }
    .app-bg { background: #fff !important; }
}
