/* CARI SKILL: clean, netral, aksen pride flag tipis di kategori, tombol footer, dan tombol tambah link */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&display=swap");

:root {
  --bg: #FAFBFC; --surface: #FFFFFF; --surface-1: #F7F8FA; --surface-2: #EFF1F4;
  --border: #E3E6EA; --border-strong: #D3D8DE;
  --text: #1A1D23; --text-2: #55606B; --muted: #8A93A0;
  --blue: #2D7FF9; --blue-bg: #E7F0FE;
  --green-bg: #DAF7E3; --green-fg: #178a26;
  --red-fg: #b4123f;
  --scrim: rgba(17,20,26,0.45);
  --wm: rgba(26,29,35,0.055);
  --pride-grad: linear-gradient(90deg, #E40303 0 16.66%, #FF8C00 0 33.33%, #F4C300 0 50%, #008026 0 66.66%, #004DFF 0 83.33%, #750787 0);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121418; --surface: #1A1D23; --surface-1: #20242B; --surface-2: #272C34;
    --border: #2E333B; --border-strong: #3A404A;
    --text: #EEF0F3; --text-2: #B3BAC4; --muted: #7D8692;
    --blue: #5A9BFF; --blue-bg: #1C2B44;
    --green-bg: #17331F; --green-fg: #6FDB80;
    --red-fg: #FF8DA8;
    --scrim: rgba(0,0,0,0.6);
    --wm: rgba(255,255,255,0.045);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 14px; -webkit-text-size-adjust: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
a { color: inherit; }
.page { max-width: 1120px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.page.narrow { max-width: 620px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* Logo */
.lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.lockup svg, .lockup img { flex: 0 0 auto; display: block; }
.word { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.word .ul { display: inline-block; padding-bottom: 5px; background: var(--pride-grad) left bottom / 100% 3px no-repeat; }
.pride { height: 3px; border-radius: 3px; background: var(--pride-grad); }

/* Hero & search */
.hero { display: grid; gap: 14px; padding-block: 8px 20px; }
.subtitle { margin: 0 0 10px; color: var(--text); font-size: 19px; font-weight: 600; line-height: 1.45; max-width: 52ch; text-wrap: balance; }
.bigsearch { position: relative; display: block; }
.bigsearch svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bigsearch input { width: 100%; height: 58px; padding: 0 48px 0 52px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 17px var(--f-body); box-shadow: 0 2px 10px rgba(20,20,43,0.05); -webkit-appearance: none; appearance: none; }
.bigsearch input::-webkit-search-cancel-button { display: none; }
.bigsearch input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-bg); }
.clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cat { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; color: var(--text); font: 600 13px var(--f-body); cursor: pointer; text-align: left; min-width: 0; }
.cat .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-2); color: var(--text-2); }
.cat[aria-pressed="true"] .ic { background: var(--text); color: var(--bg); }
.cat .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pride outline: hanya kartu kategori, tombol footer, dan tombol tambah link */
.cat, .flink, .addlink { --btn-bg: var(--surface); border: 1.5px solid transparent; background: linear-gradient(var(--btn-bg), var(--btn-bg)) padding-box, var(--pride-grad) border-box; }
.cat:hover, .flink:hover, .addlink:hover, .cat[aria-pressed="true"] { --btn-bg: var(--surface-1); }

.result-line { font-size: 13px; color: var(--muted); margin: 6px 0 12px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: grid; gap: 12px; align-content: start; }
.card:hover { border-color: var(--border-strong); }
.card h3 { margin: 0; font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 14px var(--f-body); cursor: pointer; padding: 0 14px; text-decoration: none; }
.btn:hover { background: var(--surface-1); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { background: var(--text); filter: brightness(1.2); }
.btn.big { min-height: 46px; font-size: 15px; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.more-wrap { display: flex; justify-content: center; margin-top: 16px; }
.empty-state { grid-column: 1 / -1; padding: 56px 24px; text-align: center; color: var(--text-2); font-size: 17px; font-weight: 500; background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: 16px; line-height: 1.6; text-wrap: balance; }
.empty-state b { color: var(--text); font-weight: 700; }
@media (max-width: 600px) { .empty-state { padding: 40px 18px; font-size: 16px; } }

/* Footer */
.footer { margin-top: 36px; display: grid; gap: 16px; }
.footer .pride { width: 48px; }
.footer-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.flink { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--f-body); padding: 10px 14px; border-radius: 10px; color: var(--text); cursor: pointer; text-decoration: none; }
.account-wrap { display: grid; gap: 6px; justify-items: end; }
.account { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); flex-wrap: wrap; }
.account b { color: var(--text); }
.textlink { border: 0; background: none; padding: 0; font: 13px var(--f-body); color: var(--muted); text-decoration: underline; cursor: pointer; }
.textlink:hover { color: var(--text-2); }
.powered { font-size: 15px; color: var(--text-2); text-decoration: none; justify-self: start; }
.powered b { font-weight: 700; color: var(--text); }
.powered:hover b { text-decoration: underline; }

/* Watermark & proteksi */
.protect { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.watermark { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.watermark div { position: absolute; inset: -50%; display: flex; flex-wrap: wrap; gap: 56px 72px; align-content: flex-start; transform: rotate(-24deg); font: 600 12px var(--f-body); color: var(--wm); white-space: nowrap; }

/* Sheet portofolio */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 50; background: var(--surface); display: flex; flex-direction: column; transition: transform .25s ease; top: 0; right: 0; bottom: 0; width: min(460px, 100%); transform: translateX(100%); border-left: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); visibility: hidden; }
.sheet.on { transform: none; visibility: visible; }
.handle { display: none; }
.sheet-head { padding: 16px 18px 12px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.sheet-head > div { flex: 1; min-width: 0; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.x { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--surface-2); color: var(--text-2); cursor: pointer; flex: 0 0 auto; display: grid; place-items: center; font-size: 15px; }
.sheet-body { overflow-y: auto; padding: 16px 18px; display: grid; gap: 16px; align-content: start; flex: 1; overscroll-behavior: contain; }
.viewer { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.viewer .art { aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 16px; background: var(--surface-2); color: var(--text-2); position: relative; overflow: hidden; }
.viewer .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer .art .host { font: 800 22px var(--f-display); word-break: break-word; }
.viewer .cap { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--surface-1); }
.viewer .cap > div { min-width: 0; }
.viewer .cap b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer .cap span { font-size: 12px; color: var(--muted); }
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.strip button { flex: 0 0 84px; aspect-ratio: 4/3; border-radius: 8px; border: 2px solid transparent; scroll-snap-align: start; cursor: pointer; font: 700 10px var(--f-body); padding: 0; background: var(--surface-2) center / cover no-repeat; color: var(--text-2); overflow: hidden; }
.strip button[aria-current="true"] { border-color: var(--blue); }
.doc { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.doc .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; font: 800 10px var(--f-body); flex: 0 0 auto; }
.doc b { font-size: 13px; display: block; overflow-wrap: anywhere; }
.doc span { font-size: 12px; color: var(--muted); }
.doc-img { width: 100%; border-radius: 10px; border: 1px solid var(--border); display: block; }
.sec-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sheet-foot { padding: 12px 18px 16px; border-top: 1px solid var(--border); }

/* Modal */
.modal { position: fixed; z-index: 55; left: 50%; top: 50%; transform: translate(-50%, -46%); width: min(460px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto; background: var(--surface); border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; visibility: hidden; }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); visibility: visible; }
.modal-head { padding: 16px 18px 0; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-head p { margin: 4px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.modal-body { padding: 16px 18px 18px; display: grid; gap: 12px; }

/* Form */
.form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; display: grid; gap: 18px; }
.form-wrap h2 { margin: 0; font-family: var(--f-display); font-size: 24px; font-weight: 800; text-wrap: balance; }
.form-wrap > p { margin: -10px 0 0; color: var(--text-2); line-height: 1.5; }
.field { display: grid; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 16px var(--f-body); }
textarea.input { min-height: 110px; resize: vertical; }
.input[readonly] { background: var(--surface-1); color: var(--text-2); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; padding: 12px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--border); cursor: pointer; }
.check input, .newsletter input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--text); flex: 0 0 auto; }
.newsletter { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.err { font-size: 13px; color: var(--red-fg); line-height: 1.45; }
.ok-box { padding: 14px; border-radius: 12px; background: var(--green-bg); color: var(--green-fg); font-size: 14px; line-height: 1.5; }
.form-alt { font-size: 13px; color: var(--text-2); text-align: center; margin: 0; }
.form-alt a, .form-alt button { color: var(--text); font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 11px; }
.seg button { border: 0; background: transparent; color: var(--text-2); font: 600 14px var(--f-body); padding: 9px; border-radius: 8px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-card { max-width: 460px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.combo { position: relative; }
.combo-box { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); align-items: center; cursor: text; }
.combo-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.combo-box input { border: 0; outline: none; background: transparent; color: var(--text); font: 16px var(--f-body); flex: 1; min-width: 120px; padding: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 600; }
.tag button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; }
.options { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 240px; overflow-y: auto; z-index: 5; padding: 4px; }
.options button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--text); padding: 10px; border-radius: 7px; font: 14px var(--f-body); cursor: pointer; }
.options button:hover, .options button.hl { background: var(--surface-2); }
.options .add { font-weight: 600; }
.skill-list { display: grid; gap: 8px; }
.skill-list:empty { display: none; }
.skill-block { border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: var(--surface); }
.skill-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.skill-head b { font-size: 15px; }
.skill-head .new { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.kw-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 5px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); }
.kw-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.kw-box input { border: 0; outline: none; background: transparent; color: var(--text); font: 15px var(--f-body); flex: 1; min-width: 140px; padding: 6px; }
.kw-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-sugg button { border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); border-radius: 999px; padding: 4px 10px; font: 600 12px var(--f-body); cursor: pointer; }
.kw-sugg button:hover { background: var(--surface-2); color: var(--text); }
.options .opt-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.kws { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: -4px; }
.links { display: grid; gap: 8px; }
.link-row { display: flex; gap: 6px; }
.link-row .input { flex: 1; min-width: 0; }
.rm { width: 44px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-1); color: var(--text-2); cursor: pointer; font-size: 18px; }
.addlink { justify-self: start; color: var(--text); font: 600 13px var(--f-body); padding: 9px 13px; border-radius: 9px; cursor: pointer; }
.drop { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 10px; border: 1.5px dashed var(--border-strong); background: var(--surface-1); cursor: pointer; position: relative; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { font-size: 13px; display: block; overflow-wrap: anywhere; }
.drop span { font-size: 12px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 6px; }
  .cat { flex: 0 0 auto; scroll-snap-align: start; padding: 8px 12px 8px 8px; }
  .subtitle { font-size: 17px; }
  .bigsearch input { height: 54px; font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .account-wrap { justify-items: start; }
  .sheet { top: auto; left: 0; width: 100%; max-height: 90%; border-left: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; transform: translateY(100%); padding-right: 0; }
  .handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 8px auto 0; }
  .viewer .art { aspect-ratio: 1/1; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92%; transform: translateY(100%); border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .modal.on { transform: none; }
  .form-wrap { padding: 16px; }
}
@media print { body * { display: none !important; } body::after { content: "Halaman ini tidak bisa dicetak."; display: block; padding: 40px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
