* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0b0c10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

/* WADAH UTAMA HP (IPHONE CONTAINER) */
#phone {
  width: 380px;
  height: 740px;
  background: #0c1829;
  border-radius: 44px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
  border: 5px solid #20242b;
  position: relative;
}

/* CLASS UTILITAS UNTUK SEMBUNYIKAN ELEMEN */
.hidden {
  display: none !important;
}

/* DYNAMIC ISLAND / NOTCH */
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
}

/* 1. LOCKSCREEN COVER (LAYAR AWAL WAKTU BARU DIBUKA) */
#lockscreen-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0c182c 0%, #172a45 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 45px 20px 20px 20px;
  z-index: 20;
  transition: transform 0.4s ease;
}

#lockscreen-cover.slide-up {
  transform: translateY(-100%);
}

#lock-header {
  text-align: center;
  margin-top: 10px;
}

#lock-time {
  font-size: 60px;
  font-weight: 200;
}

/* Posisi Tombol Senter & Kamera di Lockscreen */
#quick-actions {
  position: absolute;
  bottom: 50px; /* Jarak dari bawah layar */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between; /* Memisah senter ke kiri & kamera ke kanan */
  padding: 0 40px; /* Jarak dari tepi kiri & kanan */
  pointer-events: none; /* Supaya area kosong di tengah tidak menghalangi gesture */
}

/* Styling Tombol Bulat Khas iOS */
.action-btn {
  pointer-events: auto; /* Mengaktifkan kembali klik pada tombol */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

/* Efek saat tombol ditekan */
.action-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.3);
}

/* Status Senter Menyala */
.action-btn.flashlight-on {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

#swipe-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.home-bar {
  width: 130px;
  height: 5px;
  background: white;
  border-radius: 10px;
}

/* 2. PASSCODE SCREEN (PIN 1234) */
#passcode-screen {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.96);
  backdrop-filter: blur(25px);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.passcode-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.passcode-dots {
  display: flex;
  gap: 16px;
  margin: 20px 0 40px 0;
}

.passcode-dots .dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid white;
}

.passcode-dots .dot.filled {
  background: white;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 28px;
}

.keypad button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.keypad button.empty {
  background: transparent;
  cursor: default;
}

#lock-hint {
  margin-top: 24px;
  font-size: 12px;
  opacity: 0.8;
}

/* 3. HOMESCREEN IOS */
#homescreen {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0f1c30 0%, #0d1624 100%);
  padding: 40px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 5;
}

.ios-home-statusbar {
  display: flex;
  justify-content: space-between;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 0 6px 10px 6px;
}

/* 1. HOMESCREEN CONTAINER (Ubah alignment dari space-between jadi start) */
#homescreen {
  position: absolute;
  inset: 0;
  background-image: url('https://i.pinimg.com/736x/2d/a2/ae/2da2ae984f5c60bacc7e394349ee7f3f.jpg');
  background-size: cover;
  background-position: center;
  padding: 42px 18px 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Mencegah elemen terdorong terlalu jauh ke bawah */
  z-index: 5;
}

/* 2. WIDGETS CONTAINER (Merapatkan widget) */
.widgets-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;    /* Jarak dari statusbar atas */
  margin-bottom: 12px; /* Merapatkan jarak dari widget ke ikon aplikasi di bawahnya */
}

/* 3. APP GRID (Menyesuaikan grid aplikasi) */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  margin-top: 0; /* Menghilangkan margin negatif sebelumnya */
}

/* 4. SEARCH PILL (Menempatkan pill search secara otomatis di atas dock) */
.search-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  margin-top: auto;    /* Mendorong search pill & dock pas ke bagian bawah */
  margin-bottom: 8px;
}

.widget-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  height: 130px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1c1c1e;
  position: relative;
}

