/* ===== Apps back panel ===== */
.flip-container.show-apps {
  width: var(--card-width-apps);
}

.flip-container.show-apps .back-apps {
  display: block;
}

.back-apps {
  background: transparent;
  box-shadow: none;
  border-radius: 20px;
  min-height: 82vh;
}

#phone-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 0 20px;
  height: 82vh;
  overflow: hidden;
}

#phone-body {
  width: 400px;
  max-height: 660px;
  height: calc(82vh - 60px);
  background: #1a1a1a;
  border-radius: 48px;
  padding: 16px 12px 10px;
  box-shadow: 0 0 0 2px #3a3a3a, 0 12px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

#phone-notch {
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  margin: -16px auto 8px;
  z-index: 1;
  position: relative;
}

#phone-screen {
  flex: 1;
  background: url("https://kate0115.net/pic/cellphone-background.jpg") center/cover no-repeat;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  color: black;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

#app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 16px;
  row-gap: 28px;
  padding: 40px 16px 20px;
  align-content: start;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.app-icon img {
  width: 85px;
  height: 85px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.app-icon-placeholder {
  width: 85px;
  height: 85px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.app-icon span {
  color: white;
  font-size: 10px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

#phone-footer {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.45);
  padding: 0;
}

#phone-home {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  margin: 8px auto 2px;
}
