/** lock */
#layar-lock {
  background: url("../gambar/wallpaper.jpg") center / cover no-repeat;
  user-select: none;
}


#layar-lock .lock h2 {
  font-weight: 400;
  font-size: 17px;
  text-align: center;
  margin: 20px 0 0;
  color: white;
}

#layar-lock .lock h3 {
  font-size: 70px;
  text-align: center;
  margin: 5px 0 0;
  color: white;
}

#layar-lock .footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 40px 50px 40px;
}

#layar-lock .footer .ikon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

#layar-lock .footer svg {
  width: 22px;
  height: 22px;
}

/** notif lock */
#notifLock {
  flex: 1;
  min-height: 0;
  margin-top: 56px;
  padding-bottom: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 22px), transparent);
}

#notifLock::-webkit-scrollbar {
  display: none;
}

#notifLock .notifikasi {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 7px;
  padding: 12px 14px;
  border-radius: 13px;
  background-color: rgba(53, 26, 17, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

#notifLock .notifikasi.bisa-diketuk {
  cursor: pointer;
}

#notifLock .notifikasi.masuk {
  animation: notif-masuk .5s cubic-bezier(.2, .9, .3, 1);
}

@keyframes notif-masuk {
  from {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    transform: translateY(-24px) scale(.95);
  }

  to {
    max-height: 100px;
    opacity: 1;
  }
}

/** app notif */
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-avatar {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
}

.notif-avatar .avatar {
  width: 38px;
  height: 38px;
}

.notif-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, .7);
}

.notif-appikon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
}

.notif-lampiran {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 6px;
}

#notifLock .informasi {
  flex: 1;
  min-width: 0;
}

#notifLock .informasi h1 {
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  margin: 0;
  color: white;
}

#notifLock .informasi h2 {
  font-weight: lighter;
  font-size: 13px;
  text-align: left;
  margin: 2px 0 0;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#notifLock .waktu-notif {
  font-weight: lighter;
  font-size: 11px;
  color: rgb(219, 215, 215);
  margin-left: 6px;
  align-self: flex-start;
  white-space: nowrap;
}

/** notif banner */
.notif-wadah {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.notif-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(53, 26, 17, 0.35);
  backdrop-filter: blur(14px);
  color: white;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .3s ease, opacity .3s ease;
  animation: banner-masuk .45s cubic-bezier(.2, .9, .3, 1);
}

.notif-banner:not(:first-child) {
  transform: scale(.95);
  opacity: .8;
}

.notif-banner.keluar {
  opacity: 0;
  transform: translateY(-40px);
}

.notif-banner img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.notif-teks {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.notif-teks b {
  font-size: 14px;
}

.notif-teks span {
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-banner small {
  font-size: 11px;
  opacity: 0.6;
}

@keyframes banner-masuk {
  from {
    opacity: 0;
    transform: translateY(-100%) scale(.9);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/** home */
#layar-home {
  background: url("../gambar/wallpaper.jpg") center / cover no-repeat;
}

.hs-pager {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.hs-pager::-webkit-scrollbar {
  display: none;
}

.hs-pager.seret {
  scroll-snap-type: none;
}

.hs-page {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hs-titik {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0 0;
  flex-shrink: 0;
}

.hs-titik span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}

.hs-titik span.aktif {
  background: #fff;
}

/** hal tengah */
.widget-baris {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 14px 18px 0 18px;
}

.widget {
  height: 90px;
  border-radius: 24px;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: white;
}

.widget-isi {
  display: flex;
  flex-direction: column;
}

.widget-label {
  font-size: 12px;
  opacity: 0.6;
}

.widget-angka {
  font-size: 34px;
}

.grid-app {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 14px;
  justify-items: center;
  padding: 18px 10px 0 10px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: white;
  text-align: center;
  cursor: pointer;
}

.app-ikon {
  position: relative;
  width: 55px;
  height: 55px;
  border-radius: 22%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-ikon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22%;
  display: block;
}

.badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ff3b30;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
}

/** widget kiri */
#hsWidget {
  padding: 14px 18px 0;
}

.hw-baris {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hw-kolom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
}

.hw-lebar {
  margin-top: 14px;
}

.hw {
  width: 100%;
  height: 160px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
}

.hw-notes {
  background: #1c1c1e;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.hw-notes-kepala {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f5b400;
  color: #4a3500;
  font-size: 17px;
}

.hw-notes-kepala .ik {
  width: 22px;
  height: 22px;
}

.hw-notes-isi {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  font-size: 15px;
  min-height: 0;
}

.hw-notes-isi span {
  color: #8e8e93;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-notes-isi small {
  margin-top: auto;
  color: #8e8e93;
  font-size: 14px;
}

.hw-cuaca {
  background: linear-gradient(#4a5568, #2d3748);
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.hw-kota {
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hw-suhu {
  font-size: 46px;
  font-weight: 300;
  line-height: 1.05;
}

.hw-kondisi {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.hw-kondisi .ik {
  width: 22px;
  height: 22px;
}

.hw-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/** kanan */
#hsLibrary {
  padding: 8px 18px 20px;
  overflow-y: auto;
  scrollbar-width: none;
}

#hsLibrary::-webkit-scrollbar {
  display: none;
}

.lib-cari {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  color: #aeaeb2;
  font-size: 16px;
}

.lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-top: 14px;
}

.lib-kartu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
}

.lib-isi {
  width: 100%;
  min-height: 128px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-items: center;
  align-content: start;
}

.lib-isi img {
  width: 100%;
  max-width: 56px;
  aspect-ratio: 1;
  border-radius: 22%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/** dock */
.search {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 10px 40px 14px 40px;
}

.search p {
  margin: 0;
  font-weight: lighter;
  font-size: 11px;
  width: auto;
  height: 20px;
  padding: 0 12px;
  gap: 5px;
  border-radius: 13px;
  background-color: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(10px);
  color: rgb(213, 212, 212);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock {
  margin: 0 12px 40px 12px;
  padding: 14px;
  border-radius: 32px;
  background-color: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  transition: opacity .25s;
}

#layar-home.hs-lib .dock {
  opacity: 0;
  pointer-events: none;
} 

/** lost iphone */
.lost {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
    url("../gambar/wallpaper.jpg") center / cover no-repeat;
  color: #fff;
  touch-action: none;
  user-select: none;
  cursor: grab;
  transition: transform .35s cubic-bezier(.3, .7, .3, 1);
}

.lost.seret {
  transition: none;
}

.lost-waktu {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: .4;
}

.lost-waktu small {
  font-size: 17px;
}

.lost-waktu b {
  font-size: 70px;
  font-weight: 700;
}

.lost-pesan {
  margin: auto 0;
  padding: 0 36px;
  text-align: center;
}

.lost-pesan h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
}

.lost-pesan p {
  font-size: 15px;
  margin: 0 0 6px;
  opacity: .9;
}

.lost-hint {
  margin-bottom: 70px;
  font-size: 13px;
  animation: lost-naik 1.8s ease-in-out infinite;
}

@keyframes lost-naik {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(-8px); opacity: .8; }
}


