body {
  background-color: #1a1b26;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  user-select: none;
}

/* กรอบโทรศัพท์ */
.phone {
  width: 320px;
  height: 650px;
  background: #000000;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  box-sizing: border-box;
}

/* หน้าจอหลัก */
.screen {
  width: 100%;
  height: 100%;
  background-color: #111111;
  border-radius: 38px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  padding: 10px 14px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Status Bar ด้านบนสุด */
.status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 6px 0 6px;
  box-sizing: border-box;
  z-index: 30;
}

.time-top {
  font-weight: 600;
  letter-spacing: -0.2px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.signal-icon {
  width: 13px;
  height: 13px;
}

.battery-wrapper {
  display: flex;
  align-items: center;
  gap: 3px;
}

.battery-percent {
  font-size: 11px;
  font-weight: 600;
}

.battery-icon {
  width: 19px;
  height: 9.5px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 3px;
  padding: 1px;
  position: relative;
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2.5px;
  width: 2px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 1px 1px 0;
}

.battery-level {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 1px;
}

/* --- 1. หน้าจอล็อก (Lock Screen) --- */
.lock-screen-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://cdn.discordapp.com/attachments/1291769699058712668/1563841946286559362/IMG_2382.jpg?ex=6adf18ce&is=6addc74e&hm=cfd416088daa447e69ffa3ef9a942cf6e1b91351dedfbbdd863276621c3c645b');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px;
  box-sizing: border-box;
  z-index: 10;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}

.lock-header {
  margin-top: 45px;
  text-align: center;
}

.date {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.clock {
  font-size: 88px;
  font-weight: 700;
  line-height: 0.9;
  margin-top: 2px;
  letter-spacing: -2px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.bottom-actions {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  box-sizing: border-box;
  margin-top: auto;
  margin-bottom: 30px;
}

.action-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.1s ease, background 0.1s ease;
  outline: none;
}

.action-btn svg {
  width: 22px;
  height: 22px;
}

.action-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.3);
}

/* --- 2. หน้าโฮมสกรีนข้างใน (Home Screen) --- */
.home-screen-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #252836 0%, #161822 100%);
  z-index: 5;
  padding-top: 50px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-text {
  font-size: 16px;
  color: #a0a5b5;
  font-weight: 500;
}

/* --- Home Bar ขีดโฮมด้านล่างสุด --- */
.home-bar {
  position: absolute;
  bottom: 8px;
  width: 134px;
  height: 5px;
  background: #ffffff;
  border-radius: 3px;
  z-index: 40;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

/* เอฟเฟกต์ตอนกดขีด Home Bar */
.home-bar:active {
  transform: scaleX(0.9) translateY(-2px);
  background-color: rgba(255, 255, 255, 0.7);
}

/* คลาสสำหรับสั่งเลื่อนหน้าจอล็อกขึ้นไปด้านบนเมื่อปลดล็อก */
.screen.unlocked .lock-screen-layer {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}