.widget-weather {
  background: linear-gradient(135deg, #708fa8 0%, #4a637a 100%);
  color: white;
}

.widget-top {
  font-size: 13px;
  font-weight: 600;
}

.temp-main {
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.weather-desc {
  font-size: 12px;
  opacity: 0.9;
}

.temp-range {
  font-size: 11px;
  opacity: 0.7;
}

.widget-calendar {
  background: #ffffff;
}

.cal-day-name {
  color: #ff3b30;
  font-size: 11px;
  font-weight: 700;
}

.cal-date-num {
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  color: #000;
}

.cal-event {
  font-size: 11px;
  color: #8e8e93;
  margin-top: auto;
}

.widget-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* APP GRID */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  margin-top: 10px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.icon-white { background: #fff; flex-direction: column; }
.icon-day { font-size: 9px; color: #ff3b30; font-weight: bold; }
.icon-num { font-size: 20px; color: #000; font-weight: 300; line-height: 1; }
.icon-photos { background: #fff; }
.icon-camera { background: #8e8e93; color: white; }
.icon-notes { background: #ffcc00; }
.icon-reminders { background: #fff; }
.icon-clock { background: #000; color: white; }
.icon-appstore { background: #007aff; color: white; }
.icon-maps { background: #34c759; color: white; }
.icon-health { background: #fff; }
.icon-wallet { background: #000; }
.icon-settings { background: #5856d6; color: white; }
.icon-didi { background: #ff9500; color: white; }
.icon-disney { background: #002561; color: white; }
.icon-dmm { background: #ff2d55; color: white; }
.icon-docs { background: #007aff; color: white; }
.icon-dori { background: #e0245e; color: white; }

.app-name {
  color: white;
  font-size: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ff3b30;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* SEARCH BAR */
.search-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  margin: 10px 0;
}

/* DOCK BAWAH HOMESCREEN */
.dock {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  padding: 10px 14px;
  border-radius: 28px;
  display: flex;
  justify-content: space-around;
}

.dock-phone { background: #34c759; color: white; }
.dock-safari { background: #007aff; color: white; }
.dock-message { background: #34c759; color: white; }
.dock-music { background: #ff2d55; color: white; }

/* LAYAR APLIKASI (Terikat di dalam Frame #phone) */
.app-page {
  position: absolute;
  inset: 0; /* Mengisi ukuran penuh dari parent (#phone) */
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 25;
  border-radius: 40px; /* Ikut melengkung sesuai sudut HP */
  overflow: hidden;
}

.app-header {
  background: #1c1c1e;
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  color: #007aff;
  cursor: pointer;
  font-size: 14px;
}

/* WA CHAT LIST UI */
#wa-chat-list {
  background: #f2f2f7;
}

.ios-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 6px 20px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f2f7;
}

.wa-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f2f2f7;
}

.edit-btn {
  color: #007aff;
  font-size: 14px;
  cursor: pointer;
}

.title-chat {
  font-size: 18px;
  font-weight: 700;
}

.header-right-icons {
  display: flex;
  gap: 16px;
  color: #007aff;
  font-size: 18px;
}

.chat-items-container {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-item {
  display: flex;
  padding: 10px 16px;
  gap: 12px;
  border-bottom: 0.5px solid #e5e5ea;
  cursor: pointer;
  align-items: center;
}

.chat-item:active {
  background: #e5e5ea;
}

.item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5e5ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-name {
  font-weight: 600;
  font-size: 15px;
  color: #000;
}

.item-time {
  font-size: 12px;
  color: #8e8e93;
}

.item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-preview {
  font-size: 13px;
  color: #8e8e93;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 220px;
}

.chat-item.unread .item-preview {
  color: #000;
  font-weight: 500;
}

.item-badge {
  background: #007aff;
  color: white;
  font-size: 11px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-tab-bar {
  display: flex;
  justify-content: space-around;
  background: #f9f9f9;
  border-top: 0.5px solid #d1d1d6;
  padding: 6px 0 16px 0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  color: #8e8e93;
  position: relative;
  cursor: pointer;
}

.tab-item small {
  font-size: 10px;
  margin-top: 2px;
}

.tab-item.active {
  color: #007aff;
}

.tab-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background: #ff3b30;
  color: white;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 10px;
}

/* RUANG CHAT WHATSAPP AU */
#chat-app {
  background: #efeae2;
  display: flex;
  flex-direction: column;
}

#wa-header {
  background: #075e54;
  color: white;
}

.wa-top-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px 2px 16px;
  font-size: 11px;
  opacity: 0.9;
}

.wa-back {
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
}

#contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 10px 16px;
}

.header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  overflow: hidden;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#header-name {
  font-weight: 600;
  font-size: 15px;
  color: white;
}

#chat-status {
  font-size: 11px;
  color: #d1e7dd;
}

#chat-box {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #efeae2;
}

.message-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 85%;
}

.message-row.me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-row.other {
  align-self: flex-start;
}

.avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bubble {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  word-break: break-word;
}

.other .bubble {
  background: #ffffff;
  color: #111;
}

.me .bubble {
  background: #dcf8c6;
  color: #111;
}

.sender-name {
  font-size: 11px;
  font-weight: bold;
  color: #075e54;
  margin-bottom: 2px;
}

.system-msg {
  align-self: center;
  background: rgba(0, 0, 0, 0.15);
  color: #444;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  margin: 6px 0;
}

.typing-container {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0 16px 8px 16px;
}

.bubble-typing {
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  gap: 4px;
}

.bubble-typing span {
  width: 6px;
  height: 6px;
  background: #888;
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}

.bubble-typing span:nth-child(2) { animation-delay: .2s; }
.bubble-typing span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* INPUT BAR & KEYBOARD */
#chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f6f6f6;
  border-top: 1px solid #e5e5ea;
  position: relative;
  z-index: 30;
}

.input-icon {
  font-size: 20px;
  color: #007aff;
}

#chat-input-field {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d1d1d6;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 14px;
  min-height: 32px;
  display: flex;
  align-items: center;
  color: #000;
  cursor: pointer;
}

.cursor {
  color: #007aff;
  font-weight: bold;
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

#send-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #007aff;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ios-keyboard {
  background: #d1d5db;
  padding: 6px 3px 20px 3px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.kb-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.kb-row span {
  background: #ffffff;
  color: #000;
  border-radius: 5px;
  padding: 8px 0;
  font-size: 15px;
  flex: 1;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.kb-row .shift, .kb-row .backspace { background: #abb1bb; flex: 1.5; font-size: 13px; }
.kb-row.bottom-row span { font-size: 12px; background: #abb1bb; }
.kb-row .spacebar { flex: 4; background: #ffffff; }

/* APLIKASI LAINNYA */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.photo-card { background: #f0f0f0; border-radius: 12px; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 24px; }
.calendar-card { padding: 20px; background: #f9f9f9; border-radius: 16px; margin: 16px; }
.player-container { display: flex; flex-direction: column; align-items: center; padding: 40px 20px; gap: 16px; }
.album-art { width: 140px; height: 140px; background: #ff2d55; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 50px; color: white; }
.notes-content { padding: 20px; }
.settings-list { padding: 16px; }
.setting-item { background: #f9f9f9; padding: 14px; border-radius: 10px; cursor: pointer; }

/* Efek saat tombol keyboard virtual ditekan otomatis */
.kb-row span.active-key {
  background: #007aff !important;
  color: white !important;
  transform: scale(0.95);
  transition: all 0.05s ease;
}

/* PENGATURAN GAMBAR IKON ASLI IOS */
.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  background: transparent;
}

.real-ios-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* EFEK TOMBOL KEYBOARD BERKEDIP PAS NGETIK */
.kb-row span.active-key {
  background: #a0a1a1 !important;
  color: white !important;
  transform: scale(0.95);
  transition: all 0.05s ease;
}

.dock {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-around; /* Supaya 4 ikon berjarak rata */
  align-items: center;
  margin-top: 10px;
}

/* Custom Wallpaper Lockscreen */
#lockscreen-cover {
  background-image: url('https://i.pinimg.com/736x/ef/13/0e/ef130e311bd9444a4a89525c17ac86c0.jpg'); /* Ganti dengan path gambar lockscreen kamu */
  background-size: cover;
  background-position: center;
}

/* Custom Wallpaper Homescreen */
#homescreen {
  background-image: url('https://i.pinimg.com/736x/2d/a2/ae/2da2ae984f5c60bacc7e394349ee7f3f.jpg'); /* Ganti dengan path gambar homescreen kamu */
  background-size: cover;
  background-position: center;
}

#lockscreen-cover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.4s ease, background-color 0.4s ease;
}

/* Saat digeser ke atas dan menampilkan layar PIN */
#lockscreen-cover.slide-up {
  transform: translateY(-100%);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background-color: rgba(0, 0, 0, 0.4);
}

/* Styling Aplikasi Kamera iOS */
#camera-app {
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.camera-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.camera-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 25px 15px;
  font-size: 18px;
}

.camera-close-btn {
  font-size: 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-viewport {
  flex: 1;
  background: #111;
  margin: 0 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.camera-placeholder-text {
  color: #666;
  font-size: 14px;
}

.camera-modes {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #888;
  padding: 15px 0 10px;
}

.camera-modes .active-mode {
  color: #ffcc00;
}

.camera-bottom-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 40px;
}

.camera-thumb {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
}

.shutter-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.shutter-inner {
  width: 54px;
  height: 54px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.1s ease;
}

.shutter-btn:active .shutter-inner {
  transform: scale(0.85);
}

.switch-cam-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* Styling Ikon SVG Outline Putih Khas iOS */
.ios-outline-icon {
  width: 20px;
  height: 20px;
  fill: #ffffff; /* Warna putih bersih */
  display: inline-block;
  vertical-align: middle;
}

/* Memperbesar sedikit khusus ikon senter/kamera di tombol bawah */
.action-btn .ios-outline-icon {
  width: 22px;
  height: 22px;
}

/* Status Bar Khusus Lockscreen di Atas */
#lock-statusbar {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #ffffff;
  z-index: 10;
  font-weight: 500;
}

.lock-status-right {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

/* Styling untuk ikon Sinyal, WiFi, dan Baterai outline di statusbar */
.ios-status-icon {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  display: inline-block;
  vertical-align: middle;
}

/* Sedikit penyesuaian untuk proporsi ikon baterai */
.ios-status-icon.battery-outline {
  width: 20px;
  height: 20px;
}

/* Status Bar Homescreen (Sejajar dengan Dynamic Island di atas) */
#home-statusbar {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #ffffff;
  z-index: 10;
  font-weight: 600;
}

.home-status-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.battery-percentage {
  font-size: 12px;
  margin-left: 2px;
}

/* Menyesuaikan jarak padding atas homescreen supaya widget tidak tertutup statusbar */
#homescreen {
  padding: 45px 18px 18px 18px;
}

/* Styling Tombol Batal & Backspace di Keypad */
.keypad button.action-key {
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.keypad button.action-key:active {
  opacity: 0.5;
}

/* Animasi Getar (Shake) saat Passcode Salah ala iOS */
.shake-animation {
  animation: iosShake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes iosShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-8px, 0, 0); }
  40%, 60% { transform: translate3d(8px, 0, 0); }
}

/* Stuktur Utama Homescreen */
#homescreen {
  position: absolute;
  inset: 0;
  background-image: url('https://i.pinimg.com/736x/2d/a2/ae/2da2ae984f5c60bacc7e394349ee7f3f.jpg');
  background-size: cover;
  background-position: center;
  padding: 42px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Memisahkan area atas dan bawah secara proporsional */
  z-index: 5;
}

.home-top-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

/* Search Pill di atas Dock */
.search-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
}

/* Dock Bawah */
.dock {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

/* Styling Ikon Kaca Pembesar Outline Putih di Search Pill */
.search-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 400;
}

.search-icon-outline {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

