/* KTB — satu stylesheet untuk situs publik, akun, dan admin.
   Tema diatur lewat body[data-theme]: ktb (kuning), kingdom (merah), kanaya (ungu). */

:root {
  --sun: #FFC914;
  --coral: #FF4B33;
  --leaf: #0F9D68;
  --violet: #5B35F5;
  --red: #D11F17;
  --paper: #FFFFFF;
  --mist: #F3F1FF;

  --ink: #1E1570;
  --ground: var(--sun);
  --on-ground: var(--ink);
  --hot: var(--coral);

  --display: "Bricolage Grotesque", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body[data-theme="kingdom"] { --ink: #3A0B08; --ground: var(--red); --on-ground: #FFF4D6; --hot: var(--sun); --mist: #FFF4D6; }
body[data-theme="kanaya"]  { --ink: #1A1259; --ground: var(--violet); --on-ground: #FFFFFF; --hot: #FF8FC0; --mist: #F1EDFF; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 12px 12px; }
.skip:focus { top: 0; }

/* ---------- logo KTB dan Kanaya: PNG satu warna dipakai sebagai mask, warnanya ikut color */
.mark { display: block; background: currentColor; }
.mark-ktb { aspect-ratio: 480 / 467; -webkit-mask: url("../img/ktb.png") center / contain no-repeat; mask: url("../img/ktb.png") center / contain no-repeat; }
.mark-kanaya { aspect-ratio: 1200 / 389; -webkit-mask: url("../img/kanaya.png") center / contain no-repeat; mask: url("../img/kanaya.png") center / contain no-repeat; }
@media (forced-colors: active) { .mark { forced-color-adjust: none; background: CanvasText; } }

/* ---------- tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  padding: .9rem 1.5rem; border-radius: 999px;
  border: 3px solid var(--ink); background: var(--paper); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-main { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--hot); }
.btn-main:hover { box-shadow: 2px 2px 0 var(--hot); }
.btn-sun { background: var(--sun); color: #1E1570; border-color: var(--sun); box-shadow: 4px 4px 0 var(--coral); }
.btn-sun:hover { box-shadow: 2px 2px 0 var(--coral); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.btn-ghost:hover { transform: none; box-shadow: none; background: rgba(255,255,255,.14); }
.btn-small { padding: .5rem 1rem; font-size: .9rem; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn-small.btn-main { box-shadow: 3px 3px 0 var(--hot); }
.btn-danger { color: #A3120C; border-color: #A3120C; box-shadow: 3px 3px 0 #A3120C; }
.btn-wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem 1rem; margin-top: 1.75rem; }

/* ---------- navigasi */
.nav { background: var(--ground); color: var(--on-ground); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.logo { font: 800 1.5rem/1 var(--display); letter-spacing: -.02em; text-decoration: none; background: var(--ink); color: var(--sun); padding: .5rem .8rem; border-radius: 12px; }
.logo img { height: 2rem; width: auto; }
.logo .mark { height: 3.5rem; color: var(--on-ground); }
.logo:has(img, .mark) { background: none; padding: 0; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; flex: 1; font-weight: 700; font-size: .98rem; }
.nav-menu a:not(.btn) { text-decoration: none; padding-block: .3rem; border-bottom: 3px solid transparent; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current] { border-bottom-color: currentColor; }
.nav-gap { flex: 1; }
.nav-menu form { margin: 0; }
.nav-toggle { display: none; margin-left: auto; font: 700 1rem var(--body); color: inherit; background: none; border: 3px solid currentColor; border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.nav :focus-visible { outline-color: var(--on-ground); }
@media (max-width: 860px) {
  .nav-in { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: .9rem; padding-bottom: .75rem; }
  .nav-menu.open { display: flex; }
  .nav-gap { display: none; }
}

/* ---------- pesan */
.flashes { padding-top: 1rem; }
.flash { margin: 0 0 .6rem; padding: .8rem 1.1rem; border-radius: 14px; border: 2px solid; font-weight: 500; overflow-wrap: anywhere; }
.flash-ok { background: #E3F8EE; border-color: var(--leaf); color: #07563A; }
.flash-err { background: #FFE9E6; border-color: #A3120C; color: #7A0D08; }

/* ---------- hero beranda: K T B dengan dua kepanjangan */
.hero { background: var(--ground); color: var(--on-ground); padding-block: clamp(2rem, 5vw, 4rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero-in { display: grid; grid-template-columns: auto minmax(17rem, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.name { font: 800 clamp(2.9rem, 13.5vw, 8.25rem)/1 var(--display); letter-spacing: -.045em; display: grid; gap: .09em; }
.name-row { display: flex; align-items: center; }
.name-ini { flex: none; display: grid; place-items: center; width: 1.08em; height: 1.08em; background: var(--ink); color: var(--sun); border-radius: .14em; letter-spacing: 0; }
.name-rest { display: grid; padding-left: .07em; }
.name-rest > span { grid-area: 1 / 1; transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(var(--i) * 80ms); }
.w-b { opacity: 0; transform: translateY(.3em); }
.name.is-b .w-a { opacity: 0; transform: translateY(-.3em); }
.name.is-b .w-b { opacity: 1; transform: none; }
.name-toggle { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border: 3px solid var(--ink); border-radius: 22px; background: rgba(255,255,255,.45); margin-top: 1.75rem; }
.name-toggle button { font: 700 .92rem/1.2 var(--body); color: var(--ink); background: none; border: 0; border-radius: 15px; padding: .6rem .95rem; cursor: pointer; text-align: left; }
.name-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 34em; margin: 0; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; align-items: start; } }

/* ---------- hero halaman unit */
.hero-unit-in { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-logo { width: clamp(10rem, 24vw, 19rem); height: auto; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 8px 8px 0 var(--ink); }
@media (max-width: 760px) { .hero-unit-in { grid-template-columns: 1fr; } .hero-logo { order: -1; width: 8.5rem; box-shadow: 5px 5px 0 var(--ink); } }
.hero-unit h1 { font-size: clamp(3.1rem, 12vw, 9rem); letter-spacing: -.045em; line-height: .92; color: var(--hot); max-width: 9em; }
body[data-theme="kanaya"] .hero-unit h1 { color: #fff; }
.hero-unit .lead { margin-top: 1.5rem; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.hero-unit .btn { border-color: var(--ink); }

/* ---------- bagian umum */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-top: 0; }
.section-alt { background: var(--mist); }
.title { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 16em; }
.empty { padding: 1.5rem; border: 3px dashed currentColor; border-radius: 20px; margin: 0; opacity: .85; }

.twin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.twin article { border-top: 10px solid var(--coral); padding-top: 1.5rem; }
.twin .twin-kom { border-top-color: var(--leaf); }
.twin h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.twin p { max-width: 34em; }

.units { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.unit-card { display: flex; flex-direction: column; min-height: 30rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 32px; text-decoration: none; color: #fff; transition: transform .15s ease; }
.unit-card:hover { transform: translateY(-6px); }
.unit-top { display: block; position: relative; margin-bottom: auto; }
.unit-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }
.unit-logo { display: block; height: auto; }
.unit-kingdom .unit-logo { width: min(13rem, 55%); border-radius: 50%; box-shadow: 6px 6px 0 #3A0B08; }
.unit-kanaya .unit-logo .mark { width: min(22rem, 85%); color: #fff; }
.unit-cover + .unit-logo { position: absolute; top: 1rem; left: 1rem; }
.unit-kingdom .unit-cover + .unit-logo { width: 5.5rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.unit-kanaya .unit-cover + .unit-logo { padding: .6rem .9rem; border-radius: 14px; background: rgba(26,18,89,.8); }
.unit-kanaya .unit-cover + .unit-logo .mark { width: 7.5rem; }
.unit-card h3 { font-size: clamp(2.2rem, 4.8vw, 4rem); margin-top: 2rem; }
.unit-card p { margin: .9rem 0 1.5rem; font-size: 1.1rem; max-width: 26em; }
.unit-go { align-self: flex-start; font-weight: 700; padding: .7rem 1.2rem; border-radius: 999px; background: #fff; }
.unit-kingdom { background: var(--red); }
.unit-kingdom h3 { color: var(--sun); }
.unit-kingdom .unit-go { color: #3A0B08; }
.unit-kanaya { background: var(--violet); }
.unit-kanaya .unit-go { color: #1A1259; }
.unit-card:focus-visible { outline-offset: 5px; border-radius: 32px; }
@media (max-width: 760px) { .twin, .units { grid-template-columns: 1fr; } .unit-card { min-height: 24rem; } }

.stats { background: var(--sun); color: #1E1570; padding-block: 3rem; }
.stats-in { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.stats p { margin: 0; display: grid; }
.stats strong { font: 800 clamp(2.6rem, 6vw, 4.5rem)/1 var(--display); letter-spacing: -.03em; }
.stats span { font-weight: 500; }

/* ---------- ajakan bergabung */
.join { background: #1E1570; color: #fff; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.join :focus-visible { outline-color: var(--sun); }
.join .title { color: var(--sun); margin-bottom: 1.25rem; }
.join-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.join-solo .lead { max-width: 40em; }
.join-mark { height: 4.5rem; color: var(--sun); margin-bottom: 1.5rem; }
.roles { margin: 0; display: grid; gap: 1rem; }
.roles > div { border-left: 10px solid; padding: .35rem 0 .35rem 1.25rem; }
.roles dt { font: 800 1.6rem/1.1 var(--display); margin-bottom: .35rem; }
.roles dd { margin: 0; color: #DAD6FF; }
.roles .role-komunitas { border-color: #2ED99B; } .role-komunitas dt { color: #2ED99B; }
.roles .role-kingdom { border-color: #FF6A55; } .role-kingdom dt { color: #FF8A78; }
.roles .role-kanaya { border-color: #A994FF; } .role-kanaya dt { color: #BBAAFF; }
@media (max-width: 860px) { .join-in { grid-template-columns: 1fr; } }

/* ---------- halaman unit: tentang, menu, galeri */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; max-width: 30em; }
.facts { margin: 0; display: grid; gap: 1rem; border: 3px solid var(--ink); border-radius: 24px; padding: 1.5rem; box-shadow: 6px 6px 0 var(--ground); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

.menu { list-style: none; margin: 0; padding: 0; }
.menu li { padding: 1.1rem 0; border-bottom: 2px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.menu-line { display: flex; align-items: baseline; gap: .75rem; }
.menu-name { font: 800 clamp(1.3rem, 2.4vw, 1.75rem)/1.15 var(--display); }
.menu-dots { flex: 1; border-bottom: 3px dotted currentColor; opacity: .5; min-width: 1.5rem; }
.menu-price { font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.menu li p { margin: .3rem 0 0; opacity: .85; }

.gallery { columns: 3 17rem; column-gap: 1.25rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1.25rem; }
.gallery a { display: block; border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: .5rem; font-weight: 500; }

.lightbox { border: 0; padding: 1rem; background: transparent; max-width: min(1100px, 96vw); color: #fff; }
.lightbox::backdrop { background: rgba(14, 9, 60, .92); }
.lightbox img { max-height: 80vh; margin: .75rem auto; border-radius: 12px; }
.lightbox form { text-align: right; }
.lightbox p { text-align: center; margin: 0; }

/* ---------- footer */
.foot { background: var(--paper); border-top: 3px solid var(--ink); padding-top: 3rem; font-size: .98rem; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2rem; }
.foot-brand { font: 800 2.4rem/1 var(--display); margin-bottom: .6rem; }
.foot-brand .mark { height: 5.5rem; }
.foot h2 { font: 700 1rem var(--body); letter-spacing: 0; margin-bottom: .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-end { padding-block: 2rem; opacity: .75; font-size: .9rem; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }

/* ---------- formulir */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-row.three { grid-template-columns: repeat(3, 1fr); }
label, legend { font-weight: 700; font-size: .95rem; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  font: inherit; color: inherit; width: 100%; padding: .7rem .9rem;
  border: 2px solid var(--ink); border-radius: 14px; background: #fff;
}
textarea { resize: vertical; line-height: 1.5; }
input[type="file"] { padding: .55rem; }
small, .hint { font-size: .9rem; opacity: .8; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; accent-color: var(--ink); }
@media (max-width: 640px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }

/* ---------- masuk dan daftar */
.auth { background: var(--ground); padding: clamp(2rem, 6vw, 5rem) 1.25rem clamp(3rem, 8vw, 6rem); }
.panel { max-width: 30rem; margin-inline: auto; background: #fff; border: 3px solid var(--ink); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 10px 10px 0 var(--ink); }
.panel-wide { max-width: 40rem; }
.panel h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .75rem; }
.panel > p { margin-bottom: 1.5rem; }
.panel-foot { margin: 1.5rem 0 0 !important; font-size: .95rem; }
.role-pick { border: 0; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.role-pick legend { margin-bottom: .6rem; padding: 0; }
.pick { cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span { display: grid; gap: .2rem; height: 100%; padding: .9rem 1rem; border: 3px solid var(--ink); border-radius: 18px; font-weight: 500; font-size: .9rem; line-height: 1.35; }
.pick strong { font: 800 1.3rem/1.1 var(--display); }
.pick input:checked + span { color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.pick-komunitas input:checked + span { background: #0B7F54; }
.pick-kingdom input:checked + span { background: var(--red); }
.pick-kanaya input:checked + span { background: var(--violet); }
.pick input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .role-pick { grid-template-columns: 1fr; } }

/* ---------- akun */
.account { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
.account h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.who { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.sub { font-size: 1.6rem; margin: 2.75rem 0 1.1rem; }
.chip { display: inline-block; font-weight: 700; font-size: .85rem; line-height: 1.2; padding: .35rem .8rem; border-radius: 999px; background: var(--mist); color: #1E1570; }
.chip-komunitas { background: #0B7F54; color: #fff; }
.chip-kingdom { background: var(--red); color: #fff; }
.chip-kanaya { background: var(--violet); color: #fff; }
.chip-admin { background: #1E1570; color: var(--sun); }
.chip-active { background: #E3F8EE; color: #07563A; }
.chip-pending { background: #FFF1C2; color: #6B4A00; }
.notice { margin-top: 2rem; padding: 1.5rem; border: 3px solid var(--ink); border-radius: 24px; background: #FFF1C2; }
.notice h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.notice p { margin: 0; }
.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.linklist a { display: grid; gap: .2rem; padding: 1.2rem 1.4rem; text-decoration: none; border: 3px solid var(--ink); border-radius: 22px; background: var(--sun); box-shadow: 6px 6px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.linklist a:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 var(--ink); }
.linklist strong { font: 800 1.35rem/1.15 var(--display); }

/* ---------- admin */
.admin { display: grid; grid-template-columns: 16rem 1fr; min-height: 100vh; background: #F6F5FB; }
.side { background: #1E1570; color: #fff; padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side :focus-visible { outline-color: var(--sun); }
.side .logo { align-self: flex-start; }
.side .logo .mark, .side .logo img { height: 3.75rem; }
.side .logo .mark { color: var(--sun); }
.side nav { display: grid; gap: .25rem; }
.side nav a { text-decoration: none; font-weight: 700; padding: .65rem .85rem; border-radius: 12px; }
.side nav a:hover { background: rgba(255,255,255,.1); }
.side nav a[aria-current] { background: var(--sun); color: #1E1570; }
.count { display: inline-block; font-size: .75rem; background: var(--coral); color: #1E1570; padding: .1rem .5rem; border-radius: 999px; margin-left: .25rem; }
.side-end { margin-top: auto; display: flex; gap: 1rem; align-items: center; font-size: .95rem; padding-inline: .85rem; }
.side-end form { margin: 0; }
.side-end button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.admin-main { padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 62rem; width: 100%; min-width: 0; }
.admin-main h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.admin-main > .hint { margin-bottom: 1.5rem; max-width: 46em; }
.card { background: #fff; border: 2px solid #1E1570; border-radius: 22px; padding: clamp(1.1rem, 2.5vw, 1.75rem); margin-bottom: 1.5rem; }
.card h2 { font-size: 1.35rem; margin: 1.75rem 0 1rem; }
.card h2:first-of-type { margin-top: 0; }
.card .empty { margin-bottom: 1rem; }
.savebar { margin-top: 1.5rem; }
.logo-now { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.logo-now img { height: 3rem; }
.rowform { display: grid; grid-template-columns: 1.1fr 1.6fr auto auto; gap: .5rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid #DDD9F5; }
.rowform:has(.short) { grid-template-columns: 1.1fr 1.4fr 8.5rem auto auto; }
.rowform-link { grid-template-columns: 9.5rem 1fr 1.4fr 1fr auto auto; }
.rowform-new { border-bottom: 0; padding-top: 1.1rem; grid-template-columns: 1.1fr 1.6fr auto; }
.rowform-new:has(.short) { grid-template-columns: 1.1fr 1.4fr 8.5rem auto; }
.upload { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 0 1rem; align-items: start; margin-bottom: 1.5rem; }
.upload .btn { margin-top: 1.75rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.thumbs form { display: grid; gap: .5rem; align-content: start; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid #1E1570; }
.thumb-act { display: flex; gap: .6rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.filter a { text-decoration: none; font-weight: 700; font-size: .92rem; padding: .45rem 1rem; border: 2px solid #1E1570; border-radius: 999px; background: #fff; }
.filter a[aria-current] { background: #1E1570; color: #fff; }
.member { background: #fff; border: 2px solid #1E1570; border-radius: 20px; padding: 1.1rem 1.25rem; margin-bottom: .9rem; display: grid; gap: .9rem; }
.member-pending { background: #FFF8DC; border-width: 3px; }
.member h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.member p { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.member .since { font-size: .85rem; opacity: .75; margin-left: .35rem; }
.member-act { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.member-act select { width: auto; padding: .4rem .7rem; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 1rem; }
  .side .logo .mark, .side .logo img { height: 3rem; }
  .side nav { display: flex; flex-wrap: wrap; order: 3; flex-basis: 100%; }
  .side-end { margin: 0 0 0 auto; padding: 0; }
  .rowform, .rowform:has(.short), .rowform-link, .rowform-new, .rowform-new:has(.short), .upload { grid-template-columns: 1fr; }
  .rowform .btn, .upload .btn { justify-self: start; margin-top: 0; }
}

/* ---------- staf Kingdom */
.chip-manajer { background: #3A0B08; color: var(--sun); }
.side-head { margin: 0 0 .25rem; padding-inline: .85rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.staf .side nav a[aria-current] { background: var(--sun); color: #3A0B08; }
.monthbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1.25rem; }
.monthbar .field { margin: 0; }
.monthbar input, .monthbar select { width: auto; }
.tablewrap { overflow-x: auto; margin: 0 -.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid #DDD9F5; vertical-align: top; }
.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table tfoot td { font-weight: 700; border-top: 2px solid #1E1570; border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .minus { color: #A3120C; }
.table tr.is-today td { background: #FFF8DC; }
.table td small { opacity: .75; }
.wraptext { min-width: 16rem; white-space: pre-line; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--mist); white-space: nowrap; }
.tag-warn, .tag-ditolak { background: #FFE9E6; color: #7A0D08; }
.tag-diterima { background: #E3F8EE; color: #07563A; }
.tag-menunggu { background: #FFF1C2; color: #6B4A00; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { margin: 0; padding: .85rem 1rem; border: 2px solid #1E1570; border-radius: 16px; background: #fff; }
.stat strong { display: block; font: 800 1.45rem/1.15 var(--display); overflow-wrap: anywhere; }
.plain { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.punch .notice { margin-top: 1rem; }
.punch .notice h2 { margin-top: 0; }
.geo { font-size: .92rem; padding: .6rem .8rem; border-radius: 12px; background: var(--mist); }
.card-alert { border-width: 3px; background: #FFF8DC; }
.swap { padding: .6rem 0; border-bottom: 1px solid #DDD9F5; }
.swap p { margin-bottom: .5rem; }
.row-act { display: flex; flex-wrap: wrap; gap: .6rem; }
.sched { padding: .6rem 0; border-bottom: 1px solid #DDD9F5; }
.sched p { margin: 0; }
.sched-past { opacity: .6; }
.sched details { margin-top: .5rem; }
details > summary { cursor: pointer; font-weight: 700; }
.rowedit { min-width: 4rem; }
.rowedit[open] { min-width: 15rem; }
.rowedit form { margin-top: .6rem; }
.rowedit .field { margin-bottom: .6rem; }
details.card > summary { margin-bottom: .25rem; }
details.card[open] > summary { margin-bottom: 1rem; }
.sample { background: var(--mist); padding: .75rem 1rem; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.swapline { margin: 0 0 .6rem; }
.review { margin: 0 0 1rem; padding: .8rem 1rem; border-left: 6px solid var(--red); background: #FFF8EE; border-radius: 0 12px 12px 0; }
.review p { margin: 0 0 .3rem; white-space: pre-line; }
.review footer { font-size: .85rem; opacity: .75; }
.staffform { padding: 1rem 0; border-bottom: 1px solid #DDD9F5; }
.staffform h3 { font-size: 1.15rem; margin-bottom: .75rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.rowform-shift { grid-template-columns: 1fr 1fr 8.5rem auto auto; }
.rowform-shift.rowform-new { grid-template-columns: 1fr 1fr 8.5rem auto; }
.staf-entry { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { .rowform-shift, .rowform-shift.rowform-new { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- staf Kingdom: kamera, barang, SOP */
.cam { margin-bottom: 1rem; }
.cam video, .cam img { width: 100%; max-width: 30rem; border-radius: 16px; border: 2px solid #1E1570; background: #000; margin-bottom: .6rem; }
.cam video { transform: none; }
.twin-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 760px) { .twin-cards { grid-template-columns: 1fr; } }
.mvp { padding: .75rem 1rem; border-radius: 14px; background: #FFF1C2; font-weight: 500; }
.stat-link { text-decoration: none; display: block; }
.stat-link:hover { background: var(--mist); }
.stat-warn { border-color: #A3120C; color: #7A0D08; }
.notice-tight { margin: 0 0 1.25rem; }
.notice-tight h2 { margin-bottom: .4rem; }
.table tr.group td { font-weight: 700; background: var(--mist); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.table tr.is-low td { background: #FFF1EF; }
.stock-input input.qty { width: 6.5rem; padding: .45rem .6rem; }
.goods { border-bottom: 1px solid #DDD9F5; padding: .55rem 0; }
.goods summary { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; }
.goods form { margin-top: .9rem; }
.goods-off summary { opacity: .6; }
.sop-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #DDD9F5; text-decoration: none; font-weight: 500; }
.sop-item:hover span:first-child { text-decoration: underline; }
.sop-body { font-size: 1.05rem; }
.sop-body img { margin-top: 1rem; border-radius: 14px; }
.checks { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.captcha { min-height: 65px; }
.captcha-note { margin: 0 0 1rem; }
@media (max-width: 640px) {
  .stock-input thead { display: none; }
  .stock-input tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .6rem 0; border-bottom: 1px solid #DDD9F5; }
  .stock-input td { border: 0; padding: 0; }
  .stock-input td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .stock-input td.num { text-align: left; align-self: center; }
  .stock-input td.num::before { content: "Stok "; opacity: .7; }
}

/* ---------- Kanaya Creative: gelap, tenang, foto jadi pusat perhatian */
body[data-theme="kanaya"] {
  --paper: #0D0D0F; --ink: #EFEAE2; --ground: #0D0D0F; --on-ground: #EFEAE2;
  --hot: #D9B98C; --mist: #17171A; --line: rgba(239, 234, 226, .14); --muted: #A9A39A;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  background: var(--paper); color: var(--ink);
}
body[data-theme="kanaya"] .nav { border-bottom: 1px solid var(--line); }
body[data-theme="kanaya"] .logo:not(:has(.mark)) { background: var(--ink); color: var(--paper); }
body[data-theme="kanaya"] .btn { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
body[data-theme="kanaya"] .btn-main { background: var(--ink); color: var(--paper); }
body[data-theme="kanaya"] .foot { border-top: 1px solid var(--line); }
body[data-theme="kanaya"] :focus-visible { outline-color: var(--hot); }
body[data-theme="kanaya"] a { text-decoration-color: rgba(239, 234, 226, .4); }

.kn-eyebrow { font: 600 .78rem/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--hot); margin: 0 0 1rem; }
.kn-eyebrow a { text-decoration: none; }
.kn-hero { position: relative; min-height: min(88vh, 54rem); display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(13,13,15,.15) 0%, rgba(13,13,15,.35) 45%, #0D0D0F 100%), var(--hero, none) center / cover no-repeat, #141417; }
.kn-hero-work { min-height: min(72vh, 44rem); }
.kn-hero-in { padding-block: 7rem 4.5rem; }
.kn-hero h1 { font: 500 clamp(3.2rem, 11vw, 8.5rem)/.92 var(--serif); letter-spacing: -.02em; max-width: 11em; }
.kn-hero-work h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
.kn-brand { --w: clamp(15rem, 58vw, 40rem); }
.kn-brand .mark { width: var(--w); }
/* naik ke ruang kosong di bawah "Ka", ekor huruf y ada di kanan */
.kn-brand-sub { display: block; font: 600 clamp(.8rem, 1.6vw, 1.05rem)/1 var(--body); letter-spacing: .6em; text-transform: uppercase; color: var(--hot); margin: calc(var(--w) * -.05) 0 0 .4em; }
.kn-brand-small { display: inline-block; margin-bottom: 1.25rem; }
.kn-brand-small .mark { width: 8.5rem; }
.kn-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 34em; margin: 1.5rem 0 0; color: #D8D2C8; }
.kn-hero-credit { position: absolute; right: 1.25rem; bottom: 1.25rem; font-size: .8rem; letter-spacing: .08em; color: var(--muted); text-decoration: none; }
.kn-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .95rem 1.6rem; border: 1px solid var(--ink); color: var(--ink);
  font: 600 .82rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.kn-btn:hover { background: var(--ink); color: var(--paper); }
.kn-btn-solid { background: var(--ink); color: var(--paper); }
.kn-btn-solid:hover { background: var(--hot); border-color: var(--hot); }

.kn-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.kn-about { background: var(--mist); }
.kn-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.kn-head h2, .kn-cta h2 { font: 500 clamp(2.2rem, 5vw, 3.8rem)/1 var(--serif); letter-spacing: -.01em; max-width: 18em; }
.kn-head h2 a { text-decoration: none; }
.kn-empty { color: var(--muted); border: 1px dashed var(--line); padding: 2rem; }

.kn-filter { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 2rem; }
.kn-filter button { font: 600 .8rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); background: none; border: 0; border-bottom: 1px solid transparent; padding: .5rem 0; cursor: pointer; }
.kn-filter button[aria-pressed="true"], .kn-filter button:hover { color: var(--ink); border-bottom-color: var(--hot); }
.kn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; grid-auto-flow: dense; }
.kn-work { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #1B1B1F; text-decoration: none; }
.kn-work-big { grid-column: span 2; aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .kn-work-big { grid-column: auto; aspect-ratio: 4 / 5; } }
.kn-work img, .kn-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .4s; display: block; }
.kn-work:hover img { transform: scale(1.04); opacity: .85; }
.kn-work-meta { position: absolute; inset: auto 0 0 0; padding: 3rem 1.25rem 1.2rem; display: grid; gap: .35rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,.78)); }
.kn-work-cat { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hot); }
.kn-work-title { font: 500 1.65rem/1.05 var(--serif); color: #fff; }
.kn-work[hidden] { display: none; }

.kn-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.kn-split-work { grid-template-columns: 16rem 1fr; margin-bottom: 3rem; }
@media (max-width: 820px) { .kn-split, .kn-split-work { grid-template-columns: 1fr; } }
.kn-prose { font-size: 1.15rem; line-height: 1.75; color: #D8D2C8; max-width: 38em; }
.kn-services { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.kn-services li { counter-increment: s; display: grid; gap: .2rem; padding: 1rem 0 1rem 3rem; border-top: 1px solid var(--line); position: relative; }
.kn-services li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1.15rem; font-size: .8rem; color: var(--hot); letter-spacing: .1em; }
.kn-services strong { font: 500 1.45rem/1.1 var(--serif); }
.kn-services span { color: var(--muted); }
.kn-facts { margin: 0; display: grid; gap: 1.2rem; }
.kn-facts dt { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.kn-facts dd { margin: .25rem 0 0; font: 500 1.35rem/1.2 var(--serif); }

.kn-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; align-items: stretch; }
.kn-pack { border: 1px solid var(--line); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .5rem; position: relative; background: #111114; }
.kn-pack-hi { border-color: var(--hot); background: #17150F; }
.kn-pack h3 { font: 500 2rem/1.05 var(--serif); }
.kn-badge { position: absolute; top: -.75rem; left: 1.75rem; margin: 0; background: var(--hot); color: #17150F; font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; }
.kn-price { font: 600 1.6rem/1.1 var(--body); margin: .4rem 0 1rem; display: grid; }
.kn-price small { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .06em; }
.kn-pack ul { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; align-content: start; color: #D8D2C8; flex: 1; }
.kn-pack li { padding-left: 1.4rem; position: relative; }
.kn-pack li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7rem; height: 1px; background: var(--hot); }
.kn-pack .kn-btn { justify-content: center; }
.kn-note { color: var(--muted); margin-top: 1.75rem; font-size: .95rem; max-width: 46em; }

.kn-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.5rem; }
.kn-steps li { border-top: 1px solid var(--hot); padding-top: 1rem; font: 500 1.35rem/1.2 var(--serif); }
.kn-steps span { display: block; font: 600 .78rem var(--body); letter-spacing: .16em; color: var(--hot); margin-bottom: .6rem; }

.kn-ig { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; align-items: start; }
.kn-ig .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 !important; background: #fff; border-radius: 0 !important; }
.kn-gallery a { border: 0; border-radius: 0; }
.kn-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 3rem; }
.kn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.kn-photos { columns: 2 22rem; column-gap: 1rem; }
.kn-photos figure { break-inside: avoid; margin: 0 0 1rem; }
.kn-photos figcaption { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.kn-cta { padding-block: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--line); text-align: left; }
.kn-cta .actions { margin-top: 2rem; }
/* admin Kanaya */
.work-thumb { display: grid; gap: .35rem; text-decoration: none; }
.work-thumb img, .work-thumb .noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid #1E1570; display: grid; place-items: center; background: #F3F1FF; }
.work-thumb small { opacity: .75; }
.photo-edit { display: grid; gap: .45rem; align-content: start; position: relative; }
.photo-edit img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid #1E1570; }
.photo-edit.is-cover img { border-width: 4px; border-color: var(--coral); }
.photo-edit .tag { position: absolute; top: .5rem; left: .5rem; background: var(--coral); color: #fff; }
.rowform-ig { grid-template-columns: 1fr auto; overflow-wrap: anywhere; }
